English 中文(简体)
沿视窗应用程序部署 Postgresql
原标题:Deploying Postgresql Along Windows Application

我有 WPF 应用程序, 用 Postgresql 作为数据库引擎。 我想安装 Postgresql 引擎, 并恢复/ attach 应用程序 Db 。

应用程序用户是非技术人员,无法单独安装Postgresql。

最佳回答

应用程序用户是非技术人员,无法单独安装Postgresql。

然后试试这个, 默默安装 PostgreSQL, 我们在软件应用中使用类似的代码

C:Installerpostgresql-9.0.2-1-windows.exe  --serverport 5432 --servicename postgres_service --locale C --superaccount Myadmin --superpassword Mypassword --unattendedmodeui minimal --debuglevel 2 --mode unattended 

将此作为蝙蝠文件运行, 在背景中安装

  1. postgresql-9.0.2-1-windows.exe

这是你的前身

  1. serverport 5432

这是您要安装 Postgres 的端口号

  1. superaccount Myadmin

您使用账户名称

  1. superpassword Mypassword

您的用户密码

keep the rest same. This will directly install to c:Program Files

问题回答

我想您想在 Windows 上部署, 这样您就可以将 PostgrSQL 包含在您的应用程序安装器中, 您可以创建一个应用程序安装器, 例如 : < a href=" http://www.jrsoftware.org/ isinfo.php" rel = "nofollow" >InnoSetup ...

< a href=> https://www.centuredb.com/edb-docs/d/posgresql/stallation-getting-started/started/stallation-appleters/10/PostgreSQL_Installation_Guide 1..16.html#" rel="Nofollow noreferrer" >这里 是Postgresql静默安装在Windows上的细节。安装者可以从rererererere>。 一旦安装后,您就可以将您的 db 脚本运行离线。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签