解决安装postgresql安装报An error occurred executing the Microsoft C++ runtime installer.问题

业务需要在win7 32 操作系统上安装postgresql,去官网下了安装包。

在安装的时候,安装vs2013 运行时环境失败,报错“An error occurred executing the Microsoft C++ runtime installer”。

搜索出来的博客可以在命令行运行, postgresql-xxx-windows.exe --install_runtimes 0, 可是仍然报错。

随后想可以自己安装vs相关的运行时环境,在搜索引擎中输入 “vs2013 运行时环境”,找到微软的官方链接,下载了vs2013的运行时环境可执行文件, 运行安装.

然后打开命令行,输入 postgresql-xxx-windows.exe --install_runtimes 0,直接出来了postgresql 的安装界面,一路next,安装成功,收工.

原文地址:https://www.cnblogs.com/imucsgg/p/11137833.html