Skip to content

fix(px190): keep WinGet data outside the package directory - #212

Open
spk-c wants to merge 4 commits into
mainfrom
fix/px190-winget-inno-data-retention
Open

spk-c wants to merge 4 commits into
mainfrom
fix/px190-winget-inno-data-retention

Conversation

@spk-c

@spk-c spk-c commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Relates to #190 (PX-507). On Windows 10, the old WinGet portable draft removed an in-package data marker on upgrade and another on uninstall with --preserve. The revised 0.6.0 and 0.6.1 drafts use the published per-user Inno installers; installed-mode state lives outside the application directory. Scoop still uses the pinned portable ZIP.

The docs describe the backup-first transition from a portable draft, collision avoidance, and rollback. No automatic data migration or release publication. The distribution verifier checks the independent artifact pins and per-user Inno metadata.

Checks passed: WinGet schema validation for both drafts, six optimized-Python manifest regressions, 281 Windows offline suites, manifest validation and diff check. Direct Inno lifecycle was previously verified in the Windows guest. WinGet 1.29.380 on Windows 10 x64 passed installation, 0.6.0 to 0.6.1 upgrade, uninstall, and reinstall of 0.6.0. The LocalAppData marker retained its SHA-256 throughout. The VM was reverted to its test baseline afterward. Publication and sign-off remain pending.

spk-c commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Independent Windows regression via SentinelX, exact commit 97e3e135cb8c1b6e70c6eebe8326598323f33b03, isolated git archive: test_distribution_validation_security.py 6/6 PASS; python -O scripts/validate_distributions.py PASS. Both v0.6.0 and v0.6.1 Inno installer digests and v0.6.1 ZIP digest also match GitHub release asset metadata. This is not an independent real package lifecycle or registry acceptance. Distribution CI remains pending.

spk-c commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Additional independent negative test on 97e3e135: replacing the v0.6.0 WinGet InstallerSha256 with 64 zeros in a disposable archive still yields exit 0 from python -O scripts/validate_distributions.py. The current validator checks only the Scoop-selected v0.6.1 folder, although this PR changes both WinGet drafts. Please pin the verified v0.6.0 Inno digest and validate both version folders, adding a regression test for tampered historical installer hashes. Do not publish or merge until resolved and CI passes.

spk-c commented Nov 26, 2026

Copy link
Copy Markdown
Owner Author

Fixed the independently reproduced historical WinGet integrity gap in commits 48d3925 and a01b6ac. Both published Inno installer digests are now pinned; every version folder is validated and missing/unpinned folders are rejected. Isolated Windows test on the combined changes: 9/9 regression tests PASS, optimized validator PASS. No local Codex worktree changes, package publication or release changes. Await new head CI before merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant