signtool失败,并显示Inno Setup,退出代码为0x1 [英] signtool fail with Inno Setup with exit code 0x1

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

问题描述

突然我的Inno Setup编译器停止工作。自从我上次使用它以来,我只是安装了仍签发给同一公司的新证书。

Suddenly my Inno Setup compiler stopped working. Since the last time I used it, I just installed a new certificate issued still to the same company.

我已经以这种方式配置了签名工具(NAME是证书中主题的字符串的开头):

I've configured the sign tool in this way (NAME is the beginning of the string for the Subject in the certificate):

mysigntool="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe" sign /v /a /s my /n NAME /t http://timestamp.verisign.com/scripts/timestamp.dll

然后在Inno Setup .iss文件中,我有:

And then in the Inno Setup .iss file I have:

SignTool=mysigntool
SignedUninstaller=yes

即使我删除了/ t和时间戳,该标志也总是失败,退出代码为0x1。请注意,如果我从命令提示符处运行相同的命令,则签名可以正常工作。

The sign always fails with exit code 0x1, also if I remove the /t and timestamp. Please note that if I run the same command from the command prompt the signing works perfectly.

推荐答案

您需要添加 $ f 到SignTool的末尾(在IDE设置中,而不是在脚本中),以便实际传递要签名的文件的名称。这就是为什么出现文件名丢失错误的原因。

You need to add $f to the end of your SignTool (in the IDE settings, not the script) in order to actually pass the name of the file to be signed. This is why you're getting the "missing filename" error.

请参阅 Inno帮助文件

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

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