Skip to content

Commit f47d09c

Browse files
Update architecture filter for Python installer (#387)
1 parent d75b46f commit f47d09c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

installers/win-setup-template.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ function Get-RegistryVersionFilter {
1010
[Parameter(Mandatory)][Int32] $MinorVersion
1111
)
1212

13-
$archFilter = if ($Architecture -eq 'x86') { "32-bit" } else { "64-bit" }
13+
# ARM64 Python installer registers as "(ARM64)" in the display name, not "(64-bit)"
14+
$archFilter = switch ($Architecture) {
15+
'x86' { "32-bit" }
16+
'arm64' { "64-bit|ARM64" }
17+
default { "64-bit" }
18+
}
1419
"Python $MajorVersion.$MinorVersion.*($archFilter)"
1520
}
1621

0 commit comments

Comments
 (0)