Friday, February 1, 2013

UAC - Run as Administrator your C# Application


If you need to run your .NET application as Administrator with Visual Studio is very easy.
  • Add new item of type app.manifest to your application
  • Open file and change

    <requestedExecutionLevel level="asInvoker" uiAccess="false" />
    
    
    with

    <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
    
    
  • Save and build
Enjoy!