39

我在签署我的软件时遇到了一个奇怪的错误。我正在使用 inno setup 4.5.2。

Running Sign Tool command: signtool.exe sign /a /f cert.pfx /v /t "http://timestamp.verisign.com/scripts/timstamp.dll" /p pwd /d "Setup Label" "out\uninst.e32.tmp"
SignTool Error: An unexpected internal error has occurred.
Error information: "Error: Store IsDiskFile() failed." (-2147024893/0x80070003)
Error in W:\path\installer.iss: Sign Tool failed with exit code 0x1.
Compile aborted.

命令行看起来还不错,它甚至可以在 inno setup 编译之外工作。在设置SignedUninstaller=noget me farther 时,在尝试签署输出设置文件时仍然会出现此错误。

现在我已经到处寻找该错误代码(0x80070003)和/或消息“Store IsDiskFile()失败”。我也尝试过使用多个版本的signtool。

4

3 回答 3

62

我发现了问题,证书的路径必须相对于安装程序的输出路径,而不是当前的工作文件夹。在这种情况下,它将是“..\cert.pfx”。

于 2011-10-12T15:20:07.740 回答
3

我有同样的问题。我的问题是我"signTool命令中使用过,而我需要使用$q。令人惊讶的是,它成功签署了可执行文件,但未能签署结果 setup.exe 文件。

于 2013-09-06T16:54:53.667 回答
0

我的问题是在网络驱动器 (G:) 上有 .pfx 文件。将其移至本地驱动器 (C:) 解决了该问题。

于 2021-03-29T17:34:48.273 回答