1

Possible Duplicate:
How to elevate privileges only when required?
Admin rights for a single method

There are a lot of places on the internet that show you how to execute your program with admin privileges. I don't want the user to execute my program with admin privileges all the time. Is it possible to request admin privileges once the application is running?

If I include:

 <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

in my application manifest file the program will always prompt a message in order to get admin privileges. I t will be nice if I could decide when to get the admin privileges.

Community
  • 1
  • 1
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
  • 1
    Looked at that question and it pretty much answers everything you are asking for. – Josh Mar 30 '12 at 00:49

0 Answers0