免互動安裝Sidebar Diagnostics、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id ArcadeRenegade.SidebarDiagnostics -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ArcadeRenegade.SidebarDiagnostics -e --silentwinget uninstall --id ArcadeRenegade.SidebarDiagnostics -e --silent依安裝檔
32位元 · EXE · 僅目前使用者 · en-US
靜默安裝
Setup.exe --silent32位元 · MSI · 僅目前使用者 · en-US
靜默安裝
msiexec /i Setup.msi /qn /norestart寫入記錄檔
msiexec /i Setup.msi /qn /norestart /l*v "%TEMP%\sidebar-diagnostics-install.log"解除安裝
msiexec /x {9286DD8B-3CB7-4E26-B887-96EAA479AC17} /qn /norestart- MSI產品代碼
- {9286DD8B-3CB7-4E26-B887-96EAA479AC17}
- 解除安裝登錄機碼
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9286DD8B-3CB7-4E26-B887-96EAA479AC17}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-sidebar-diagnostics.ps1
$url = 'https://github.com/ArcadeRenegade/SidebarDiagnostics/releases/download/v3.6.3/Setup.exe'
$sha256 = 'AC76C1ED587ED7959A92E39AADDCC053507C39E3CEB13153B765DA6095E399CA'
$file = Join-Path $env:TEMP 'Setup.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 '--silent' -Wait install-sidebar-diagnostics.ps1
$url = 'https://github.com/ArcadeRenegade/SidebarDiagnostics/releases/download/v3.6.3/Setup.msi'
$sha256 = '984FA788816627D98499B71D621DB8CCF3B588F05880649F02E77093B5DC2293'
$file = Join-Path $env:TEMP 'Setup.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