Commands for installing Scratch 3 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 MITMediaLab.Scratch.3 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MITMediaLab.Scratch.3 -e --silentwinget uninstall --id MITMediaLab.Scratch.3 -e --silentBy installer
32-bit · EXE (NSIS) · Current user
Silent install
"Scratch 3.32.1 Setup.exe" /SCustom folder
"Scratch 3.32.1 Setup.exe" /S /D=C:\Apps\scratch-3- Uninstall registry key
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\bad79d23-e888-5a7b-9e99-60ee89b6c8bf
32-bit · EXE (NSIS) · All users
Silent install
"Scratch 3.32.1 Setup.exe" /SCustom folder
"Scratch 3.32.1 Setup.exe" /S /D=C:\Apps\scratch-3- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\bad79d23-e888-5a7b-9e99-60ee89b6c8bf
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-scratch-3.ps1
$url = 'https://downloads.scratch.mit.edu/desktop/Scratch%203.32.1%20Setup.exe'
$sha256 = '7099EFBCF059F880C4F48A5B2238F6F30482A8E75D0AA0C5424DDA95F4A61924'
$file = Join-Path $env:TEMP 'Scratch 3.32.1 Setup.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 '/S' -Wait install-scratch-3.ps1
$url = 'https://downloads.scratch.mit.edu/desktop/Scratch%203.32.1%20Setup.exe'
$sha256 = '7099EFBCF059F880C4F48A5B2238F6F30482A8E75D0AA0C5424DDA95F4A61924'
$file = Join-Path $env:TEMP 'Scratch 3.32.1 Setup.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 '/S' -Wait