ApSIC Xbenchを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ApSIC.Xbench -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ApSIC.Xbench -e --silentwinget uninstall --id ApSIC.Xbench -e --silentインストーラー別
64ビット · ZIP · すべてのユーザー
サイレントインストール
Setup.Xbench.x64.3.0.1622.zip /S- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ApSIC Xbench
32ビット · ZIP · すべてのユーザー
サイレントインストール
Setup.Xbench.x32.3.0.1622.zip /S- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ApSIC Xbench
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-apsic-xbench.ps1
$url = 'https://download.xbench.net/Setup.Xbench.x64.3.0.1622.zip'
$sha256 = 'A971075CA8AA813417EE224B3E9E41A09E3C0534EC53430DC51BE2333E5215E1'
$file = Join-Path $env:TEMP 'Setup.Xbench.x64.3.0.1622.zip'
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 install-apsic-xbench.ps1
$url = 'https://download.xbench.net/Setup.Xbench.x32.3.0.1622.zip'
$sha256 = '41CE6E5799E7297D43C96BEC2546B3467C5C8AD3AC49181F6F9B0DBB0E6F0277'
$file = Join-Path $env:TEMP 'Setup.Xbench.x32.3.0.1622.zip'
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