8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:03:03 +01:00

More Win32 1.5 -> HEAD synchronisation. Updated documentation regarding gds32.dll and instclient.exe

This commit is contained in:
epocman 2004-01-03 12:32:46 +00:00
parent a25fa8f51c
commit 6a47a28ba0
2 changed files with 159 additions and 12 deletions

View File

@ -0,0 +1,117 @@
One of the design goals of Firebird 1.5 is to prepare the way for multiple
installs of the server. This will allow users to run different versions
side by side. Firebird 1.5 does support this, although it is not well
documented and very much requires intervention from a skilled user. Future
versions of Firebird will make this process far less complicated. In the
meantime Firebird 1.5 needs to prepare the ground. This forces us to
confront the issue of library installation. At the same time, Microsoft
have taken their own steps to manage installation of different library
versions. Taken together these two separate issues mean a new approach to
library installation for Firebird 1.5 and beyond.
1/ Installation of Microsoft system libraries.
The problems associated with installing different versions of Microsoft
system libraries are so notorious that it has acquired the name
'DLL Hell'.
From the release of Windows 2000 onwards Microsoft have made it almost
impossible to upgrade system dll's. To resolve this Microsoft now
recommend that each application installs local copies of any system
libraries that are required.
Firebird 1.5 follows this practice for all Microsoft platforms from
Windows 2000 onwards and places the required libraries in the \bin directory
along with the server. When installed on older systems (Win 9x, NT) it follows
the standard practice and attempts to upgrade older versions of the system
libraries.
2/ Installation of fbclient.dll.
Firebird 1.5 and beyond no longer use gds32.dll as the client library.
It is now called fbclient.dll. Given the problems that Microsoft have
had with DLL hell it wouldn't make much sense if we continued to store the
Firebird client library in the <system> directory. And as we want to allow
installation of multiple engines simultaneously we would be creating our
own DLL hell if we continued the practice of using the <system> directory
for the client library. So, from Firebird 1.5 on, the client library resides
in the \bin directory along with all the other binaries.
A new registry key has been added and all Firebird compliant applications
should now use this to locate the correct version of Firebird that they wish
to use. The new key is:
HKEY_LOCAL_MACHINE\SOFTWARE\Firebird Project\Firebird Server\Instances
Firebird will guarantee that one entry under this key always exists. It will
be known as
"DefaultInstance"
and will store the path to the root directory of (yes, you've guessed it)
the default installation. Those that don't care about particular
installations can alway use the default instance to locate the fbclient.dll.
Future versions of Firebird will see other entries under Instances.
Applications will be able to enumerate the registry entries to determine
which library instance the wish to load.
3/ Supporting legacy applications and drivers.
Traditionally, applications that use InterBase or Firebird have expected to
load the gds32.dll client library from the <system> directory. Firebird 1.5
ships a tool named 'instclient.exe' that can install a clone of fbclient.dll
to the Windows System directory. This clone gets patched on the fly so that
its file version information starts in "6.3". This is done so because some
old applications do extra checks on the GDS32.DLL file version. Based on a
lot of experiments, it has been determined that 6.3 is a safe "compatible"
version number to use, much better than "1.5".
During the installation process the installer checks to see if an
installation of InterBase or Firebird exists. If nothing is installed
it will write a patched gds32.dll into the <system> directory. If it detects
that any possible version of Firebird or InterBase may already be installed
it will not install the gds32.dll in the <system> directory. However
you can always do so later by using the new 'instclient.exe' tool.
It is intended that future versions of Firebird will not attempt to
install gds32.dll into the <system> directory and ultimately it will
be completely removed from the distribution.
This 'instclient.exe' tool can also install the FBCLIENT.DLL itself in the
Windows system directory. This can be preferred by some tools or
applications and we don't want to miss any use case.
instclient
Usage:
instclient i[nstall] [ -f[orce] ] library
q[uery] library
r[emove] library
where library is: fbclient | gds32
This utility should be located and run from the 'bin' directory
of your Firebird installation.
'-z' can be used with any other option, prints version
Purpose:
This utility manages deployment of the Firebird client library
into the Windows system directory. It caters for two installation
scenarios:
Deployment of the native fbclient.dll.
Deployment of gds32.dll to support legacy applications.
Version information and shared library counts are handled
automatically. You may provide the -f[orce] option to override
version checks.
Please, note that if you -f[orce] the installation, you might have
to reboot the machine in order to finalize the copy and you might
break some other Firebird or InterBase(R) version on the system.

View File

@ -24,23 +24,22 @@ Firebird 1.5 installation notes
Now the client library is named "fbclient.dll". To provide a Now the client library is named "fbclient.dll". To provide a
compatibility with existing applications, a gateway library compatibility with existing applications, a gateway library
"gds32.dll" is included in the distribution kit. This library "gds32.dll" can be installed to the Windows System Directory.
doesn't have any code but just redirects all calls to See instclient.exe utility for this. This tool can also properly
fbclient.dll. Hence for old applications you must to have both install fbclient.dll to Windows System Directory, should you like or
fbclient.dll and gds32.dll in the program directory or OS system need so.
directory. It's recommended to use native fbclient.dll library It's recommended to use native fbclient.dll library
in newly developed applications. All server utilities (gbak, in newly developed applications. All server utilities (gbak,
gfix, etc) uses only fbclient.dll and do not require gds32.dll. gfix, etc) uses only fbclient.dll and do not require gds32.dll.
1.3. New configuration file 1.3. New configuration file
inconfig file is no longer used and it has been replaced with ibconfig file is no longer used and it has been replaced with
firebird.conf, which is a part of new configuration manager and firebird.conf, which is a part of new configuration manager and
allows you to use both old and some new options. You can see allows you to use both old and some new options. You can see
the list of all supported configuration options (as well as the list of all supported configuration options (as well as
their default values) in the distributed version of this file. their default values) in the distributed version of this file.
1.4. Classic Server (CS) 1.4. Classic Server (CS)
Since Firebird 1.5, Classic engine is included in win32 Since Firebird 1.5, Classic engine is included in win32
@ -107,8 +106,37 @@ Firebird 1.5 installation notes
(HKLM\Software\Firebird Project\Firebird Server\Instances) (HKLM\Software\Firebird Project\Firebird Server\Instances)
- if you want to register a service, run also instsvc.exe: - if you want to register a service, run also instsvc.exe:
instsvc.exe install instsvc.exe install
- optionally, you should copy both fbclient.dll and gds32.dll (This is a Windows NT/2K/XP specific step.)
to the OS system directory - optionally, you can copy both fbclient.dll and gds32.dll
to the OS system directory. To do so, use the provided instclient.exe
tool.
Usage:
instclient i[nstall] [ -f[orce] ] library
q[uery] library
r[emove] library
where library is: f[bclient] | g[ds32]
This utility should be located and run from the 'bin' directory
of your Firebird installation.
'-z' can be used with any other option, prints version
Purpose:
This utility manages deployment of the Firebird client library
into the Windows system directory. It caters for two installation
scenarios:
Deployment of the native fbclient.dll.
Deployment of gds32.dll to support legacy applications.
Version information and shared library counts are handled
automatically. You may provide the -f[orce] option to override
version checks.
Please, note that if you -f[orce] the installation, you might have
to reboot the machine in order to finalize the copy and you might
break some other Firebird or InterBase(R) version on the system.
2.2. Installation of CS 2.2. Installation of CS
@ -127,16 +155,18 @@ Firebird 1.5 installation notes
fbserver.exe -a fbserver.exe -a
It should treat its parent directory as a root directory in this It should treat its parent directory as a root directory in this
case. case.
You can also use instclient.exe to copy client library to System.
2.4. Uninstallation 2.4. Uninstallation
To remove FB 1.5 you should: To remove FB 1.5 you should:
- stop the server - stop the server (running "instsvc.exe stop" for instance)
- run "instreg.exe remove"
- run "instsvc.exe remove" - run "instsvc.exe remove"
- run "instreg.exe remove"
- run "instclient.exe remove fbclient" and/or "insclient.exe remove gds32"
if you used that tool to install those libraries the OS system directory.
- delete installation directory - delete installation directory
- delete fbclient.dll and gds32.dll from the OS system directory
3. INFORMATION ABOUT THIS VERSION 3. INFORMATION ABOUT THIS VERSION