Subject Re: [firebird-support] Get Installed Folder
Author Josef Kokeš
> >>How can I get the folder where FireBird is installed.
> >>I use Delphi and I want to copy the UDF folder after a silent
> installation.
>
> 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:
>
> 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

As I only run Firebird as a service, I run through a list of all
installed services and take the binary path of all services whose
service name (not DisplayName!) begins with "FirebirdServer". Seems to
work OK for me, updates my UDF for all installed Firebirds - regardless
of whether they have a key in registry or not.

Josef