Reputation: 1021
I want to do Silent installation. I know the command which do that "msiexec.exe /qn", but i can't do that if my application isn't running as administrator. note:- my msi installer is created using WIX Toolset
Process process = new Process
{
StartInfo =
{
FileName = @"msiexec.exe",
Arguments = string.Format(@"/i ""E:\Build 16\ColiboConnect.msi"" /qn"),
UseShellExecute = false,
RedirectStandardInput = true,
RedirectStandardOutput = true,
RedirectStandardError = true,
CreateNoWindow = false
}
};
process.Start();
process.WaitForExit();
Upvotes: 0
Views: 3183
Reputation: 1021
We solved our problem using Windows Service. Our app will download the new msi, then call a WCF service, passing the path of the installer and the Service will install the new version without any problems because our service run under local account system and i think this is the only supported solution
Upvotes: 0
Reputation: 1804
You are requesting silent MSI installation therefore MSI will not display any UI - nor the UAC dialog.
Your parent process must already run with elevated privileges, or you must request elevation from Windows and use the privileges token to run new process.
Upvotes: 1