5

I have the following Inno Setup signing configuration:

[Setup]
SignTool=signtool $f
SignedUninstaller=yes

In Inno Setup Compiler IDE in "Tools > Configure Sign Tools..." I have:

"C:\DEVELOPMENT\Setup\signtool.exe" sign /f C:\DEVELOPMENT\Signing_Certificate.pfx /p "my_password" $f

...this works great on my local machine when I compile my Inno Setup.

However, we need to build installer automatically using TeamCity. So this all have to be automatic. And the sign tool configuration needs to be included in the script, without any need to configure anything upfront.

Is there anyway to declare my paths as variables in the actual Inno Setup script so that they are picked up in the signing wizard line above?

1 Answer 1

9

For automatic build, do not use Inno Setup IDE. You should use iscc command-line compiler.

For configuring a sign tool, iscc has /S switch:

iscc example.iss "/Ssigntool=C:\DEVELOPMENT\Setup\signtool.exe sign /f C:\DEVELOPMENT\Signing_Certificate.pfx /p my_password $f"
Sign up to request clarification or add additional context in comments.

1 Comment

I have it working the way youe described using ISCC (from the Inno Setup 5 directory), with the $p switch...and it pointing to my original .iss file. The signing worked as well. Thank you !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.