i created two folders for install postgresql under Application Folder as (pdata - pg_install),
i set command for unattended mode as below:
--serverport 5555 --servicename PostgreSQL --superpassword xxxxxxxxxx --unattendedmodeui minimal --debuglevel 2 --mode unattended --prefix [pg_install_Dir] --datadir [APPDIR]pdata
**note: i used [APPDIR]pdata instead of [pg_install_Dir] because i got an error when using [pg_install_Dir], specifically when its added "\" after ..\pdata
when run myapp.exe, and in step of progress which install prerequisites , PostgreSQL gets error within installation of app as below:
this error just appear when i used the default installation dir → c:\program files (x86)\myappThere 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 c:\ or d:\ the unattended installation start, but I got another an error when unattended installation try to start postgresql server as below:
Failed to load SQL modules into the database cluster
i searched on this error and found it related with data dir of postgresql, but i didn't got this error when i was using inno with myapp 6 month ago.
i just want a solution to install postgresql in my app dir, (and keep my app dir using default in ..\program files (x86)\ without above errors)
Thanks
FOLLOW US
Get the latest news in Application Packaging