c# - How to do Silent installation without UAC or App Is running as admin? -
i want silent installation. know command "msiexec.exe /qn", can't if application isn't running administrator. note:- msi installer 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();
you requesting silent msi installation therefore msi not display ui - nor uac dialog.
your parent process must run elevated privileges, or must request elevation windows , use privileges token run new process.
Comments
Post a Comment