Inno Setup-签名失败,并显示“签名工具失败,退出代码0x1". [英] Inno Setup - Signing fails with "Sign Tool failed with exit code 0x1"

查看:374
本文介绍了Inno Setup-签名失败,并显示“签名工具失败,退出代码0x1".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Inno Setup脚本,需要在其中使用SignTool=signtool,该脚本已正确配置并已在过去使用.

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

但是当我尝试使用以下错误进行编译时,它失败了:

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

签名工具失败,退出代码为0x1.

Sign Tool failed with exit code 0x1.

推荐答案

您没有向我们提供任何可用于调试问题的信息.

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. 尝试命令行编译器(ISCC.exe) .它将在输出中保留完整的signtool.exe错误消息:

或临时在符号工具命令前加上cmd.exe /k,以保留其输出,即使在Inno Setup GUI编译器中进行编译时也是如此.例如:

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

请注意,如果使用signtool.exe的路径带有空格,由于cmd的工作方式,您不仅需要将路径本身包装为双引号,还必须将整个命令包装:

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"


另请参见 signtool失败,其Inno安装程序的退出代码为0x1 .

这篇关于Inno Setup-签名失败,并显示“签名工具失败,退出代码0x1".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆