Inno Script Studio - the sign tool is not recognized when using the compiler from the command line

I sign my installer with a digital certificate. When using Inno Script Studio, I correctly defined my sign tool using the path to the MS signature tool, certificate password, etc. And I just reference it with

SignTool=signtool 

And it works great.

But when I try to compile my Script through the command line using:

 C:\Program Files (x86)\Inno Setup 5>iscc "C:\Users\username\Documents\MyInstaller.iss" 

I get an error message:

The value of the [Setup] "SignTool" section directive is invalid.

When I read the documentation, it reports :

any sign tools configured using the IDE will be listed automatically

So, I understand that I do not need to use the /S option? What is the correct way to sign the installation file when creating from the command line?

+5
source share
1 answer

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

Inno Script Studio stores "sign tools" for:

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

While Inno Setup saves them:

 HKEY_CURRENT_USER\SOFTWARE\Jordan Russell\Inno Setup\SignTools 

So, the Inno Setup iscc.exe command line iscc.exe does not know your Inno Script Studio tools.

+6
source

Source: https://habr.com/ru/post/1247184/


All Articles