download and extract
https://github.com/eladkarako/manifest/archive/master.zip,
Optionally edit (using Notepad++ or Notepad2 only) the default manifest (
generic.manifest
),
there are several examples provided. Make sure to always have Windows-EOL (
\r\n
) and one space-character before the end of the line, do not use TAB-characters.
Drag and drop your exe or dll over
add_manifest.cmd
,
it will override the embedded, existing manifest content with the content of
generic.manifest
).
You can also use side-by-side manifest,
which is a manifest file placed in the same folder as the exe.
Drag and drop the exe/dll over
copy_manifest.cmd
for an easier copy (you can also copy
generic.manifest
manually).
Note that side-by-side manifest means nothing if there is an already embedded manifest in the exe/dll, since by default Windows will always prefer the embedded manifest first over a manifest file in the same folder.
To change Windows preference of side-by-side manifest to favor an external file over the embedded-manifest in the exe,
you need to apply a registry fix, and restart your computer.
registry fix for preferring a side-by-side over embedded resource.
You can also delete the embedded manifest.
You can manipulate embedded data (of dot.net apps as well) with
http://www.angusj.com/resourcehacker/#download, although I advise against editing the manifest itself with it and use the provided solution instead which uses the official
mt.exe
- Microsoft Manifest Tool (which preserves the manifest file content such as whitespace, and writes the binary block resources properly. If you use resource-hacker to edit the manifest you might end up with a corrupt embedded-manifest (..sort of stuff that can drive you crazy), but you can safely delete the manifest embedded-resource with it if you wish to.