PortValhalla/scripts/Windows/Drivers/Predator Z301C/Install.ps1

18 lines
562 B
PowerShell
Raw Normal View History

2023-07-18 10:22:58 +00:00
#!/bin/pwsh
param($context)
2024-08-07 19:05:32 +00:00
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
2023-07-18 10:22:58 +00:00
[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;