أوامر لتثبيت برنامج Windows Application Driver دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Microsoft.WindowsApplicationDriver -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WindowsApplicationDriver -e --silentwinget uninstall --id Microsoft.WindowsApplicationDriver -e --silentحسب المثبّت
32 بت · MSI · en-US
التثبيت الصامت
msiexec /i WindowsApplicationDriver_1.2.1.msi /qn /norestartكتابة ملف سجل
msiexec /i WindowsApplicationDriver_1.2.1.msi /qn /norestart /l*v "%TEMP%\windows-application-driver-install.log"إلغاء التثبيت
msiexec /x {087BBF93-D9E3-4D27-BDBE-9C702E0066FC} /qn /norestart- رمز منتج MSI
- {087BBF93-D9E3-4D27-BDBE-9C702E0066FC}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{087BBF93-D9E3-4D27-BDBE-9C702E0066FC}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-windows-application-driver.ps1
$url = 'https://github.com/microsoft/WinAppDriver/releases/download/v1.2.1/WindowsApplicationDriver_1.2.1.msi'
$sha256 = 'A76A8F4E44B29BAD331ACF6B6C248FCC65324F502F28826AD2ACD5F3C80857FE'
$file = Join-Path $env:TEMP 'WindowsApplicationDriver_1.2.1.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