# Luntre installer - https://luntre.app/install.ps1 # Usage: irm https://luntre.app/install.ps1 | iex # Flags (can't flow through irm|iex; use the ScriptBlock form): # iex "& { $(irm https://luntre.app/install.ps1) } -AcceptTerms -NoAutostart -NoLaunch" # ... -Uninstall (add -Purge to also remove %AppData%\Luntre settings) param( [switch]$AcceptTerms, [switch]$NoAutostart, [switch]$NoLaunch, [switch]$Uninstall, [switch]$Purge, [string]$Base = 'https://luntre.app' ) $ErrorActionPreference = 'Stop' [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $InstallDir = Join-Path $env:LOCALAPPDATA 'Luntre' $ExePath = Join-Path $InstallDir 'Luntre.exe' $Shortcut = Join-Path $env:APPDATA 'Microsoft\Windows\Start Menu\Programs\Luntre.lnk' $RunKey = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run' $DataDir = Join-Path $env:APPDATA 'Luntre' $script:Terms = @' LUNTRE - END USER TERMS (updated 3 November 2026) 1. Scope. These terms apply to the Luntre software for Windows. Luntre is made by RWS and sold by Gabriel Luben, Germany, trading as RWS ("we"). 2. Licence. We grant you a personal, non-exclusive, non-transferable licence to use Luntre on computers you own or control. The trial runs 30 days per computer. A paid licence is a one-time purchase and covers up to two computers at a time; releasing a computer in the app moves the licence to another, within reasonable limits. 3. Data. Luntre does not collect usage data. It contacts our server only to check the trial or licence, using a one-way device fingerprint, and, if enabled, to check for updates. Your settings stay on your computer. Details are in the privacy notice. 4. Updates. A paid licence includes all future updates at no extra cost. 5. Warranty. Statutory warranty rights apply. In addition, if Luntre does not work as described within 30 days of purchase, we fix it or refund the purchase price. 6. Withdrawal. As a consumer in the EU you may withdraw from the purchase within 14 days without giving a reason, by writing to us. Because Luntre is delivered digitally and at once, the right of withdrawal ends when you agree at checkout that delivery starts immediately and the licence is issued. Details and a model form: luntre.app/withdrawal.html 7. Termination. You can stop using Luntre and uninstall it at any time; your settings remain on your computer until you delete them. When a trial ends without a licence, Luntre pauses its features and leaves your desktops and windows unchanged. We may end a licence if these terms are seriously breached. 8. Law. German law applies. If you are a consumer in the EU, the mandatory consumer protection of your country of residence remains unaffected. '@ function Banner([string]$msg) { Write-Host '' Write-Host ' ~' -ForegroundColor DarkCyan Write-Host ' __/\__' -ForegroundColor Cyan Write-Host ' / \' -ForegroundColor Cyan Write-Host ' |________|' -ForegroundColor Cyan Write-Host ' ~~ LUNTRE ~~ the boat between worlds' -ForegroundColor DarkCyan Write-Host '' Write-Host " $msg" -ForegroundColor White Write-Host '' } function Stop-LuntreIfRunning { $p = Get-Process -Name 'Luntre' -ErrorAction SilentlyContinue if ($p) { $a = Read-Host ' Luntre is running - stop it to continue? [Y/n]' if ($a -match '^(n|no)$') { Write-Host ' Aborted.'; exit 0 } $p | Stop-Process -Force Start-Sleep -Milliseconds 500 } } # ------------------------- UNINSTALL ------------------------- if ($Uninstall) { Banner 'Uninstalling Luntre' Stop-LuntreIfRunning Remove-Item $Shortcut -Force -ErrorAction SilentlyContinue Remove-ItemProperty -Path $RunKey -Name 'Luntre' -ErrorAction SilentlyContinue Remove-Item $InstallDir -Recurse -Force -ErrorAction SilentlyContinue if ($Purge) { Remove-Item $DataDir -Recurse -Force -ErrorAction SilentlyContinue Write-Host ' Settings removed too (-Purge).' -ForegroundColor DarkGray } else { Write-Host " Program removed. Your settings stay in $DataDir" -ForegroundColor DarkGray } Write-Host ' The boat has sailed. Fair winds.' -ForegroundColor Cyan exit 0 } # ------------------------- INSTALL ------------------------- Banner 'Installing Luntre' # Terms gate Write-Host $script:Terms -ForegroundColor DarkGray Write-Host '' if (-not $AcceptTerms) { $a = Read-Host ' Accept these terms? [Y/n]' if ($a -match '^(n|no)$') { Write-Host ' Terms declined - nothing was installed.' -ForegroundColor Yellow exit 0 } } # Version $version = (Invoke-RestMethod "$Base/dl/version.txt").Trim() $sizeMb = try { [math]::Round((Invoke-RestMethod "$Base/dl/version.json").size / 1MB) } catch { $null } Write-Host (" Downloading Luntre $version" + $(if ($sizeMb) { " ($sizeMb MB)" } else { '' }) + ' ...') -ForegroundColor DarkGray # Download + checksum. Windows PowerShell's progress bar slows downloads and unpacking many times over; # it is switched off only inside these child scopes, so the session that ran irm | iex keeps its setting $tmp = Join-Path $env:TEMP "luntre-$version.zip" & { $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest "$Base/dl/luntre-latest.zip" -OutFile $tmp -UseBasicParsing } $expected = ((Invoke-RestMethod "$Base/dl/sha256.txt").Trim() -split '\s+')[0].ToLower() $actual = (Get-FileHash $tmp -Algorithm SHA256).Hash.ToLower() if ($actual -ne $expected) { Remove-Item $tmp -Force Write-Host ' Checksum mismatch - aborting for your safety.' -ForegroundColor Red exit 1 } Write-Host ' Checksum verified.' -ForegroundColor DarkGray Stop-LuntreIfRunning # Extract (per-user - no admin) New-Item -ItemType Directory -Path $InstallDir -Force | Out-Null & { $ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path $tmp -DestinationPath $InstallDir -Force } Remove-Item $tmp -Force # Start Menu shortcut $ws = New-Object -ComObject WScript.Shell $sc = $ws.CreateShortcut($Shortcut) $sc.TargetPath = $ExePath $sc.IconLocation = "$ExePath,0" $sc.Description = 'Luntre - layered virtual desktops' $sc.Save() # Autostart if (-not $NoAutostart) { Set-ItemProperty -Path $RunKey -Name 'Luntre' -Value "`"$ExePath`" --minimized" Write-Host ' Will sail at login.' -ForegroundColor DarkGray } Write-Host '' Write-Host " Aboard. Luntre $version lives at" -ForegroundColor Cyan Write-Host " $InstallDir" -ForegroundColor DarkGray Write-Host ' One keystroke between worlds. Alt+Tab was the river; this is the boat.' -ForegroundColor DarkGray Write-Host '' Write-Host ' A note from Ben @ RWS:' -ForegroundColor Cyan Write-Host ' We built Luntre to make our own working days lighter: less hunting for windows,' -ForegroundColor Gray Write-Host ' more room for the work that matters. May it bring you focus, flow and a little' -ForegroundColor Gray Write-Host ' joy at the keyboard. Thank you for sailing with us.' -ForegroundColor Gray Write-Host '' if (-not $NoLaunch) { Start-Process $ExePath -ArgumentList '--minimized' }