Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Inno setup Inno安装程序代码签名证书失败,无法找到指定的文件_Inno Setup_Code Signing - Fatal编程技术网

Inno setup Inno安装程序代码签名证书失败,无法找到指定的文件

Inno setup Inno安装程序代码签名证书失败,无法找到指定的文件,inno-setup,code-signing,Inno Setup,Code Signing,我有Inno设置和CSC。。。我尝试按照Inno安装程序的文档进行代码签名设置。我这样做主要是因为我想对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://sha2

我有Inno设置和CSC。。。我尝试按照Inno安装程序的文档进行代码签名设置。我这样做主要是因为我想对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).
其中,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
signtool sign/f\.p12/p/fd sha256/trhttp://sha256timestamp.ws.symantec.com/sha256/timestamp /v$f
唯一不存在的文件是
\uninst.e32.tmp“

我不完全确定我是否做对了……为什么Inno安装程序试图对一个不存在的文件进行签名

我被难住了,我不知道如何解决这个问题…请帮助

多谢各位

这告诉您,它没有找到您的
signtool
,您应该使用指向它的绝对路径,或者在path环境变量中使其可用



此问题与您的证书无关。

问题与您的SignTool命令有关,
SignTool
命令可能找不到。 要解决此问题,请确保
signtool.exe
位于Windows“系统”路径中,否则可以在命令中指定
signtool.exe
的路径。如果找不到它,它应该类似于
C:\Program Files(x86)\Windows Kits\10\bin\x64\signtool.exe


如果您仍然无法使其工作,您可以尝试在InnoSetup中的SignTool命令设置之前临时添加
cmd.exe/k
,以查看更多详细的调试日志。在我的情况下,尽管我认为我在用户路径中添加了
SignTool.exe
,但由于InnoSetup在另一个shell中运行,它找不到该命令de>signtool.exe。在我将其替换为
signtool.exe
的绝对路径后,它就可以工作了。

您可以打开命令提示符并从那里运行确切的命令并让它工作吗?如果不能,问题与Inno安装无关。错误消息似乎更像是说它无法找到signtool.exe本身(系统找不到指定的文件,而不是signtool找不到指定的文件)。您的计算机上路径上的某个位置是否有signtool.exe?此问题与链接的问题不同,因为它与其他错误有关。
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
Failed to execute Sign Tool