From 3a2ea4d0be4b2f20709971c04b29c3236db9538c Mon Sep 17 00:00:00 2001 From: Rhuan Barreto Date: Wed, 18 Mar 2026 21:28:28 +0100 Subject: [PATCH] fix: use PROCESSOR_ARCHITECTURE env var for Windows arch detection in installer RuntimeInformation::OSArchitecture returns a .NET enum that can stringify as empty when the script is run via `irm | iex`, causing the installer to reject valid x64 systems. PROCESSOR_ARCHITECTURE is a reliable Windows env var that always returns "AMD64" for x64. --- install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.ps1 b/install.ps1 index 699485a1..89f92cdd 100644 --- a/install.ps1 +++ b/install.ps1 @@ -8,8 +8,8 @@ $InstallDir = if ($env:ARCHGATE_INSTALL_DIR) { $env:ARCHGATE_INSTALL_DIR } else # --- Check architecture --- -$Arch = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -if ($Arch -ne "X64") { +$Arch = $env:PROCESSOR_ARCHITECTURE +if ($Arch -ne "AMD64") { Write-Error "Error: unsupported architecture: $Arch. archgate supports x64 only on Windows." exit 1 }