diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 936ad5f0..4d1461c9 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") {