HashToolsを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id BinaryFortress.HashTools -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BinaryFortress.HashTools -e --silentwinget uninstall --id BinaryFortress.HashTools -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
HashToolsSetup-4.8.4.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
HashToolsSetup-4.8.4.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\hashtools"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\c190f852-0f93-401c-8fc7-23596e389fa3_is1
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
HashToolsSetup-4.8.4.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
HashToolsSetup-4.8.4.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\hashtools"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\c190f852-0f93-401c-8fc7-23596e389fa3_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-hashtools.ps1
$url = 'https://binaryfortressdownloads.com/Download/BFSFiles/109/HashToolsSetup-4.8.4.exe'
$sha256 = 'F3BA1F1A952A4D26E85078B8A1B0D087F91A65A51300775C37D4E569DA384B31'
$file = Join-Path $env:TEMP 'HashToolsSetup-4.8.4.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-hashtools.ps1
$url = 'https://binaryfortressdownloads.com/Download/BFSFiles/109/HashToolsSetup-4.8.4.exe'
$sha256 = 'F3BA1F1A952A4D26E85078B8A1B0D087F91A65A51300775C37D4E569DA384B31'
$file = Join-Path $env:TEMP 'HashToolsSetup-4.8.4.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