I want to install "foo.msi" from cmd command line. I run:
msiexec.exe /qn /i .\foo.msi
It returns almost instantaneously and foo.msi does not get installed. I'm not sure what I'm doing wrong.
To root out the causes of error, I ran:
msiexec.exe /qn /i .\doesNotExist.msi
And got the thing. It returns immediately. No complaints about not being able to find the .msi or anything.
Does anyone know the proper way to use msiexec.exe to install an msi from windows cmd command line?
msiexec runs asynchronously. If you want to wait for it to complete its work, use:
start /wait msiexec /qn /i .\foo.msi
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With