|
-
November 6th, 2012, 07:48 PM
#3
Re: running/debugging console app that needs admin privileges
 Originally Posted by OReubens
the manifest is indeed created as part of the build process with VS2010/VS2012 this wasn't always the case.
If you need explicit settings in the manifest, you either use the UI to change the required settings, or you provide your manifest fragment for inclusion a handfull of settings can be arranged via a compile time #pragma.
In rare cases you need to disable the manifest builder and just do it all yourself.
changing the UAC level can be done from the UI.
Open the project properties. Configuration Properties > Linker > Manifest File.
Change UAC Execution level to the desired value.
Wicked. So, if I change the Linker > Manifest file to be the privilege level I desire, does that get imbeded in the .exe?
OK. Yes and no. If I now open a non-admin CMD prompt and run the .exe, I get the UAC popup and it opens a NEW CMD window (elevated) which closes out as soon as the program is done. Not totally useful to me to be able to see the output. Also, if I try to debug it now, I get a popup to restart VS Express as admin. Kind of defeats the purpose to some degree.
Last edited by jlewand61; November 6th, 2012 at 07:53 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|