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
This commit is contained in:
Steve Lee
2024-08-19 22:59:29 +00:00
committed by GitHub
parent ba043c4c27
commit 73bdc2bcb2
+2 -8
View File
@@ -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) {