Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing in Inno Setup fails with "Sign Tool failed with exit code 0x1"

I have Inno Setup script, where I need to use the SignTool=signtool, which is configured properly and worked in past.

enter image description here

But it's failing when I try to compile with the following error:

Sign Tool failed with exit code 0x1.

enter image description here


1 Answers

You didn't provide us any information that we can use to debug your problem.

So I'm posting generic instructions to debug issues with a "sign tool".

  1. Try command-line compiler (ISCC.exe). It will preserve a full signtool.exe error message in the output:

    enter image description here

  1. Or temporarily prefix the sign tool command with cmd.exe /k to preserve its output even when compiling in Inno Setup GUI Compiler. E.g.:

    cmd.exe /k C:\path\to\signtool.exe sign /f C:\mykey.pfx $f
    

    enter image description here

    Note that if you use a path to signtool.exe with spaces, due to the way cmd works, you have to wrap not only the path itself to double quotes, but also the whole command:

    cmd.exe /k ""C:\path to signtool\signtool.exe" sign /f C:\mykey.pfx $f"
    

See also signtool fail with Inno Setup with exit code 0x1.

like image 158
Martin Prikryl Avatar answered Dec 09 '25 06:12

Martin Prikryl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!