Distance to move needs to stay a double
[inkscape.git] / buildtools / windows-deps-install-wix4.ps1
blobd7361f4f7c6a5d2d99b2679c5493657e907f6238
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Installation of WiX v4 toolset for building Windows .MSI packages.
5 # Run this as admin!
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.
11 $MSYS = $Env:MSYS
12 if (-not $MSYS) {
13 if ($Env:IDW_NAME) {
14 $MSYS = "C:\" + $Env:IDW_NAME
15 } else {
16 $MSYS = "C:\msys64"
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