Signtool.exe directory?

109 views
Skip to first unread message

Kim Hawker

unread,
Mar 8, 2022, 12:05:21 AM3/8/22
to innosetup

What is the directory that Inno uses to find signtool.exe? or what is the best directory to place the signtool.exe program.

Otomatic

unread,
Mar 8, 2022, 3:19:09 AM3/8/22
to innosetup
This is the path you specify with the tool "Configure SignTool".
Example :
Standard=$qC:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe$q $p $f

Otomatic

unread,
Mar 10, 2022, 4:17:54 AM3/10/22
to innosetup
I want to believe that you made a mistake by using "Reply to author" instead of "Reply to group", but when you ask a public question, the answers should also be public.
You should - anyway - read the Inno Setup documentation about signtool!
Regarding your question, it is not Inno Setup that looks for where the signtool.exe executable could be, it is you who must tell Inno Setup where this executable is.
First of all, to do this, you have to install the Windows SDK:
After, using InnoSettup Tool Configure Sign Tool, you create an Inno Signtool "Standard" as I wrote previously :
     Standard=$qC:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe$q $p $f
To know what $q, $p and $f correspond to read the documentation.
And only after doing all this, you can set the Signtool= line in the [Setup] section.

SignTool=Standard sign /fd sha256 /tr http://ts.ssl.com /td sha256 /f $qC:\pathto\mysignfile.pfx$q /p mypassword $f

http://ts.ssl.com is the real time server you want to use

Laurent Combémorel

unread,
Mar 10, 2022, 9:21:05 AM3/10/22
to innosetup
Hi Otomatic
There is just an small typo : $f should not be present both in the sign tool configuration and in the SignTool directive, but only in the later...
:-)

Reply all
Reply to author
Forward
0 new messages