Getting wix toolset not installed error in azure devops upon building wixproj

Viewed 274

I am creating an MSI installer with Wix and wrote a task in the azure DevOps pipeline which builds the MSI solution file using MSBuild. When the code is pushed to remote the pipeline runs the task but my task returns the error saying WiX toolset is not installed hence the build fails. Though it is assured that the MSBuild task works as it is building other projects in the solution.

##[error]Process 'MSBuild.exe' exited with code '1'.
##[error][Path to wixproj](44,5): Error : The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/

Is there any way to install Wix toolset using pipeline? Or any workaround which might help?

Please note that I am using a custom job pool if that might be a cause for this issue.

2 Answers

Check this article from the official wix documentation.

Most likely, the issue is that your .wixproj is out of date and thus does not handle the breaking changes made in MSBuild 2017. You can re-create your .wixproj using the latest templates in Visual Studio or walk through the steps laid out here.

Essentially, you need to update the way that MSBuild imports the wix.targets because MSBuild 2017 changed the way they did that.

Related