Solved

search software installed

Posted on 2001-06-29
5
114 Views
Last Modified: 2010-04-06
i need a program in delphi that show me the software installed (software and license number) of each computer attached at my network. how can i do that?
0
Comment
Question by:gonzmar
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:YodaMage
ID: 6239076
Huh? What software?  What kind of network?
0
 

Author Comment

by:gonzmar
ID: 6239615
i need to retrieve de software installled on each computer (this software appear in the add/remove programs in the control panel applet) and our network (LAN) are based on TCP/IP.

For example, if a double click on my network neighborhood icon, i can see a lot of PC's attached to my local network, so, i need to obtain the software installed on each computer and build a report of that information.
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 6240063
Hi gonzmar,

To do that you would have to remotely connect to each computer's registry, then query the registry entries.

1. You connect to a remote registry via RegConnectRegistry
2. You will get a handle to the registry (if all goes well)
3. Open HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and read all the values there
4. Also open HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall and read all the values there
5. Use RegCloseKey to close the remote registry handle
6. Loop 1-5 for each other computer.

NOTE:
You need to read the DisplayName (it's a String Value) under the registry key, e.g. for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Delphi5, reading the DisplayName value will give you "Borland Delphi 5"


Good luck!


DragonSlayer.
0
 

Author Comment

by:gonzmar
ID: 6249047
ok, dragon!, would you please send me an example of using regconnectregistry?
0
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 30 total points
ID: 6251241
Hi Gonzmar,

I just found out that you can do it with TRegistry as well.

Check out TRegistry.RegistryConnect from the Help file.


Cheers,
DragonSlayer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi XE10, DigitalPersona Fingerprint reader and MySQL 6 222
code issue 8 100
Delphi : could not find program, '...exe' 2 149
oracle global variables 4 63
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now