Ordres per instal·lar Blockwork 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 Blockworked.Blockwork -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Blockworked.Blockwork -e --silentwinget uninstall --id Blockworked.Blockwork -e --silentPer instal·lador
64 bits · EXE (Inno Setup)
Instal·lació silenciosa
blockwork-windows-x86_64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
blockwork-windows-x86_64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\blockwork"ARM64 · EXE (Inno Setup)
Instal·lació silenciosa
blockwork-windows-arm64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
blockwork-windows-arm64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\blockwork"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-blockwork.ps1
$url = 'https://github.com/Blockworked/Blockwork/releases/download/0.5.4/blockwork-windows-x86_64-setup.exe'
$sha256 = 'E2E366B9D4FCB6B82A5A272A15D31AC60F08284DC3E13E63B0B406DC4E3BC8CE'
$file = Join-Path $env:TEMP 'blockwork-windows-x86_64-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-blockwork.ps1
$url = 'https://github.com/Blockworked/Blockwork/releases/download/0.5.4/blockwork-windows-arm64-setup.exe'
$sha256 = '12EC19A90B255EB9F367B00DF933B3CD801BE18E445CCF45ADF1FD96B22E3B17'
$file = Join-Path $env:TEMP 'blockwork-windows-arm64-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait