From 871eafe5db1af1a3607ebb098c3bba708935b089 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 11 Aug 2024 18:27:16 +0200 Subject: [PATCH] Install Wave Link first --- scripts/Windows/OS/Install.ps1 | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 4523907d..f7711906 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -193,9 +193,19 @@ $null = New-Module { & { $driverPath = "$PSScriptRoot/../Drivers"; $mbPath = "$driverPath/ROG Zenith Extreme Alpha"; + + if ($install) { + if (Get-Config "valhalla.hardware.elgatoWave") { + if (-not (Test-ChocoPackage wavelink)) { + Install-ChocoPackage wavelink -ArgumentList '--install-arguments="/norestart"'; + Remove-DesktopIcon "*Wave Link*"; + Restart-Intermediate; + exit; + } + } + } foreach ($component in (Get-Config "valhalla.hardware.components")) { - switch ($component) { ("ROG Zenith Extreme Alpha") { & "$mbPath/MarvellEthernet/Manage.ps1" @arguments; @@ -224,15 +234,6 @@ $null = New-Module { if (Get-Config "valhalla.hardware.corsairDevice") { Install-ChocoPackage icue; } - - if (Get-Config "valhalla.hardware.elgatoWave") { - if (-not (Test-ChocoPackage wavelink)) { - Install-ChocoPackage wavelink -ArgumentList '--install-arguments="/norestart"'; - Remove-DesktopIcon "*Wave Link*"; - Restart-Intermediate; - exit; - } - } } if (Get-Config "valhalla.hardware.eyeX") {