Inno Script Studio-在命令提示符下使用编译器时无法识别签名工具 [英] Inno Script Studio - Sign tool not recognised when using compiler from command prompt
问题描述
我正在用数字证书签署安装程序.使用Inno Script Studio时,我已经正确定义了我的签名工具以及指向MS签名工具,证书密码等的路径.
I am signing my installer with a digital certificate. When using Inno Script Studio, I have correctly defined my sign tool with a path to the MS signing tool, certificate password etc. And I simply reference it with
SignTool=signtool
这很好.
但是当我尝试使用以下命令通过命令行编译脚本时:
But when I try and compile my script via the command line using:
C:\Program Files (x86)\Inno Setup 5>iscc "C:\Users\username\Documents\MyInstaller.iss"
我得到一个错误:
[Setup]节指令"SignTool"的值无效.
Value of [Setup] section directive "SignTool" is invalid.
当我阅读文档时,该文档指出:
将自动指定使用IDE配置的任何签名工具
any Sign Tools configured using the IDE will be specified automatically
所以我的理解是我不必使用/S
参数吗?从命令行构建时,对安装文件进行签名的正确方法是什么?
So my understanding is that I shouldn't have to use the /S
parameter? What is the correct way to sign a setup file when building from the command line?
推荐答案
与Inno Setup相比,Inno Script Studio使用一组不同的签名工具".
Inno Script Studio uses a different set of "sign tools" than Inno Setup.
Inno Script Studio将签名工具"存储到:
Inno Script Studio stores the "sign tools" to:
HKEY_CURRENT_USER\SOFTWARE\Kymoto Solutions\Inno Script Studio 2\SignTools
当Inno Setup将它们存储到以下位置时:
While Inno Setup stores them to:
HKEY_CURRENT_USER\SOFTWARE\Jordan Russell\Inno Setup\SignTools
因此,Inno Setup命令行编译器 iscc.exe
无法识别您的Inno Script Studio签名工具.
So, the Inno Setup command-line compiler iscc.exe
is not aware of your Inno Script Studio sign tools.
这篇关于Inno Script Studio-在命令提示符下使用编译器时无法识别签名工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!