أوامر لتثبيت برنامج Plex HTPC دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Plex.PlexHTPC -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Plex.PlexHTPC -e --silentwinget uninstall --id Plex.PlexHTPC -e --silentحسب المثبّت
64 بت · EXE (NSIS) · جميع المستخدمين
التثبيت الصامت
PlexHTPC-1.71.1.346-f62ce923-x86_64.exe /Sمجلد مخصص
PlexHTPC-1.71.1.346-f62ce923-x86_64.exe /S /D=C:\Apps\plex-htpc- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Plex HTPC
- مجلد التثبيت
- %ProgramFiles%\Plex\Plex HTPC
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-plex-htpc.ps1
$url = 'https://downloads.plex.tv/htpc/1.71.1.346-f62ce923/windows/PlexHTPC-1.71.1.346-f62ce923-x86_64.exe'
$sha256 = '393CEB870F9D325025FB964869CA1FBD3AC7247FAE9798038EE9F726BD13A001'
$file = Join-Path $env:TEMP 'PlexHTPC-1.71.1.346-f62ce923-x86_64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait