Kommandon för att installera Plex HTPC utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
PlexHTPC-1.71.1.346-f62ce923-x86_64.exe /SEgen mapp
PlexHTPC-1.71.1.346-f62ce923-x86_64.exe /S /D=C:\Apps\plex-htpc- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Plex HTPC
- Installationsmapp
- %ProgramFiles%\Plex\Plex HTPC
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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