Why is my program asking for permission to run in Vista?

I just created a VS C ++ 6.0 program using VS 2008. When I try to start or debug an application, Vista asks for permission. What is it, how is a program created that calls it? The program is created and launched from the subfolder C: \ Dev

This answer made no sense to me as a solution to the problem.

+3
source share
4 answers

Option 1:

Your program is marked as administrator rights in its manifest

Opportunity 2:

Your program is called setup.exe or install.exe - these program names always require administrator rights

,

+3

MVP , , , c:\users\yourname\appdata - .

UAC, , , . . .

+1

, . . , . -, "setup", .

, . VS 2005, VS 2008, .dsw , 2005 . 2005, , "". VS 2008, . , , Manifest Tool... Input and Output... Embed Manifest. :

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges>
    </security>   

+1

, , , C:\Dev.

0

Source: https://habr.com/ru/post/1697151/


All Articles