Kommandon för att installera DeaDBeeF 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 DeaDBeeF.DeaDBeeF -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DeaDBeeF.DeaDBeeF -e --silentwinget uninstall --id DeaDBeeF.DeaDBeeF -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare · en-US
Tyst installation
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\deadbeef"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4E5B405A-0184-4256-B305-5B57F71B6093}_is1
64-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\deadbeef"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4E5B405A-0184-4256-B305-5B57F71B6093}_is1
- Installationsmapp
- %ProgramFiles%\DeaDBeeF
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-deadbeef.ps1
$url = 'https://sourceforge.net/projects/deadbeef/files/travis/windows/1.10.0/deadbeef-1.10.0-windows-x86_64.exe/download'
$sha256 = 'A97DE1941145DAAE62695782F60821FE15A09260E3654044FC42944BC185BFBC'
$file = Join-Path $env:TEMP 'download'
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 /SP-' -Wait install-deadbeef.ps1
$url = 'https://sourceforge.net/projects/deadbeef/files/travis/windows/1.10.0/deadbeef-1.10.0-windows-x86_64.exe/download'
$sha256 = 'A97DE1941145DAAE62695782F60821FE15A09260E3654044FC42944BC185BFBC'
$file = Join-Path $env:TEMP 'download'
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 /SP-' -Wait