Darwin2 uses the Firebird database, a popular and reliable database, that is also used by different other products.

When Firebird is already installed on a PC, this normally is no problem for Darwin2, we can use Firebird in parallel with the other product. By default Darwin2 uses Firebird in a very recent version. Normally that should not be a problem as Firebird is downwards compatible. Unfortunately there are a few software packages that require a very specific version of Firebird and will refuse to work with a newer version. That's not very smart, but it may happen, that you have to deal with such a situation.

 


Run Firebird on a different port

(e.g. to resolve conflict with installed Interbase database like SystemX by Hove Medical Systems)

On a client computer you don't need firebird installed at all. On the server-PC (where the database will be stored), or on standalone-Darwin2-Workstations (where Darwin2 AND the database is stored) do the following:

  • Manually run the firebird installer from the Darwin2 installation CD.
  • On the 12th page (so after installation) uncheck the option "Start the Firebird service now"
  • Continue until Firebird is installed.
  • Copy or move the file "firebird.conf" from e.g. "C:\Program Files\Firebird\Firebird_2_5\" to the desktop
  • Find the line "#RemoteServicePort = 3050". Modify the line to "RemoteServicePort = 4321" (don't forget to remove the hash character "#" in the beginning of the line). 4321 is your new port number (you may change that if you like)
  • Copy/move the file back to "C:\Program Files\Firebird\Firebird_2_5\"
  • Open the "services" control panel. Find the "Firebird guardian", right click and select "start"
  • Install Darwin2. When the admin tool pops up, select "server database" and specify the database as "localhost/4321". (you may change according to your needs). The full DB-Name will look like this "MyServerName/4321:C:\MyDarwinDbPath\Evolution2.fdb"
  • Continue with Darwin2 as normal.

That's it. Have fun :)

 


Install Firebird4 parallel to an existing Firebird2

From version 2.10.1 on Darwin2 supports Firebird3 and Firebird4. See the Firebird4 article.

If you want to install Firebird4 parallel to an existing Firebird2 (eg used by a different software), you have to:

  • Optionally: To get info on the running instances of Firebird, you can navigate to the program folder of an installed Firebird and (from a command shell that has Admin-rights) run "instsvc q" - this will show you where which firebird instance is running.
  • Stop the firebird service
  • Install Firebird4. The installer will detect that firebird is already installed. It will ask you if you want to cancel the installation. Click "No".
  • Move the file C:\Program Files\Firebird\Firebird_4_0\firebird.conf to the desktop.
  • Open it with an editor and add a line "RemoteServicePort = 3051". (By default firebird uses port 3050. You can use any free port for "your" firebird). Save the file and move it back to the firebird program folder.
  • Open a cmd window -> 'cmd.exe'
  • Navigate to the firebird4 folder -> cd "\Program Files\Firebird\Firebird_4_0\"
  • run "instreg install"
  • run "instsvc.exe install -auto -name firebird4"
  • run "instsvc.exe start -name firebird4"

Firebird4 is now installed and running. Don't forget to change the password of the superuser account (SYSDBA).

In the services control panel start the old firebird2 service again.

If you want Darwin2 to connect to this firebird instance from Darwin, specify the used port (3051 in the example above) like this: "MyServerName/3051:C:\MyDarwinDbPath\Evolution2.fdb"

Congrats, you are done!

 


Darwin2 gives error message "Cannot load client DLL: gds32.dll" - e.g. GMON 3.2.8

GMON installs firebird in a way, so that the gds32.dll is not copied into the appropriate windows folder.

In Darwin2.8.1 this problem will not occur anymore.

Solution for older systems:

  • Uninstall firebird
  • Re-install firebird (please use the 32bit Version of the installer)
  • done :)

 


Installing a 2nd instance of firebird / Exclusive database required by other software, e.g. "BOSO" or "Medical Office"

Here's a short guideline on how to resolve that by installing a 2nd Firebird driver in parallel. The example was performed with the "BOSO profile manager", but will be very similar with other products. In this description "BOSO" stands for "the other software that also uses Firebird".

Btw: If Darwin2 on this computer is just a client and the database runs on a separate server in a proper version, you can only performs steps 7 and 8, skip the port number in step 8c and you are done.

Have fun:

1.) Check BOSO: 

  • we get hold of a PC with BOSO installed. Run BOSO to make sure it can be started. Close it again
  • Find out to which folder BOSO installed firebird. e.g. that might be C:\Program Files (x86)\Firebird_2_0\bin

2.) Open a shell window (CMD) with admin rights

  • Press the start button, enter "CMD" - do NOT press Enter!!!
  • Windows will list the cmd-program. Rightclick and select "Run as administrator"
  • The shell windows will pop up.

3.) Disable the old firebird 

  • Change path to the firebird path (e.g. "cd "\Program Files (x86)\Firebird_2_0\bin" )
  • In CMD type in "instsvc q" to see which services are running.
  • Open the windows "services" control panel.
  • End the listed serviced. You might need to stop depending services (e.g. AxiDBSafe)
  • In CMD type in "instclient q f"
  • if the answer is "fbclient.dll was not found", then skip this step, otherwise find the DLL in C:\Windows\system32 or C:\Windows\SysWOW64 and copy it to the program folder of BOSO. Then remove the DLL from the system folder with "instclient r f"
  • repeat the previous 2 steps gds32.dll with "instclient q g" / "instclient r g"

3.) Install the new firebird driver

  • Run "02_Firebird-2.5.2.26540_0_Win32.exe"
  • "Language" -> Next
  • It will mention, that firebird is already installed and ask if you want to cancel installation. -> Press No
  • "Hello" -> Next
  • "Info" -> (o) accept -> Next
  • Maintain old installation is not overwritten -> Precify a path, e.g. "C:\Program Files (x86)\Firebird\Firebird_2_5_Parallel", Next.
  • "Komponents" -> Next
  • "Startmenu" -> Next
  • "Install" -> Install.
  • "Info" -> Next
  • "Finish" -> [ ] After install -> Finish

4.) Configure the new driver

  • With the windows explorer navigate to the new firebird folder, e.g. to C:\Program Files (x86)\Firebird\Firebird_2_5
  • Move the file "firebird.conf" to the desktop
  • Open it in a text editor
  • Search for "RemoteServicePort"
  • Change the line from "#RemoteServicePort = 3050" to "RemoteServicePort = 3252" (ATT: don't forget to remove the hash character (#) at the beginning of the line!!)
  • Move the file back to the firebird folder

5.) Re-start the old firebird service

  • Open the windows "services" control panel.
  • Find "Firebird guardian" and start it
  • You should now be able to start BOSO

6.) Configure the new driver as a 2nd service

  • In the command shell change to the newly installed firebird bin folder, e.g. "C:\Program Files (x86)\Firebird\Firebird_2_5\bin"
  • enter "instsvc install -auto -superserver -guardian -name secondservice"
  • enter "instsvc start -name secondservice"

7.) Install Darwin

  • Run "05_Darwin_V2.6.0.40.exe" - click next next next until the admin tool is shown.
  • When the admin tool pops up:
  • a.) >>> Deactivate firebird version checking <<<
  • Open RegEdit.
  • Navigate to HKLM\Software\Wow6432Node\medilog\Darwin
  • (on 32bit windows skip the Wow6432Node). 
  • Create a string "SkipFirebirdVersionCheck" and give it the value "1"
  • b.)  In the admin tool, change the DB-Name to "localhost/3252:C:\ProgramData\Darwin2\Evolution2.fdb" (or similar, just the port number behind the colon is important)
  • Continue with the creation of the database. You are done.

 

That's it. Enjoy.

Btw: When installing Darwin updates, make sure the firebird-button is unticked, your configuration might be destroyed otherwise.