C# – How to run any exe with administrator privileges

cexenetpermissionswindows-applications

I am using makecert to create certificate i need to do it though c# program the command doesnot execute as it requires administrator privileges.

Please suggest me how to run any exe using administrator privileges in windows 7?
If possible than just suggest me the sample code.

Does th o.s. really matters in my case?

Best Answer

Another hint again is using UAC( User Account Control) from the code. Very interestimg source IMHO is this one http://victorhurdugaci.com/using-uac-with-c-part-1/

Related Topic