Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am in the process of creating an auto-install procedure for our software. So far I have the batch file (setup.bat) that will call the auto-installation file (acrobat.bat) for the first program and I want it to WAIT until that installation is complete before it calls the second (winzip.bat) and so on.. I have done some research about the PAUSE and CHOICE commands but I would like to stray from hard-coding a certain number of seconds, as the install times will vary from machine to machine. Any assistance would be GREATLY appreciated and I look forward to hearing from you!
Rusty Hilim

Rusty,
This has been discussed a lot in the forum lately. One way to do it is to make a seperate batch file for each install. Such as the following:
acrobat.bat
@echo off
call c:\temp\acroreadinstall.exe
call winzip.batwinzip.bat
@echo off
call c:\temp\winzipsetup.exe
call next.batSo in a sense you would 'string' these batch files along so that each one would call the next.
Another way I thought of doing it would be to see if a the last file in the installation was done installing. I.E.:
@echo off
call acroinstall.bat:loopacro
If not exist c:\progra~1\acro~1\unwise.exe then goto loopacrocall winzipinstall.bat
:loopwinzip
if not exist c:\progra~1\winzip\unwise.exe then goto loopwinzipThat's it. What's important to know is that you need to somehow isolate the last file being installed by the setup file and check to see if it exists (oftentimes this file will be the last one listed in the installation log of the program). The batch file will loop continiously until it finds that file(I randomnly choose unwise.exe), after which it continues with the batch file.
Hope this helps!
-Michael

Thanks for the input...I'll give it a try. I think that just might do it. I'll post my results.
Thanks
Rusty

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |