Re: Install Postgre while installing Other software.

From: Iñigo Barandiaran <ibarandiaran(at)vicomtech(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Install Postgre while installing Other software.
Date: 2009-02-08 12:04:53
Message-ID: 68038b540902080404l1599107cof9bfadaf107790fb@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi.

I've found this page about silent install that was very usefull for me:
http://pginstaller.projects.postgresql.org/silent.html

Now, I've found another problem. I'm able to install PostgreSQL with my
software in silent mode, but the problem comes when I do un-install. The
problem is related with service account.
I'm currently using the followin settings for install:

*msiexec /i postgresql-8.3-int.msi /qr INTERNALLAUNCH=1 DOINITDB=1
CREATESERVICEUSER=1 ADDLOCAL=server,psql,pgadmin BASEDIR="c:\postgres"
SERVICEDOMAIN="%COMPUTERNAME%" SERVICEPASSWORD="AnyPassWord" SUPERPASSWORD="
**AnyPassWord2****" *

If I do un-install the service account is not removed, so next time I try to
install the software again the service account name (posgres) exists so It
can not be created again, so the installation progress stops, rolling back.
Do you know how can I remove posgres service account while un-installing? or
maybe Do you know how to chek if the postgres user exist while installing,
so therefore the installation process could create or login with that user?

Thank in advance!

2009/2/7 Iñigo Barandiaran <ibarandiaran(at)vicomtech(dot)org>

> Hi Raymond!
>
> Thanks for your answer. I'm going to take a look to the silent option you
> mentioned.
> Any link related with this topic would be very appreciated.
>
> Thanks in advance!
>
> Best,
>
> 2009/2/7 Raymond O'Donnell <rod(at)iol(dot)ie>
>
> On 07/02/2009 15:40, Iñigo Barandiaran wrote:
>> > I'm trying to use Postgre as a DataBase manager of a Software I'm
>> > developing. I would like to know how to integrate an installation of
>> Postgre
>> > in the installation of my own software. I mean, I need to firstly
>> install
>>
>> The community installer (pgInstaller) has a silent-install option which
>> I understand is intended for just this scenario.
>>
>> BTW, the accepted abbreviation of PostgreSQL is "postgres", not "postgre".
>>
>> Ray.
>>
>>
>> ------------------------------------------------------------------
>> Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
>> rod(at)iol(dot)ie
>> Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
>> ------------------------------------------------------------------
>>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hiroshi Inoue 2009-02-08 12:24:32 Re: encoding of PostgreSQL messages
Previous Message Peter Eisentraut 2009-02-08 09:25:56 Re: encoding of PostgreSQL messages