Skip to content

Commit badca37

Browse files
authored
Fix patcher UAC notification [AUTOZIP] (#788)
* Create patcher.exe.manifest to handle UAC level * Use custom manifest for patcher To avoid UAC autodetection by `patcher` name
1 parent 6ba5d84 commit badca37

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" manifestVersion="1.0">
3+
4+
<!-- Enable use of version 6 of the common controls (Win XP and later) -->
5+
<!--
6+
<dependency>
7+
<dependentAssembly>
8+
<assemblyIdentity type="win32"
9+
name="Microsoft.Windows.Common-Controls"
10+
version="6.0.0.0"
11+
processorArchitecture="*"
12+
publicKeyToken="6595b64144ccf1df"
13+
language="*" />
14+
</dependentAssembly>
15+
</dependency>
16+
-->
17+
18+
<!-- Indicate UAC compliance, with no need for elevated privileges (Win Vista and later) -->
19+
<!-- (if you need enhanced privileges, set the level to "highestAvailable" or "requireAdministrator") -->
20+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
21+
<security>
22+
<requestedPrivileges>
23+
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
24+
</requestedPrivileges>
25+
</security>
26+
</trustInfo>
27+
28+
<!-- Indicate high API awareness (Win Vista and later) -->
29+
<!-- (if you support per-monitor high DPI, set this to "True/PM") -->
30+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
31+
<windowsSettings>
32+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
33+
</windowsSettings>
34+
</application>
35+
36+
<!-- Declare support for various versions of Windows -->
37+
<ms_compatibility:compatibility xmlns:ms_compatibility="urn:schemas-microsoft-com:compatibility.v1" xmlns="urn:schemas-microsoft-com:compatibility.v1">
38+
<ms_compatibility:application>
39+
<!-- Windows 7/Server 2008 R2 -->
40+
<ms_compatibility:supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />
41+
<!-- Windows 8/Server 2012 -->
42+
<ms_compatibility:supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
43+
<!-- Windows 8.1/Server 2012 R2 -->
44+
<ms_compatibility:supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />
45+
<!-- Windows 10 -->
46+
<ms_compatibility:supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
47+
</ms_compatibility:application>
48+
</ms_compatibility:compatibility>
49+
</assembly>

plugins/robots/checker/patcher/patcher.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ CONFIG += cmdline
2828

2929
SOURCES += \
3030
main.cpp \
31+
32+
win32 {
33+
QMAKE_MANIFEST = $$PWD/$${TARGET}.exe.manifest
34+
DISTFILES += $$QMAKE_MANIFEST
35+
}
36+

0 commit comments

Comments
 (0)