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
++
Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu. Try Knowledgebase and FAQ links !
Also search the knowledgebases at http://www.ibphoenix.com
++
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-support/
* Your email settings:
Individual Email | Traditional
* To change settings online go to:
http://groups.yahoo.com/group/firebird-support/join
(Yahoo! ID required)
* To change settings via email:
firebird-support-dig...@yahoogroups.com
firebird-support-fullfeatu...@yahoogroups.com
* To unsubscribe from this group, send an email to:
firebird-support-unsubscr...@yahoogroups.com
* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/