/build/static/layout/Breadcrumb_cap_w.png

Unable to run msi through batch file

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   [ + ] Show comments

Answers (1)

Posted by: jagadeish 11 years ago
Red Belt
1

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

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

 

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ