window - Inno Setup - 签名失败并显示 "Sign Tool failed with exit code 0x1"

标签 window windows-installer installation inno-setup installshield

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

enter image description here

但是当我尝试编译并出现以下错误时它失败了:

Sign Tool failed with exit code 0x1.

enter image description here

最佳答案

您没有向我们提供任何我们可以用来调试您的问题的信息。

所以我发布了使用“签名工具”调试问题的通用说明。

  1. 尝试 command-line compiler (ISCC.exe) .它将在输出中保留完整的 signtool.exe 错误消息:

    enter image description here

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

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

    enter image description here

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

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

另见 signtool fail with Inno Setup with exit code 0x1 .

关于window - Inno Setup - 签名失败并显示 "Sign Tool failed with exit code 0x1",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39685417/

相关文章:

swift - 如何在 Swift 中的 GUI 中只允许一个窗口

JavaScript 在 Internet Explorer 8(和 7)中为 window.print 调用和应用

windows-installer - InstallScript - 覆盖默认卸载程序?

python - 在 Linux 中用 Python 读取 EXE、MSI 和 ZIP 文件元数据

javascript - 如何检查窗口是否仍在加载并且已完成加载?

javascript - 如何在 Electron 浏览器窗口中创建圆 Angular ?

installation - Visual Studio 安装项目是否适合复杂的设置?

docker - 无法使用 DOCKER 访问 CKAN 门户

mysql - 在Windows 7上安装MySQL 5.5时出错

android - 确定用户是否通过市场链接安装了我们的应用程序