Skip to content

Commit

Permalink
fix wmic deprecation in vcruntime/install.ps1
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb <[email protected]>
  • Loading branch information
CK6853 authored and coolaj86 committed Nov 10, 2024
1 parent c52d4d7 commit 892fa17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcruntime/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ IF ($my_arch -eq $null -or $my_arch -eq "") {
IF ($my_arch -eq "AMD64") {
# Because PowerShell isn't ARM yet.
# See https://oofhours.com/2020/02/04/powershell-on-windows-10-arm64/
$my_os_arch = wmic os get osarchitecture
$my_os_arch = (Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture

# Using -clike because of the trailing newline
IF ($my_os_arch -clike "ARM 64*") {
Expand Down

0 comments on commit 892fa17

Please sign in to comment.