Skip to content

Commit

Permalink
(GH-1800) Prefer 32-bit in ARM64 emulated PowerShell
Browse files Browse the repository at this point in the history
PowerShell runs emulated in ARM64 Windows systems. Thus, it is also
necessary to check the PROCESSOR_ARCHITEW6432 to determine if
Chocolatey should prefer 32-bit packages.
  • Loading branch information
joaocgreis authored and ferventcoder committed May 26, 2019
1 parent 88fdfa6 commit 19d4056
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ param(
$bits = 32
}

$processorArchiteW6432 = $env:PROCESSOR_ARCHITEW6432
if ($processorArchiteW6432 -and $processorArchiteW6432 -eq 'ARM64') {
$bits = 32
}

# Return bool|int
if ("$compare" -ne '' -and $compare -eq $bits) {
return $true
Expand Down

0 comments on commit 19d4056

Please sign in to comment.