أوامر لتثبيت برنامج Microsoft Data Migration Assistant دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Microsoft.DataMigrationAssistant -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DataMigrationAssistant -e --silentwinget uninstall --id Microsoft.DataMigrationAssistant -e --silentحسب المثبّت
64 بت · MSI · en-US
التثبيت الصامت
msiexec /i DataMigrationAssistant.msi /qn /norestartكتابة ملف سجل
msiexec /i DataMigrationAssistant.msi /qn /norestart /l*v "%TEMP%\microsoft-data-migration-assistant-install.log"إلغاء التثبيت
msiexec /x {6AB2C3EE-9B0E-4F8B-A0E2-712E915A86BD} /qn /norestart- رمز منتج MSI
- {6AB2C3EE-9B0E-4F8B-A0E2-712E915A86BD}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6AB2C3EE-9B0E-4F8B-A0E2-712E915A86BD}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-microsoft-data-migration-assistant.ps1
$url = 'https://download.microsoft.com/download/c/6/3/c63d8695-cef2-43c3-af0a-4989507e429b/DataMigrationAssistant.msi'
$sha256 = '2BD9D47770608EF6D47BFE6B698AD550506A6BCC36F71DCA8D1936BD82B42FC1'
$file = Join-Path $env:TEMP 'DataMigrationAssistant.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