From 19d5cd87fa3cf92036f57e9697dbd9aba30d3708 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sun, 18 Oct 2026 11:05:19 +0200 Subject: [PATCH] install.ps1: name a discrete graphics card before the built-in one in the line it prints --- packaging/install.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/install.ps1 b/packaging/install.ps1 index ef63eec9..8ce23fcb 100644 --- a/packaging/install.ps1 +++ b/packaging/install.ps1 @@ -33,7 +33,8 @@ $arch = $env:PROCESSOR_ARCHITEW6432; if (-not $arch) { $arch = $env:PROCESSOR_AR if ($arch -ne 'AMD64') { Die "this computer ($arch) has no Strata Terminal yet. Supported: Windows on x64." } $platform = 'windows-x86_64' $gpu = '' -try { $gpu = (Get-CimInstance Win32_VideoController | Where-Object { $_.Name -notmatch 'Basic|Remote' } | Select-Object -First 1 -ExpandProperty Name) } catch { } +# a discrete card is named before a built-in one (a Ryzen's "AMD Radeon(TM) Graphics" is listed first on many PCs); this line is only for the person to read +try { $cards = @(Get-CimInstance Win32_VideoController | Where-Object { $_.Name -notmatch 'Basic|Remote' }); $gpu = ($cards | Sort-Object @{ Expression = { if ($_.Name -match 'NVIDIA|GeForce|RTX|GTX|Quadro|Radeon (RX|PRO|AI)|Arc|Instinct') { 0 } else { 1 } } } | Select-Object -First 1 -ExpandProperty Name) } catch { } Write-Host 'Strata Terminal installer' Write-Host " This computer: Windows $arch ($platform)$(if ($gpu) { ", graphics: $gpu" })" Write-Host " Release folder: $feed"