steve4king
IS-IT--Management
Apologies if this is elsewhere.. (Saw lots of registry entries.. but surprisingly nothing pertaining to this question)
My application will make use of a registry key at HKLM\Software\MySoftware
My installer correctly creates the key and string values at HKLM\Software\MySoftware\AppDir
However, when I use registry.vcx to access the key, it redirects "HKLM\Software\MySoftware\AppDir" to "HKLM\Software\Wow6432Node\MySoftware\AppDir"
According to this Software and all items within are by default "shared", not reflected or redirected in Windows 7(my current OS), but redirected but not reflected in Windows XP, vista, server2003 and others..
How can my application circumvent this redirection?
-Stephen
My application will make use of a registry key at HKLM\Software\MySoftware
My installer correctly creates the key and string values at HKLM\Software\MySoftware\AppDir
However, when I use registry.vcx to access the key, it redirects "HKLM\Software\MySoftware\AppDir" to "HKLM\Software\Wow6432Node\MySoftware\AppDir"
According to this Software and all items within are by default "shared", not reflected or redirected in Windows 7(my current OS), but redirected but not reflected in Windows XP, vista, server2003 and others..
How can my application circumvent this redirection?
Code:
oReg = NewObject("Registry",HOME()+"FFC\REGISTRY")
lcKey = "SOFTWARE\MySoftware\CurrentInstall"
lcValueName = "AppDir"
lcValueData = ""
IF oReg.IsKey(lcKey, HKEY_LOCAL_MACHINE )
oReg.OpenKey( lcKey, HKEY_LOCAL_MACHINE , .F.)
oReg.GetKeyValue( lcValueName, @lcValueData)
?lcValueData &&pulling from wrong key in wow6432node
ENDIF
-Stephen