Making your app prompt for elevation in Windows Vista


You find yourself in a situation where you may want your app to run with privileges.  In this case you want the app the prompt for elevation when its started.  You could have the user just alt-click and runas administrator or you can put it in the manifest.

Short answer:



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



Long answer:




Technorati tags: , ,

Comments (0)

Skip to main content