Fix infinite loop
This commit is contained in:
parent
04e8ae1197
commit
29d74b3a27
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ function Start-WindowsInstallation([Context] $context) {
|
||||||
|
|
||||||
winget install --accept-source-agreements --accept-package-agreements -e --id AutoHotkey.AutoHotkey;
|
winget install --accept-source-agreements --accept-package-agreements -e --id AutoHotkey.AutoHotkey;
|
||||||
|
|
||||||
$context.Set("SoftwarePrerequisitesInstalled", 1, "DWord");
|
$context.SetStage($driverStage);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$driverStage {
|
$driverStage {
|
||||||
|
@ -81,7 +81,7 @@ function Start-WindowsInstallation([Context] $context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Information "Finished installing drivers";
|
Write-Information "Finished installing drivers";
|
||||||
$context.SetStage("DriversInstalled", 1, "DWord");
|
$context.SetStage($softwareStage);
|
||||||
$context.Reboot();
|
$context.Reboot();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue