Commands for installing OLP CLI 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 HERE.OLPCLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HERE.OLPCLI -e --silentwinget uninstall --id HERE.OLPCLI -e --silentBy installer
64-bit · MSI · en-US
Silent install
msiexec /i cli_2.13-18.6.26-installer.msi /qn /norestartWrite a log
msiexec /i cli_2.13-18.6.26-installer.msi /qn /norestart /l*v "%TEMP%\olp-cli-install.log"Uninstall
msiexec /x {1B5D2967-2D7B-3A6C-8FCE-66011BFDBF13} /qn /norestart- MSI product code
- {1B5D2967-2D7B-3A6C-8FCE-66011BFDBF13}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1B5D2967-2D7B-3A6C-8FCE-66011BFDBF13}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-olp-cli.ps1
$url = 'https://github.com/heremaps/homebrew-olp-cli/releases/download/18.6.26/cli_2.13-18.6.26-installer.msi'
$sha256 = '166E6120335950DE8D73CB99CD6C349F13B0DE1949A8CBA07744908ABBC668F6'
$file = Join-Path $env:TEMP 'cli_2.13-18.6.26-installer.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