简体   繁体   中英

How do I install an MSI synchronously?

To do an unattended installation of any MSI package, one can simply use the following command:

msiexec /qn /i package.msi

However, this triggers an asynchronous installation: if you happen to chain 2 dependent installations, you will have to wait somehow for the 1st installation to complete.

Is there a way to do this from the command line ?

I've had luck with this:

start /wait msiexec /i MyInstaller.msi ...

Found in this blog post from 2005. Hope you found it way back in '08.

We'd run into this a number of times with various products and I'd ended up using a small outer program that launches each msi and waits until it finishes to start the next one. You can probably do this in something as lightweight as a vbscript, but at the time we wanted a bit more gui so we had a larger outer program.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM