@@ -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-
652626function Set-Path
653627{
654628 param
0 commit comments