Installation 如何在安装过程中设置pgAdmin 4主密码?
目前,我的代码使用以下方式执行postgreSQL的安装:Installation 如何在安装过程中设置pgAdmin 4主密码?,installation,pgadmin-4,postgresql-12,Installation,Pgadmin 4,Postgresql 12,目前,我的代码使用以下方式执行postgreSQL的安装: var postgresql = new Process { StartInfo = { FileName = postgreSQLInstaller, Arguments = "--mode unattended --unattendedmodeui none --superpassword xpto", RedirectStandardOutput
var postgresql = new Process
{
StartInfo =
{
FileName = postgreSQLInstaller,
Arguments = "--mode unattended --unattendedmodeui none --superpassword xpto",
RedirectStandardOutput = true,
UseShellExecute = false,
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden
}
};
postgresql.Start();
postgresql.WaitForExit();
postgresql.Close();
但是,启动pgAdmin 4时,会请求主密码。是否要传递一个额外的参数来插入安装中已经存在的默认密码,以便在打开pgAdmin时不必通知