I've manifested a Visual Studio 2017 program to run asInvoker
:
But when I run the compiled program: still requires elevation:
Notice the Shield overlay
I've tried searching, but I cannot see what I am doing wrong.
I've manifested a Visual Studio 2017 program to run asInvoker
:
But when I run the compiled program: still requires elevation:
Notice the Shield overlay
I've tried searching, but I cannot see what I am doing wrong.
Use a tool like Resource Hacker to look at the RT_MANIFEST
(id 24) assembly manifest resource:
If a manifest actually is correctly asking the OS to run the application asInvoker
, then it's likely because the result of the elevation check is cached.
Try rebooting, or renaming the application to something else,e.g.:
PdfToWord - Testing renamed.exe
But since this question was asked a month ago, i assume the problem has went away since then; so you can't really know if this fixed solved it.