Binary Editor Bzを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id devil-tamachan.BinaryEditorBz -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id devil-tamachan.BinaryEditorBz -e --silentwinget uninstall --id devil-tamachan.BinaryEditorBz -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
BzEditor-1.9.8.7.exe /Sインストール先を指定
BzEditor-1.9.8.7.exe /S /D=C:\Apps\binary-editor-bz- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\BzEditor
64ビット · ZIP
インストール不要(ポータブル)
32ビット · ZIP
インストール不要(ポータブル)
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-binary-editor-bz.ps1
$url = 'https://gitlab.com/devill.tamachan/binaryeditorbz/uploads/82127d29e942bc72d1c8a9d974c629bb/BzEditor-1.9.8.7.exe'
$sha256 = '937427945004C426A42FC4F28324C48C614D5263D708B535351C1A2B5868CEC0'
$file = Join-Path $env:TEMP 'BzEditor-1.9.8.7.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 '/S' -Wait