This changeset tightens cache file path handling in phlib by validating leaf names, honoring native vs Win32 path modes consistently, and using the correct directory creation path. It also fixes several functional regressions across the app and plugins: module list filter refresh after highlight toggles, ETW endpoint/port mapping, aggregate sort field usage, graph child window clipping, safer uninstall status text handling, previous-instance shutdown in setup, and improved window-message timeout handling. Additional updates clean up initialization/casts, remove dead code, and address small correctness issues in formatting and utility logic.
Introduce a new setup wizard implementation (wizard.c) and wire it into the project. Add dialog resources and embed a PNG sidebar image and update resource IDs. Enable dark-mode rendering for wizard/task dialog pages and controls and add helper functions for applying dark styling. Fix archive path handling in extract.c by normalizing prefix checks and trimming architecture prefixes consistently. Harden file commit/rollback logic in util.c: proactively remove stale .bak files, use safer rename semantics, adjust access flags, ensure proper cleanup/dereference paths and error handling.
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.