I have used below batch command to run a msi;

%systemroot%\system32\msiexec.exe /i C:\Temp\ABC\XYZ.msi /qn

It shows below prompt.

But if I directly execute above MSI it will run. And if I used CMD prompt and change directory to C:\>cd C:\Temp\ABC and then run msiexec command it will run as expected.

Any suggestions.

0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



start /wait MSIEXEC /I "%~dp0MyMSI.msi" /qn

Keep the batch file and .msi file in the same folder..


Answered 12/25/2012 by: jagadeish
Red Belt

Please log in to comment