views:

195

answers:

1

I have an app which needs administrator privileges to do some things. I'd like to just show the UAC prompt when it starts, and then be elevated. I'm not sure how to do this, but I'm hearing about things like manifests and whatnot but not seeing a plain answer anywhere.

+2  A: 

You need an app manifest that demands elevated priviledges. http://dariosantarelli.wordpress.com/2007/11/21/vs2008-embedding-uac-manifest-options/

Anderson Imes