Giving application elevated UAC

You don’t need to meddle with all that to make sure that your application always runs with elevated privileges. You can simply add an application manifest which instructs Windows to run your app elevated, and the UAC prompt will appear without you needing to write a single line of code.

There’s a related question with an answer that also describes how to add a manifest here: How can I embed an application manifest into an application using VS2008?

Leave a Comment