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!

Rorschach
Posts: 11
Joined: Thu Oct 10, 2013 3:37 am

A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hi,
I got one error message during installing the patch:
"A file that is required cannot be installed because the cabinet file xxx.cab is not digitally signed. This may indicate that the cabinet file is corrupt."
Here is how I made this patch.
1. We have one installer which version is 1.5 and hasn't been signed with anything.
2. We got one certification later so we used it to sign our new installer which version is 1.6 (signed all .cab .exe .msi files)
3. Then I used these two version to make one patch (the difference between two version is is just some file replacement)
Thanks
Capture.PNG
Capture.PNG (9.71 KiB) Viewed 27398 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hello,

There's a similar thread that debates this issue: win7 64bit build "invalid digital signature" on disk1.cab
You can follow my colleague's suggestions and let us know if you have any questions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rorschach
Posts: 11
Joined: Thu Oct 10, 2013 3:37 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

I have read the thread you mentioned. Our situation is a little different.
Sorry maybe I haven't describe the case clear.
We have one full installer build 0.1.5.2 which was build by AI version 11, WITHOUT digitally signed. And it works well.
We have one full installer build 0.1.6.5 which was build by AI version 12, WITH digitally signed. And it works well. (I digitally signed all .msi, .exe and .cab files)
Then I made one patch for build 0.1.5.2 and also previous versions (all of which don't have been digitally signed) to update to build 0.1.6.5. (The patch has also been digitally signed.)
After that we want to install this patch on the PCs which have installed build 0.1.5.2 and found the above issue.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hello,

Can you please send us the consecutive project files (.AIPs), the patch project and the verbose log generated when installing the patch?

Code: Select all

msiexec /p "C:\YourPackage\Patch.msp" /L*V "C:\log\patch.log"
Also, are you using the same certificate to sign version 0.1.6.5 and the patch?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rorschach
Posts: 11
Joined: Thu Oct 10, 2013 3:37 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hi mihai,
Yes, same certificate was used to sign.
mihai.petcu wrote:Hello,

Can you please send us the consecutive project files (.AIPs), the patch project and the verbose log generated when installing the patch?

Code: Select all

msiexec /p "C:\YourPackage\Patch.msp" /L*V "C:\log\patch.log"
Also, are you using the same certificate to sign version 0.1.6.5 and the patch?

All the best,
Mihai
Attachments
Installer_Patch.zip
(155.97 KiB) Downloaded 999 times
patch.log
(803.04 KiB) Downloaded 943 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hello,

Unfortunately we were unable to replicate this and the log file doesn't reveal much. Does this behavior manifest this on other (clean) machines?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rorschach
Posts: 11
Joined: Thu Oct 10, 2013 3:37 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hi,
It is 100% reproducible and also happen on my fresh new virtual machine.
You can try the attachment, first install version 1.0.0 and then try to install the patch.
Version 1.0.0 is without digitally signed;
Version 1.0.1 is digitally signed;
Patch is made by comparing Version 1.0.0 and Version 1.0.1.
mihai.petcu wrote:Hello,

Unfortunately we were unable to replicate this and the log file doesn't reveal much. Does this behavior manifest this on other (clean) machines?

All the best,
Mihai
Attachments
DigiSignPatchTest.zip
(655.2 KiB) Downloaded 1049 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hello,

Thank you for the test case and resources, I was indeed able to replicate the behavior. We will investigate and let you know on the outcome.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hello,

Our investigation shows that this is a Windows Installer limitation. The Target and Upgraded versions must both be signed for a patch to work if the CABs are outside.

A patch process consists of:
- a transform applied to the installed target version (which is cached by WI)
- after the transform is applied, the target version runs in repair mode

If you look closely in the CAB IDs from the table after the patch is created you'll notice that the CAB from the target version is used and not the CAB from the upgraded version. The error is shown because that CAB is not signed.

Workarounds are to:
- sign the target version as well
- try other package types with CABs inside

I also added this issue on our TODO list to see if we can find a more elegant solution to overcome the limitation. We'll log the progress on this thread.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rorschach
Posts: 11
Joined: Thu Oct 10, 2013 3:37 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hello
Thank you for your information.
Since the old version was already delivered to customers, can you have a little more detail explanation of the two workaround methods?
Thanks
mihai.petcu wrote:Hello,

Our investigation shows that this is a Windows Installer limitation. The Target and Upgraded versions must both be signed for a patch to work if the CABs are outside.

A patch process consists of:
- a transform applied to the installed target version (which is cached by WI)
- after the transform is applied, the target version runs in repair mode

If you look closely in the CAB IDs from the table after the patch is created you'll notice that the CAB from the target version is used and not the CAB from the upgraded version. The error is shown because that CAB is not signed.

Workarounds are to:
- sign the target version as well
- try other package types with CABs inside

I also added this issue on our TODO list to see if we can find a more elegant solution to overcome the limitation. We'll log the progress on this thread.

All the best,
Mihai
Rorschach
Posts: 11
Joined: Thu Oct 10, 2013 3:37 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hello, is there anyone knows how to "try other package types with CABs inside"? I didn't find in the user manual.
Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hello,

First of all we apologize for such a delayed answer.

In order to include the CAB file(s) inside the MSI you should go to "Builds page -> Configuration tab" and under "Archive" section select the "Include CAB file into the MSI database" option. However, since you have already deployed the old version on customers machines I'm not sure if enabling the above option only for your new version will be of any use.

As another solution, you can try not to digitally sign the new version setup and the patch file and see if this helps. Otherwise you should deploy the new version as a major upgrade.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rorschach
Posts: 11
Joined: Thu Oct 10, 2013 3:37 am

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hello
Thank you for your reply, is there any method to include the whole signed cab file in the patch without change msi type? Like the "Including whole files only", is there any possible to add one "Including whole cab only"? Then during the upgrade, the msp can just replace the old version cab with the newer signed one.
Daniel wrote:Hello,

First of all we apologize for such a delayed answer.

In order to include the CAB file(s) inside the MSI you should go to "Builds page -> Configuration tab" and under "Archive" section select the "Include CAB file into the MSI database" option. However, since you have already deployed the old version on customers machines I'm not sure if enabling the above option only for your new version will be of any use.

As another solution, you can try not to digitally sign the new version setup and the patch file and see if this helps. Otherwise you should deploy the new version as a major upgrade.

All the best,
Daniel
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: A file that is required cannot be installed because the cabinet file xxx is not digitally signed

Hello,

I'm afraid this is not possible.

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

Return to “Building Installers”