locked
Privileges RRS feed

  • Question

  • Hi! I had made an Updater and must to be placed in program files. But when i open it it cant download the files except if i right click it and run it as administrator. How can i make when the application open to ask you with what privileges to run it perhaps UAC when you start an application it request your permission. I want when i start the Updater to request permission. Thx!

    Friday, April 25, 2008 11:41 AM

Answers

  • You need to embed a manifest into your application's executable file, indicating that you want it to run as admin.  Check out my UACHelpers library on CodePlex, it can embed the manifest for your app automatically: http://www.codeplex.com/UACHelpers
    Friday, April 25, 2008 2:00 PM

All replies

  •  

    you can't, this is the whole point on UAC in Vista and higher where it prevents applications from running under less strict priviledges...the user must be able to decide whether they want an app to run or not in admin mode....
    Friday, April 25, 2008 1:14 PM
  • First of all sorry for my bad english. Yeh that i meen i want my application to show the UAC dialog if i place it in prograffiles folder that need privileges and request privileges like other application doing. Now the only way to do that is to right click it and press run as administrator. I dont want to right click......... i want on applications load to show the uac dialog. 

    Friday, April 25, 2008 1:47 PM
  • You need to embed a manifest into your application's executable file, indicating that you want it to run as admin.  Check out my UACHelpers library on CodePlex, it can embed the manifest for your app automatically: http://www.codeplex.com/UACHelpers
    Friday, April 25, 2008 2:00 PM