Repository navigation
Template 0.1.45: one entry per app in Windows Installed apps - #69
Merged
Merged
Conversation
post_install.bat wrote its own Installed apps entry next to constructor's "<app> <version> (Python 3.x 64-bit)" entry, both pointing to the same uninstaller. The uninstaller removes only the first one it finds, so the "(Python ...)" entry stayed with an uninstaller that was gone (found by the LabConstrictor-CAREamics 0.0.5 testers on two Windows 11 computers). post_install.bat now writes no entry, and at each release bump_constructor.py writes uninstall_name (the app's name) and company (the repository owner) in construct.yaml, so constructor's single entry looks as before. The 0.1.45 migration replaces bump_constructor.py and removes the block from apps whose files are still the template's; the design note says how to remove a stale entry left by an older install. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp9AoUT3RtgWWsiVVarX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Found by the LabConstrictor-CAREamics 0.0.5 testers on two Windows 11 computers: after uninstalling, a "Python" entry stayed in Settings > Apps > Installed apps, and removing it failed because its uninstaller was gone.
Cause, traced in constructor's
main.nsi.tmpl:post_install.batwrote its own entry (key<app>) next to constructor's own entry (<app> <version> (Python 3.x 64-bit)), and both pointed to the sameUninstall-<app>.exe.UninstallStringnames its own folder. Windows lists the shorter key first, so the "(Python …)" entry stayed.post_installruns, sopost_installcan't change it.What
post_install.batwrites no Installed apps entry any more. Constructor's entry is the only one, and its uninstaller removes it.bump_constructor.py, which runs at each release, writesuninstall_name: "<app>"andcompany: "<GITHUB_REPOSITORY_OWNER>"intoconstruct.yaml. Constructor's entry therefore has the same name and publisher the removed block gave it. The version and icon come from the installer, as before.bump_constructor.pywhen it is still the 0.1.44 file. The comparison takes into account the app name the setup form filled in forPROJECT_NAME.post_install.batwith threeREMlines when the block is still the template's, with the app's values filled in..tools/docs/migration_0_1_45.md, including PowerShell lines to remove a stale entry left by an older install.post_installwrites no entry of its own.Checks run
pytest tests(619 passed),ruff 0.15.20andmypypass.bump_constructor.pywithGITHUB_REPOSITORY_OWNER=guijacquemetaddeduninstall_name: "LabConstrictor-CAREamics"andcompany: "guijacquemet"to itsconstruct.yaml.Generated by Claude Code