I have created registry key by following way:
Const HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\application_upgrade"
objRegistry.CreateKey HKEY_CURRENT_USER, strKeyPath
I have another application. In that application, I have to give Registry key to cross verify. I don't know what is registry key in above code.
I have tried by both name "SOFTWARE\application_upgrade" and "application_upgrade" but I don't get success.
Can anybody tell me what is Registry key in above script? Or am I missing something?
Not really a programming question, but you can use something like regedit.exe
in Windows to view and verify the creation of the key.
You need to include the ROOT (defined by the named constant HKEY_CURRENT_USER = &H80000001
, in this case is HKEY_CURRENT_USER
hive in the registry) when accessing the path so
HKEY_CURRENT_USER\SOFTWARE\application_upgrade
is the fully qualified path the "other application" will need to use.