免互動安裝BoxPilot、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Glide01.BoxPilot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Glide01.BoxPilot -e --silentwinget uninstall --id Glide01.BoxPilot -e --silent依安裝檔
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i box_pilot_gui-1.13.5-x86_64.msi /qn /norestart寫入記錄檔
msiexec /i box_pilot_gui-1.13.5-x86_64.msi /qn /norestart /l*v "%TEMP%\boxpilot-install.log"解除安裝
msiexec /x {1DBABFAB-908E-4F70-8CEB-BE325C764EB7} /qn /norestart- MSI產品代碼
- {1DBABFAB-908E-4F70-8CEB-BE325C764EB7}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1DBABFAB-908E-4F70-8CEB-BE325C764EB7}
- UpgradeCode
- {F7A8C9D1-2E3B-4F5A-6B7C-8D9E0F1A2B3C}
- 安裝資料夾
- %ProgramFiles%/BoxPilot
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-boxpilot.ps1
$url = 'https://github.com/Glide01/BoxPilot/releases/download/v1.13.5/box_pilot_gui-1.13.5-x86_64.msi'
$sha256 = 'C79041FD6791703ED53E3AB28B27B6C51136393B80534596707DFF9F4B45451A'
$file = Join-Path $env:TEMP 'box_pilot_gui-1.13.5-x86_64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait