>> Trying to use same approach with Postgres fails. Postgres
>> requires special user account and is not capable to create
>> this account without user intervention.
>
> Sure, it's very much capable of diong that. See
> http://pginstaller.projects.postgresql.org/silent.html, specifically
> look for SERVICEACCOUNT, SERVICEPASSWORD and CREATESERVICEUSER.
Is there some executable file which I can call with -install switch and
which creates account without running installer ?
>> How to force Postgres to install itself as service running
>> under SYSTEM or under LOCAL SERVICE account?
>
> Can't do that with stock postgresql, you'll need to hack up your own
> version.
How to add some command-line switch to this, like
-installusingsystemaccount
Andrus.