我们软件使用的win32 / 64安装程序
{'--unattendedmodeui':'minimal','--mode':'unattended'}
官方Postgresql安装程序的子进程中的参数:
http://www.enterprisedb.com/products-services-training/pgdownload#windows
http://get.enterprisedb.com/postgresql/postgresql-9.1.2-1-windows.exe
解决方法
or using any other win32/64 prebuilt Postgresql binaries
您可以下载ZIP archives,然后将这些步骤嵌入到安装程序中:
>解压缩档案
>创建Windows服务用户帐户(如果需要/需要 – 自9.2以后不再需要)
>使用approriate参数运行initdb
>运行pg_ctl register以创建Windows服务
在集成ZIP存档之前,您可以从中删除所有不需要的组件(例如pgAdmin,调试符号).