Commands for installing Lagrange without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id skyjake.Lagrange -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id skyjake.Lagrange -e --silentwinget uninstall --id skyjake.Lagrange -e --silentBy installer
64-bit · EXE (Inno Setup) · All users
Silent install
lagrange_v1.20.9_windows-x64_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
lagrange_v1.20.9_windows-x64_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\lagrange"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Lagrange_is1
- Install folder
- %ProgramFiles%\Lagrange
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-lagrange.ps1
$url = 'https://github.com/skyjake/lagrange/releases/download/v1.20.9/lagrange_v1.20.9_windows-x64_setup.exe'
$sha256 = '43A8BFEE0AE7BD614684DF8C1A544AF375D8E657B5CAC2A13A7C57328214C043'
$file = Join-Path $env:TEMP 'lagrange_v1.20.9_windows-x64_setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait