Ordres per instal·lar Prometheus sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · EXE (NSIS) · Usuari actual
Instal·lació silenciosa
Prometheus_0.22.6_x64-setup.exe /SUna altra carpeta
Prometheus_0.22.6_x64-setup.exe /S /D=C:\Apps\prometheus- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Prometheus
- Carpeta d’instal·lació
- %LocalAppData%\Prometheus
64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i Prometheus_0.22.6_x64_en-US.msi /qn /norestartDesar un registre
msiexec /i Prometheus_0.22.6_x64_en-US.msi /qn /norestart /l*v "%TEMP%\prometheus-install.log"Desinstal·lar
msiexec /x {FC99AEB9-4ACA-4C5A-8960-1DE670AAE7A0} /qn /norestart- Codi de producte MSI
- {FC99AEB9-4ACA-4C5A-8960-1DE670AAE7A0}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FC99AEB9-4ACA-4C5A-8960-1DE670AAE7A0}
- UpgradeCode
- {585FD20A-B31F-5AE5-AA54-FF9804385120}
- Carpeta d’instal·lació
- %ProgramFiles%\Prometheus
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-prometheus.ps1
$url = 'https://github.com/Mouseww/Prometheus/releases/download/v0.22.6/Prometheus_0.22.6_x64-setup.exe'
$sha256 = 'AB0A8D8385AB8F1E4C0D89F4897B4409A5B083FD18F2128E621520A26273AE28'
$file = Join-Path $env:TEMP 'Prometheus_0.22.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.22.6/Prometheus_0.22.6_x64_en-US.msi'
$sha256 = '202EFF7DD51EAC2A481E43A4B15C919236E156A93F302E73D2A7CBD0ABC68302'
$file = Join-Path $env:TEMP 'Prometheus_0.22.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