APM 10.7 Postgres install fails

Document ID : KB000118520
Last Modified Date : 26/10/2018
Show Technical Document Details
After running APM 10.7 install I receive error stating details of error are saved to log. Log shows: Create Database Failed Status: ERROR Additional Notes: ERROR - psql: FATAL: password authentication failed for user "postgres" (STDOUT: Cannot check if the user 'cemadmin' already exists on postgres. )
We uninstall APM and postgres. We clean out all the items: user, temp folder files, rebooted

Then we install the APM and postgres with following setup in place, 

Turned off UAC and Anti-Virus 

open command prompt with "Run as administrator". 

from the command prompt cd to where the installer exe exist. 

then run the installer exe from command prompt 

select the "EM, WV and database " option 

This time EM, WV and database postgres install successfully.