Feature request - Access environment variable from signtool

22 views
Skip to first unread message

Tom Moore

unread,
Aug 25, 2025, 3:44:50 PM (13 days ago) Aug 25
to innosetup
It would be nice to be able to use the value from an environment variable in the signtool configuration.  This way a secret password would not have to be stored somewhere in the Inno Setup configuration.

Gavin Lambert

unread,
Aug 25, 2025, 7:00:45 PM (13 days ago) Aug 25
to innosetup
On Tuesday, August 26, 2025 at 7:44:50 AM UTC+12 Tom Moore wrote:
It would be nice to be able to use the value from an environment variable in the signtool configuration.  This way a secret password would not have to be stored somewhere in the Inno Setup configuration.

You can specify a ps1 or cmd script as your signtool, and access the environment variable from there.

Other options include using {#GetEnv("...")} within the SignTool in the script (passing it via $p), or using /S to pass the signtool configuration from a higher-level build script and injecting it there. 
Reply all
Reply to author
Forward
0 new messages