Pulsebarを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id YasuhisaKakurai.Pulsebar -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id YasuhisaKakurai.Pulsebar -e --silentwinget uninstall --id YasuhisaKakurai.Pulsebar -e --silentインストーラー別
64ビット · EXE(Inno Setup) · 現在のユーザー · en-US
サイレントインストール
pulsebar-setup-0.2.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
pulsebar-setup-0.2.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\pulsebar"- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9E1B49D4-9C0A-4A38-BE0C-52C4E7B1A7D5}_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-pulsebar.ps1
$url = 'https://github.com/fiw-kakurai/pulsebar/releases/download/v0.2.0/pulsebar-setup-0.2.0.exe'
$sha256 = '46E87B7A7E46099C92D399F177D824597624D8BBEEE5F37E28E751843FE26C42'
$file = Join-Path $env:TEMP 'pulsebar-setup-0.2.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