Configure Azure DevOps Pipelines for building WiX installers

5. April 2019 14:58 by Cameron in Continuous Integration, Programming  //  Tags: , , ,   //   Comments

Although the WiX installer toolset is installed on the default build agent in Azure DevOps, you need to tweak the VSBuild task some to make it work. Before I updated the VSBuild task, my builds were hanging and not finishing, wasting precious Azure DevOps Pipelines minutes. To remedy this, you need to edit your azure-pipelines.yml like so:

- task: VSBuild@1
  inputs:
    solution: '$(solution)'
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'
    msbuildArgs: '/p:RunWixToolsOutOfProc=true'

The important piece here is the msbuildArgs option on the VSBuild task. This allows the WiX tools to run outside of Visual Studio which is needed on the build agent. After your installer builds, you can then publish it as part of the build artifacts. Now as a result, you can always have up to date installers.

blog comments powered by Disqus

Month List

Tag cloud