Commands for installing DefaultAudio 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 AshleyStone.DefaultAudio -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AshleyStone.DefaultAudio -e --silentwinget uninstall --id AshleyStone.DefaultAudio -e --silentBy installer
32-bit · MSI · All users
Silent install
msiexec /i DefaultAudio-1.0.0.0.msi /qn /norestartWrite a log
msiexec /i DefaultAudio-1.0.0.0.msi /qn /norestart /l*v "%TEMP%\defaultaudio-install.log"Uninstall
msiexec /x {A2209DE2-2176-4AEA-A27D-8EEF65CCAFCC} /qn /norestart- MSI product code
- {A2209DE2-2176-4AEA-A27D-8EEF65CCAFCC}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A2209DE2-2176-4AEA-A27D-8EEF65CCAFCC}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-defaultaudio.ps1
$url = 'https://bitbucket.org/AshleyStone/defaultaudio/downloads/DefaultAudio-1.0.0.0.msi'
$sha256 = '28721BE0AF5BAA49BBB96E22ABEE3EA69B47DA70274FCBB28DCFA7DA995C641A'
$file = Join-Path $env:TEMP 'DefaultAudio-1.0.0.0.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