Solved

search software installed

Posted on 2001-06-29
5
113 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

759 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

16 Experts available now in Live!

Get 1:1 Help Now