Reputation: 1605
Why this linker flag doesn't work I tried it many times with different syntaxes and no one worked
cl /MT /GS- exam.cpp /link /MANIFESTUAC:level=\'requireAdministrator\'
and this :
cl /MT /GS- exam.cpp /link /MANIFESTUAC:level=requireAdministrator
and also this :
cl /MT /GS- exam.cpp /link /MANIFESTUAC:"level=requireAdministrator uiAccess=false"
the compiled exe doesn't pop up the uac window when I execute it
Upvotes: 0
Views: 893
Reputation: 1605
I got it from the linker command line in visual studio I had to add this flag
/MANIFEST
then the /MANIFESTUAC will be written like this :
/MANIFESTUAC:"level='requireAdministrator' uiAccess='false'"
Upvotes: 2