Skip to content

Architecture detections fails depending on locale #1503

@Zab-an

Description

@Zab-an

What's the problem?

My Flare-VM installation fails due to the dnscache issue mentioned in #659.

As this should already be fixed since I'm using the latest version of install.ps1, I investigated and found that the OS architecture detection check in vm.common.psm1:1610 always fails due to the locale.

Since my Win11 install is in French, I have the following output:

PS C:\Users\dev> $osInfo = Get-ComputerInfo
PS C:\Users\dev> $osArchitecture = $osInfo.OSArchitecture
PS C:\Users\dev> $osarchitecture
64 bits
PS C:\Users\dev> $osarchitecture -eq "64-bit"
False

I made a PR to change this check to use [Environment]::Is64BitOperatingSystem, which should be language-agnostic.

Steps to Reproduce

  1. Install Win11 in another language (eg. French)
  2. Launch the flare-vm install.ps1 script

Environment

  • Virtualization software : VirtualBox
  • VM OS version : 10.0.26100
  • VM PowerShell version : 5.1.26100.1591

Additional Information

No response

Detected by test suite

No

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working😕 needs infoFurther information is needed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions