Is Oracle installed?

Steveg

Member
Is there a way to find out if Oracle is installed on a user's PC from within code?

I want to be able to give out a useful error message "Oracle is not yet installed ..." rather than just saying "Login error" or reporting an exception.

Thanks
 
You can check if the following registry key exists:

hkey_local_machine\software\oracle

If it exists, you know that at least "some" oracle software is installed.

However, you can also execute the InitOCI procedure from the OracleCI unit before logging on. This function will raise an exception with an appropriate message if it cannot load the SQL*Net, Net 8 or Net 9 libraries.

------------------
Marco Kalter
Allround Automations
 
Back
Top