Wednesday 18 September 2013

c# msi will not execute with processStart

c# msi will not execute with processStart

Running install programs from the c# code I can successfuly install .exe
files and uninstall both exe and msi files... however whenever launching
an msi for installation it just sits there and never does anything....
start = new ProcessStartInfo("msiexec.exe", "/i \"" + tempDir + "/" +
s.executable + "\"");
start.WindowStyle = ProcessWindowStyle.Hidden;
start.CreateNoWindow = true;
Process.Start(start).WaitForExit();
can anyone spot my mistake. I understand the wait for exit will wait
indefinatly and that is fine as there will be 10-12 installs going
synchronously but It never actually installs.....

No comments:

Post a Comment