john.reasor@aaon.com
Posts: 1
Joined: Tue Aug 09, 2022 2:29 pm

Update Azure pipeline build

Tue Aug 09, 2022 2:35 pm

I need to complete the Update task on an Azure Pipeline build I can build the .msi file without issues but the Update task does not see the resulting .msi file how do I set the file location on the pipeline?

Below is the related script.

Code: Select all

task: AdvancedInstaller@2
  displayName: 'Create Ecat6Setup'
  inputs:
    advinstLicense: '$(AILicense)'
    aipPath: 'ECATSetup_Temp\\ECATSetup-Azure.aip'
    aipBuild: 'Ecat6Setup'
    aipPackageName: 'Ecat6Setup.msi'
    aipOutputFolder: '$(Build.ArtifactStagingDirectory)\MSI'
    aipExtraCommands: 'SetVersion $(MainInstallerversion)'

- task: PublishBuildArtifacts@1
  displayName: 'Publish msi and files to Artifacts page'
  inputs:
    PathtoPublish: '$(Build.ArtifactStagingDirectory)'
    ArtifactName: 'ecat6'
    publishLocation: 'Container'

- task: AdvancedInstaller@2
  inputs:
    aipPath: 'ECATSetup_Temp\\ECATUpdate-Azure.aip'
    aipBuild: 'ECATUpdate-Azure'
    aipExtraCommands: NewUpdate $(Build.ArtifactStagingDirectory) -name Ecat6Setup.msi /AddUpdateReplacement $(UpdateName) -replace_all -url $(Build.ArtifactStagingDirectory)\MSI\ecatupdaterconfig.txt

- task: PublishBuildArtifacts@1
  displayName: 'Publish msi and files to Artifacts page'
  inputs:
    PathtoPublish: '$(Build.ArtifactStagingDirectory)'
    ArtifactName: 'ecat6'
    publishLocation: 'Container'

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

Re: Update Azure pipeline build

Wed Aug 10, 2022 12:13 pm

Hello John and welcome to our forums,

Please have a look over the following forum thread where my colleague Daniel explains how to achieve this:

Re: Azure DevOps and Advanced Installer issue

Basically, the MSI/EXE resulted from building your .AIP file should be added into the repository, relative to the path of the Updates Configuration Project.

Additionally, please have a look over the following blog article which does the same using PowerShell:

How to Generate Updates Configuration File in Azure DevOps pipelines with Advanced Installer PowerShell Automation

Hope this helps!

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

Return to “Building Installers”