How to do a silent install of a second Firebird installation

36 views
Skip to first unread message

Maya Opperman

unread,
Jun 8, 2021, 1:30:19 PMJun 8
to firebird-support
Hi,

I am porting our software from Firebird 2.5 to Firebird 3, and would like to leave Firebird 2.5 untouched as the default install, and install Firebird 3 listening on port 3051.

I have everything working perfectly except for one thing: during the usually silent automated install, the users are now seeing this message:

Setup

Pre-installation analysis indicates that 1 existing Firebird or Interbase version has been found.

Firebird 2.5.7.27050 (Win32) Full installation of Classic Server and development tools. (Installation appears to be correct.)

If you continue with this installation Firebird will be installed but not configured. You will have to complete installation manually.

Do you want to CANCEL this installation?

Yes No

They then need to click No to proceed correctly which is very confusing.

I have already checked that Firebird 3 is not installed, and am already doing all the post install tasks to get the service installed, leaving the Default Instance alone, so I don't want them having to make a decision here, as it's usually the wrong one, unless they read very carefully.

I have tried all of these command line switches to stop that message from showing:

/SP- /SILENT /VERYSILENT /SUPPRESSMSGBOXES

None of them help.

There is a /FORCE option, but that will replace the Default Instance, which I don't want to do.

Posted originally here: https://stackoverflow.com/questions/67886793/how-to-do-a-silent-install-of-a-second-firebird-installation Will go back and update if I find an answer here

Thanks in advance

Maya

Paulo Geloramo

unread,
Jun 8, 2021, 2:09:21 PMJun 8
to firebird...@googlegroups.com
@echo install_firebird_2_3_4.bat
@echo Right Click Run as Administrator
@echo ============ Install Firebird 2.5 ============
C:\Tools\Firebird\FB2\Firebird-2.5.9.27139_0_Win32.exe /SP-
/VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /NOGDS32 /FORCE
/NOICONS /TASKS=UseServiceTask

set path=%ProgramFiles(x86)%\Firebird\Firebird_2_5\bin
instsvc.exe stop -name DefaultInstance
instsvc.exe remove -name DefaultInstance

COPY /Y C:\Tools\Firebird\FB2\aliases.conf
"%ProgramFiles(x86)%\Firebird\Firebird_2_5"
COPY /Y C:\Tools\Firebird\FB2\firebird.conf
"%ProgramFiles(x86)%\Firebird\Firebird_2_5"

@echo ============ Install Firebird 3.0 ============
C:\Tools\Firebird\FB3\Firebird-3.0.7.33374_1_Win32.exe /SP-
/VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /NOGDS32 /FORCE
/NOICONS /TASKS=UseServiceTask

set path=%ProgramFiles(x86)%\Firebird\Firebird_3_0
instsvc.exe stop -name DefaultInstance
instsvc.exe remove -name DefaultInstance

COPY /Y C:\Tools\Firebird\FB3\databases.conf
"%ProgramFiles(x86)%\Firebird\Firebird_3_0"
COPY /Y C:\Tools\Firebird\FB3\firebird.conf
"%ProgramFiles(x86)%\Firebird\Firebird_3_0"

@echo ============ Install Firebird 4.0 ============
C:\Tools\Firebird\FB4\Firebird-4.0.0.2496-1-Win32.exe /SP- /VERYSILENT
/SUPPRESSMSGBOXES /NOCANCEL /NORESTART /NOGDS32 /FORCE /NOICONS
/TASKS=UseServiceTask

set path=%ProgramFiles(x86)%\Firebird\Firebird_4_0
instsvc.exe stop -name DefaultInstance
instsvc.exe remove -name DefaultInstance

COPY /Y C:\Tools\Firebird\FB4\databases.conf
"%ProgramFiles(x86)%\Firebird\Firebird_4_0"
COPY /Y C:\Tools\Firebird\FB4\firebird.conf
"%ProgramFiles(x86)%\Firebird\Firebird_4_0"

@echo ============== Start Firebird25 ==============
set path=%ProgramFiles(x86)%\Firebird\Firebird_2_5\bin
instsvc.exe install -name Firebird25
instsvc.exe start -name Firebird25

@echo ============== Start Firebird30 ==============
set path=%ProgramFiles(x86)%\Firebird\Firebird_3_0
instsvc.exe install -name Firebird30
instsvc.exe start -name Firebird30

@echo ============== Start Firebird40 ==============
set path=%ProgramFiles(x86)%\Firebird\Firebird_4_0
instsvc.exe install -name Firebird40
instsvc.exe start -name Firebird40

pause

--
Paulo Geloramo
www.assisinformatica.com

Em ter., 8 de jun. de 2021 às 14:30, Maya Opperman
<maya....@gmail.com> escreveu:
> --
> You received this message because you are subscribed to the Google Groups "firebird-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/8dc3fc27-b731-491d-b5a0-67f9c6e66b68n%40googlegroups.com.

Maya Opperman

unread,
Jun 15, 2021, 11:40:17 AMJun 15
to firebird-support
Thank you Paulo! 

I was not using /NOCANCEL, but adding that still let the user click Yes to cancel the second install.

Looks like /FORCE is the only way, will try live with the message for now, but thank you that is a very handy batch file to keep for setting up a dev PC with all the Firebird versions.




Maya Opperman

unread,
Jun 22, 2021, 1:48:27 AMJun 22
to firebird-support
>>Looks like /FORCE is the only way

I am still battling with this, clicking No to continue is just not intuitive. And if there is no Firebird 2.5 I still don't want my Firebird 3 install configured, as I then get 2 services registered and running listening on the same port.

I really can't use FORCE, as that will mess up what is already running, which is not my concern, as I am adding a different service name, listening on port 3051. I also need Firebird 2.5 in place for upgrading older databases, which using FORCE will reconfigure.

Not sure if I am posting this in the right place, but I downloaded the InnoSetup source to look for clues and found this:

 //By default we want to install and configure,
  //unless subsequent analysis suggests otherwise.
  InstallAndConfigure := Install + Configure;

What I really need is to be able to change that default via the command line, eg: 

if pos('NOCONFIGURE',Uppercase(CommandLine)) > 0 then
    InstallAndConfigure :=  InstallAndConfigure   - Configure;

And then stop showing the message in the "AnalysisAssessment" function if no configuration needs to be done and there is already another installation - or just make it an OK if you feel a message still needs to be displayed.

That will then solve both my problems that I am having both when Firebird 2.5 is and isn't already installed.







 




Paulo Geloramo

unread,
Jun 22, 2021, 11:04:19 AMJun 22
to firebird...@googlegroups.com
Hi Maya,

www.assisinformatica.com/tools/firebird/install_firebird_2_3_4.7z

This .bat file will install Firebird 2, 3 and 4 without displaying
message, exactly as you want.

Remove Firebird 4 for its purpose.

--
Paulo Geloramo
www.assisinformatica.com

Em ter., 22 de jun. de 2021 às 02:48, Maya Opperman
<maya....@gmail.com> escreveu:
> --
> You received this message because you are subscribed to the Google Groups "firebird-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/af259baf-17f9-48e6-8b03-03e726d9b09en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages