Install Wave Link first

This commit is contained in:
Manuel Thalmann 2024-08-11 18:27:16 +02:00
parent ca3792320d
commit b6a1f7323c

View file

@ -193,9 +193,19 @@ $null = New-Module {
& { & {
$driverPath = "$PSScriptRoot/../Drivers"; $driverPath = "$PSScriptRoot/../Drivers";
$mbPath = "$driverPath/ROG Zenith Extreme Alpha"; $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")) { 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;
@ -224,15 +234,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") {