raju
Posts: 5
Joined: Sat Jun 02, 2012 3:42 am

How to sign a installer package

I am using AI 9.1.1 version.
I have created Installer for my application. Now i want to complete code signing certification for my setup.exe and setup.msi.

Please share how i can do this code signing. I have to use signtool.exe.

Please share help on how to complete this signing.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to sign a installer package

Hello,

First off you'll need to purchase a code signing certificate from one of the companies that are selling this kind of certificates. (e.g. VeriSign)

After this, you can use the Digital Signature page in Advanced Installer to configure your package with that certificate.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
raju
Posts: 5
Joined: Sat Jun 02, 2012 3:42 am

Re: How to sign a installer package

Hi thank you,

I checked this, I have code signing certificate .pfx file with password.
I selected .pfx certificate from disk, gave password.

Build was ok, also output file "setup.exe" properties window said digital signature is OK.

But when I launch setup.exe error message pops up with error "The access code is Invalid".

Please share how to tackle this error. I am using AI 9.1.1.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to sign a installer package

Hello,

Usually this error occurs when the signature from the .CAB or .MSI doesn't coincide with the one from the .EXE.
You can try to delete all output files (including cache), rebuild the project and see if the error persists.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to sign a installer package

Hello raju,

Reposting article for user Kambizt, lost due to hardware changes on our servers.

Have you ever gone one step further to verify that the CA certificate is valid too? I have run into a similar problem with AI 9.3 and what it does is that it creates a hash that includes my signature right but fails to include the CA certificate properly. As a result, when I run the executable, I get a warning message from the OS.

To check the status of the CA certificate, go to the properties of the Setup.exe, verify that your signature is ok then click on "Details" and then "view certificate" . If you now go "Certification Path" and double-click on any of the certificates there, they should be valid too.

Regards,
Kambizt
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to sign a installer package

@Kambizt. The message received by raju is given by our bootstrapper, as Mihai said, when the signatures do not match, so I think these can be different problems.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”