signtool以inno设置失败:0x80070003 - "Store IsDiskFile()failed"

dra*_*ron 29 inno-setup signtool

在签署我的软件时,我遇到了一个奇怪的错误.我正在使用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.
Run Code Online (Sandbox Code Playgroud)

命令行似乎很好,它甚至可以在inno setup compile之外工作.设置SignedUninstaller=no让我走得更远时,在尝试对输出设置文件进行签名时仍会出现此错误.

现在我几乎到处都看到错误代码(0x80070003)和/或消息"Store IsDiskFile()失败".我也尝试过多个版本的signtool.

dra*_*ron 49

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

  • 此消息表示找不到证书文件.在我的情况下,它只是明显缺失(没有在本地检查).+1 (13认同)