GitHub and Azure DevOps builds fail when using Digital Signature - Advanced Installer Community
Scott-PatchMyPC
Posts: 1
Joined: Tue Jan 24, 2023 10:34 am

GitHub and Azure DevOps builds fail when using Digital Signature

--This issue is affecting both version 19.5 and 20.2.1 of Advanced installer in GitHub and 19.5 in ADO--

Last week the secret for accessing our KeyVault in Azure expired, and after rotating this key and updating our environment variables, Advanced Installer no longer builds in GitHub or Azure Devops. We have since rotated the key out again but this has not resolved the issue.

Builds ran in GitHub and ADO both fail at the same stage, "Preparing files"
image.png
image.png (36.59 KiB) Viewed 4111 times
This is a dulled-down version of our build pipe, but running this directly in PowerShell builds perfectly fine.

Code: Select all

$binPath = "{0}\Caphyon\Advanced Installer 20.2.1\bin\x86" -f ${env:ProgramFiles(x86)}
$advancedInstaller = "$binPath\AdvancedInstaller.com"
. $advancedInstaller /RegisterCI $env:LICENCE_KEY
$AdvancedInstallerProject = "MEM Patching Optimizer.aip"
$AdvancedInstallerUpdaterProject = "MEMPatchingOptimizer-UpdaterConfig.aip"
$AdvancedInstallerCommand = "build.aic"
. $advancedInstaller /edit "$AdvancedInstallerProject" /SetVersion 1.1.6.0
. $advancedInstaller /execute $AdvancedInstallerProject $AdvancedInstallerCommand -nofail
. $advancedInstaller /build $AdvancedInstallerProject
I can run the same build in Advanced Installers UI, and it completes successfully.

The only time GitHub and ADO successfully build is when we remove the Digital Signature option entirely (remove the AIC file)

I came across both of these forum posts but ruled out both of these as the issue by rotating our certificate secret and upgrading from 19.5 to 20.2.1
viewtopic.php?t=40656&start=30
viewtopic.php?f=2&t=51175

I've attached both my AIP and AIC for reference.
I contacted Advanced Installer support via email yesterday but have not received a response.

I had thought that the old secret was still somehow being used or referenced, but I see no reference to it in my AIP files anywhere.

Is anyone able to shed any light on this issue?
Attachments
AdvInst-Troubleshooting.zip
(8.4 KiB) Downloaded 164 times
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: GitHub and Azure DevOps builds fail when using Digital Signature

Hello Scott and welcome to our forums,

From what I can see, my colleague Daniel has replied to you over the email.

Please continue the thread there and my colleague will assist you if you have any further questions.

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

Return to “Common Problems”