Delprat Posted March 13, 2006 Posted March 13, 2006 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 )
Jedi82 Posted April 10, 2006 Posted April 10, 2006 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.regECHO 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 offstart /wait %systemdrive%\install\bfr.exe /VERYSILENT /SP-REGEDIT /S %systemdrive%\install\Registri\bfr_register.regEXIT* 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??
Delprat Posted April 10, 2006 Posted April 10, 2006 where i was wrong??Nowhere. You did exactly what you were willing to do. 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 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 spacesnota: i don't know if RunProgram= is case sensitive, so you should use the correct case...++
alperefe Posted April 10, 2006 Posted April 10, 2006 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 thats all!
Delprat Posted April 11, 2006 Posted April 11, 2006 (edited) "quick batch file compiler"US$39.95 Edited April 11, 2006 by Delprat
Jedi82 Posted April 20, 2006 Posted April 20, 2006 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!!!
RBCC Posted May 10, 2006 Posted May 10, 2006 How do I use this with an inf file, I have two drivers that I would like to build a switchless installer for? , John
mayang Posted May 10, 2006 Posted May 10, 2006 bfr.exetnx i will try soonYou can try ExeScript from www.hide-folder.comIt can converts batch files (.bat), Visual Basic and Javascripts to executable files (.exe)download the attachement as an example for your cmdCLS@echo offstart /wait %systemdrive%\install\bfr.exe /VERYSILENT /SP-REGEDIT /S %systemdrive%\install\Registri\bfr_register.regEXITand edit your config.txt like below:;!@Install@!UTF-8!RunProgram="bfr.exe";!@InstallEnd@!Nice try.
Glowy Posted May 16, 2006 Posted May 16, 2006 (edited) I don't know if anyone noticed, but the config.txt also has an other syntax:ID_String="Value"Title: Title for messagesBeginPrompt: Begin Prompt messageProgress: 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 temporaryfolder, where files were extractedDirectory: Directory prefix for "RunProgram". Default value is "..\\"ExecuteFile: Name of file for executingExecuteParameters: 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 May 16, 2006 by Glowy
ZileXa Posted May 19, 2006 Posted May 19, 2006 (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 May 19, 2006 by ZileXa
Glowy Posted May 19, 2006 Posted May 19, 2006 that's true..I bluntly copy pasted it. it works, just not for msiexec
jaws75 Posted May 20, 2006 Posted May 20, 2006 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?;-)
Delprat Posted May 21, 2006 Posted May 21, 2006 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now