Hi guys, need help here. I would like to check the registry key is exist for this code:
Sub main()
Dim regKey As Object = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D75F38ED-E49A-48F3-9B72-D4BC5FE73B44}", True)
' Check if it exists
If regKey Is Nothing Then
MsgBox("Registry key does not exist!")
Else
MsgBox("Registry key is exists.")
End If
End Sub
It telling registry key does not exist, but when i remove "{D75F38ED-E49A-48F3-9B72-D4BC5FE73B44}", it managed to find the registry key. So Im suspecting it couldn't detect special symbol like parentheses "{" & "}" ?
Anyone could help me to figure out?