NovaES
Posts: 143
Joined: Tue Feb 24, 2015 5:20 pm

Help signing files

Fri Jan 20, 2023 10:29 am

I am currently following the guide at this link regardless of the installer signature.
https://www.advancedinstaller.com/code- ... ntool.html

When I insert the digital signature, the timestamp is not inserted. I don't know if this is good or bad that these data are not entered. This is the command I use, to see if I'm doing it right or wrong.


signtool.exe sign /sha1 "MY SHA 1" /fd SHA256 "C:\Users\mysign.pfx" /p "My Password" /tr http://timestamp.comodoca.com /td SHA256 /fd SHA256 "C:\Users\myApp.exe")

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Help signing files

Mon Jan 23, 2023 3:44 pm

Hello,

I am uncertain as to why the timestamp is not being added, but I recommend attempting to use the command outside of Advanced Installer.

To see if the timestamp is added correctly, can you please try to see if the signing is working as expected when manually sign a file from a command prompt using Signtool with the same command line?

Let us know if you can manually sign the installer outside Advanced Installer.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

NovaES
Posts: 143
Joined: Tue Feb 24, 2015 5:20 pm

Re: Help signing files

Fri Jan 27, 2023 2:04 pm

How do I do that?

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Help signing files

Fri Jan 27, 2023 3:44 pm

Hello,

What my colleague meant is basically trying to sign one of your resources outside of Advanced Installer and see whether the timestamp is added or not.

To do so, open an elevated command prompt and run your command (the exact same command you mentioned). The only thing is that you would need to pass the full path to the signtool.exe tool, between quotes.

After that, please check to see whether the timestamp is added or not.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

NovaES
Posts: 143
Joined: Tue Feb 24, 2015 5:20 pm

Re: Help signing files

Wed Feb 15, 2023 1:43 pm

example code?

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Help signing files

Thu Feb 16, 2023 2:33 pm

Hello,

Not quite sure what you mean by that?

Here is how you can call signtool.exe:

SignTool.exe

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”