Can't install PostgreSQL: An error occurred executing the Microsoft VC++ runtime installer on Windows XP

前端 未结 14 1296
眼角桃花
眼角桃花 2021-01-30 12:08

I downloaded installer postgresql-9.0.1-1-windows.exe from the official site, ran it, and then got an error:

An error occurred executing the Microsoft VC+

14条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 13:05

    I had these same problems and tried

    • manually installing MS VC++
    • bypassing VC++ installation on postgres
    • fixing windows update service

    Still unsuccessful

    Then I solved these problem by installing postgres manually:

    • extract the PostgreSQL installation contents to C:\PostgreSQL (you can copy from successful installation on other machines)
    • add C:\PostgreSQL\bin to PATH environment
    • run pg_ctl register -D D:\pgdata -N postgresql -U postgres -P

提交回复
热议问题