Fix infinite loop

This commit is contained in:
Manuel Thalmann 2024-03-23 22:38:11 +01:00
parent 04e8ae1197
commit 29d74b3a27

View file

@ -69,7 +69,7 @@ function Start-WindowsInstallation([Context] $context) {
winget install --accept-source-agreements --accept-package-agreements -e --id AutoHotkey.AutoHotkey;
$context.Set("SoftwarePrerequisitesInstalled", 1, "DWord");
$context.SetStage($driverStage);
break;
}
$driverStage {
@ -81,7 +81,7 @@ function Start-WindowsInstallation([Context] $context) {
}
Write-Information "Finished installing drivers";
$context.SetStage("DriversInstalled", 1, "DWord");
$context.SetStage($softwareStage);
$context.Reboot();
exit;
}