Version:
currently deployed: https://omnitruck.chef.io/install.ps1
Environment:
Windows with non-English locale, x64
Scenario:
Run install.ps1, appropriate version should be installed automatically.
Expected Result:
x86_64 architecture is detected
Actual Result:
i386 architecture is detected
Additional info
I've traced the problem to here:
|
if ((Get-Win32OS).osarchitecture -like '64-bit') { |
According to documentation, value of OSArchitecture property is localized.
For me, it is 64-разрядная (in Russian).
However, I'm not sure on the best fix for this.
WMI has Locale parameter, but passing MS_409 doesn't change anything.
The same issue: belowaverage-org/SuperGrate#45. They ended up with simple checking for substring 64.
Version:
currently deployed: https://omnitruck.chef.io/install.ps1
Environment:
Windows with non-English locale, x64
Scenario:
Run
install.ps1, appropriate version should be installed automatically.Expected Result:
x86_64architecture is detectedActual Result:
i386architecture is detectedAdditional info
I've traced the problem to here:
mixlib-install/lib/mixlib/install/generator/powershell/scripts/helpers.ps1.erb
Line 23 in 56a250b
According to documentation, value of
OSArchitectureproperty is localized.For me, it is
64-разрядная(in Russian).However, I'm not sure on the best fix for this.
WMI has
Localeparameter, but passingMS_409doesn't change anything.The same issue: belowaverage-org/SuperGrate#45. They ended up with simple checking for substring
64.