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!

araul
Posts: 7
Joined: Sat Mar 31, 2018 11:38 am

Search and Update pg_hba.conf

Postgres is installed as a prerequisite. Upon installation, we need to search and modify the pg_hba.conf file to allow connections to the system database. How to achieve this?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Search and Update pg_hba.conf

Hello,

To implement such behavior you can proceed like this:

1. add the postgres setup as a pre-install prerequisite
2. use a file search to search for the installed pg_hba.conf file and try to extract the parent folder from its path using a custom action; have a look on the "Find the folder which contains a file" section of our user guide article
3. then just go to "Files and Folders" page and create a property-based folder using the property where you saved the parent folder path of "pg_hba.conf" file; here using our "Text Update" or "XML Update" feature define the changes you want to ad dto "pg_hba.conf" file

Let us know if you have any questions or doubts.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”