免互動安裝ApSIC Xbench、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或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