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