Ordres per instal·lar BackgroundMute 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 Myst1024.BackgroundMute -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Myst1024.BackgroundMute -e --silentwinget uninstall --id Myst1024.BackgroundMute -e --silentPer instal·lador
64 bits · EXE (Inno Setup)
Instal·lació silenciosa
BackgroundMute-Setup-1.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTUna altra carpeta
BackgroundMute-Setup-1.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\backgroundmute"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A2374D89-7E9D-4D4D-8F18-93D4C2D2C7B4}_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-backgroundmute.ps1
$url = 'https://github.com/Myst1024/BackgroundMute/releases/download/v1.0.0/BackgroundMute-Setup-1.0.0.exe'
$sha256 = '0CBEF55877848F821A75B855A02E7C4351DC74FDCB72C561F9592516BFA2CDF8'
$file = Join-Path $env:TEMP 'BackgroundMute-Setup-1.0.0.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' -Wait