From 73bdc2bcb236dd0a0b8951f4a7857e24dde894c7 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Mon, 19 Aug 2024 15:59:29 -0700 Subject: [PATCH] Remove old code that downloads msix for win-arm64 (#24175) * Remove old code that downloads msix for win-arm64 * address Travis' comment on missing check for arm64 --- tools/install-powershell.ps1 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tools/install-powershell.ps1 b/tools/install-powershell.ps1 index b6c8f595cc..2c9eb0d98f 100644 --- a/tools/install-powershell.ps1 +++ b/tools/install-powershell.ps1 @@ -352,11 +352,7 @@ try { if ($IsWinEnv) { if ($UseMSI) { - if ($architecture -eq "arm64") { - $packageName = "PowerShell-${release}-win-${architecture}.msix" - } else { - $packageName = "PowerShell-${release}-win-${architecture}.msi" - } + $packageName = "PowerShell-${release}-win-${architecture}.msi" } else { $packageName = "PowerShell-${release}-win-${architecture}.zip" } @@ -388,9 +384,7 @@ try { $null = New-Item -ItemType Directory -Path $contentPath -ErrorAction SilentlyContinue if ($IsWinEnv) { - if ($UseMSI -and $architecture -eq "arm64") { - Add-AppxPackage -Path $packagePath - } elseif ($UseMSI -and $Quiet) { + if ($UseMSI -and $Quiet) { Write-Verbose "Performing quiet install" $ArgumentList=@("/i", $packagePath, "/quiet") if($MSIArguments) {