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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.