helios-remote/scripts/install.ps1

19 lines
748 B
PowerShell

# Helios Remote - Install Script
# Downloads and starts the helios-remote Windows client
#
# IMPORTANT: Windows Defender may block the executable.
# If the download or launch fails, disable real-time protection first (run as Admin):
# Set-MpPreference -DisableRealtimeMonitoring $true
# Re-enable after the client is running:
# Set-MpPreference -DisableRealtimeMonitoring $false
$ErrorActionPreference = "Stop"
$url = "https://github.com/agent-helios/helios-remote/releases/latest/download/helios-remote-client-windows.exe"
$dest = "$env:TEMP\helios-remote.exe"
Write-Host "Downloading helios-remote client..."
Invoke-WebRequest -Uri $url -OutFile $dest -UseBasicParsing
Write-Host "Starting..."
Start-Process -FilePath $dest -NoNewWindow