【发布时间】:2018-04-19 22:11:59
【问题描述】:
我有 Inno Setup 和 CSC...我尝试按照 Inno Setup 的文档设置代码签名。我这样做主要是因为我想对 uninst***.exe 文件进行代码签名。
编译时,我得到这个错误:
Running Sign Tool command: signtool sign /f <absolute_path_that_exists>\<file_that_exists>.p12 /p <some_cool_password> /fd sha256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /v "<absolute_path_that_exists>\uninst.e32.tmp"
Sign Tool command failed (Failed to execute Sign Tool.
Error 2: The system cannot find the file specified). Will retry (2 tries left).
我的 Inno Setup .iss 文件中有这个:
SignTool=standardcsc
SignedUninstaller=yes
standardcsc 在哪里:
signtool sign /f <absolute_path_that_exists>\<file_that_exists>.p12 /p <some_cool_password> /fd sha256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /v $f
唯一不存在的文件是<absolute_path_that_exists>\uninst.e32.tmp"
我不完全确定我是否正确... 为什么 Inno Setup 试图签署一个不存在的文件?
我很困惑,我不知道如何解决这个问题......请帮助!
谢谢。
【问题讨论】:
-
你能打开一个命令提示符并从那里运行那个确切的命令并让它工作吗?如果不是,则问题与 Inno Setup 无关。错误消息似乎更像是在说它找不到signtool.exe 本身(系统找不到指定的文件,而不是signtool 找不到指定的文件)。您的计算机上的 PATH 某处是否有 signtool.exe?
-
这个问题不是链接问题的重复,因为它涉及不同的错误。