I'm using signtool.exe to create a digital signature for my Installer.exe, but I want the installer's manifest file to have the requestedExecutionLevel = "requireAdministrator". To do so I'm running a build.bat file that contains the following: steps
- extract the manifest:
mt -inputresource:\Installer.exe;#1 -out:\Installer.exe.manifest - change the elevation from asInvoker to requireAdministrator
- update the manifest file with the new value:
mt.exe -nologo -manifest "\Installer.exe.manifest" -outputresource:"\Installer.exe;#1
- extract the manifest:
- sign the Installer.exe using the signtool.exe
signtool.exe sign /f ....\Common\ /p "password" /t http://tsa.starfieldtech.com /v build\Installer.exe
First step worked smoothly, but when the digital signature is executed, the manifest file gets updated with the requestedExecutionLevel = "asInvoker".
I tried first signing and afterwords setting the requestedExecutionLevel, but that removes my digital signature.
Didn't find a similar issue. Any ideas?