I try to install PostgreSQL within myapp.exe (which used advanced installer to build) in unattended mode,
I set parameters as below:
--mode unattended --superpassword xxxxxxx --prefix c:\programs files (x86)\myapp\pg_install --datadir c:\programs files (x86)\myapp\pg_data --servicename PostgresSQL --serverport 5000
Then PostgreSQL gets error within installation of app as below:
There has been error. Expected option but got "Files". Option start with a leading "--" prefix Use --help to get a list of valid options
when I changed installation dir to
d:\ I got another error as below:
A data directory is registered in ****unknown variable postgresqlini**** but is neither empty, or a recognisable data directory.
The first error is the main one, because it's my app default installation dir is
c:\program files (x86)\myapp
I searched a lot but didn't find any solution to fix it.