Commands for installing MuseScore 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 Musescore.Musescore -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Musescore.Musescore -e --silentwinget uninstall --id Musescore.Musescore -e --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i MuseScore-Studio-4.7.7.261109195-x86_64.msi /qn /norestartWrite a log
msiexec /i MuseScore-Studio-4.7.7.261109195-x86_64.msi /qn /norestart /l*v "%TEMP%\musescore-install.log"Uninstall
msiexec /x {A2905E84-A0C2-4BD7-AEC3-DA9C7E4772B4} /qn /norestart- MSI product code
- {A2905E84-A0C2-4BD7-AEC3-DA9C7E4772B4}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A2905E84-A0C2-4BD7-AEC3-DA9C7E4772B4}
- UpgradeCode
- {D627329B-7533-4482-A377-E5562AEFF8CF}
- Install folder
- %ProgramFiles%/MuseScore 4
- DisplayVersion
- 4.7.7.261109195
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-musescore.ps1
$url = 'https://github.com/musescore/MuseScore/releases/download/v4.7.7/MuseScore-Studio-4.7.7.261109195-x86_64.msi'
$sha256 = '1E54D88C63C20B348F12D23008B3533FD255E1BC88734A9496A46391C4B072A9'
$file = Join-Path $env:TEMP 'MuseScore-Studio-4.7.7.261109195-x86_64.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