我在try 安装PostgreSQL v9时遇到了同样的错误.Windows 10 Pro上的4.4.从a solution hosted on Stack Exchange开始,我想出了以下步骤,使安装程序能够成功运行:
1) Create a new user account, called postgres
2) Add the new account to the Administrators and Power Users groups
3) Restart the computer
NOTE: I added step #3, since step #4 didn't work without it
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
NOTE: I added step #6, since the postgres account is not required after installation