From b1e45603378d94836b23c7b382c57088a3599aa3 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 99552c2d..98b458c0 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -197,8 +197,18 @@ $null = New-Module { $driverPath = "$PSScriptRoot/../Drivers"; $mbPath = "$driverPath/ROG Zenith Extreme Alpha"; - foreach ($component in (Get-Config "valhalla.hardware.components")) { + 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; @@ -227,15 +237,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") {