diff --git a/scripts/install.ps1 b/scripts/install.ps1 index aad773d..df3ee20 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -13,9 +13,14 @@ $url = "https://agent-helios.me/downloads/helios-remote/helios-remote-client-wi $dest = "$env:USERPROFILE\Desktop\Helios Remote.exe" Write-Host "Downloading helios-remote client..." -[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -$wc = New-Object System.Net.WebClient -$wc.DownloadFile($url, $dest) + +# Try curl.exe first (built-in on Windows 10+), fall back to WebClient +if (Get-Command curl.exe -ErrorAction SilentlyContinue) { + curl.exe -L -o $dest $url +} else { + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + (New-Object Net.WebClient).DownloadFile($url, $dest) +} Write-Host "Starting..." Start-Process -FilePath $dest