View Single Post
Join Date: Jul 2007
Posts: 276
Reputation: rapture has a spectacular aura about rapture has a spectacular aura about 
Solved Threads: 37
rapture rapture is offline Offline
Posting Whiz in Training

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

 
0
  #8
Jan 7th, 2009
I'm newer to vb.net so the others might change this a bit

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