I have a project with a manifest file with the following node:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
...meaning I want it to only run "as administrator" by default.
from searching around, to make this work I have two options:
- "Embed" it.
- deploy the manifest file with the exe, and name it YourProject.exe.manifest.
I've tried option 2, and when I run my app it doesn't ask for admin rights?
So, how do I do option 1 in VS2010? I've heard of mt.exe, but this is no good to me as it's done post build. I need the option to part of the solution and the project file itself.
So, how do I make this work? I'll be happy to do 2, but it doesn't seem to work?