We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ittim
Posts: 29
Joined: Mon Aug 22, 2016 1:36 pm

Vista and Xp - Code Signed install problem

Hi, I've got a sha-256 signed installer which works great. However not with Xp and Vista which I was kind of expecting.

So I assume that I need to set 'sign for compatibility' in the digital signature area.

However when i build using this option I get the same error on install.

"A File that is required cannot be installed because the cabinet file **location** \disk1.cab has an invalid digital signature. this may indicate that the cabinet file is corrupt"

What am I doing wrong?

Using installer 13.1 and Signtool.exe
project.aip
(26.67 KiB) Downloaded 274 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Vista and Xp - Code Signed install problem

Hello,

This may also happen if you are using a SHA256-based certificate. If your certificate is issued with a SHA256 hash algorithm, then the certificate won't be recognized on Vista and XP operating systems either. In this case you will need to use a certificate created with a SHA1 hash algorithm. Please take a look on our "Why do I get the "Disk1.cab has an invalid digital signature" error during installation?" faq article.

Let us know if you have any questions.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ittim
Posts: 29
Joined: Mon Aug 22, 2016 1:36 pm

Re: Vista and Xp - Code Signed install problem

Hi Daniel, so would that mean creating two projects? I thought the SHA256 would cover it if I selected the sign for compatibility option
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Vista and Xp - Code Signed install problem

Hello,

Yes, in this case is recommended to create two projects: one signed with a SHA1 certificate targeting old OSes and the other signed with a SHA256 certificate targeting Windows 7 and newer OSes. Although you can create a single setup signed with a SHA1 certificate this is not recommended as the SHA1 signatures are deprecated due to their vulnerabilities.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”