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.
Refines theme behavior in phlib and ToolStatus so dark mode only applies when the active background is actually dark, and ensures property sheets, tabs, and control colors repaint correctly. Rebar bands now get explicit themed colors on insert and via a new refresh path during settings/theme updates, fixing stale/light band areas during live theme mode switches.
CustomBuildTool now adds `-portsgen` to regenerate NetworkTools port mappings from the IANA CSV and `-update-copyright` to update existing author year ranges from git history. It also vendors the IANA CSV, rewrites the generated block in `plugins/NetworkTools/ports.c`, and updates CLI help text.
The build pipeline was tightened by fixing `settings.schema.json` copy handling (source path + filename-only destination), and header generation now includes `ntnsi.h`. Author year headers in affected tool sources were updated to 2026 to match the new copyright updater behavior.
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.