From bfa3dbe20db2758aa2abbbdd26166cf803893076 Mon Sep 17 00:00:00 2001 From: Tess Gauthier Date: Wed, 29 May 2024 12:45:18 -0400 Subject: [PATCH] Update wix installation in CI (#23870) --- tools/ci.psm1 | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/tools/ci.psm1 b/tools/ci.psm1 index 751b5fd414..65949f9541 100644 --- a/tools/ci.psm1 +++ b/tools/ci.psm1 @@ -545,7 +545,8 @@ function Invoke-CIFinish } } - Install-WixArmZip + Import-Module "$PSScriptRoot\wix\wix.psm1" + Install-Wix -arm64:$true $packages = Start-PSPackage -Type $packageTypes -ReleaseTag $preReleaseVersion -SkipReleaseChecks -WindowsRuntime $Runtime foreach ($package in $packages) { @@ -622,33 +623,6 @@ function Invoke-CIFinish } } -function Install-WixArmZip -{ - # cleanup previous install - if((Test-Path "${env:ProgramFiles(x86)}\Arm Support WiX Toolset xcopy")) { - Remove-Item "${env:ProgramFiles(x86)}\Arm Support WiX Toolset xcopy" -Recurse -Force - } - - # This URI is for wix 3.14 which supports generating msi for arm architecures. - $wixUriArmSupport = 'https://aka.ms/ps-wix-3-14-zip' - $zipArmSupport = "$env:TEMP\wixArmSupport.zip" - $targetRoot = "${env:ProgramFiles(x86)}\Arm Support WiX Toolset xcopy" - Invoke-RestMethod -Uri $wixUriArmSupport -OutFile $zipArmSupport - - $binPath = Join-Path -Path $targetRoot -ChildPath 'bin' - Write-Verbose "Expanding $zipArmSupport to $binPath ..." -Verbose - Expand-Archive -Path $zipArmSupport -DestinationPath $binPath -Force - $docExpandPath = Join-Path -Path $binPath -ChildPath 'doc' - $sdkExpandPath = Join-Path -Path $binPath -ChildPath 'sdk' - $docTargetPath = Join-Path -Path $targetRoot -ChildPath 'doc' - $sdkTargetPath = Join-Path -Path $targetRoot -ChildPath 'sdk' - Write-Verbose "Fixing folder structure ..." -Verbose - Move-Item -Path $docExpandPath -Destination $docTargetPath - Move-Item -Path $sdkExpandPath -Destination $sdkTargetPath - Set-Path -Append -Path $binPath - Write-Verbose "Done installing WIX for arm!" -} - function Set-Path { param