Merge pull request #2 from exurd/vcredist_detect_arch

pull/6/head
ThioJoe 2025-08-10 18:42:55 -04:00 committed by GitHub
commit 86683a433d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -2,9 +2,10 @@
$urls = @( $urls = @(
"https://aka.ms/vs/17/release/vc_redist.x86.exe", "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.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 # Directory to save the downloads
$downloadPath = "$env:TEMP" $downloadPath = "$env:TEMP"