Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Guys
i want to learn how to Run my application as administrator using VB.Net or C#
thanx for all.
Posted

Embed an application manifest: MSDN[^]
 
Share this answer
 
Comments
alcitect 13-Jan-13 1:33am    
thanks for you useful answer
1. need to add an application manifest file
2. modify the application manifest file :
XML
<requestedExecutionLevel  level="asInvoker" uiAccess="false" />
<requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel  level="highestAvailable" uiAccess="false" />

there has three level: default asInvoker;Running an application as administrator you need set the level as requireAdministrator
 
Share this answer
 
Comments
alcitect 13-Jan-13 1:33am    
thank you for useful answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900