From 1eb79209aefc7340e8e61bf46fee264786e456d6 Mon Sep 17 00:00:00 2001 From: exurd <7785022+exurd@users.noreply.github.com> Date: Sat, 9 Aug 2025 18:30:46 +0100 Subject: [PATCH] Install VC Redist.ps1: detect if Arm64 redist is needed Install VC Redist.ps1: use $env instead of System.Runtime this script now works on my VMware Fusion install on M4 (should work on arm windows sandbox now...?) --- Installer Scripts/Install VC Redist.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Installer Scripts/Install VC Redist.ps1 b/Installer Scripts/Install VC Redist.ps1 index df2d959..9739994 100644 --- a/Installer Scripts/Install VC Redist.ps1 +++ b/Installer Scripts/Install VC Redist.ps1 @@ -2,9 +2,10 @@ $urls = @( "https://aka.ms/vs/17/release/vc_redist.x86.exe", "https://aka.ms/vs/17/release/vc_redist.x64.exe" -# "https://aka.ms/vs/17/release/vc_redist.arm64.exe" # Uncomment if using Arm64 device - ) +if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { + $urls += "https://aka.ms/vs/17/release/vc_redist.arm64.exe" +} # Directory to save the downloads $downloadPath = "$env:TEMP"