Problems running PostGreSQL silent install

From: "Greg Quinn" <greg(at)officium(dot)co(dot)za>
To: <pgsql-novice(at)postgresql(dot)org>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Problems running PostGreSQL silent install
Date: 2006-10-27 20:14:24
Message-ID: 003401c6fa04$820ed0a0$6501a8c0@melt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

I have seen many problems like this in the forum, but cannot see a solution
for mine...

I have created an account with restricted privileges for the service.
Everything works fine until I get an error running the silent install.

Failed to run initdb: 1!

I then check the logfile, and it says

The files belonging to this database system will be owned by user
"postgres2".
This user must also own the server process.

The database cluster will be initialized with locale C.

initdb: directory "C:/Program Files/PostgreSQL/8.1/data" exists but is not
empty
If you want to create a new database system, either remove or empty
the directory "C:/Program Files/PostgreSQL/8.1/data" or run initdb
with an argument other than "C:/Program Files/PostgreSQL/8.1/data".

The problem is, that I am trying to install a second instance of PostGreSQL
on another port in another location my test computer.
Is this possible?

Here is my silent install .bat script file

msiexec.exe /i postgresql-8.1-int.msi /qr INTERNALLAUNCH=1
ADDLOCAL=server,psql BASEDIR="c:\postgres" SERVICEDOMAIN="%COMPUTERNAME%"
SERVICEACCOUNT="postgres2" SERVICEPASSWORD="test" SUPERPASSWORD="o2BS#9798"
LISTENPORT=9092

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2006-10-27 20:21:33 Re: Problems running PostGreSQL silent install
Previous Message Sandro Dentella 2006-10-27 20:11:09 Re: Simple OUTER JOIN doubt

Browse pgsql-novice by date

  From Date Subject
Next Message Magnus Hagander 2006-10-27 20:21:33 Re: Problems running PostGreSQL silent install
Previous Message operationsengineer1 2006-10-27 18:45:19 Re: how does postgresql work