diff --git a/src/chocolatey.resources/helpers/functions/Get-OSArchitectureWidth.ps1 b/src/chocolatey.resources/helpers/functions/Get-OSArchitectureWidth.ps1 index b54fed6a39..7e88fb7e8b 100644 --- a/src/chocolatey.resources/helpers/functions/Get-OSArchitectureWidth.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-OSArchitectureWidth.ps1 @@ -45,7 +45,9 @@ param( Write-Debug "Running 'Get-OSArchitectureWidth'" $bits = 64 - if ([System.IntPtr]::Size -eq 4) { + if (([System.IntPtr]::Size -eq 4) -and (Test-Path env:\PROCESSOR_ARCHITEW6432)) { + $bits = 64 + } elseif ([System.IntPtr]::Size -eq 4) { $bits = 32 }