أوامر لتثبيت برنامج Log Parser 2.2 دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Microsoft.LogParser -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.LogParser -e --silentwinget uninstall --id Microsoft.LogParser -e --silentحسب المثبّت
32 بت · MSI · en-US
التثبيت الصامت
msiexec /i LogParser.msi /qn /norestartكتابة ملف سجل
msiexec /i LogParser.msi /qn /norestart /l*v "%TEMP%\log-parser-2-2-install.log"إلغاء التثبيت
msiexec /x {4AC23178-EEBC-4BAF-8CC0-AB15C8897AC9} /qn /norestart- رمز منتج MSI
- {4AC23178-EEBC-4BAF-8CC0-AB15C8897AC9}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{4AC23178-EEBC-4BAF-8CC0-AB15C8897AC9}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-log-parser-2-2.ps1
$url = 'https://download.microsoft.com/download/f/f/1/ff1819f9-f702-48a5-bbc7-c9656bc74de8/LogParser.msi'
$sha256 = '7BBFDFB52A8D92A105ED2FCCDF0E44D8FB2ED49F0358390DD921886C14E9E32C'
$file = Join-Path $env:TEMP 'LogParser.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