I am writing a InstallerClass
using C#
as a custom action for my installer, and I can successfully run an external exe (installation) using the InstallerClass
, but when I try to use /quiet
in the InstallerClass
, it does not install the exe. But I can successfully install this in silent mode using /quiet
in the command prompt.
Is there any reason for this or otherwise how to install in silent mode using C#?
Following is the code I use within the Commit method (overriden):
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = pathExternalInstaller;
p.StartInfo.Arguments = "/quiet";
p.Start();
/quiet
option directly, e.g. from a command prompt? – Carollcarolle/quiet
argument? I think you shouldp.WaitForExit();
– Soldiery