Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Architecture of localized Windows isn't detected in install.ps1 #343

Open
grv87 opened this issue Jan 7, 2021 · 0 comments
Open

Architecture of localized Windows isn't detected in install.ps1 #343

grv87 opened this issue Jan 7, 2021 · 0 comments
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.

Comments

@grv87
Copy link

grv87 commented Jan 7, 2021

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.

@grv87 grv87 added Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected. labels Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

1 participant