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