Error installing postgresql:While installing Postgres, problem running post-install step PostgreSQL windows 10, cluster initialization failed

Error installing postgresql:While installing Postgres, problem running post-install step PostgreSQL windows 10, cluster initialization failed

Problem: An error occurred while installing Postgres SQL.

Error: While installing Postgres, problem running post-install step PostgreSQL windows 10, cluster initialization failed

Solution:

1. Check the system32 path is set in the environment PATH variable. If not then follow the below step to set it.

Control Panel -> System -> Advanced System Settings -> Advanced -> Environment Variables

Under "System variable" find and select "Path"

Click "Edit..."

Append  system32 path to PATH variable (Example ";C:\Windows\system32")

2.  Reinstall Postgres SQL.

      Links to better reach 

            Bot Store

             EPD