1

I'm trying to install PostgreSQL (version 9.4.5-2 x64) in my computer and I would like to put data in my user folder. I think that it is better to do not lose data when uninstall Postgre later or even format programs partition.

The problem is that it doesn't initiate the PostgreSQL service, even using Administrator profile. It shows a message saying: Failed to load SQL Modules into the database cluster., probably because it couldn't initiate the service.

I tried many different folders and even changing some permissions it was not possible to do this. The best alternative was to put it on program data folder. Is there anything that I could do to put it or in local user app data or my documents folder?

Regards, Leandro

1 Answer 1

1

Have you tried the solution from this question?

1) Create a new user account, called postgres

2) Add the new account to the Administrators and Power Users groups

3) Restart the computer

4) Run a command prompt as the postgres user, using the command:

runas /user:postgres cmd.exe

5) Run the installer from the postgres command window

6) Delete the postgres user account, as well as the user directory

Sign up to request clarification or add additional context in comments.

2 Comments

The postgres user should not be an Administrator.
This is an opition but it's not possible to use in Inno Setup (my idea) because it asks for postgres profile authentication.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.