From f1e9004623ac8210749cb2feb15adfaf97a8b210 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 18 Jul 2023 12:22:58 +0200 Subject: [PATCH] Install display driver --- profiles/DerGeret/Windows/Drivers.ps1 | 1 + .../Windows/Drivers/Predator Z301C/Install.ps1 | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 scripts/Windows/Drivers/Predator Z301C/Install.ps1 diff --git a/profiles/DerGeret/Windows/Drivers.ps1 b/profiles/DerGeret/Windows/Drivers.ps1 index 29dcad81..6b6486fb 100644 --- a/profiles/DerGeret/Windows/Drivers.ps1 +++ b/profiles/DerGeret/Windows/Drivers.ps1 @@ -12,6 +12,7 @@ function Install-PortValhallaDrivers { . "$mbDriverPath/MarvellEthernet/Install.ps1" $context; . "$mbDriverPath/IntelWiFi/Install.ps1" $context; . "$mbDriverPath/AMDChipsetX399/Install.ps1" $context; + . "$driverPath/Predator Z301C/Install.ps1" $context; . "$mbDriverPath/IntelBluetooth/Install.ps1" $context; . "$driverPath/AMDChipsetX399/Install.ps1" $context; . "$driverPath/Tobii EyeX/Install.ps1" $context; diff --git a/scripts/Windows/Drivers/Predator Z301C/Install.ps1 b/scripts/Windows/Drivers/Predator Z301C/Install.ps1 new file mode 100644 index 00000000..5baa3c75 --- /dev/null +++ b/scripts/Windows/Drivers/Predator Z301C/Install.ps1 @@ -0,0 +1,17 @@ +#!/bin/pwsh +param($context) + + +. "$PSScriptRoot/../../Scripts/Context.ps1"; +[Context]$context = $context; + +$tempDir = $context.GetTempDirectory(); +$fileName = "driver.zip"; +Push-Location $tempDir; + +Invoke-WebRequest "https://global-download.acer.com/GDFiles/Driver/Monitor/Monitor_Acer_1.0_W7x86W7x64W8x86W8x64_A.zip?acerid=636092441703392074" -OutFile $fileName; +Expand-Archive $fileName; +Start-Process -Wait -FilePath "pnputil" -ArgumentList ([string[]]@("/add-driver", "*.inf", "/install", "/subdirs")); + +Pop-Location; +Remove-Item -Recurse $tempDir;