Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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++ runtime installer

What is the reason for this error message?

Platform: Windows XP SP3, Dell Inspiron 1501. Processor: AMD Sempron 3500+

like image 670
vmg Avatar asked Nov 26 '10 20:11

vmg


People also ask

Why is PostgreSQL not installing?

If you encounter an error about being unable to create the postgres service user, turn off any antivirus programs and re-run the installer. >\database directory and manually set the permissions for the \data subdirectory. If the subdirectory \data does not exist, create. Then uninstall PostgreSQL and re-install.

Can you install PostgreSQL on Windows?

PostgreSQL was developed for UNIX-like platforms, however, it was designed to be portable. It means that PostgreSQL can also run on other platforms such as macOS, Solaris, and Windows. Since version 8.0, PostgreSQL offers an installer for Windows systems that makes the installation process easier and faster.


1 Answers

One of the reasons this can happen is because the installer attempts to install an older version of the VC++ runtime than what you are currently using.

See this installation log, found in your user's temporary directory (e.g. dd_vcredist_amd64_20190214193107.log):

[20C0:20E4][2019-02-14T19:31:07]e000: Error 0x80070666: Cannot install a product when a newer version is installed.

A workaround is to prevent the runtimes from installing with the --install_runtimes option:

postgresql-9.6.12-1-windows-x64.exe --install_runtimes 0 
like image 134
Milen A. Radev Avatar answered Sep 25 '22 22:09

Milen A. Radev