"to check installed software using a program" Code Answer

2

as you already mentioned the list of (properly) installed programs can be found in the registry under the key

hkey_local_machinesoftwaremicrosoftwindowscurrentversionuninstall

see here for example or use google for further information. have a look at this key using regedit, the structure id quite obvious.

for accessing the registry using python, see _winreg – windows registry access in the python standard library documentation.

note that there may always be software which doesnt show up in the registry: some software can still be installed by just putting it in a directory, you'll not catch these guys...

for the second part, there is no way of telling the license type or licensing status (i.e. properly licensed) from looking at the registry. there is no standard way to store this information. the best you can do is to compile a list of as many programs as you can (you'll have to do this by hand, that will be time-consuming even for standard programs like office, adobe etc.) and store all necessary information (i.e. guid key in registry, license type etc.) in a database.

your tool could then compare the list of currently installed programs against your list, possibly checking the licensing status. this will be even harder as the first step since every software has it's own (mostly secret!) way of storing this - after all if this information is accessible it could also be forged.

then your tool could inform the system adminstrator about its findings and any programs that are not on the list, he would have to check the licensing manually for them. you could provide some organisational help for managing this information and perhaps even update the database for future use.

hth

martin

By Guitao on September 17 2022

Answers related to “to check installed software using a program”

Only authorized users can answer the Search term. Please sign in first, or register a free account.