While researching this problem I came across this question. I'm having the exact same problem accept my program is already running as administrator and is already accessing the registry using TRegistry.Create(KEY_READ)
.
The key I'm trying to access is HKLM\Software\FireBird Project\Firebird Server\Instances
. The way I understand it (and correct me if I'm wrong) is that the registry redirector is enabled by default for any 32 bit process that reads or writes to HKLM\Software unless it is explicitly disabled.
Is there any way to tell if this the case with this key? I've looked through the source for the win32 firebird installer and nothing stuck out.
Update
!@#$%
Turned out it was finding the key all along. I was using this key to locate the isql utility so I could create a firebird database. This was happening in the BeforeConnect
event of a db connection. For whatever reason the connection was being attempted and raising an exception before the event was triggered so the database was never getting created. Note to self: Never trust a Before* event to happen before anything.