Fix mixed-version installations after interrupted Windows updates #52

Open
github-bot wants to merge 2 commits from github-bot/gh-52 into main AGit
Owner

@⁠kyle7908 on GitHub · 2026-11-25 21:43 UTC · original
kyle7908:fix/windows-installer-rollback → main · +493 −62 · 3 files · 2 commits · open

Summary

Fixes mixed-version Windows installations after failed or interrupted updates. A synthetic lock test on DexNom main at 64bd58f reproduced the defect: Setup replaced victory.exe, then failed on a locked launcher and left both launchers at the old version.

The installer stages all executables and the saved game path, then publishes them in a transaction. It removes victory.exe first and publishes or restores it last so Play and Preload cannot start an incomplete installation. The next Setup rolls back interrupted publication or finishes cleaning up a committed transaction. Read-only backups are removed without changing attributes seen through other hard links. Existing saves, caches, and configuration are preserved.

This revision is based on 64bd58f. It preserves the RayTime install messages, the existing install directory, and all three upstream Start menu shortcuts, including the exact FSR Quality 4K arguments. The installer regression suite checks each shortcut's target, working directory, and arguments.

Validation

  • The full installer regression suite passed on Windows PowerShell 5.1 and PowerShell 7.6.9.
  • All 108 interruption snapshots passed, 54 on each PowerShell edition.
  • Rust workspace tests on Windows passed with 683 passed, 12 ignored, and 0 failed.
  • A release build and synthetic PE smoke test passed for fresh installation through Setup.cmd and update through PowerShell 7. The smoke test also verified both cross-process locks, the installed binary hashes, and preservation of the saved path and state.
  • Strict workspace Clippy passed with default and all features. Both workflows passed actionlint. The asset-policy check and independent review passed.

Validation used public source and synthetic fixtures. Physical power-loss behavior and gameplay remain untested.

AI disclosure

OpenAI Codex assisted with reproduction, implementation, regression testing, and pre-submission review.

**@⁠kyle7908** on GitHub · 2026-11-25 21:43 UTC · [original](https://github.com/DexNom/VIctory/pull/52) `kyle7908:fix/windows-installer-rollback` → `main` · +493 −62 · 3 files · 2 commits · open ## Summary Fixes mixed-version Windows installations after failed or interrupted updates. A synthetic lock test on DexNom main at 64bd58f reproduced the defect: Setup replaced victory.exe, then failed on a locked launcher and left both launchers at the old version. The installer stages all executables and the saved game path, then publishes them in a transaction. It removes victory.exe first and publishes or restores it last so Play and Preload cannot start an incomplete installation. The next Setup rolls back interrupted publication or finishes cleaning up a committed transaction. Read-only backups are removed without changing attributes seen through other hard links. Existing saves, caches, and configuration are preserved. This revision is based on 64bd58f. It preserves the RayTime install messages, the existing install directory, and all three upstream Start menu shortcuts, including the exact FSR Quality 4K arguments. The installer regression suite checks each shortcut's target, working directory, and arguments. ## Validation - The full installer regression suite passed on Windows PowerShell 5.1 and PowerShell 7.6.9. - All 108 interruption snapshots passed, 54 on each PowerShell edition. - Rust workspace tests on Windows passed with 683 passed, 12 ignored, and 0 failed. - A release build and synthetic PE smoke test passed for fresh installation through Setup.cmd and update through PowerShell 7. The smoke test also verified both cross-process locks, the installed binary hashes, and preservation of the saved path and state. - Strict workspace Clippy passed with default and all features. Both workflows passed actionlint. The asset-policy check and independent review passed. Validation used public source and synthetic fixtures. Physical power-loss behavior and gameplay remain untested. ## AI disclosure OpenAI Codex assisted with reproduction, implementation, regression testing, and pre-submission review.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:32:44 +00:00
github-bot force-pushed github-bot/gh-52 from 9a8a7b5152 to d12c433a92 2026-11-26 05:25:18 +00:00 Compare
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/52/head:github-bot/gh-52'
git switch 'github-bot/gh-52'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-52'
git switch 'github-bot/gh-52'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-52'
git switch 'github-bot/gh-52'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-52'
git switch 'main'
git merge --squash 'github-bot/gh-52'
git switch 'main'
git merge --ff-only 'github-bot/gh-52'
git switch 'main'
git merge 'github-bot/gh-52'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.