1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Installation of WiX v4 toolset for building Windows .MSI packages.
7 # Install DotNet runtime
8 winget install
--accept-package-agreements
--accept-source-agreements Microsoft
.DotNet
.SDK
.8
10 # determine path to MSYS. For normal developers, it is C:\msys64. For CI it is C:\%IDW_NAME%. Other values can be set with the MSYS environment variable.
14 $MSYS = "C:\" + $Env:IDW_NAME
20 # install WiX in a path where MSYS finds it
21 $WIXPATH = $MSYS + "\usr\local\bin\"
22 $Env:DOTNET_CLI_TELEMETRY_OPTOUT
= "1"
23 dotnet tool install wix
--version
4.0.4 --tool-path
$WIXPATH
24 & "$WIXPATH\wix" extension add
--global WixToolset
.UI
.wixext
/4.0.4