Manifest - Admin Privileges

Category: Application Features

Date: 02-16-2022

Return to Index


 
'If the program instead needs administrator privileges to be able to run, 
'the XML script between the trustInfo tags should look like this:
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
    version="9.0.0.0"
    processorArchitecture="x86"
    name="VI.EXE"
    type="win32"
/>
<description>SamLogic VI Editor</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
        <requestedPrivileges>
            <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
        </requestedPrivileges>
    </security>
</trustInfo>
</assembly>
 
'gbs_01182
'Date: 04-08-2012


created by gbSnippets
http://www.garybeene.com/sw/gbsnippets.htm