How to run Multiple exe with “RunProgram” from 7zip sfx with config.txt?

5.2k Views Asked by At

Ive Tried this it only ever runs which ever instance of run program is first. ive also tried with ExecuteFile.

;!@Install@!UTF-8!
Title="Title"
RunProgram="one.exe"
RunProgram="two.exe"
;!@InstallEnd@!

Any help would be greatly appreciated. Thanks

Ok So i Created a cmd file called Run.cmd

@echo off
start one.exe && start two.exe
exit

and a config file

;!@Install@!UTF-8!
Title="Title"
RunProgram="hidcon:Run.cmd"
;!@InstallEnd@!

but i get the error specified file not found. Removing the hidecon: fixes this problem but now the console is visible but barely. but im getting an .inf file sying it canot be found for one or the program. *!!! For some reason if i open say just RungProgram="one.exe" it works fine but if i use RunProgram="Run.cmd" not all the files are extracted is this because the cmd.exe exits before the extraction is complete?.

3

There are 3 best solutions below

0
On

If you are using the original distribution you can't run two exe sequentially.But if you are using the modified version of it.It will work.I've downloaded 7z SFX Tools, extracted it and renamed 7zsd_All.sfx to 7zS.sfx and used this configuration to run to applications in sequence.

;!@Install@!UTF-8!
RunProgram="setup.exe"
RunProgram="launcher-Win32.exe"
;!@InstallEnd@!
0
On

The latest 7-Zip SFX Maker v3.3 will run 2 files consecutively...JT

4
On

Create a .cmd file that runs the other programmes in sequence and then RunProgram that.