Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Andrey Lushnikovd4e50bedf193
diff --git a/bin/install_media_pack.ps1 b/bin/install_media_pack.ps1
index 7812422d5f..6170754291 100644
--- a/bin/install_media_pack.ps1
+++ b/bin/install_media_pack.ps1
@@ -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
+}