Install PostgreSQL with given admin password on Windows 7 -
i install postgresql part of custom application installer. there way install postgresql without asking user admin password, , provide custom admin password postgresql.
later when application needs "admin" activities on postgresql db application knows password is.
reason is, when user supply admin password postgresql during install time, user not remember 6 months down line when application needs admin functions on db, , user have supply password.
thank you
according official docs, can done --superpassword option when running installer in unattended mode.
in general looking @ doing, need run in unattended mode anyway (from custom application's installer). additionally, find lot of other useful switches in doc.
best of luck.