gonzmar
asked on
search software installed
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?
Huh? What software? What kind of network?
ASKER
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.
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.
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\SOFTWAR E\Microsof t\Windows\ CurrentVer sion\Unins tall and read all the values there
4. Also open HKEY_CURRENT_USER\Software \Microsoft \Windows\C urrentVers ion\Uninst all 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\SOFTWAR E\Microsof t\Windows\ CurrentVer sion\Unins tall\Delph i5, reading the DisplayName value will give you "Borland Delphi 5"
Good luck!
DragonSlayer.
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\SOFTWAR
4. Also open HKEY_CURRENT_USER\Software
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\SOFTWAR
Good luck!
DragonSlayer.
ASKER
ok, dragon!, would you please send me an example of using regconnectregistry?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.