If you call the postgresql executable by passing the --help parameter it will open the information:
Youmustenterthepassword,thepathoftheinstallation,youcandefineitthroughtheparameters.
Soyoucancallitlikethis:
msiexec/ipostgresql[versão].msi/qrINTERNALLAUNCH=1ADDLOCAL=server,psql,docsSERVICEDOMAIN="%COMPUTERNAME%"
SERVICEPASSWORD="SecretWindowsPassword123" SUPERPASSWORD="VerySecret" BASEDIR="c:\postgres" TRANSFORMS=:lang_de
I've never used the Advanced Installer, but I've already used NSIS Compiler , and I currently use the Inno Setup Compiler , I know you can do this without problems ..
Reference: link
I hope I have helped!