Code:
Dim regKey As Microsoft.Win32.RegistryKey
regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\Adobe", True)
'Checks if person has any adobe products installed.
If regKey Is Nothing Then
'No adobe products
'Create subkey
regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE", True)
regKey.CreateSubKey("Adobe")
MsgBox("Adobe Subkey Created")
'Creates a key in Adobe folder called PathName with value: Value.
Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\Adobe", True)
regKey.SetValue("PathName", Value)
End If
'Gets the value stored at pathname.
MyValue= regKey.GetValue("PathName")
regKey.Close()
'Note: regKey.DeleteSubKey("keyname") can also be used.
Enjoy