From 6db73090bdc913ff4a3dea7993c3721de0a400b3 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 8 Aug 2024 23:03:10 +0200 Subject: [PATCH] Reorder installation steps --- scripts/Windows/OS/Install.ps1 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 265255a2..3b006a0d 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -89,14 +89,9 @@ $null = New-Module { wsl --shutdown; continue; } - - Invoke-Hook "Install-PSModules" -Fallback { - Install-Module -AcceptLicense -Force PSWindowsUpdate; - Install-Module -AcceptLicense -Force PSScriptAnalyzer; - . "$PSScriptRoot/../Software/PinnedItem/Manage.ps1"; - }; if (-not (Test-PSPackage Selenium.WebDriver)) { + Write-Host "Installing browser automation tools…"; Install-Module -AcceptLicense -Force NuGet; Import-Module NuGet; $null = Install-Package -Force Selenium.WebDriver -RequiredVersion 4.10.0 -SkipDependencies; @@ -104,6 +99,13 @@ $null = New-Module { } Install-ChocoPackage selenium-gecko-driver firefox; + + Invoke-Hook "Install-PSModules" -Fallback { + Install-Module -AcceptLicense -Force PSWindowsUpdate; + Install-Module -AcceptLicense -Force PSScriptAnalyzer; + . "$PSScriptRoot/../Software/PinnedItem/Manage.ps1"; + }; + Set-Stage ([SetupStage]::Configure); } else { $null = Import-Module PSWindowsUpdate;