Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
nikel
- Posts: 2
- Joined: 15 Aug 2017 19:36
#1
Post
by nikel » 15 Aug 2017 19:40
I'm trying to install multiple programs one after another. How can I wait for one app's setup to finish, and terminate if it lasts over 600 seconds?
Here's my code so far:
Code: Select all
ECHO "Installing 7-Zip 16.04 (x64 edition)"
START "7-Zip 16.04 (x64 edition)" /WAIT msiexec -i "7z1604-x64.msi" /qn
ECHO "Installing Foxit Reader"
START "Foxit Reader" /WAIT "FoxitReader821_enu_Setup.msi" /verysilent
-
aGerman
- Expert
- Posts: 4678
- Joined: 22 Jan 2010 18:01
- Location: Germany
#2
Post
by aGerman » 16 Aug 2017 11:47
Quite difficult task. Msiexec is more or less only the tool to unpack and register an installation. You need to know the actual process names of the running installers for every single installation package. If you know them you might be able to start an asynchronously running script process that observes the installer process (before even calling msiexec).
Steffen
-
nikel
- Posts: 2
- Joined: 15 Aug 2017 19:36
#3
Post
by nikel » 21 Aug 2017 13:00
I give up. I'll use C# Processes as usual.