Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6F6851F667F for ; Tue, 22 Nov 2011 20:23:46 -0400 (AST) Received: from mail-vx0-f174.google.com ([209.85.220.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RT0cr-0005Ft-Ra for pgsql-admin@postgresql.org; Wed, 23 Nov 2011 00:23:46 +0000 Received: by vcbfk1 with SMTP id fk1so867194vcb.19 for ; Tue, 22 Nov 2011 16:23:33 -0800 (PST) Received: by 10.220.209.196 with SMTP id gh4mr1607354vcb.100.1322007813333; Tue, 22 Nov 2011 16:23:33 -0800 (PST) Received: from ayaki.localdomain (124-169-45-65.dyn.iinet.net.au. [124.169.45.65]) by mx.google.com with ESMTPS id w5sm21054436vdh.17.2011.11.22.16.23.30 (version=SSLv3 cipher=OTHER); Tue, 22 Nov 2011 16:23:32 -0800 (PST) Message-ID: <4ECC3D00.2070507@ringerc.id.au> Date: Wed, 23 Nov 2011 08:23:28 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 MIME-Version: 1.0 To: "Skusa, Andre" CC: "pgsql-admin@postgresql.org" Subject: Re: silent installer References: <0503A7EB54C6904E91EE7C74BAD41B942C0F712BAA@DEEXVS61.wincor-nixdorf.com> In-Reply-To: <0503A7EB54C6904E91EE7C74BAD41B942C0F712BAA@DEEXVS61.wincor-nixdorf.com> Content-Type: multipart/alternative; boundary="------------080807040800070900040604" X-Archive-Number: 201111/114 X-Sequence-Number: 38708 This is a multi-part message in MIME format. --------------080807040800070900040604 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 11/23/2011 01:06 AM, Skusa, Andre wrote: > > Hello postgres admins, > > is there any silent installer for current postgres releases (>= 9.x) > available? Or what should I consider if I plan to include postgres in > the installer of my own software package? > > The installer has command line options for non-interactive / silent installation. Try using the --help, -h or /? flags (don't remember which) on the installer. Consider *asking* the user if they want Pg installed or if they'd like to provide their own database settings instead. If you do silent install, please consider what'll happen if the user already has the same version of PostgreSQL installed. You'll still need to provide them with a way to tell your application which database settings to use, since your installer won't overwrite an already-installed version of Pg. Alternately, you can use the PostgreSQL .zip package, creating a user account and service account yourself. That has the advantage of letting you create your own package that's independent of any regular PostgreSQL installation so you can set your own user account, service account, password, etc. The downside is that it's a lot more work to get right. -- Craig Ringer --------------080807040800070900040604 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 11/23/2011 01:06 AM, Skusa, Andre wrote:

Hello postgres admins,

 

is there any silent installer for current postgres releases (>= 9.x) available? Or what should I consider if I plan to include postgres in the installer of my own software package?


The installer has command line options for non-interactive / silent installation. Try using the --help, -h or /? flags (don't remember which) on the installer.

Consider *asking* the user if they want Pg installed or if they'd like to provide their own database settings instead. If you do silent install, please consider what'll happen if the user already has the same version of PostgreSQL installed. You'll still need to provide them with a way to tell your application which database settings to use, since your installer won't overwrite an already-installed version of Pg.

Alternately, you can use the PostgreSQL .zip package, creating a user account and service account yourself. That has the advantage of letting you create your own package that's independent of any regular PostgreSQL installation so you can set your own user account, service account, password, etc. The downside is that it's a lot more work to get right.

--
Craig Ringer
--------------080807040800070900040604--