Skip to content
Snippets Groups Projects
Commit 6d6615ed authored by Samuel Truman's avatar Samuel Truman
Browse files

Installer; ensure fallback download method is used when bits-transfer stagnates

parent 8ac3e6fc
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ function Download-File {
# Try using BitsTransfer
try {
Write-Log "Using BitsTransfer..."
Start-BitsTransfer -Source $url -Destination $destination
Start-BitsTransfer -Source $url -Destination $destination -ErrorAction Stop
Write-Host "Download completed." -ForegroundColor Green
return
} catch {
......
......@@ -9,7 +9,7 @@ function Download-File {
# Try using BitsTransfer
try {
Write-Host "Using BitsTransfer..."
Start-BitsTransfer -Source $url -Destination $destination
Start-BitsTransfer -Source $url -Destination $destination -ErrorAction Stop
Write-Host "Download completed using BitsTransfer." -ForegroundColor Green
return
} catch {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment