I'm trying to write an updater for my program. As all .exe files which contain the word "update" or "setup" wants to execute them with admin writes I wrote a manifest file to override this. But I get the warning:
windres.exe -IC:\wxWidgets-3.1.0\include -IC:\wxWidgets-3.1.0\lib\gcc_dll\mswu -IC:\wxWidgets-3.1.0\include -J rc -O coff -i C:\Users\Thomas\DOCUME~1\PROGRA~1\Updater\resource.rc -o obj\Release\resource.res
windres.exe: warning: 24: 1: 1033: duplicate value
My .manifest file says:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="MyApplication"
type="win32"/>
<description>Description of your application</description>
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Code: Select all
#include <windows.h>
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "noadmin.manifest"
Code: Select all
#include "noadminmanifest.rc"
Thanks,
Thomas