From aae212b09fa0bd55da3f2b966a5debaef0470918 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Mon, 6 May 2024 16:23:08 -0700 Subject: [PATCH] Use PSScriptRoot to find path to Wix module (#21611) --- build.psm1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.psm1 b/build.psm1 index 3bf2642676..bcff68b0c2 100644 --- a/build.psm1 +++ b/build.psm1 @@ -2146,6 +2146,11 @@ function Start-PSBootstrap { $psInstallFile = [System.IO.Path]::Combine($PSScriptRoot, "tools", "install-powershell.ps1") & $psInstallFile -AddToPath } + if ($Package) { + Import-Module "$PSScriptRoot\tools\wix\wix.psm1" + $isArm64 = '$(Runtime)' -eq 'arm64' + Install-Wix -arm64:$isArm64 + } } } finally { Pop-Location