Ok, so i have some code that will go through the registry and add the software installed to listbox1. The issue i'm having, is that the results are not fully there. If a registry keys starts with {RandomNumber}, it does not show up in the listbox. It's there in the registry, but just not showing up in the listbox. Can someone please explain why or how to fix this? Listing my code below.
Dim appPATH As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
Using rk As RegistryKey = Registry.LocalMachine.OpenSubKey(appPATH)
For Each Name As String In rk.GetSubKeyNames()
Using sk As RegistryKey = rk.OpenSubKey(Name)
Dim displayName = sk.GetValue("DisplayName")
Dim installDate = sk.GetValue("InstallDate")
Dim version = sk.GetValue("DisplayVersion")
Dim displayIcon = sk.GetValue("DisplayIcon")
If displayName = "" Then
Else
ListBox1.Items.Add(displayName + " " + version)
End If
End Using
Next
End Using
Example of a Program (Duo) that is installed but not getting returned.