Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

msiexec doesn't install msi

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?

like image 832
igbgotiz Avatar asked Oct 18 '25 19:10

igbgotiz


1 Answers

msiexec runs asynchronously. If you want to wait for it to complete its work, use:

start /wait msiexec /qn /i .\foo.msi
like image 87
yossiz74 Avatar answered Oct 22 '25 04:10

yossiz74