公告
财富商城
积分规则
提问
发文
2019-01-08 01:20发布
再贱就再见
I have Inno Setup script, where I need to use the SignTool=signtool, which is configured properly and worked in past.
SignTool=signtool
But it's failing when I try to compile with the following error:
Sign Tool failed with exit code 0x1.
When using an EV with a token, you can assign the fingerprint using /a /sha1 [Hash].
/a /sha1 [Hash]
like so:
signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /sha1 certfingerprint $f
This will make signtool to choose the cert from token.
More info: https://docs.microsoft.com/en-us/dotnet/framework/tools/signtool-exe
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".
Try command-line compiler (ISCC.exe). It will preserve a full signtool.exe error message in the output:
ISCC.exe
signtool.exe
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
cmd.exe /k C:\path\to\signtool.exe sign /f C:\mykey.pfx $f
See also signtool fail with Inno Setup with exit code 0x1.
最多设置5个标签!
When using an EV with a token, you can assign the fingerprint using
/a /sha1 [Hash]
.like so:
This will make signtool to choose the cert from token.
More info: https://docs.microsoft.com/en-us/dotnet/framework/tools/signtool-exe
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".
Try command-line compiler (
ISCC.exe
). It will preserve a fullsigntool.exe
error message in the output: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.:See also signtool fail with Inno Setup with exit code 0x1.