Commands for installing cava 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 karlstav.cava -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id karlstav.cava -e --silentwinget uninstall --id karlstav.cava -e --silentBy installer
64-bit · MSI
Silent install
msiexec /i cava_win_x64_install.msi /qn /norestartWrite a log
msiexec /i cava_win_x64_install.msi /qn /norestart /l*v "%TEMP%\cava-install.log"Uninstall
msiexec /x {61F0C5C1-C4CB-470D-B7E5-E89EA3DF26E9} /qn /norestart- MSI product code
- {61F0C5C1-C4CB-470D-B7E5-E89EA3DF26E9}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{61F0C5C1-C4CB-470D-B7E5-E89EA3DF26E9}
- UpgradeCode
- {B8D2AE6A-71E4-42E3-8C9F-33245C657272}
- Install folder
- %LocalAppData%/cava
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-cava.ps1
$url = 'https://github.com/karlstav/cava/releases/download/1.0.0/cava_win_x64_install.msi'
$sha256 = 'FE0F95CF88573A4369BAA3B85C4EFE28AFF6A5B6C75BB0F140CCF5C655544DAB'
$file = Join-Path $env:TEMP 'cava_win_x64_install.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