Magic Context Dashboardを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリと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