Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • The RegValueExists(Root, Key, '') checks for an existence of the default value in the key. I do not have that specific Python version installed. But checking the versions I do have installed, they indeed have the default value in their InstallPath subkeys. So it's quite possible that OP's code works in that particular respect. Otherwise, your code seems better in respect to testing Python installation. But I still believe you are not answering OP's question. Consider starting a new question about detecting Python installation and self-answer it. I'll be happy to upvote your posts then. Commented Jan 19, 2021 at 12:34