Windows Installer Question
Hey guys.. wasn't sure if this should go into the OS Forums..
Is there a way to run an MSI install called from MSIExec completely silent (/qn) AND synchronously?
When I do this, control is returned immediately to the cmd.exe
Is there a way to run an MSI install called from MSIExec completely silent (/qn) AND synchronously?
When I do this, control is returned immediately to the cmd.exe
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
jayteeo
15 years ago
Posted by:
AngelD
15 years ago
Posted by:
jayteeo
15 years ago
was calling msiexec.exe initially
basically something like this
Process RunInstall = new Process();
RunInstall.StartInfo.FileName = "msiexec.exe";
RunInstall.StartInfo.Arguments = @"/i mymsi.msi /lv* C:\mylog.log /qn";
RunInstall.Start();
RunInstall.WaitForExit();
I may have missed couple lines.. going off memory, too many windows open.
Process runs quickly and RunInstall.ExitCode is = 1620, which is an error indicating the package is not accessible. If you view the log file, it doesn't tell you much except that a 1620 occurred.
basically something like this
Process RunInstall = new Process();
RunInstall.StartInfo.FileName = "msiexec.exe";
RunInstall.StartInfo.Arguments = @"/i mymsi.msi /lv* C:\mylog.log /qn";
RunInstall.Start();
RunInstall.WaitForExit();
I may have missed couple lines.. going off memory, too many windows open.
Process runs quickly and RunInstall.ExitCode is = 1620, which is an error indicating the package is not accessible. If you view the log file, it doesn't tell you much except that a 1620 occurred.
Posted by:
mjschutt
15 years ago
Posted by:
AngelD
15 years ago
Posted by:
jayteeo
15 years ago
Hey AngelD - I figured out what was causing the 1620 error. The MSI was on a network share that I was copying to the target machine.. somehow it was getting corrupted during the file copy. I did get it to exit with 0, however, it still does not run synchronously. I had to use start.exe with the /wait switch.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.