Detecting Python Installs from the Windows Registry

Fuzzyman fuzzyman at gmail.com
Fri Jan 6 09:01:17 EST 2006


Hello all,

I'm creating a py2exe program (for Windows) that needs to detect all
version of Python installed on the machine.

Because it is running under py2exe it doesn't have access to the Python
environment variables.

Does anyone know how to use _winreg to get path information (location
of install) for all versions of Python installed (and also which is the
most recent) ?

Googling the group didn't quickly turn up the answer, and I thought
*someone* was likely to know easily...

Thanks

Fuzzyman
http://www.voidspace.org.uk/python/idnex.shtml




More information about the Python-list mailing list