Quantcast
Channel: Helyar.net
Viewing all articles
Browse latest Browse all 15

Remove UAC from a specific application.

$
0
0

This will remove the UAC prompt from a specific application executable.

It assumes that “Run this program as an administrator” is already unchecked on the compatibility tab and the executable still requests elevated privileges.

This should only be done if you either know that the executable doesn’t need elevated access but has been incorrectly set to UAC prompt every time, only needs elevated access for a feature that you do not use or if you don’t trust the executable with elevated access. Some features of the application may not work without elevated access.

1) Make a back up copy of your executable.

2) Create a manifest file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
            </requestedPrivileges>
        </security>
    </trustInfo>
</assembly>

3) Embed the manifest file into the executable (requires Windows SDK):

mt.exe -manifest "App.exe.manifest" -outputresource:"App.exe";#1

Thanks to Karan.


Viewing all articles
Browse latest Browse all 15

Latest Images

Trending Articles





Latest Images