fix: do not install media pack on non-server windows (#6925)
This commit is contained in:
parent
4b5ad33cf8
commit
d4e50bedf1
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue