Commands for installing Prometheus 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 Mouseww.Prometheus -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Mouseww.Prometheus -e --silentwinget uninstall --id Mouseww.Prometheus -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
Prometheus_0.21.6_x64-setup.exe /SCustom folder
Prometheus_0.21.6_x64-setup.exe /S /D=C:\Apps\prometheus- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Prometheus
- Install folder
- %LocalAppData%\Prometheus
64-bit · MSI · All users
Silent install
msiexec /i Prometheus_0.21.6_x64_en-US.msi /qn /norestartWrite a log
msiexec /i Prometheus_0.21.6_x64_en-US.msi /qn /norestart /l*v "%TEMP%\prometheus-install.log"Uninstall
msiexec /x {14F37107-8F76-4CDA-93E7-EC9124E1F681} /qn /norestart- MSI product code
- {14F37107-8F76-4CDA-93E7-EC9124E1F681}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{14F37107-8F76-4CDA-93E7-EC9124E1F681}
- UpgradeCode
- {585FD20A-B31F-5AE5-AA54-FF9804385120}
- Install folder
- %ProgramFiles%\Prometheus
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-prometheus.ps1
$url = 'https://github.com/Mouseww/Prometheus/releases/download/v0.21.6/Prometheus_0.21.6_x64-setup.exe'
$sha256 = 'F66ED43BA2B83427E184D26F562BF558A577A519FE8DE20B2B85CCA56B028418'
$file = Join-Path $env:TEMP 'Prometheus_0.21.6_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 '/S' -Wait install-prometheus.ps1
$url = 'https://github.com/Mouseww/Prometheus/releases/download/v0.21.6/Prometheus_0.21.6_x64_en-US.msi'
$sha256 = 'DF2D8A008FC29D2BE07F81118F7533496CCF96AB89D184D45AA951AAAC5A15C7'
$file = Join-Path $env:TEMP 'Prometheus_0.21.6_x64_en-US.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