Use PSScriptRoot to find path to Wix module (#21611)

This commit is contained in:
Aditya Patwardhan
2024-06-03 10:56:05 -07:00
parent 794aad420e
commit aae212b09f
+5
View File
@@ -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