From 6f93edea542fdfa61ff7e042f420e755a9049066 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 7 Aug 2024 13:36:31 +0200 Subject: [PATCH] Install components for browser automation --- scripts/Windows/OS/Install.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index be1328ad..a6979c02 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -11,6 +11,7 @@ $null = New-Module { . "$PSScriptRoot/../Scripts/Hooks.ps1"; . "$PSScriptRoot/../Scripts/Operations.ps1"; . "$PSScriptRoot/../Scripts/PowerManagement.ps1"; + . "$PSScriptRoot/../Scripts/Software.ps1"; . "$PSScriptRoot/../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../Scripts/Update.ps1"; . "$PSScriptRoot/../Types/InstallerAction.ps1"; @@ -70,6 +71,15 @@ $null = New-Module { continue; } + if (-not (Test-PSPackage Selenium.WebDriver)) { + Install-Module -AcceptLicense -Force NuGet; + Import-Module NuGet; + $null = Install-Package -Force Selenium.WebDriver -RequiredVersion 4.10.0 -SkipDependencies; + continue; + } + + Install-ChocoPackage firefox; + if (-not (& { wsl --status; $?; })) { wsl --install --no-launch; Restart-Intermediate;