Check subkey value

(imported topic written by lunchboxfl91)

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.

HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0

“ORACLE_BUNDLE_NAME”=“Enterprise”

(imported comment written by SystemAdmin)

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”.

Paul

(imported comment written by lunchboxfl91)

That did it…Thanks again