looking-glass.ps1 572 B

123456789101112
  1. Write-Host "looking-glass-host: Installing looking-glass-host."
  2. $filePath = "C:\Program Files\Looking Glass (host)\looking-glass-host.exe"
  3. if (Test-Path $filePath) {
  4. Write-Host "looking-glass-host: '$filePath' file already exists."
  5. } else {
  6. $url="\\samba.home\public\looking-glass-host-B6.zip"
  7. (New-Object System.Net.WebClient).DownloadFile($url, "$env:TEMP\looking-glass.zip")
  8. Expand-Archive -Path $env:TEMP\looking-glass.zip -DestinationPath $env:TEMP\looking-glass -Force
  9. rm "$env:TEMP\looking-glass.zip"
  10. rm -recurse "$env:TEMP\looking-glass"
  11. }