Commands for installing L'Math 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 RoniLehto.LMath -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RoniLehto.LMath -e --silentwinget uninstall --id RoniLehto.LMath -e --silentBy installer
32-bit · EXE (Inno Setup) · All users · fi-FI
Silent install
LMath_Windows_r1.10.15-release.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
LMath_Windows_r1.10.15-release.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\lmath"- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{8F340A1F-0C10-4AB7-8F66-C190078F3102}}_is1
- Install folder
- %ProgramFiles%\LMath
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-lmath.ps1
$url = 'https://github.com/lehtoroni/lmath-issues/releases/download/v1.10.15/LMath_Windows_r1.10.15-release.exe'
$sha256 = 'EA46802C7D56DB3050FEC8C9C89630A376BDD7988D7DD429511C46879B0C60E1'
$file = Join-Path $env:TEMP 'LMath_Windows_r1.10.15-release.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