Launching InitDB on Postgre - Advanced Installer Community

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!

tolo1984
Posts: 34
Joined: Tue Jul 26, 2011 9:47 am

Launching InitDB on Postgre

Hello,

in our project we have to run InitDB.exe to initialize Postgre DB server.

We'd like to avoid to create specific users on target machine, so postgre service runs as Local Service account. This can be done, but our problem is that initdb is giving us a lot of headaches.
Usually failing because lacks permissions.

There are two issues here..

1- The account under it is runned initdb when launched from the Custom Action.

2- The permissions on the target folder.

¿How can we control this?

Becuase when we cllick on permission on 'Files And Folders' it seems a bit useless ( the menu presents us the users on the currentd eveloping machine...)

¿a way to give permissions to ' executing user' on target machine, for example...?



(if possible, without customizing customized custom code or customized c++ executables, scripts, or others .... i mean...)



Thanks a lot.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Launching InitDB on Postgre

Hello,
The account under it is runned initdb when launched from the Custom Action.
If you set the custom action with "Deferred with no impersonation" execution option, it will run under the System Account.
The permissions on the target folder.
These permissions can be set from the Files and Folders page from the folder's context menu. Here's the dialog reference from the user guide.
a way to give permissions to ' executing user' on target machine, for example...?
A reference to the installing user is stored in the USERNAME Windows Installer property. A usage example evident in the image from this user guide reference.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”