Add scripts for installing drivers
This commit is contained in:
parent
2f950d89ba
commit
a541982ac4
11
scripts/Windows/Drivers/AMDChipsetX399/Manage.ps1
Normal file
11
scripts/Windows/Drivers/AMDChipsetX399/Manage.ps1
Normal file
|
@ -0,0 +1,11 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
Install-AmdPackage "https://www.amd.com/en/support/downloads/drivers.html/chipsets/tr4/x399.html";
|
||||
};
|
21
scripts/Windows/Drivers/Predator Z301C/Manage.ps1
Normal file
21
scripts/Windows/Drivers/Predator Z301C/Manage.ps1
Normal file
|
@ -0,0 +1,21 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/System.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-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;
|
||||
$null = Start-Process -Wait -FilePath "pnputil" -ArgumentList "/add-driver","*.inf","/install","/subdirs";
|
||||
$null = Pop-Location;
|
||||
|
||||
Remove-Item -Recurse $dir;
|
||||
};
|
|
@ -0,0 +1,11 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
Install-AsusPackage "https://dlcdnets.asus.com/pub/ASUS/mb/03CHIPSET/DRV_Chipset_AMD_TRX40_TP_TSD_W10_64_V30901140_20211006R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA";
|
||||
};
|
|
@ -0,0 +1,11 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
Install-AsusPackage "https://dlcdnets.asus.com/pub/ASUS/mb/02BT/DRV_Bluetooth_Intel_9260_TP_W11_64_V2210002_20211222R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA";
|
||||
};
|
|
@ -0,0 +1,11 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
Install-AsusPackage "https://dlcdnets.asus.com/pub/ASUS/mb/08WIRELESS/DRV_WiFi_Intel_TP_W11_64_V2219004_20230130R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA";
|
||||
};
|
|
@ -0,0 +1,11 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
Install-AsusPackage "https://dlcdnets.asus.com/pub/ASUS/mb/04LAN/DRV_LAN_Marvell_TP_TSD_W11_64_V3130_20211118R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA";
|
||||
};
|
11
scripts/Windows/Drivers/Tobii EyeX/Manage.ps1
Normal file
11
scripts/Windows/Drivers/Tobii EyeX/Manage.ps1
Normal file
|
@ -0,0 +1,11 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
Install-SetupPackage -Source "https://files.update.tech.tobii.com/Tobii_Eye_Tracking_Core_v2.16.8.214_x86.exe";
|
||||
};
|
|
@ -123,6 +123,51 @@ $null = New-Module {
|
|||
$arguments.Add("action", $Action);
|
||||
}
|
||||
|
||||
# Drivers
|
||||
$null = New-Module {
|
||||
$driverPath = "$PSScriptRoot/../Drivers";
|
||||
$mbPath = "$driverPath/ROG Zenith Extreme Alpha";
|
||||
|
||||
foreach ($component in (Get-Config "valhalla.hardware.components")) {
|
||||
|
||||
switch ($component) {
|
||||
("ROG Zenith Extreme Alpha") {
|
||||
. "$mbPath/MarvellEthernet/Manage.ps1" @arguments;
|
||||
. "$mbPath/IntelWiFi/Manage.ps1" @arguments;
|
||||
. "$mbPath/IntelBluetooth/Manage.ps1" @arguments;
|
||||
. "$mbPath/AMDChipsetX399/Manage.ps1" @arguments;
|
||||
. "$driverPath/AMDChipsetX399/Manage.ps1" @arguments;
|
||||
}
|
||||
("Predator Z301C") {
|
||||
. "$driverPath/Predator Z301C/Manage.ps1" @arguments;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Get-Config "valhalla.hardware.amdCPU") {
|
||||
Install-ChocoPackage amd-ryzen-master;
|
||||
# ToDo: backup Ryzen energy saving plan
|
||||
}
|
||||
|
||||
if (Get-Config "valhalla.hardware.nvidiaGPU") {
|
||||
Install-ChocoPackage geforce-game-ready-driver;
|
||||
Remove-DesktopIcon "*Geforce*";
|
||||
}
|
||||
|
||||
if (Get-Config "valhalla.hardware.corsairLighting") {
|
||||
Install-ChocoPackage icue;
|
||||
}
|
||||
|
||||
if (Get-Config "valhalla.hardware.elgatoWave") {
|
||||
Install-ChocoPackage wavelink;
|
||||
Remove-DesktopIcon "*Wave Link*";
|
||||
}
|
||||
|
||||
if (Get-Config "valhalla.hardware.eyeX") {
|
||||
. "$driverPath/Tobii EyeX/Manage.ps1" @arguments;
|
||||
}
|
||||
};
|
||||
|
||||
# Windows Config
|
||||
. "$PSScriptRoot/../Software/Windows/Manage.ps1" @arguments;
|
||||
|
||||
|
|
Loading…
Reference in a new issue