Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Detecting Installed Softwares on PC

by sanPerl (Friar)
on Oct 04, 2005 at 12:01 UTC ( [id://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

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 (Chaplain) 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 ?

    C.

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-03-19 03:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found