Show UAC prompt at application launch

I have an application that needs administrator privileges to do something. I would just like to show the UAC prompt when it starts and then gets upgraded. I'm not sure how to do this, but I hear about things like manifests and much, but I donโ€™t see a simple answer anywhere.

+3
source share
1 answer

You need an application manifest that requires elevated privileges. Here is a quote from the blog that answers this:

, " Manifest File" ( : app.manifest), "" " ". Windows , , , - of requestExecutionLevel node :

  • asInvoker ( ): Windows
  • requireAdministrator: Administrator
  • highAvailable:

http://dariosantarelli.wordpress.com/2007/11/21/vs2008-embedding-uac-manifest-options/

+2

Source: https://habr.com/ru/post/1714108/


All Articles