免互動安裝Magic Context Dashboard、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id CortexKit.MagicContextDashboard -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CortexKit.MagicContextDashboard -e --silentwinget uninstall --id CortexKit.MagicContextDashboard -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
magic-context-dashboard-windows-x64.exe /S自訂安裝資料夾
magic-context-dashboard-windows-x64.exe /S /D=C:\Apps\magic-context-dashboard- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Magic Context Dashboard
- 安裝資料夾
- %LocalAppData%\Magic Context Dashboard
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i magic-context-dashboard-windows-x64.msi /qn /norestart寫入記錄檔
msiexec /i magic-context-dashboard-windows-x64.msi /qn /norestart /l*v "%TEMP%\magic-context-dashboard-install.log"解除安裝
msiexec /x {7AF22551-8A71-4A30-81F4-BCC875F20E62} /qn /norestart- MSI產品代碼
- {7AF22551-8A71-4A30-81F4-BCC875F20E62}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7AF22551-8A71-4A30-81F4-BCC875F20E62}
- UpgradeCode
- {8EAD924F-9866-5C6D-8FA3-6EDCF1336E5E}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-magic-context-dashboard.ps1
$url = 'https://github.com/cortexkit/magic-context/releases/download/dashboard-v0.20.23/magic-context-dashboard-windows-x64.exe'
$sha256 = '39D9E440AAAEC6A2E2EE8B6253AA48F0CC2C5EA694A7801C352EFA63027E08B6'
$file = Join-Path $env:TEMP 'magic-context-dashboard-windows-x64.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 '/S' -Wait install-magic-context-dashboard.ps1
$url = 'https://github.com/cortexkit/magic-context/releases/download/dashboard-v0.20.23/magic-context-dashboard-windows-x64.msi'
$sha256 = 'B7C39D749BD89BFED6DE96FCED15D51B6CBCF8B2E240255B5ADC6CF818D9C917'
$file = Join-Path $env:TEMP 'magic-context-dashboard-windows-x64.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