Subject | Re: Get Installed Folder |
---|---|
Author | Allan_Fernandes |
Post date | 2012-09-13T10:59:12Z |
Can we also understand if Firebird is installed via this method.
I too always install Firebird as Service.
Could you also give me sample of Service Checking please.
Regards
Allan
I too always install Firebird as Service.
Could you also give me sample of Service Checking please.
Regards
Allan
--- In firebird-support@yahoogroups.com, Josef KokeĀ <j.kokes@...> wrote:
>
> > >>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
>