I have Inno Setup and a CSC... I tried following Inno Setup's documentation to get Code Signing set up. I mainly do this because I want to code sign the uninst***.exe file.
Upon compilation, I get this error:
Running Sign Tool command: signtool sign /f <absolute_path_that_exists>\<file_that_exists>.p12 /p <some_cool_password> /fd sha256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /v "<absolute_path_that_exists>\uninst.e32.tmp"
Sign Tool command failed (Failed to execute Sign Tool.
Error 2: The system cannot find the file specified). Will retry (2 tries left).
My Inno Setup .iss file has this in it:
SignTool=standardcsc
SignedUninstaller=yes
where standardcsc is:
signtool sign /f <absolute_path_that_exists>\<file_that_exists>.p12 /p <some_cool_password> /fd sha256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /v $f
The only file that does not exist is <absolute_path_that_exists>\uninst.e32.tmp"
I'm not entirely sure if I'm getting this right... Why is Inno Setup attempting to sign a file that does not exist?
I am stumped, I do not know how to fix the problem... Please help!
Thank you.
The problem has to do with you SignTool command, the signtool command is probably not found.
To fix this, either make sure signtool.exe is in Windows "SYSTEM" PATH, otherwise you can specify the path to signtool.exe in the command. It should be something like C:\Program Files (x86)\Windows Kits\10\bin\x64\signtool.exe if you can't find it.
If you still can't get it working, you can try temporarily adding cmd.exe /k before the SignTool command setting in InnoSetup to see more detailed logs for debugging. In my situation, even though I thought I added signtool.exe in user PATH, since InnoSetup in running in a different shell, it cannot find the command signtool.exe. After I substitute it with the absolute path to signtool.exe, it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With