I have been searching for the last hour. I am sure it is in this forum but I am unable to find it. I want to seach the resgistry for a key and if its subkey value equals something then return installed.
I perfer testing to see if the key exists, that has a value that exists, that it contains what you want.
Like this:
if
(
(
exists key "ORACLE\HOME0"
whose
(
exists value “ORACLE_BUNDLE_NAME"
whose
(
it = “Enterprise”
)
of it
)
of it
)
of key “HKEY_LOCAL_MACHINE\Software” of registry
)
then
"Installed"
else
"NA”
Use some caution on just looking for “HOME0”. SqlNet 11g, for instance, used “KEY_OraClient11g_home1”.