[Tutor] Windows software reporting

Alan Gauld alan.gauld at blueyonder.co.uk
Sat Aug 9 00:06:22 EDT 2003


> as well. My question is how to get this information on a Windows
box.
> Currently for Linux I am using os.popen("rpm -qa", "r"), for
example.

OK, First you are only picking up rpm installed packages as it
is - On Solaris particularly a lot of software does not use rpm
for installs.

Now to Windows, I don't know of any way to do this in windows
except to examine the registry. There are APIs to do that in
the winall package but you'll need to do some research to find
which keys you need to check to see whats been installed. And
like the rpm solution it will only find those installed the
official way. Single file executables just copied into a
folder will be invisible.

HTH,

Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld




More information about the Tutor mailing list