Copilot modernization agentを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id GitHub.Copilot.modernization.agent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GitHub.Copilot.modernization.agent -e --silentwinget uninstall --id GitHub.Copilot.modernization.agent -e --silentインストーラー別
64ビット · MSI · en-US
サイレントインストール
msiexec /i modernize_1.0.76_windows_x64.msi /qn /norestartログを出力
msiexec /i modernize_1.0.76_windows_x64.msi /qn /norestart /l*v "%TEMP%\copilot-modernization-agent-install.log"アンインストール
msiexec /x {D01DC9B2-3C82-4D19-A0B2-C294E4255509} /qn /norestart- MSIプロダクトコード
- {D01DC9B2-3C82-4D19-A0B2-C294E4255509}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D01DC9B2-3C82-4D19-A0B2-C294E4255509}
ARM64 · MSI · en-US
サイレントインストール
msiexec /i modernize_1.0.76_windows_arm64.msi /qn /norestartログを出力
msiexec /i modernize_1.0.76_windows_arm64.msi /qn /norestart /l*v "%TEMP%\copilot-modernization-agent-install.log"アンインストール
msiexec /x {63A34B3B-33B0-4EF4-BC1A-862F958912D2} /qn /norestart- MSIプロダクトコード
- {63A34B3B-33B0-4EF4-BC1A-862F958912D2}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{63A34B3B-33B0-4EF4-BC1A-862F958912D2}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-copilot-modernization-agent.ps1
$url = 'https://github.com/microsoft/modernize-cli/releases/download/v1.0.76/modernize_1.0.76_windows_x64.msi'
$sha256 = '52FF351434B1655B92D92E6630ECB9B47CB94B874BF2C679C02E73599130D5FA'
$file = Join-Path $env:TEMP 'modernize_1.0.76_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 install-copilot-modernization-agent.ps1
$url = 'https://github.com/microsoft/modernize-cli/releases/download/v1.0.76/modernize_1.0.76_windows_arm64.msi'
$sha256 = 'DE156D814F77D18A6DDDE2ACC4A61C20F9C922B454AB9FDE1347A40735EC1670'
$file = Join-Path $env:TEMP 'modernize_1.0.76_windows_arm64.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