Blockworkを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
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 --silentインストーラー別
64ビット · EXE(Inno Setup)
サイレントインストール
blockwork-windows-x86_64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
blockwork-windows-x86_64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\blockwork"ARM64 · EXE(Inno Setup)
サイレントインストール
blockwork-windows-arm64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
blockwork-windows-arm64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\blockwork"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
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