xetup/scripts
X9 Dev 5e01826a49
All checks were successful
release / build-and-release (push) Successful in 24s
feat: state machine for reboot-resume across Windows Update cycles
xetup.exe now acts as an orchestrator across system reboots:
- PS scripts exit 9 to signal "reboot needed, re-run me" (WU) or
  "done but reboot needed to finalize" (Dell BIOS)
- On exit 9: xetup saves state.json, ensures adminx9 account,
  copies itself to stable path, enables autologon, registers
  X9-Resume scheduled task (AtLogOn adminx9, RunLevel Highest)
- On resume: loads pending steps from state, continues seamlessly
  with "Pokracuji po restartu..." label in the run window
- On completion: disables autologon, removes X9-Resume task,
  deletes state file, shows summary with accumulated results
  across all reboot rounds

New packages: internal/state, internal/prereboot
Script 12: simplified to exit 0 (done) or exit 9 (reboot needed)
Script 11: exit 9 when DCU exit code 1 (BIOS staged, reboot needed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 17:09:53 +02:00
..
00-admin-account.ps1 Fixes, Windows Update (step 12), auto-reboot, PS window hide 2026-04-16 14:49:41 +02:00
01-bloatware.ps1 Fixes, Windows Update (step 12), auto-reboot, PS window hide 2026-04-16 14:49:41 +02:00
02-software.ps1 fix: mount HKCR PSDrive before PDF association writes 2026-04-16 15:13:11 +02:00
03-system-registry.ps1 fix: taskbar pins, Edge NTP, black bg, step progress strip 2026-04-16 15:28:38 +02:00
04-default-profile.ps1 fix: create File Explorer.lnk explicitly + autologon for WU rounds 2026-04-16 16:07:48 +02:00
05-personalization.ps1 fix: black BackInfo bg + wrong taskbar accent color 2026-04-16 15:58:53 +02:00
06-scheduled-tasks.ps1 Fixes, Windows Update (step 12), auto-reboot, PS window hide 2026-04-16 14:49:41 +02:00
07-backinfo.ps1 Fixes, Windows Update (step 12), auto-reboot, PS window hide 2026-04-16 14:49:41 +02:00
07-desktop-info.ps1 Fixes, Windows Update (step 12), auto-reboot, PS window hide 2026-04-16 14:49:41 +02:00
08-activation.ps1 Fixes, Windows Update (step 12), auto-reboot, PS window hide 2026-04-16 14:49:41 +02:00
09-pc-identity.ps1 Fixes, Windows Update (step 12), auto-reboot, PS window hide 2026-04-16 14:49:41 +02:00
10-network.ps1 Fixes, Windows Update (step 12), auto-reboot, PS window hide 2026-04-16 14:49:41 +02:00
11-dell-update.ps1 feat: state machine for reboot-resume across Windows Update cycles 2026-04-16 17:09:53 +02:00
12-windows-update.ps1 feat: state machine for reboot-resume across Windows Update cycles 2026-04-16 17:09:53 +02:00