Kommandon för att installera BackgroundMute utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 installationsfil
64-bitars · EXE (Inno Setup) · Alla användare
Tyst installation
BackgroundMute-Setup-1.1.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEgen mapp
BackgroundMute-Setup-1.1.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\backgroundmute"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A2374D89-7E9D-4D4D-8F18-93D4C2D2C7B4}_is1
- Installationsmapp
- %ProgramFiles%\BackgroundMute
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-backgroundmute.ps1
$url = 'https://github.com/Myst1024/BackgroundMute/releases/download/v1.1.0/BackgroundMute-Setup-1.1.0.exe'
$sha256 = '5F86CB93230127DD57340533540ACDEB925F7F501C150DC4621511F9B767C80F'
$file = Join-Path $env:TEMP 'BackgroundMute-Setup-1.1.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