Skip to content

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

@grv87

Description

@grv87

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UntriagedAn issue that has yet to be triaged.Type: BugDoes not work as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions