Reworks CustomSetupTool updates to extract into a staging directory, commit files with deferred finalization, and recover interrupted updates via an on-disk lock and rollback of .new/.bak files. It also replaces direct ZIP handling with the shared 7-Zip wrapper and improves file comparison for ksi.dll.
The installer and uninstaller now handle symlinks/junctions, safer directory cleanup, protected install path validation, and better preservation of Windows integration state, including LaunchTM IFEO handling. The wizard/UI code was tightened up as well with safer allocations, dark-mode progress rendering, and improved update completion/error behavior.
Introduce an atomic two-phase extraction and commit flow for the setup tool: add staging (.new/.bak per-session) and commit/rollback/finalize helpers (SetupWriteFileAtomic, SetupCommitFile, SetupRollbackFile, SetupFinalizeFile, SetupGetSessionId) and use a staged list during extraction to commit files only after successful staging. Update SetupUseExistingKsi and SetupUpdateKsi to use file-size/content comparisons and safer rename semantics. Adjust progress reporting and skip/normalize architecture-specific paths during extraction.