Ordres per instal·lar Scratch 3 sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
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 --silentPer instal·lador
32 bits · EXE (NSIS) · Usuari actual
"Scratch 3.32.1 Setup.exe" /S"Scratch 3.32.1 Setup.exe" /S /D=C:\Apps\scratch-3- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\bad79d23-e888-5a7b-9e99-60ee89b6c8bf
32 bits · EXE (NSIS) · Tots els usuaris
"Scratch 3.32.1 Setup.exe" /S"Scratch 3.32.1 Setup.exe" /S /D=C:\Apps\scratch-3- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\bad79d23-e888-5a7b-9e99-60ee89b6c8bf
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
$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 $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