Jump to content

Running multiple programs after 7zSD SFX


Chumbawamba

Recommended Posts

I saw Q&As in this forum about 7zip and the 7zSD sfx module, so i though this a good place to ask.

so im making a tool that launches 2 portable apps that have folders with the app data inside.

So i have the 2 folders with their programs inside and a Run.cmd file parent of those which is something like this;

@echo off
start Portable1.exe && start Portable2.exe
exit

then my exe.cmd is

@echo off
copy /b 7zsd.sfx + config.txt + Tool.7z Tool.exe
echo.
pause

then my config file is

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

this all works fine to a point when it tries to Run the second .exe it says it cannot locate one of its files within the apps folder. when i look in the temporary folder the files haven't been extracted.

so for test purposes i try each file separately like so

;!@Install@!UTF-8!
Title="Tool"
RunProgram="portable1/portable1.exe"
GUIMode="8"
;!@InstallEnd@!

and

;!@Install@!UTF-8!
Title="Tool"
RunProgram="portable2/portable2.exe"
GUIMode="8"
;!@InstallEnd@!

and both run and when i check all files have been extracted.

it seems if i use any .bat or .cmd file then all the files do not extract correctly.

i think this may have something to do with the cmd executing too fast for the install to finish.

ive also tried with pause and nowait: functions without any luck.

Any help would be greatly appreciated, thanks.

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...