Command line Firebird定制安装
我想部署firebird安装,因此将使用命令行参数从安装程序启动它。我阅读了Inno安装程序的文档,但仍然无法使其正常工作 我只想安装一个“超级服务器”,没有任何文档或任何东西 这是我到目前为止所拥有的Command line Firebird定制安装,command-line,firebird,inno-setup,Command Line,Firebird,Inno Setup,我想部署firebird安装,因此将使用命令行参数从安装程序启动它。我阅读了Inno安装程序的文档,但仍然无法使其正常工作 我只想安装一个“超级服务器”,没有任何文档或任何东西 这是我到目前为止所拥有的 Firebird-2.1.2.18118_0_Win32.exe /sp- /silent /SUPPRESSMSGBOXES /nocancel /noicons /components="Super Server binary" 但它不会安装服务器。如果我删除/组件,它会安装服务器,但会安
Firebird-2.1.2.18118_0_Win32.exe /sp- /silent /SUPPRESSMSGBOXES /nocancel /noicons /components="Super Server binary"
但它不会安装服务器。如果我删除/组件,它会安装服务器,但会安装客户不需要的其他开发人员资料。阅读C:\Program Files\Firebird\Firebird\U 2\U 1\doc中的installation\u scripted.txt /组件=“以逗号分隔的组件列表” “组件名称” 选择- ServerComponent\SuperServerComponent, ServerComponent\ClassicServerComponent, 服务器组件, DevAdminComponent和 客户端组件 覆盖默认组件 设置。使用此命令行
参数会导致设置失败 自动选择自定义类型。A. 完全安装需要组合 组件。例如: /COMPONENTS=“ServerComponent\SuperServerComponent,ServerComponent,DevAdminComponent,ClientComponent” 将需要一个完整的 安装
我使用了下面的方法,效果很好,但是我需要安装到一个自定义目录,并更改服务器选项
string installerFilePath = @"C:\BennaOlivier\Randoms\Delter\Firebird\FirebirdMainInstaller\MainInstaller\MainInstaller\Firebird X64\FirebirdInstallX64\Firebird-2.5x64.exe";
Process installerProcess = new Process();
installerProcess = Process.Start(installerFilePath, Arguments);
while (installerProcess.HasExited == false)
{
//indicate progress to user
Application.DoEvents();
System.Threading.Thread.Sleep(250);
}
}
catch (Exception FBX64)
{
MessageBox.Show(FBX64.Message);
throw;
}public const string comps = @"ServerComponent\ClassicServerComponent,ServerComponent,ClientComponent";
public const string Arguments = "/VERYSILENT /SUPPRESSMSGBOXES";
我传递的参数如下所示,但是它不会安装到指定的目录,并且在安装Firebird后会重新启动“/VERYSILENT/suppressMsgBox/DIR@c:\program files\Firebird\/NORESTART ServerComponent\ClassicServerComponent,ServerComponent,ClientComponent”