Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Self Extracting Archives

Status
Not open for further replies.

whpike

Technical User
Mar 11, 2001
7
US
I've been useing winzip self extractor to make up exe files to distribute screen savers that I write for business coustomers, I've run into a problem that I can't figure out. When I set up the exe files I have the self extractor run the install file after unziping. I've done this dozens of times and had no problem, But now because of a special circumstance I need to have two files opened in sequence. both are exe files the first one has to open, run, and close, then the second one should run, Is there a way to run two commands in the self extractor, I've tried several diffrent things but haven't had any luck, the self extractor refuses to run more than one command, I tried a bat file and it ran both files but it ran them at the same time, I couldn't figure out how to make it wait till the first one compleated. I looked into some of the installers such as install shield, but they are way too complicated and most cost way too much.
 
in your batch file, try the following

number_one.exe
pause
number_two.exe


you might also want to display some words or explanation along with the pause, rather than the 'press any key to continue' that it provides. the pause will halt processing of the batch file, and the batch file processing will not resume until after a keystroke by the user.



Pete Bloomfield
Down Under
 
additional to my earlier post, thanks for the reply, but I can't use a pause command, the first file has to run accept user input, and close. then the second file has to run. What I need is a "wait till closed command". also I found out that this will work if I run the "first" program last so that it will be on top of the other one, the user can inter the information, then when he/she closes it the "second" program will be on the screen. I'm trying to do a batch for that. William Pike
whpike@home.com
AOL IM at: whpike0524
MSN Messenger at: tuger99@hotmail.com
 
try adding call, istr some problem i had a while ago creating batch files running multiple programs a while back.

for example

call number_one.exe
pause
call number_two.exe


Richard Baker
RFBaker@BTInternet.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top