Subject | RE: [firebird-support] Get Installed Folder |
---|---|
Author | Maya Opperman |
Post date | 2012-09-13T06:59:42Z |
>>How can I get the folder where FireBird is installed.Not sure if this is the best method, but I read the DefaultInstance registry key. It work for me for FB 1.5, 2.1 and 2.5:
>>I use Delphi and I want to copy the UDF folder after a silent installation.
RootKey := HKEY_LOCAL_MACHINE;
Found := MyRegistry.OpenKeyReadOnly('\SOFTWARE\Firebird Project\Firebird Server\Instances');
if not Found then
Found := MyRegistry.OpenKeyReadOnly('\SOFTWARE\Wow6432Node\Firebird Project\Firebird Server\Instances');
If Found then
Result := MyRegistry.ReadString('DefaultInstance');
Regards
Maya
PS. Pardon the lack of object creation, etc, I have a few sub procs hat I merged this together from, so you get the gist