rafw86
Posts: 11
Joined: Tue May 19, 2020 9:43 am

Digital Signature fails on subsequent builds of installer

Wed Jun 16, 2021 4:11 pm

Hi,

I managed to configure locally the digital signature using certificate stored on Azure Key Vault on both local environment and within a Azure DevOps pipeline. At both places I was able to sign the installer files by the first time without any issues. Unfortunately, every next time I got following error:

Code: Select all

Could not extract digital certificate from [C:\***-cache\part1\***.cab].

Advanced Installer 18.3 build e2a0201b
*** Stack Trace (x86) ***

[0x76afa6f2]  RaiseException()
[0x025c72fa]  -----
[0x0127cc47]  -----
[0x015c38b3]  -----
[0x015c32cc]  -----
[0x014fc7fc]  -----
[0x01504887]  -----
[0x013dda35]  -----
[0x013dd921]  -----
[0x014fa1d6]  -----
[0x016774db]  -----
[0x011d7e77]  -----
[0x010811ce]  -----
[0x00ef351c]  -----
[0x01d63978]  -----
[0x777a5dde]  RtlAllocateHeap()
[0x76ae220b]  FlsGetValue()
[0x025c9385]  -----
[0x025c6889]  -----
[0x00f0a58e]  -----
[0x75f2fa29]  BaseThreadInitThunk()
[0x777c7a9e]  RtlGetAppContainerNamedObjectPath()
[0x777c7a6e]  RtlGetAppContainerNamedObjectPath()
[0x00c50000]  MODULE_BASE_ADDRESS
I am using Advanced Installer 18.3

I managed to find a work around for that which is disabling the option of caching unchanged archives as shown in attachment. This however, slows down the build significantly. Any better solutions? Or is it indeed an issue which has to be fixed on your side?

EDIT: actually the work around is not a fix at all - I still have problems as described above
Attachments
project options.png
project options.png (10.86 KiB) Viewed 4548 times

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

Re: Digital Signature fails on subsequent builds of installer

Wed Jun 23, 2021 4:14 pm

Hello Rafael,

I have recently started investigating this, but unfortunately I could not get to the bottom of it.

Please give me some more time to further test and investigate this and I will update this thread as soon as I will have more information.

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

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

Re: Digital Signature fails on subsequent builds of installer

Thu Jun 24, 2021 3:12 pm

Hello Rafael,

I have further tested this on our end, but unfortunately we are not able to reproduce this problem.

Although we have not reproduced this, I have discussed with our development team and we will try a fix for this. Once a RC version will be available, I will followup with a download link so you can test this once again (locally).

One more thing I'd like to ask here. Are you able to constantly reproduce this?

For instance, from what I understand, the first time you build it locally it succeeds and after that, it fails constantly (e.g. when trying to manually build for the 2nd, 3rd time, 4th time, etc.)? is this the case, or does the issue reproduce sporadically, i.e.: first time succeeds, second time fails, third time succeeds and so on?

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

Return to “Common Problems”