• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
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.