Jump to content

Recommended Posts

Posted
dose it go in the 7zs.sfx file ??? and if so what do I open file with.

Yes : google for "ResHacker" (or another resource editing tool)

(but the guide you quoted should have said : "go to Dialog→500→1033 ; click once on the fake cancel button, then press DEL" same effect, but really easier :lol: )

  • 4 weeks later...

Posted

sorry guys, i understand and realize my first 7z unattended program but if i have a situation like this that always worked using the cmd install:

ECHO.

ECHO [bETTER FILE RENAME]ECHO wait...

start /wait %systemdrive%\install\bfr.exe /VERYSILENT /SP-

ECHO wait...

REGEDIT /S %systemdrive%\install\Registri\bfr_register.reg

ECHO fatto!

how can i do for creating a 7z archive??

I tried like this but don't work:

* a 7z archive with my exe

* a config file with only this:

CLS

@echo off

start /wait %systemdrive%\install\bfr.exe /VERYSILENT /SP-

REGEDIT /S %systemdrive%\install\Registri\bfr_register.reg

EXIT

* and a config.txt with this:
;!@Install@!UTF-8!

RunProgram="bfr.cmd"

;!@InstallEnd@!

and tring to complete the archive with "copy /b 7zs.sfx + config.txt + bfr.7z bfr.exe"

where i was wrong??

Posted
where i was wrong??

Nowhere. You did exactly what you were willing to do. :P

BUT 7z SFX modules are unable to launch .cmd files (only .exe), and they are unable to launch a .exe that is not inside the archive.

So, to launch your .cmd, you'll need to include in your archive a .exe that will launch it :wacko:

search for "startx.exe" here, DL it, put it inside the 7z and modify the config.txt :

;!@Install@!UTF-8!

RunProgram="StartX.exe /WAIT /B \"bfr.cmd\""

;!@InstallEnd@!

StartX is a tool similar to the "start" command of cmd.exe. Little explanation :

/WAIT switch to make startx wait until the end of the .cmd execution (without this switch startx will return immediately and 7zSFX will delete everything before .cmd execution)

/B switch to run the .cmd in backgound, without any window visible (similar to CMDOW inside the batch, but the windows will not flash)

\" escape sequences for quotes, they must be present even if your batch file name doesn't have spaces

nota: i don't know if RunProgram= is case sensitive, so you should use the correct case...

++

Posted

may be someone will encounter with the same problem ı did! so dont use "quick batch file compiler" with 7zip if u install applications in svcpack! coz it ****s up! just let u know :D thats all!

Posted

and how can i do to install first a silent program and immediatly after overwrite some files or just put in the program folder some files?? aaargh so difficult!!!

  • 3 weeks later...
Posted
:hello: How do I use this with an inf file, I have two drivers that I would like to build a switchless installer for? :hello: , John
Posted

bfr.exe

tnx i will try soon

You can try ExeScript from www.hide-folder.com

It can converts batch files (.bat), Visual Basic and Java

scripts to executable files (.exe)

download the attachement as an example for your cmd

CLS
@echo off

start /wait %systemdrive%\install\bfr.exe /VERYSILENT /SP-
REGEDIT /S %systemdrive%\install\Registri\bfr_register.reg

EXIT

and edit your config.txt like below:

;!@Install@!UTF-8!
RunProgram="bfr.exe"
;!@InstallEnd@!

Nice try.

Posted (edited)

I don't know if anyone noticed, but the config.txt also has an other syntax:

ID_String="Value"

Title: Title for messages

BeginPrompt: Begin Prompt message

Progress: Value can be "yes" or "no". Default value is "yes".

RunProgram: Command for executing. Default value is "setup.exe".

Substring %%T will be replaced with path to temporary

folder, where files were extracted

Directory: Directory prefix for "RunProgram". Default value is "..\\"

ExecuteFile: Name of file for executing

ExecuteParameters: Parameters for "ExecuteFile"

You can omit any values.

Example:

;!@Install@!UTF-8!
Title="7-Zip 4.42"
BeginPrompt="Do you want to install 7-Zip 4.42?"
ExecuteFile="msiexec.exe"
ExecuteParameters="/i 7zip.msi REINSTALL=ALL REINSTALLMODE=vomus"
;!@InstallEnd@!

Edited by Glowy
Posted (edited)

wow ok so I thought msietub.exe or startX wasn't needed and tried this:

;!@Install@!UTF-8!
Title="Shockwave"
Progress="no"
ExecuteFile="msiexec.exe"
ExecuteParameters="/i shockwave.msi /qn"
;!@InstallEnd@!

did the copy command and tested: after extracting it says cannot find Setup.exe.

And I don't think it will work since it will try to find msiexec.exe in the 7z extracted folder..

Edited by ZileXa
Posted
BUT 7z SFX modules are unable to launch .cmd files (only .exe),

Funny but all my sfx installers launch a .cmd from config.txt without the help from an .exe.

;!@Install@!UTF-8!

RunProgram="install.cmd"

;!@InstallEnd@!

maybe I have a special computer that allows it?

;-)

Posted
maybe I have a special computer that allows it?

;-)

maybe i had a special version of 7-zip that disallow it... more that one month ago... there were some updates...

OMG, i feeded the troll :rolleyes:

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...