2024-11-01 12:12:16 +00:00
|
|
|
. "$PSScriptRoot/../../../lib/Software.ps1";
|
|
|
|
. "$PSScriptRoot/../../../lib/System.ps1";
|
2024-08-07 14:17:49 +00:00
|
|
|
|
2024-10-13 20:07:44 +00:00
|
|
|
Start-SoftwareInstaller -Force @args `
|
2024-08-07 14:17:49 +00:00
|
|
|
-Installer {
|
|
|
|
$dir = New-TemporaryDirectory;
|
|
|
|
$file = "driver.zip";
|
|
|
|
|
|
|
|
$null = Push-Location $dir;
|
|
|
|
Invoke-WebRequest "https://global-download.acer.com/GDFiles/Driver/Monitor/Monitor_Acer_1.0_W7x86W7x64W8x86W8x64_A.zip?acerid=636092441703392074" -OutFile $file;
|
|
|
|
Expand-Archive $file;
|
2024-11-29 00:13:58 +00:00
|
|
|
$null = Start-Process -Wait -FilePath "pnputil" -ArgumentList "/add-driver", "*.inf", "/install", "/subdirs";
|
2024-08-07 14:17:49 +00:00
|
|
|
$null = Pop-Location;
|
|
|
|
|
|
|
|
Remove-Item -Recurse $dir;
|
|
|
|
};
|