Jump to content

[HELP] How to execute multiple files from SFX archive?


Recommended Posts

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 by andregcasal
Link to comment
Share on other sites


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 by andregcasal
Link to comment
Share on other sites

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 commands

Path=%systemdrive%\

Setup=%systemdrive%\Psp9Install\PspInstall.cmd

Silent=1

The top Image is the main directory that everything get extracted to

The bottom image is where the exe and sub folders are along with the Cmd file

The 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 Cmd

Set 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=%%i

set VBS=%systemdrive%\PspCleanup.VBS

echo > %VBS% On Error Resume Next

echo >> %VBS% Dim Act,Fso

echo >> %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>nul

set VBS=%systemdrive%\PspCleanup.VBS

echo > %VBS% On Error Resume Next

echo >> %VBS% Dim Act,Fso

echo >> %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%

Link to comment
Share on other sites

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 by andregcasal
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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