免互動安裝bottom、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Clement.bottom -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Clement.bottom -e --silentwinget uninstall --id Clement.bottom -e --silent依安裝檔
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i bottom_x86_64_installer.msi /qn /norestart寫入記錄檔
msiexec /i bottom_x86_64_installer.msi /qn /norestart /l*v "%TEMP%\bottom-install.log"解除安裝
msiexec /x {A1BC3770-F8C3-459E-9621-001C5A1C1867} /qn /norestart- MSI產品代碼
- {A1BC3770-F8C3-459E-9621-001C5A1C1867}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A1BC3770-F8C3-459E-9621-001C5A1C1867}
- UpgradeCode
- {3C90C27D-8372-4C82-B03C-020393CB983D}
- 安裝資料夾
- %ProgramFiles%\bottom
ARM64 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i bottom_aarch64_installer.msi /qn /norestart寫入記錄檔
msiexec /i bottom_aarch64_installer.msi /qn /norestart /l*v "%TEMP%\bottom-install.log"解除安裝
msiexec /x {0E50E23A-9417-44FC-A1DD-CE68D8C43AFD} /qn /norestart- MSI產品代碼
- {0E50E23A-9417-44FC-A1DD-CE68D8C43AFD}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0E50E23A-9417-44FC-A1DD-CE68D8C43AFD}
- UpgradeCode
- {3C90C27D-8372-4C82-B03C-020393CB983D}
- 安裝資料夾
- %ProgramFiles%\bottom
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-bottom.ps1
$url = 'https://github.com/ClementTsang/bottom/releases/download/0.14.9/bottom_x86_64_installer.msi'
$sha256 = '4A1C79FC0CCCA1178B6B5CBA6150A8E470828ECD75D68F0B3BDE626FA2DCFB2E'
$file = Join-Path $env:TEMP 'bottom_x86_64_installer.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 install-bottom.ps1
$url = 'https://github.com/ClementTsang/bottom/releases/download/0.14.9/bottom_aarch64_installer.msi'
$sha256 = '0C919BC21876463E27613DE19694DD439CD0B815F760C7BFC28B7FF08A528A14'
$file = Join-Path $env:TEMP 'bottom_aarch64_installer.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