--- In [email protected], "edsynergy" <edsyne...@...> wrote:
> I am struggling to get to all the occurances of a key ORACLE_HOME

I use a combination of all kind of things to detect Oracle-Homes:

1.) a "1 to 20" loop to check for \\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMExx

2.) %ORACLE_HOME% environment variable 

3.) a scan of all entries in %PATH% environment variable .. checking if the 
\bin directory has a file called oracle.key (oracle.key contains a single text 
line pointing back to the registry path used by this oracle installation)


in my experience you will find a lot of computers out there in the wild that 
have no registry entries or no PATH-entries or even both. Especially with 
enterprise installations scenarios that often have been installed by filecopy 
rather then trough the installer.



Reply via email to