Yabeを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id YABE.YetAnotherBacnetExplorer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id YABE.YetAnotherBacnetExplorer -e --silentwinget uninstall --id YABE.YetAnotherBacnetExplorer -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\yabe"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F8639277-80EB-4EC9-AE36-D4BF2115ABFA}_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-yabe.ps1
$url = 'https://sourceforge.net/projects/yetanotherbacnetexplorer/files/SetupYabe_v2.1.0.exe/download'
$sha256 = 'A24C6CF2C1296BF625D34337DE2C4B74F05F5B63458662733E93E461AEBB19FB'
$file = Join-Path $env:TEMP 'download'
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