There are some attributes that can be set on a Windows executable via a manifest. This is a section in the executable. The easiest way to set this is to include an XML-format .manifest file at build time.
We specify .manifest files in build.py
.
You can use the mt.exe
from your Windows SDK
e.g. "c:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\mt.exe"
to inspect or change an executable's manifest.
To set a whole new manifest:
- Make a copy of the relevant manifest file, e.g.
EDMarketConnector.manifest
. - Edit this file.
- Run mt.exe thus:
mt.exe -manifest EDMarketConnector-new.manifest -outputresource:EDMarketConnector.exe
.