Re: 2 questions: Installation And DB runtime creation

From: John DeSoi <desoi(at)pgedit(dot)com>
To: CiaMba <cia(dot)mba(at)tiscali(dot)it>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: 2 questions: Installation And DB runtime creation
Date: 2005-04-11 13:43:37
Message-ID: B49DB03A-AA8F-11D9-AD58-000A95B03262@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


On Apr 9, 2005, at 7:32 AM, CiaMba wrote:

> Hi,
> i have the questions as in object:
>
> How can i install Postgres in a novice user's PC, without manual
> inserting
> by user of parameters requested during the tipical installation?
>
> After this, how can i create my DB silent-runtime in that PC?
> ...createdb, yes, but without to ask any password.
>
> I tried this:
> c:\programmi\PostgreSQL\8.0\bin\createdb -U postgres -E UNICODE Example
>
> but it opens always a shell with password promt.

All of the source code for the installer is available -- you could
build a customized version that leaves out the option screens. I also
think you can run any installer from the command line with a 'silent'
option that uses only the defaults. Perhaps you can use the existing
installer this way (see msiexec). The installer creates a database, so
you can look at the source and see how it is done.

http://pgfoundry.org/projects/pginstaller

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Andy Dunlop 2005-04-11 15:14:20 Postgres startup
Previous Message Ennio-Sr 2005-04-11 12:57:13 Re: how to ignore accents?