andregcasal Posted February 26, 2006 Posted February 26, 2006 (edited) Hi all!Could someone tell how to execute multiple files, from and SFX archive, using WinRAR?For example: Can't find the command to make SFX run 2 files upon extraction, like:"setup.exe /silent (something here) fix_setup.exe /silent" - where (something here) should be some command to make SFX understand that the "fix_setup.exe /silent" is refered the fix_setup.exe file and not an extension of the setup.exe command. Edited February 26, 2006 by andregcasal
Scubar Posted February 26, 2006 Posted February 26, 2006 another option is to build a new setup file using NSIS as that can also execute multiple cmds during an installation.
andregcasal Posted February 26, 2006 Author Posted February 26, 2006 (edited) CMD files are an option, but not the best one for me, as i would have to include many files in the windows instalation. It would be easyer to have a SFX file executing multiple EXE files within. But thanks anyway!My question still holds on. If someone know how to make a SFX file execute multiple EXE files upon extraction, please advise Edited February 26, 2006 by andregcasal
gunsmokingman Posted February 26, 2006 Posted February 26, 2006 Here is how i Install Pain Shop Pro 9 and Animation Shop, plus the updates for it.The SFX Cmd;The comment below contains SFX script commandsPath=%systemdrive%\Setup=%systemdrive%\Psp9Install\PspInstall.cmdSilent=1The top Image is the main directory that everything get extracted toThe bottom image is where the exe and sub folders are along with the Cmd fileThe Cmd I use to install every thing it a rough draft that I have never clean up but it works.Echo off && CLS && Mode 59,5 && Color B8 && Title Prpeparing CmdSet L1=ÉÄÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÄ» Set L2=ºÍÍÍÍÍÍ^>Set L3=ÈÄÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍļfor %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%iset VBS=%systemdrive%\PspCleanup.VBSecho > %VBS% On Error Resume Nextecho >> %VBS% Dim Act,Fsoecho >> %VBS% Set Act = CreateObject("Wscript.Shell")echo >> %VBS% Set Fso = CreateObject("Scripting.FileSystemObject")echo >> %VBS% Fso.DeleteFolder("%systemdrive%\Psp_Install")echo >> %VBS% Fso.DeleteFile("%VBS%"):::::::::::::::::::::::::::::::::::::::::::: APP 001:: psp901en.exe PSP 9 PRO Application 1::if EXIST "%~dp0\PaintPS9\setup.exe" (start /w %~dp0PaintPS9\JPSPro9.msi /qb) if EXIST "%~dp0\PaintPS9\setup.exe" (cls && color f3 && Title Installing -^> PSP 9 PRO && Echo Application 001 && Echo %L1% && Echo ºÍÍÍÍÍÍ^> Installing For PSP 9 PRO º && Echo %L3% && start /w %~dp0PaintPS9\JPSPro9.msi /qb)) cls && color 9f && Title PsP901en Finished! && echo.Echo %L1%Echo ºÍÍ^> Completed PsP901en Install! ºEcho %L3%ping -n 4 127.0.0.1>nul:::::::::::::::::::::::::::::::::::::::::::: APP 002:: JAnimation3.msi Jasc Animation3 Application 2::if EXIST "%~dp0\PaintPS9\setup.exe" (start %~dp0AnimationShop\JAnimation3.msi /qb) if EXIST "%~dp0\PaintPS9\setup.exe" (cls && color f3 && Title Installing -^> Jasc Animation3 && Echo Application 002 && Echo %L1% && Echo ºÍÍÍÍÍÍ^> Installing For Jasc Animation3 º && Echo %L3% && start /w %~dp0AnimationShop\JAnimation3.msi /qb)) cls && color 9f && Title En_PsP9011_Jasc Finished! && echo.Echo %L1%Echo ºÍÍ^> Completed Jasc Animation3 Install! ºEcho %L3%ping -n 4 127.0.0.1>nul:::::::::::::::::::::::::::::::::::::::::::: UpdateAPP 001:: psp901en.exe PsP901en Update 1::if EXIST "%~dp0\Psp9Updates\psp901en.exe" (start /w %~dp0Psp9Updates\psp901en.exe /s)if EXIST "%~dp0\PaintPS9\setup.exe" (cls && color f3 && Title Installing -^> PsP901en && Echo Update 001 && Echo %L1% && Echo ºÍÍÍÍÍÍ^> Installing For PsP901en º && Echo %L3% && start /w %~dp0Psp9Updates\psp901en.exe /s)) cls && color 9f && Title PsP901en Finished! && echo.Echo %L1%Echo ºÍÍ^> Completed PsP901en Install! ºEcho %L3%ping -n 4 127.0.0.1>nul:::::::::::::::::::::::::::::::::::::::::::: UpdateAPP 002:: en_psp9011_jasc.exe En_PsP9011_Jasc Update 2::if EXIST "%~dp0\Psp9Updates\en_psp9011_jasc.exe" (start /w %~dp0Psp9Updates\en_psp9011_jasc /s) if EXIST "%~dp0\PaintPS9\setup.exe" (cls && color f3 && Title Installing -^> En_PsP9011_Jasc && Echo Update 002 && Echo %L1% && Echo ºÍÍÍÍÍÍ^> Installing For En_PsP9011_Jasc º && Echo %L3% && start /w %~dp0Psp9Updates\en_psp9011_jasc /s)) cls && color 9f && Title En_PsP9011_Jasc Finished! && echo.Echo %L1%Echo ºÍÍ^> Completed En_PsP9011_Jasc Install! ºEcho %L3%ping -n 4 127.0.0.1>nul:::::::::::::::::::::::::::::::::::::::::::: UpdateAPP 003:: anim3help.exe Anim3Help Update 3::if EXIST "%~dp0\Psp9Updates\anim3help.exe" (start /w %~dp0Psp9Updates\anim3help.exe /s) if EXIST "%~dp0\PaintPS9\setup.exe" (cls && color f3 && Title Installing -^> Anim3Help && Echo Update 003 && Echo %L1% && Echo ºÍÍÍÍÍÍ^> Installing For Anim3Help º && Echo %L3% && start /w %~dp0Psp9Updates\anim3help.exe /s)) cls && color 9f && Title PsP901en Finished! && echo.Echo %L1%Echo ºÍÍ^> Completed Anim3Help Install! ºEcho %L3%ping -n 4 127.0.0.1>nul:::::::::::::::::::::::::::::::::::::::::::: UpdateAPP 004:: psp9gdiplus-.exe PsP9GdiPlus- Update 4::if EXIST "%~dp0\Psp9Updates\psp9gdiplus-.exe" (start /w %~dp0Psp9Updates\psp9gdiplus-.exe /s) if EXIST "%~dp0\PaintPS9\setup.exe" (cls && color f3 && Title Installing -^> En_PsP9011_Jasc && Echo Update 004 && Echo %L1% && Echo ºÍÍÍÍÍÍ^> Installing For PsP9GdiPlus- º && Echo %L3% && start /w %~dp0Psp9Updates\psp9gdiplus-.exe /s)) cls && color 9f && Title En_PsP9011_Jasc Finished! && echo.Echo %L1%Echo ºÍÍ^> Completed PsP9GdiPlus- Install! ºEcho %L3%ping -n 4 127.0.0.1>nulset VBS=%systemdrive%\PspCleanup.VBSecho > %VBS% On Error Resume Nextecho >> %VBS% Dim Act,Fsoecho >> %VBS% Set Act = CreateObject("Wscript.Shell")echo >> %VBS% Set Fso = CreateObject("Scripting.FileSystemObject")echo >> %VBS% Fso.DeleteFolder("%systemdrive%\Psp9Install")echo >> %VBS% Fso.DeleteFile("%VBS%")start %VBS%
andregcasal Posted February 28, 2006 Author Posted February 28, 2006 (edited) Thanks Gunsmokingman, but as i sayed before, all i need to solve my problem is a simple command (that i can't seem to find... This is if it exists, i'm starting to have my doubts...) to put between SFX commands so it understands the next command is independent of the first one. If anyone know's how to extract and execute multiple files, just using a SFX archive, please share that, i'd really apreciate it. Edited February 28, 2006 by andregcasal
ajua Posted March 1, 2006 Posted March 1, 2006 the tip about launching a cmd file (with 2 or more commands on it) seems the far ou will get. as far as i know you can only launch one file in winrar sfx archives. but try searching in winrar site to see if there is something about your question.
Kelsenellenelvian Posted March 1, 2006 Posted March 1, 2006 If using winrar to make the sfx file all you have to do is enter multiple start commands. Like so.;The comment below contains SFX script commandsSetup=blah1.exeSetup=blah2.exeSetup=blah3.exeTempModeSilent=1Overwrite=1
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now