Merge pull request #2 from exurd/vcredist_detect_arch
commit
86683a433d
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue