mdraca
Posts: 7
Joined: Thu Jun 25, 2015 11:59 am

Code signing

Hi

Is there a possibility to build single exe installer and then to sign installer with some outside tool?
I tried to do this but Im getting "Unmatched digital signature between msi and exe".

Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Code signing

Hello and welcome to Advanced Installer forums,

Please note that Advanced Installer can digitally sign all of the following files that it creates: EXE, MSI, MSP (patches) and CAB files. The EXE, MSI and MSP files are always signed while the CAB files are signed only if they are not embedded in the MSI. Please take a look on the Digital Signature article which may be useful to you.

By default Advanced Installer has its own DigiSign tool enabled to digitally sign the packages it creates. SignTool and SignCode are external tools that can be used as an alternative. For details, please take a look on the External Tools Options article.

Let me know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mdraca
Posts: 7
Joined: Thu Jun 25, 2015 11:59 am

Re: Code signing

Thanks for the info, I know that AI is capable of signing but in this case I don't have an access to cert, I just need to build unsigned setup and they will sign it. Is this possible?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Code signing

Hi,

Yes, you should be able to sign the setup package using SignTool.exe (Sign Tool). Sign Tool is a command-line tool that digitally signs files, verifies signatures in files, and time-stamps files. This tool is available with the Windows SDK.

For details, please check the Windows SDK tools required for creating MSI packages article.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mdraca
Posts: 7
Joined: Thu Jun 25, 2015 11:59 am

Re: Code signing

Yes but it doesnt work, I tried with SignTool and with DigiSign, every time I get an error. Note that we can't upgrade because ver 11.5.2 has shown to have least
[SEH_AV_READ_NULLPTR] ACCESS_VIOLATION (0xc0000005) at address [0x0185f3f9] type issues so far.

Please find attached sample .aip so you can investigate further.

Thanks
Attachments
Your Application.aip
(22.89 KiB) Downloaded 602 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Code signing

Hi,

When building an EXE package type, if you manually sign (outside AI) an EXE with resources inside, then at install time the installation will be cancelled due to signature mismatch between EXE and its embedded MSI.

In this case, the workaround will be to set the package type as an EXE setup with resources next to it in the Builds page and sign both the .EXE and the .MSI.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mdraca
Posts: 7
Joined: Thu Jun 25, 2015 11:59 am

Re: Code signing

I'm sorry but this is not acceptable workaround, is this behavior caused by a bug in AI and I can expect a fix or this is by design?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Code signing

Hello,
is this behavior caused by a bug in AI and I can expect a fix or this is by design?
No, this is by design.
I don't have an access to cert, I just need to build unsigned setup and they will sign it. Is this possible?
In this case, you can give them the project and its resources in order to be able to build it. They can enable the signing in the project and sign the installation package.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MrBrendan
Posts: 6
Joined: Tue Mar 17, 2015 9:49 pm

Re: Code signing

MdRaca,

Just think if you were a malicious attacker and had a malicious MSI package inside of a well-intentioned signed EXE package. You want to sign them with the same so that anti-virus and the like pick it up before it can do any damage to the destination system.

Return to “Common Problems”