fix: do not install media pack on non-server windows (#6925)

This commit is contained in:
Andrey Lushnikov 2021-06-06 14:22:05 -07:00 committed by GitHub
parent 4b5ad33cf8
commit d4e50bedf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1 +1,5 @@
Install-WindowsFeature Server-Media-Foundation
$osInfo = Get-WmiObject -Class Win32_OperatingSystem
# check if running on Windows Server
if ($osInfo.ProductType -eq 3) {
Install-WindowsFeature Server-Media-Foundation
}