أوامر لتثبيت برنامج Copilot modernization agent دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو 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.95_windows_x64.msi /qn /norestartكتابة ملف سجل
msiexec /i modernize_1.0.95_windows_x64.msi /qn /norestart /l*v "%TEMP%\copilot-modernization-agent-install.log"إلغاء التثبيت
msiexec /x {66F937DF-3767-433A-AC05-1446E853B750} /qn /norestart- رمز منتج MSI
- {66F937DF-3767-433A-AC05-1446E853B750}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{66F937DF-3767-433A-AC05-1446E853B750}
ARM64 · MSI · en-US
التثبيت الصامت
msiexec /i modernize_1.0.95_windows_arm64.msi /qn /norestartكتابة ملف سجل
msiexec /i modernize_1.0.95_windows_arm64.msi /qn /norestart /l*v "%TEMP%\copilot-modernization-agent-install.log"إلغاء التثبيت
msiexec /x {2F43A103-766E-4238-A0BF-F1B2989954D6} /qn /norestart- رمز منتج MSI
- {2F43A103-766E-4238-A0BF-F1B2989954D6}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2F43A103-766E-4238-A0BF-F1B2989954D6}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-copilot-modernization-agent.ps1
$url = 'https://github.com/microsoft/modernize-cli/releases/download/v1.0.95/modernize_1.0.95_windows_x64.msi'
$sha256 = '1D4DC4E8D120AD8C569BA52BFBB83BD5B888E18EE04565EE1A11225199CA3CA0'
$file = Join-Path $env:TEMP 'modernize_1.0.95_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.95/modernize_1.0.95_windows_arm64.msi'
$sha256 = 'D8DC9F2557664010A393EA08ECE3FF0C06318945E67173C7A87B2D38DE173157'
$file = Join-Path $env:TEMP 'modernize_1.0.95_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