Trying to implement signing, with a properly formed SignTool configured in the compiler, using $f for the file to be signed (installer),
Signing fails because it can't find the file to be signed. The designated (custom) OutputDir/OutputBaseFilename exe is not created.
Here is the Inno Setup Compiler Output when SignTool is defined in the [Setup] section:
[...]
Compiling [Code] section
Creating setup files
Compressing: C:\Users\frank\file1.txt
Compressing: C:\Users\frank\file2.txt
Compressing Setup program executable
Updating version info (SETUP.EXE)
Updating manifest (SETUP.EXE)
Signing Setup program executable
Running Sign Tool Azure: C:\"Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\signtool.exe" sign /v /debug /fd SHA256 /tr "http://timestamp.acs.microsoft.com" /td SHA256 /dlib "C:\Users\frank\source\Microsoft.Trusted.Signing.Client.1.0.76\bin\x64\Azure.CodeSigning.Dlib.dll" /dmdf "C:\Users\frank\source\Microsoft.Trusted.Signing.Client.1.0.76\metadata.json" "C:\Users\frank\My_Installer_Win\My_Installer_Win.exe"
Sign Tool command failed (Failed to execute Sign Tool command.
Error 2: The system cannot find the file specified).
If I turn off signing (comment out SignTool in the [Setup] section), the compilation succeeds, properly creating the OutputDir/OutputBaseFilename exe as expected:
[...]Compiling [Code] section
Creating setup files
Compressing: C:\Users\frank\file1.txt
Compressing: C:\Users\frank\file2.txt
Compressing Setup program executable
Updating version info (SETUP.EXE)
Updating manifest (SETUP.EXE)
If I then cut/paste the expanded signing command verbatim from the Compiler Output of the (failed) signing attempt above into a command line prompt, it succeeds with no errors.
Do I have something misconfigured? Is there anything further I can do to further troubleshoot or provide additional information? Being able to execute the expanded SignTool command would seem to indicate it is correctly configured.
Thank you,
-Frank