Skip to content

Commit d4e50be

Browse files
authored
fix: do not install media pack on non-server windows (#6925)
1 parent 4b5ad33 commit d4e50be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/install_media_pack.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
Install-WindowsFeature Server-Media-Foundation
1+
$osInfo = Get-WmiObject -Class Win32_OperatingSystem
2+
# check if running on Windows Server
3+
if ($osInfo.ProductType -eq 3) {
4+
Install-WindowsFeature Server-Media-Foundation
5+
}

0 commit comments

Comments
 (0)