R – How to install an MSI synchronously

windowswindows-installer

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 ?

Best Answer

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.