We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Mrashwan32
Posts: 4
Joined: Fri Nov 30, 2018 2:54 pm

install Postgresql error in unattended mode

I try to install PostgreSQL within myapp in unattended mode,
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:
There has been error. Expected option but got "Files". Option start with a leading "--" prefix Use --help to get a list of valid options
this error just appear when i used the default installation dir → c:\program files (x86)\myapp

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
Mrashwan32
Posts: 4
Joined: Fri Nov 30, 2018 2:54 pm

Re: install Postgresql error in unattended mode

update:

i try the solution with postgresql_9.6_x86 and 10.5_x86 and 10.5_x64 and 10.6_x86_x64 and 10.6_86
- advanced installer v12
- platform windows 8.1 x64 pro and windows server 2012 r2
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: install Postgresql error in unattended mode

Hi,

In order to investigate the problem, please send me your project with the steps that I should follow in order to reproduce the error to support at advancedinstaller dot com.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”