Install drivers in proper phase

This commit is contained in:
Manuel Thalmann 2024-08-07 18:54:07 +02:00
parent a11646372a
commit 88c765b06e

View file

@ -144,26 +144,28 @@ $null = New-Module {
} }
} }
if (Get-Config "valhalla.hardware.amdCPU") { if (-not $Action -or ($Action -eq ([InstallerAction]::Install))) {
Install-ChocoPackage amd-ryzen-master; if (Get-Config "valhalla.hardware.amdCPU") {
# ToDo: backup Ryzen energy saving plan Install-ChocoPackage amd-ryzen-master;
} # ToDo: backup Ryzen energy saving plan
}
if (Get-Config "valhalla.hardware.nvidiaGPU") { if (Get-Config "valhalla.hardware.nvidiaGPU") {
Install-ChocoPackage geforce-game-ready-driver; Install-ChocoPackage geforce-game-ready-driver;
Remove-DesktopIcon "*Geforce*"; Remove-DesktopIcon "*Geforce*";
} }
if (Get-Config "valhalla.hardware.corsairLighting") { if (Get-Config "valhalla.hardware.corsairLighting") {
Install-ChocoPackage icue; Install-ChocoPackage icue;
} }
if (Get-Config "valhalla.hardware.elgatoWave") { if (Get-Config "valhalla.hardware.elgatoWave") {
if (-not (Test-ChocoPackage wavelink)) { if (-not (Test-ChocoPackage wavelink)) {
Install-ChocoPackage wavelink -ArgumentList '--install-arguments="/norestart"'; Install-ChocoPackage wavelink -ArgumentList '--install-arguments="/norestart"';
Remove-DesktopIcon "*Wave Link*"; Remove-DesktopIcon "*Wave Link*";
Restart-Intermediate; Restart-Intermediate;
exit; exit;
}
} }
} }