Reorder installation steps

This commit is contained in:
Manuel Thalmann 2024-08-08 23:03:10 +02:00
parent d86d27e8de
commit 2ea5578a54

View file

@ -89,14 +89,9 @@ $null = New-Module {
wsl --shutdown; wsl --shutdown;
continue; 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)) { if (-not (Test-PSPackage Selenium.WebDriver)) {
Write-Host "Installing browser automation tools…";
Install-Module -AcceptLicense -Force NuGet; Install-Module -AcceptLicense -Force NuGet;
Import-Module NuGet; Import-Module NuGet;
$null = Install-Package -Force Selenium.WebDriver -RequiredVersion 4.10.0 -SkipDependencies; $null = Install-Package -Force Selenium.WebDriver -RequiredVersion 4.10.0 -SkipDependencies;
@ -104,6 +99,13 @@ $null = New-Module {
} }
Install-ChocoPackage selenium-gecko-driver firefox; 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); Set-Stage ([SetupStage]::Configure);
} else { } else {
$null = Import-Module PSWindowsUpdate; $null = Import-Module PSWindowsUpdate;