Fix non-functioning code

This commit is contained in:
Manuel Thalmann 2023-07-16 01:27:38 +02:00
parent df0ba4da11
commit 0b08f97a63

View file

@ -19,7 +19,7 @@ function Invoke-WindowsInstallation([Context] $context)
choco install -y firefox selenium-gecko-driver; choco install -y firefox selenium-gecko-driver;
Install-Package -Force Selenium.WebDriver -SkipDependencies; Install-Package -Force Selenium.WebDriver -SkipDependencies;
$context.Set("SoftwarePrerequisitesInstalled", 1); $context.Set("SoftwarePrerequisitesInstalled", 1, "DWord");
} }
if (-not $context.Get("DriversInstalled")) { if (-not $context.Get("DriversInstalled")) {
@ -32,7 +32,7 @@ function Invoke-WindowsInstallation([Context] $context)
} }
Write-Information "Finished installing drivers"; Write-Information "Finished installing drivers";
$context.Set("DriversInstalled", 1); $context.Set("DriversInstalled", 1, "DWord");
$context.Reboot(); $context.Reboot();
exit; exit;
} }