Commands for installing OpenLP 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 OpenLPDevelopers.OpenLP -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenLPDevelopers.OpenLP -e --silentwinget uninstall --id OpenLPDevelopers.OpenLP -e --silentBy installer
64-bit · MSI · Current user · en-US
Silent install
msiexec /i OpenLP-3.1.7-x64.msi /qn /norestartWrite a log
msiexec /i OpenLP-3.1.7-x64.msi /qn /norestart /l*v "%TEMP%\openlp-install.log"Uninstall
msiexec /x {25F7F553-A93D-4992-99CF-83A59B158C24} /qn /norestart- MSI product code
- {25F7F553-A93D-4992-99CF-83A59B158C24}
- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{25F7F553-A93D-4992-99CF-83A59B158C24}
- UpgradeCode
- {8C5881AC-8F1E-4937-BB99-B823FABF18F0}
- Install folder
- %ProgramFiles%\OpenLP
- DisplayVersion
- 3.1.7.5000
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-openlp.ps1
$url = 'https://get.openlp.org/3.1.7/OpenLP-3.1.7-x64.msi'
$sha256 = 'E8894E5E8A4EDA9EED43D3282F1D89F4E67A27179F0E6E12DA955EB9F846076B'
$file = Join-Path $env:TEMP 'OpenLP-3.1.7-x64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait