# ReelTier - install from PowerShell # # irm https://reeltier.com/install.ps1 | iex # # What this does, and nothing else: # 1. Reads the current version, download address and SHA-256 from https://reeltier.com/reeltier.json # 2. Downloads that installer (the same ReelTier-Setup.exe published on GitHub) to your Temp folder # 3. Checks that the file's SHA-256 is the published one, and stops if it is not # 4. Starts the installer. It installs for your user only and does not ask for administrator rights. # Nothing else is downloaded, changed or sent anywhere. $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 $info = (Invoke-RestMethod -Uri 'https://reeltier.com/reeltier.json' -UseBasicParsing).estable if (-not $info.url_setup -or $info.url_setup -notlike 'https://github.com/reeltier/reeltier/releases/download/*') { throw 'ReelTier: the published download address is not the expected one. Nothing was downloaded.' } if ($info.sha256 -notmatch '^[0-9a-f]{64}$') { throw 'ReelTier: no SHA-256 is published for this version. Nothing was downloaded.' } $destino = Join-Path $env:TEMP 'ReelTier-Setup.exe' Write-Host "ReelTier $($info.version): downloading the installer (about 390 MB)..." Invoke-WebRequest -Uri $info.url_setup -OutFile $destino -UseBasicParsing $huella = (Get-FileHash -Path $destino -Algorithm SHA256).Hash.ToLower() if ($huella -ne $info.sha256) { Remove-Item -Path $destino -Force throw "ReelTier: the downloaded file does not match the published SHA-256 (got $huella). It was deleted." } Write-Host "SHA-256 verified: $huella" if ($env:REELTIER_NO_RUN) { Write-Host "Installer left at $destino (REELTIER_NO_RUN is set, not started)." } else { Write-Host 'Starting the installer...' Start-Process -FilePath $destino }