Ordres per instal·lar scrab 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
PowerShell
winget install --id univrsal.scrab -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id univrsal.scrab -e --silentwinget uninstall --id univrsal.scrab -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Usuari actual
Instal·lació silenciosa
scrab-1.2.0-windows-x64-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
scrab-1.2.0-windows-x64-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\scrab"- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CD703FE5-1F2C-4837-BD3D-DD840D83C3E3}_is1
32 bits · EXE (Inno Setup) · Usuari actual
Instal·lació silenciosa
scrab-1.2.0-windows-x86-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
scrab-1.2.0-windows-x86-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\scrab"- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{CD703FE5-1F2C-4837-BD3D-DD840D83C3E3}_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-scrab.ps1
$url = 'https://github.com/univrsal/scrab/releases/download/v1.2.0/scrab-1.2.0-windows-x64-Installer.exe'
$sha256 = 'A7BB87775CA5DDF78643FF97D21511BFD849D96E3E4CC8BA65CEEEE48B70E7E0'
$file = Join-Path $env:TEMP 'scrab-1.2.0-windows-x64-Installer.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-scrab.ps1
$url = 'https://github.com/univrsal/scrab/releases/download/v1.2.0/scrab-1.2.0-windows-x86-Installer.exe'
$sha256 = '456D2C0C79C77E18D9E7176B7818B21871815054124C5B5939D854D5598C1466'
$file = Join-Path $env:TEMP 'scrab-1.2.0-windows-x86-Installer.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait