Duplicate entries in the registry key for deletion when compiling the list of installed software

I am trying to compile a list of installed programs on a workstation. After some research, I decided to use the information in the following registry key to compile the list.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall

It was a good source, and it also lists items that are not listed using the Win32_Products WMI class. One of the quirks I came across is that there are several “duplicate” entries with the same display name written under a different registry key. For example, here are the keys for Windows Media Player:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Windows Media Player]
"DisplayName"="Windows Media Player 11"
"UninstallString"="\"C:\\Program Files\\Windows Media Player\\Setup_wm.exe\" /Uninstall"
"DisplayIcon"="C:\\Program Files\\Windows Media Player\\wmplayer.exe"
"ParentKeyName"=""
"ParentDisplayName"=""
"NoModify"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\wmp11]
"DisplayName"="Windows Media Player 11"
"UninstallString"="\"C:\\WINDOWS\\$NtUninstallwmp11$\\spuninst\\spuninst.exe\""
"TSAware"=dword:00000001
"NoModify"=dword:00000001
"InstallDate"="20090325"
"Publisher"="Microsoft Corporation"
"NoRepair"=dword:00000001
"HelpLink"="http:"
"URLInfoAbout"="http:"
"SystemComponent"=dword:00000001

, - GUID . , . ? ,

  • ? ( ?)
  • " "?
  • ? , ?
  • //?

!

+3
1

. , 100% . -, "SystemComponent" = dword: 00000001 ". ARP (" "). , . , . , , , .

+2

Source: https://habr.com/ru/post/1741136/


All Articles