Skip to content

Conversation

@zooba
Copy link
Member

@zooba zooba commented Apr 29, 2025

pep514utils now attempts to move existing registry entries if they appear invalid. This should reduce the likelihood of bad MSI uninstalls causing repeated warnings for the rest of time, at a small risk of corrupting (intentionally useless) entries.

pep514utils now attempts to move existing registry entries if they appear invalid.
This should reduce the likelihood of bad MSI uninstalls causing repeated warnings
for the rest of time, at a small risk of corrupting (intentionally useless) entries.
# if InstallPath refers to a directory that exists,
# leave it alone.
p = winreg.QueryValueEx(subkey, None)[0]
if p and Path(p).exists():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if p and Path(p).exists():
if p and Path(p).is_dir():

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather be vague here, play it safe.

@zooba zooba merged commit 9817099 into python:main Apr 29, 2025
4 checks passed
@zooba zooba deleted the gh-11 branch April 29, 2025 17:42
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.

2 participants