Skip to content

Instantly share code, notes, and snippets.

@koron
Last active August 29, 2015 14:05
Show Gist options
  • Save koron/d2e8a8080d2ed35d0143 to your computer and use it in GitHub Desktop.
Save koron/d2e8a8080d2ed35d0143 to your computer and use it in GitHub Desktop.
Windows Vista以降で、installやsetupを名前に含むexeが、自動的にUACを要求するようになってしまうのを抑制する方法。

Windows Vista以降で、installやsetupを名前に含むexeが、自動的にUACを要求するよう になってしまうのを抑制する方法。

  1. Windows SDK 7.0 などに含まれる mt.exe を準備する。

  2. mt を使って min.manifest を UAC に引っかかる exe (install.exe) に適用する。

    > mt -manifest min.manifest -outputresource:install.exe;1
    

以上。

<?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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment