C#.NET: Acquire administrator rights?
http://victorhurdugaci.com/using-uac-with-c-part-1
http://victorhurdugaci.com/using-uac-with-c-part-2
http://victorhurdugaci.com/using-uac-with-c-part-3
*self promotion
Extra characters because it must be 30
simply all what you need to do is to add manifest application file to your project
simple : right click on the project , add , new item , manifest file
and Change the
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
to
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />