fix: use WebClient instead of Invoke-WebRequest in install.ps1 (TLS compat)
This commit is contained in:
parent
346386db99
commit
cb86894369
1 changed files with 3 additions and 1 deletions
|
|
@ -13,7 +13,9 @@ $url = "https://github.com/agent-helios/helios-remote/releases/latest/download/
|
|||
$dest = "$env:USERPROFILE\Desktop\Helios Remote.exe"
|
||||
|
||||
Write-Host "Downloading helios-remote client..."
|
||||
Invoke-WebRequest -Uri $url -OutFile $dest -UseBasicParsing
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
$wc = New-Object System.Net.WebClient
|
||||
$wc.DownloadFile($url, $dest)
|
||||
|
||||
Write-Host "Starting..."
|
||||
Start-Process -FilePath $dest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue