Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi please assist as I cannot get the silent installation to work

<pre lang="c#">try
            {
                string installerFilePath = @"C:\BennaOlivier\Randoms\Delter\Firebird\FirebirdMainInstaller\MainInstaller\MainInstaller\Firebird X64\FirebirdInstallX64\Firebird-2.5x64.exe";
                Process installerProcess = new Process();
                installerProcess.StartInfo.CreateNoWindow = true;
                installerProcess.StartInfo.RedirectStandardOutput = true;
                installerProcess = Process.Start(installerFilePath, Arguments);

                while (installerProcess.HasExited == false)
                {
                    //indicate progress to user 
                    Application.DoEvents();
                    System.Threading.Thread.Sleep(250);
                }

            }


My Arguments that I pass are as follows

C#
private const string Arguments = " /SILENT | /VERYSILENT [/SUPPRESSMSGBOXES]";


However when doing the install I still get the window and the create no window defaults to false

What I have tried:

Hi please assist as I cannot get the silent installation to work

<pre lang="c#">try
            {
                string installerFilePath = @"C:\BennaOlivier\Randoms\Delter\Firebird\FirebirdMainInstaller\MainInstaller\MainInstaller\Firebird X64\FirebirdInstallX64\Firebird-2.5x64.exe";
                Process installerProcess = new Process();
                installerProcess.StartInfo.CreateNoWindow = true;
                installerProcess.StartInfo.RedirectStandardOutput = true;
                installerProcess = Process.Start(installerFilePath, Arguments);

                while (installerProcess.HasExited == false)
                {
                    //indicate progress to user 
                    Application.DoEvents();
                    System.Threading.Thread.Sleep(250);
                }

            }


My Arguments that I pass are as follows

C#
private const string Arguments = " /SILENT | /VERYSILENT [/SUPPRESSMSGBOXES]";


However when doing the install I still get the window and the create no window defaults to false
Posted
Updated 3-Apr-19 7:32am

Have a look here for a start: command line - Firebird custom installation - Stack Overflow[^]

It looks you are missing the comand line parameter /COMPONENTS="comma separated list of component names"

E.g. for full installation: /COMPONENTS="ServerComponent\SuperServerComponent,ServerComponent,DevAdminComponent,ClientComponent"

I hope it helps


[Edit]
To install in a specific directory you can use command line parameter DIR
E.g: Firebird-3.0.4.33054_0_Win32.exe /DIR="c:\Temp\FB"

Notes:
1.) After a conventional installation you will find the two documents
"C:\Program Files (x86)\Firebird\Firebird_3_0\doc\installation_scripted.txt"
"C:\Program Files (x86)\Firebird\Firebird_3_0\doc\installation_readme.txt"
Especally installation_scripted.txt contains helpfull information

2.) If you start Firebird-3.0.4.33054_0_Win32.exe /? the standard "ino setup" command line parameters will be shown.
 
Share this answer
 
v3
Comments
Benna Olivier 3-Apr-19 15:59pm    
This works for the silent install, however I need to install it and specify different directory from the default directory, also I have to select the Classic server option when installing
[no name] 4-Apr-19 2:47am    
Please see [Edit] in the updated answer
Benna Olivier 4-Apr-19 5:03am    
In which statement will I be able to specify the directory to use to install the firebird to

/DIR="c:\Temp\FB"
[no name] 4-Apr-19 5:14am    
As a command line parameter for the fb setup.exe wher you have olaso the /SILENT switch etc.

Firebird-2.5x64.exe /DIR= "c:\temp\fb"
Benna Olivier 4-Apr-19 5:22am    
The Arguments I pass is as follows, however it does not install to the directory specified and also it restarts after Firebird is installed

"/VERYSILENT /SUPPRESSMSGBOXES / DIR @c:\program files\firebird\ / NORESTART ServerComponent\ClassicServerComponent, ServerComponent,ClientComponent"
Try :
C#
private const string Arguments = "/VERYSILENT /SUPPRESSMSGBOXES";
Edit:
Read this : Is there a way to do a silent install of Firebird?[^]
 
Share this answer
 
v2
Comments
Benna Olivier 3-Apr-19 11:50am    
No luck
Mehdi Gholam 3-Apr-19 12:21pm    
Try the link provided.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900