Inno Script Studio - Sign tool not recognised when using compiler from command prompt

时间秒杀一切 提交于 2021-02-18 10:34:30

问题


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

And this works fine.

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"

I get an error:

Value of [Setup] section directive "SignTool" is invalid.

When I read the documentation, it states:

any Sign Tools configured using the IDE will be specified automatically

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?


回答1:


Inno Script Studio uses a different set of "sign tools" than Inno Setup.

Inno Script Studio stores the "sign tools" to:

HKEY_CURRENT_USER\SOFTWARE\Kymoto Solutions\Inno Script Studio 2\SignTools

While Inno Setup stores them to:

HKEY_CURRENT_USER\SOFTWARE\Jordan Russell\Inno Setup\SignTools

So, the Inno Setup command-line compiler iscc.exe is not aware of your Inno Script Studio sign tools.



来源:https://stackoverflow.com/questions/36640899/inno-script-studio-sign-tool-not-recognised-when-using-compiler-from-command-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!