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();
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…