SonoBusを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Sonosaurus.SonoBus -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Sonosaurus.SonoBus -e --silentwinget uninstall --id Sonosaurus.SonoBus -e --silentインストーラー別
64ビット · EXE(Inno Setup)
サイレントインストール
sonobus-1.7.2-win.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
sonobus-1.7.2-win.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\sonobus"32ビット · EXE(Inno Setup)
サイレントインストール
sonobus-1.7.2-win.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
sonobus-1.7.2-win.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\sonobus"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-sonobus.ps1
$url = 'https://github.com/sonosaurus/sonobus/releases/download/1.7.2/sonobus-1.7.2-win.exe'
$sha256 = '9790D2DEE5AEE327DC4DBD69E43567ECE833D41645A35F8ADB05B3C39243CFD8'
$file = Join-Path $env:TEMP 'sonobus-1.7.2-win.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-sonobus.ps1
$url = 'https://github.com/sonosaurus/sonobus/releases/download/1.7.2/sonobus-1.7.2-win.exe'
$sha256 = '9790D2DEE5AEE327DC4DBD69E43567ECE833D41645A35F8ADB05B3C39243CFD8'
$file = Join-Path $env:TEMP 'sonobus-1.7.2-win.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