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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -