Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Detecting Installed Softwares on PC

by sanPerl (Friar)
on Oct 04, 2005 at 12:01 UTC ( #497218=perlquestion: print w/ replies, xml ) Need Help??
sanPerl has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,
I want to develop a program which would scan a PC and tell what Softwares are installed on the said PC. In Windows the ‘Add/Remove Programs’ options shows you list of Installed Softwares, I would like perl script to detect those softwares. Once I get the software names then I can put them in whatever format I want.

I would appreciate all kinds of suggestions/hints/clues/guidance regarding this requirement.
Thanks & Regards, Sandeep Deshpande

Comment on Detecting Installed Softwares on PC
Replies are listed 'Best First'.
Re: Detecting Installed Softwares on PC
by puploki (Hermit) on Oct 04, 2005 at 12:26 UTC
      Dear Monks, Thanks a lot for the suggestions. It seems that my problem would solve, if I try all these methods Sandeep
Re: Detecting Installed Softwares on PC
by gargle (Hermit) on Oct 04, 2005 at 12:06 UTC
Re: Detecting Installed Softwares on PC
by castaway (Parson) on Oct 04, 2005 at 12:11 UTC
    Assuming your script is running on the machine you want to check, try using the Win32::Registry modules, and looking in HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Uninstall ?


Re: Detecting Installed Softwares on PC
by steelrose (Scribe) on Oct 04, 2005 at 12:18 UTC
    A commerical off-the-shelf product I used at a previous job searched the entire hard drive for all .exe files, and then compared their names, sizes, (and to a lesser degree - paths), to a database of known products.

    Of course, you could get around that by renaming the file in most cases. But it was highly effective for that company.

    If you give a man a fish he will eat for a day.
    If you teach a man to fish he will buy an ugly hat.
    If you talk about fish to a starving man, you're a consultant.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://497218]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2015-11-27 15:42 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls