Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bfa3dbe

Browse files
authored
Update wix installation in CI (#23870)
1 parent cdb7556 commit bfa3dbe

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

tools/ci.psm1

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,8 @@ function Invoke-CIFinish
545545
}
546546
}
547547

548-
Install-WixArmZip
548+
Import-Module "$PSScriptRoot\wix\wix.psm1"
549+
Install-Wix -arm64:$true
549550
$packages = Start-PSPackage -Type $packageTypes -ReleaseTag $preReleaseVersion -SkipReleaseChecks -WindowsRuntime $Runtime
550551

551552
foreach ($package in $packages) {
@@ -622,33 +623,6 @@ function Invoke-CIFinish
622623
}
623624
}
624625

625-
function Install-WixArmZip
626-
{
627-
# cleanup previous install
628-
if((Test-Path "${env:ProgramFiles(x86)}\Arm Support WiX Toolset xcopy")) {
629-
Remove-Item "${env:ProgramFiles(x86)}\Arm Support WiX Toolset xcopy" -Recurse -Force
630-
}
631-
632-
# This URI is for wix 3.14 which supports generating msi for arm architecures.
633-
$wixUriArmSupport = 'https://aka.ms/ps-wix-3-14-zip'
634-
$zipArmSupport = "$env:TEMP\wixArmSupport.zip"
635-
$targetRoot = "${env:ProgramFiles(x86)}\Arm Support WiX Toolset xcopy"
636-
Invoke-RestMethod -Uri $wixUriArmSupport -OutFile $zipArmSupport
637-
638-
$binPath = Join-Path -Path $targetRoot -ChildPath 'bin'
639-
Write-Verbose "Expanding $zipArmSupport to $binPath ..." -Verbose
640-
Expand-Archive -Path $zipArmSupport -DestinationPath $binPath -Force
641-
$docExpandPath = Join-Path -Path $binPath -ChildPath 'doc'
642-
$sdkExpandPath = Join-Path -Path $binPath -ChildPath 'sdk'
643-
$docTargetPath = Join-Path -Path $targetRoot -ChildPath 'doc'
644-
$sdkTargetPath = Join-Path -Path $targetRoot -ChildPath 'sdk'
645-
Write-Verbose "Fixing folder structure ..." -Verbose
646-
Move-Item -Path $docExpandPath -Destination $docTargetPath
647-
Move-Item -Path $sdkExpandPath -Destination $sdkTargetPath
648-
Set-Path -Append -Path $binPath
649-
Write-Verbose "Done installing WIX for arm!"
650-
}
651-
652626
function Set-Path
653627
{
654628
param

0 commit comments

Comments
 (0)