drocx
Posts: 7
Joined: Mon Jul 06, 2020 2:47 pm

SetAzureKeyVaultSecret no longer works with version 20.2

Hello,

ee have updated Advanced Installer from version 19.8.1 to version 20.2.


Since the update, signing via Azure Key Vault no longer works with Azure DevOps. The task has version 2.0.8.
The following command line argument causes an error.

Code: Select all

SetAzureKeyVaultSecret $(azure.key.vault.secret)
Error:

Code: Select all

##[error]Failed to execute Advanced Installer task. Error: SetPackageName "My Setup" -buildname "DefaultBuild"
If we disable signing in the project, the error still appears. Only when SetAzureKeyVaultSecret is removed from the parameters does it work again.

I tried it once with an AIC file to test it. It doesn't work here either, or is there an error in the sequence?

Code: Select all

;aic
SetVersion 23.1.1
UpdatePathVariable -name Source -value "\\myprojectfolder\" -valuetype Folder
SetAzureKeyVaultSecret xxxxxxxxx
Save
Rebuild
If I start the build directly from the Advanced Installer, everything works. If I downgrade the version to 19.8.1 everything works again.

Regards,
Daniel
Catalin
Posts: 7513
Joined: Wed Jun 13, 2018 7:49 am

Re: SetAzureKeyVaultSecret no longer works with version 20.2

Hello Daniel,

Please give us some time to test and also debate your scenario with my dev team.

As soon as I have any updates on this I will get back to you.

Thank you for your patience and understanding!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kfowler
Posts: 1
Joined: Fri Jan 13, 2023 8:40 pm

Re: SetAzureKeyVaultSecret no longer works with version 20.2

We are also experiencing this issue.
Catalin
Posts: 7513
Joined: Wed Jun 13, 2018 7:49 am

Re: SetAzureKeyVaultSecret no longer works with version 20.2

Hello guys,

So far, it looks like we managed to reproduce this on our end as well.

Our development team is already working on a fix.

If I'm not mistaken, we have a release scheduled next week. We should be able to expect a fix by then.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rafsal
Posts: 1
Joined: Mon Jan 16, 2023 3:01 pm

Re: SetAzureKeyVaultSecret no longer works with version 20.2

Hello everybody,
we have same error using "SetAzureKeyVaultSecret" command in .AIC file, using new v20.2.

We encountered the problem after a Windows security update named "KB5022286" (see attached image).
Security Update Windows - ERRORE su Advanced Installer 20.2.jpg
Security Update Windows - ERRORE su Advanced Installer 20.2.jpg (77.88 KiB) Viewed 35392 times
---

Let us know if you fix this issue this week.
Thanks, reguards.
drocx
Posts: 7
Joined: Mon Jul 06, 2020 2:47 pm

Re: SetAzureKeyVaultSecret no longer works with version 20.2

Could you perhaps improve the error message? Unfortunately, the current message does not give any indication that there is a problem with the code signing.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: SetAzureKeyVaultSecret no longer works with version 20.2

Hello,

This issue was fixed in Advanced Installer version 20.2.1 that has just been released. Can you test it and see if everything works as expected?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
drocx
Posts: 7
Joined: Mon Jul 06, 2020 2:47 pm

Re: SetAzureKeyVaultSecret no longer works with version 20.2

The Problem is fixed. Every works as expected. Thank you.
Catalin
Posts: 7513
Joined: Wed Jun 13, 2018 7:49 am

Re: SetAzureKeyVaultSecret no longer works with version 20.2

You are always welcome!

Glad to hear everything is working as expected now.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TKrieger
Posts: 2
Joined: Fri Jan 27, 2023 11:39 am

Re: SetAzureKeyVaultSecret no longer works with version 20.2

It also happens in version 19.5 and 20.0 and it worked before.

My maintanance ended with 20.0 so i cant try the fix in 20.2.1, but maybe the following stack trace about the issue is still helpfull:



SetAzureKeyVaultSecret ***
[SEH_AV_WRITE_NULLPTR] ACCESS_VIOLATION (0xc0000005) at address [0x766dad7a]

Advanced Installer 19.5 build 36301275
*** Stack Trace (x86) ***

[0x766dad7a] wcstok_s()
[0x766dad01] wcstok_s()
[0x62757dc1] CredUIPromptForWindowsCredentialsWorker()
[0x62759bf0] CredPackAuthenticationBufferW()
[0x010f1506] -----
[0x010f1000] -----
[0x010f0aba] -----
[0x0097b605] -----
[0x00946fd8] -----
[0x01f54d9b] -----
[0x01f54a6e] -----
[0x01f553bf] -----
[0x01f54834] -----
[0x0077f910] -----
[0x77aa6e73] RtlAllocateHeap()
[0x0064006f] -----
[0x00730073] -----
[0x006c006c] -----
[0x0042005c] -----
[0x0204d86d] -----
[0x02033bfd] -----
[0x02027cfb] -----
[0x00558de1] -----
[0x01f55fbb] -----
[0x02043bdf] -----
[0x00952bbc] -----
[0x00946fd8] -----
[0x0204d86d] -----
[0x02033bfd] -----
[0x02027cfb] -----
[0x0055c717] -----
[0x00946eaa] -----
[0x007bc7f9] -----
[0x0057a480] -----
[0x02028768] -----
[0x76ea00f9] BaseThreadInitThunk()
[0x77ac7bbe] RtlGetAppContainerNamedObjectPath()
[0x77ac7b8e] RtlGetAppContainerNamedObjectPath()
[0x00160000] MODULE_BASE_ADDRESS

##[error]PowerShell exited with code '1'.
Catalin
Posts: 7513
Joined: Wed Jun 13, 2018 7:49 am

Re: SetAzureKeyVaultSecret no longer works with version 20.2

Hello Tyrone,

I have replied to you over the email.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TKrieger
Posts: 2
Joined: Fri Jan 27, 2023 11:39 am

Re: SetAzureKeyVaultSecret no longer works with version 20.2

Updating to 20.2.1 also fixes this issue for me.

Thank you again for your reply on the email Catalin.
Catalin
Posts: 7513
Joined: Wed Jun 13, 2018 7:49 am

Re: SetAzureKeyVaultSecret no longer works with version 20.2

Thank you for confirming, Tyrone!

Glad to hear everything is working as expected now.

You're always welcome! :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wojyoo
Posts: 3
Joined: Fri Jan 27, 2023 2:23 pm

Re: SetAzureKeyVaultSecret no longer works with version 20.2

Can we excpect that this is fixed for old versions?

We use 18.5 and we don't see a reason to upgrade except this issue.

Return to “Common Problems”