View Single Post
Join Date: Mar 2008
Posts: 44
Reputation: smelf1 is an unknown quantity at this point 
Solved Threads: 0
smelf1 smelf1 is offline Offline
Light Poster

Re: vb.net 08 Reading data from multiple reg keys

 
0
  #10
Jan 7th, 2009
okay i got this now but it returns nothing

  1. Dim uninstallKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
  2. Dim rk As RegistryKey
  3. rk = Registry.LocalMachine.OpenSubKey(uninstallKey)
  4. For Each key As String In rk.GetSubKeyNames()
  5. Using sk As RegistryKey = rk.OpenSubKey(key)
  6. Console.WriteLine(sk.GetValue("DisplayName"))
  7. End Using
  8. Next
  9. End Sub
Reply With Quote