Install Wave Link first

This commit is contained in:
Manuel Thalmann 2024-08-11 18:27:16 +02:00
parent 8ad456c0a3
commit b1e4560337

View file

@ -197,8 +197,18 @@ $null = New-Module {
$driverPath = "$PSScriptRoot/../Drivers"; $driverPath = "$PSScriptRoot/../Drivers";
$mbPath = "$driverPath/ROG Zenith Extreme Alpha"; $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) { switch ($component) {
("ROG Zenith Extreme Alpha") { ("ROG Zenith Extreme Alpha") {
& "$mbPath/MarvellEthernet/Manage.ps1" @arguments; & "$mbPath/MarvellEthernet/Manage.ps1" @arguments;
@ -227,15 +237,6 @@ $null = New-Module {
if (Get-Config "valhalla.hardware.corsairDevice") { if (Get-Config "valhalla.hardware.corsairDevice") {
Install-ChocoPackage icue; 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") { if (Get-Config "valhalla.hardware.eyeX") {