Question

Is it possible in a C#.NET application to request administrative rights on a Windows 7 PC?

I want to be able to deploy the application via Click Once and have users use it to perform administrative tasks (in this case it is writing registry entries for the main application).

OTHER TIPS

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" />
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top