Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Chumbawamba

Running multiple programs after 7zSD SFX

1 post in this topic

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.

0

Share this post


Link to post
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.