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












42















I downloaded installer postgresql-9.0.1-1-windows.exe from official site, ran it, then got error: An error occurred executing the Microsoft VC++ runtime installer



Please, help me someone, who know reason of this error message:
Windows XP, SP3, Dell Inspiron 1501, Processor: AMD Sempron 3500+










share|improve this question


















  • 1





    In case you haven't seen it: a couple of reasons for this error are listed here: wiki.postgresql.org/wiki/…

    – bernie
    Nov 26 '10 at 20:20













  • @bernie wiki.postgresql.org/wiki/…

    – Andrew Grimm
    Dec 10 '18 at 5:42
















42















I downloaded installer postgresql-9.0.1-1-windows.exe from official site, ran it, then got error: An error occurred executing the Microsoft VC++ runtime installer



Please, help me someone, who know reason of this error message:
Windows XP, SP3, Dell Inspiron 1501, Processor: AMD Sempron 3500+










share|improve this question


















  • 1





    In case you haven't seen it: a couple of reasons for this error are listed here: wiki.postgresql.org/wiki/…

    – bernie
    Nov 26 '10 at 20:20













  • @bernie wiki.postgresql.org/wiki/…

    – Andrew Grimm
    Dec 10 '18 at 5:42














42












42








42


9






I downloaded installer postgresql-9.0.1-1-windows.exe from official site, ran it, then got error: An error occurred executing the Microsoft VC++ runtime installer



Please, help me someone, who know reason of this error message:
Windows XP, SP3, Dell Inspiron 1501, Processor: AMD Sempron 3500+










share|improve this question














I downloaded installer postgresql-9.0.1-1-windows.exe from official site, ran it, then got error: An error occurred executing the Microsoft VC++ runtime installer



Please, help me someone, who know reason of this error message:
Windows XP, SP3, Dell Inspiron 1501, Processor: AMD Sempron 3500+







postgresql






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 26 '10 at 20:14









vmgvmg

5,95194475




5,95194475








  • 1





    In case you haven't seen it: a couple of reasons for this error are listed here: wiki.postgresql.org/wiki/…

    – bernie
    Nov 26 '10 at 20:20













  • @bernie wiki.postgresql.org/wiki/…

    – Andrew Grimm
    Dec 10 '18 at 5:42














  • 1





    In case you haven't seen it: a couple of reasons for this error are listed here: wiki.postgresql.org/wiki/…

    – bernie
    Nov 26 '10 at 20:20













  • @bernie wiki.postgresql.org/wiki/…

    – Andrew Grimm
    Dec 10 '18 at 5:42








1




1





In case you haven't seen it: a couple of reasons for this error are listed here: wiki.postgresql.org/wiki/…

– bernie
Nov 26 '10 at 20:20







In case you haven't seen it: a couple of reasons for this error are listed here: wiki.postgresql.org/wiki/…

– bernie
Nov 26 '10 at 20:20















@bernie wiki.postgresql.org/wiki/…

– Andrew Grimm
Dec 10 '18 at 5:42





@bernie wiki.postgresql.org/wiki/…

– Andrew Grimm
Dec 10 '18 at 5:42












14 Answers
14






active

oldest

votes


















128














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





share|improve this answer


























  • Gives me There has been an error. Error running XXXgetlocales.exe : Program ended with an err or exit code on 9.6 and 10.6.

    – Peter Rader
    Dec 5 '18 at 15:54








  • 3





    2019 and I encountered the same issue installing version postgresql-11.1-1-windows-x64.exe. Launching it with --install_runtimes 0 definitely solved the problem.

    – jakejgordon
    Jan 12 at 2:16



















12















  1. create a shortcut of your exe file;



  2. right click on the shortcut -> add at the end of the target path



    --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0)


  3. save and run it







share|improve this answer


























  • This worked perfectly for me. You can find the target path under properties after you right click the shortcut. Place the extra command after your quoted path.

    – vizyourdata
    Sep 12 '18 at 16:01











  • @Yesltls Worked for me. To anyone reading this, do not first "apply", but rather follow the above instructions exactly.

    – Alan Wayne
    Jan 21 at 22:42



















11















  1. Create a shortcut of downloaded file


enter image description here




  1. Right click of the shortcut -> Properties -> Shortcut add --install_runtimes 0 end of the file path.


enter image description here






share|improve this answer
























  • Thank you! This solves it for me, I have every VC++ runtime from 08-17 installed and yet this install kept failing.

    – mr_than
    Jan 8 at 5:38











  • How did you learn about --install_runtimes 0 ?

    – Thuy
    Jan 27 at 4:31



















7














create a shortcut of your exe file;
right click on the shortcut -> add at the end of the target path --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0)
save and run it :)






share|improve this answer































    3














    I was having a similar issue, and found a fix that worked for me from Garrett_H on this forum post:



    http://forums.enterprisedb.com/posts/list/1747.page#6180




    Go to file %windir%infwsh.inf, right click and select 'Install'



    re-run postgresql installer




    I'm running Windows XP Pro and I was trying to install postgresql-8.3.17-1-windows.exe. I originally received the following error:




    An error occurred executing the Microsoft C++ runtime installer.







    share|improve this answer































      3














      In my case when I was installing postgresql-11.0-1-windows-x64.exe on windows10, I had faced the same problem. I just uninstalled the Microsoft Visual C++ Redistributable (the latest one for both 32 and 64 bit) and then tried to install postgresql-11.0-1-windows-x64.exe again and it worked for me.






      share|improve this answer

































        2














        Try installing as administrator (using run as administrator). In version 9.0 PostgreSQL can be installed as a windows administrator :)






        share|improve this answer































          2














          Check if WSH is enabled. If not enable. Details here: http://1stopit.blogspot.com/2011/01/postgresql-83-and-84-fails-to-install.html






          share|improve this answer































            2














            Take special care that your Windows user's folder name does not contain spaces, the PostgreSQL (as of version 9.2.2.1) handles that poorly. If I use this account on WinXP, installation fails with the "An error occurred executing the Microsoft C++ runtime installer" message:



            "C:Documents and settingsJimmy (admin)"



            But runs just fine with this:



            "C:Documents and settingsJimmy-admin"



            The spaces in "Documents and settings" don't seem to bother the installer. Go figure.






            share|improve this answer































              2














              Go to file %windir%infwsh.inf, right click and select 'Install'
              re-run postgresql installer


              This works on Windows XP with PostgreSQL 8.4.17-1






              share|improve this answer































                2














                First download and install virtual c++ from microsoft website, then run the installation from command with --install_runtimes 0






                share|improve this answer































                  2














                  I too faced the same issue. I fixed it in the following way:




                  1. I visited the below site:
                    https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

                  2. Choose the Download button under PostgreSQL Version 11.1 for Windows x86-64.


                  In one word, just try to install the latest version.






                  share|improve this answer



















                  • 1





                    That's literally the version giving me this error. Choosing version 10.6-1 instead worked.

                    – James M.
                    Dec 11 '18 at 7:28



















                  0














                  I had the same problem while trying to install PostgreSQL version 11.1. I had to uninstall the Microsoft VC++ and and run the installer again. It downloaded the required VC++ and the installation went successful.






                  share|improve this answer































                    0














                    The Windows Scripting Host is unable to execute VBscripts. This can occur if the scripting host is disabled (which is unusual), or if the installation is broken. A sign of this problem is a message like




                    CScript Error: Can't find script engine "VBScript" for script "C:....




                    It can often be resolved by re-registering the VBScript interpreter, click Start -> Run and enter the following and click OK:



                    regsvr32 %systemroot%system32vbscript.dll






                    share|improve this answer
























                      protected by Jean-François Fabre Feb 15 at 20:54



                      Thank you for your interest in this question.
                      Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                      Would you like to answer one of these unanswered questions instead?














                      14 Answers
                      14






                      active

                      oldest

                      votes








                      14 Answers
                      14






                      active

                      oldest

                      votes









                      active

                      oldest

                      votes






                      active

                      oldest

                      votes









                      128














                      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





                      share|improve this answer


























                      • Gives me There has been an error. Error running XXXgetlocales.exe : Program ended with an err or exit code on 9.6 and 10.6.

                        – Peter Rader
                        Dec 5 '18 at 15:54








                      • 3





                        2019 and I encountered the same issue installing version postgresql-11.1-1-windows-x64.exe. Launching it with --install_runtimes 0 definitely solved the problem.

                        – jakejgordon
                        Jan 12 at 2:16
















                      128














                      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





                      share|improve this answer


























                      • Gives me There has been an error. Error running XXXgetlocales.exe : Program ended with an err or exit code on 9.6 and 10.6.

                        – Peter Rader
                        Dec 5 '18 at 15:54








                      • 3





                        2019 and I encountered the same issue installing version postgresql-11.1-1-windows-x64.exe. Launching it with --install_runtimes 0 definitely solved the problem.

                        – jakejgordon
                        Jan 12 at 2:16














                      128












                      128








                      128







                      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





                      share|improve this answer















                      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






                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Feb 16 at 12:13









                      Rob

                      37.7k21103131




                      37.7k21103131










                      answered Nov 27 '10 at 1:35









                      Milen A. RadevMilen A. Radev

                      45.4k189395




                      45.4k189395













                      • Gives me There has been an error. Error running XXXgetlocales.exe : Program ended with an err or exit code on 9.6 and 10.6.

                        – Peter Rader
                        Dec 5 '18 at 15:54








                      • 3





                        2019 and I encountered the same issue installing version postgresql-11.1-1-windows-x64.exe. Launching it with --install_runtimes 0 definitely solved the problem.

                        – jakejgordon
                        Jan 12 at 2:16



















                      • Gives me There has been an error. Error running XXXgetlocales.exe : Program ended with an err or exit code on 9.6 and 10.6.

                        – Peter Rader
                        Dec 5 '18 at 15:54








                      • 3





                        2019 and I encountered the same issue installing version postgresql-11.1-1-windows-x64.exe. Launching it with --install_runtimes 0 definitely solved the problem.

                        – jakejgordon
                        Jan 12 at 2:16

















                      Gives me There has been an error. Error running XXXgetlocales.exe : Program ended with an err or exit code on 9.6 and 10.6.

                      – Peter Rader
                      Dec 5 '18 at 15:54







                      Gives me There has been an error. Error running XXXgetlocales.exe : Program ended with an err or exit code on 9.6 and 10.6.

                      – Peter Rader
                      Dec 5 '18 at 15:54






                      3




                      3





                      2019 and I encountered the same issue installing version postgresql-11.1-1-windows-x64.exe. Launching it with --install_runtimes 0 definitely solved the problem.

                      – jakejgordon
                      Jan 12 at 2:16





                      2019 and I encountered the same issue installing version postgresql-11.1-1-windows-x64.exe. Launching it with --install_runtimes 0 definitely solved the problem.

                      – jakejgordon
                      Jan 12 at 2:16













                      12















                      1. create a shortcut of your exe file;



                      2. right click on the shortcut -> add at the end of the target path



                        --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0)


                      3. save and run it







                      share|improve this answer


























                      • This worked perfectly for me. You can find the target path under properties after you right click the shortcut. Place the extra command after your quoted path.

                        – vizyourdata
                        Sep 12 '18 at 16:01











                      • @Yesltls Worked for me. To anyone reading this, do not first "apply", but rather follow the above instructions exactly.

                        – Alan Wayne
                        Jan 21 at 22:42
















                      12















                      1. create a shortcut of your exe file;



                      2. right click on the shortcut -> add at the end of the target path



                        --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0)


                      3. save and run it







                      share|improve this answer


























                      • This worked perfectly for me. You can find the target path under properties after you right click the shortcut. Place the extra command after your quoted path.

                        – vizyourdata
                        Sep 12 '18 at 16:01











                      • @Yesltls Worked for me. To anyone reading this, do not first "apply", but rather follow the above instructions exactly.

                        – Alan Wayne
                        Jan 21 at 22:42














                      12












                      12








                      12








                      1. create a shortcut of your exe file;



                      2. right click on the shortcut -> add at the end of the target path



                        --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0)


                      3. save and run it







                      share|improve this answer
















                      1. create a shortcut of your exe file;



                      2. right click on the shortcut -> add at the end of the target path



                        --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0)


                      3. save and run it








                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Feb 19 '16 at 14:14









                      meagar

                      181k30276294




                      181k30276294










                      answered Feb 19 '16 at 13:59









                      YesItIsYesItIs

                      12112




                      12112













                      • This worked perfectly for me. You can find the target path under properties after you right click the shortcut. Place the extra command after your quoted path.

                        – vizyourdata
                        Sep 12 '18 at 16:01











                      • @Yesltls Worked for me. To anyone reading this, do not first "apply", but rather follow the above instructions exactly.

                        – Alan Wayne
                        Jan 21 at 22:42



















                      • This worked perfectly for me. You can find the target path under properties after you right click the shortcut. Place the extra command after your quoted path.

                        – vizyourdata
                        Sep 12 '18 at 16:01











                      • @Yesltls Worked for me. To anyone reading this, do not first "apply", but rather follow the above instructions exactly.

                        – Alan Wayne
                        Jan 21 at 22:42

















                      This worked perfectly for me. You can find the target path under properties after you right click the shortcut. Place the extra command after your quoted path.

                      – vizyourdata
                      Sep 12 '18 at 16:01





                      This worked perfectly for me. You can find the target path under properties after you right click the shortcut. Place the extra command after your quoted path.

                      – vizyourdata
                      Sep 12 '18 at 16:01













                      @Yesltls Worked for me. To anyone reading this, do not first "apply", but rather follow the above instructions exactly.

                      – Alan Wayne
                      Jan 21 at 22:42





                      @Yesltls Worked for me. To anyone reading this, do not first "apply", but rather follow the above instructions exactly.

                      – Alan Wayne
                      Jan 21 at 22:42











                      11















                      1. Create a shortcut of downloaded file


                      enter image description here




                      1. Right click of the shortcut -> Properties -> Shortcut add --install_runtimes 0 end of the file path.


                      enter image description here






                      share|improve this answer
























                      • Thank you! This solves it for me, I have every VC++ runtime from 08-17 installed and yet this install kept failing.

                        – mr_than
                        Jan 8 at 5:38











                      • How did you learn about --install_runtimes 0 ?

                        – Thuy
                        Jan 27 at 4:31
















                      11















                      1. Create a shortcut of downloaded file


                      enter image description here




                      1. Right click of the shortcut -> Properties -> Shortcut add --install_runtimes 0 end of the file path.


                      enter image description here






                      share|improve this answer
























                      • Thank you! This solves it for me, I have every VC++ runtime from 08-17 installed and yet this install kept failing.

                        – mr_than
                        Jan 8 at 5:38











                      • How did you learn about --install_runtimes 0 ?

                        – Thuy
                        Jan 27 at 4:31














                      11












                      11








                      11








                      1. Create a shortcut of downloaded file


                      enter image description here




                      1. Right click of the shortcut -> Properties -> Shortcut add --install_runtimes 0 end of the file path.


                      enter image description here






                      share|improve this answer














                      1. Create a shortcut of downloaded file


                      enter image description here




                      1. Right click of the shortcut -> Properties -> Shortcut add --install_runtimes 0 end of the file path.


                      enter image description here







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Jan 1 at 18:16









                      atik sarkeratik sarker

                      2,6132432




                      2,6132432













                      • Thank you! This solves it for me, I have every VC++ runtime from 08-17 installed and yet this install kept failing.

                        – mr_than
                        Jan 8 at 5:38











                      • How did you learn about --install_runtimes 0 ?

                        – Thuy
                        Jan 27 at 4:31



















                      • Thank you! This solves it for me, I have every VC++ runtime from 08-17 installed and yet this install kept failing.

                        – mr_than
                        Jan 8 at 5:38











                      • How did you learn about --install_runtimes 0 ?

                        – Thuy
                        Jan 27 at 4:31

















                      Thank you! This solves it for me, I have every VC++ runtime from 08-17 installed and yet this install kept failing.

                      – mr_than
                      Jan 8 at 5:38





                      Thank you! This solves it for me, I have every VC++ runtime from 08-17 installed and yet this install kept failing.

                      – mr_than
                      Jan 8 at 5:38













                      How did you learn about --install_runtimes 0 ?

                      – Thuy
                      Jan 27 at 4:31





                      How did you learn about --install_runtimes 0 ?

                      – Thuy
                      Jan 27 at 4:31











                      7














                      create a shortcut of your exe file;
                      right click on the shortcut -> add at the end of the target path --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0)
                      save and run it :)






                      share|improve this answer




























                        7














                        create a shortcut of your exe file;
                        right click on the shortcut -> add at the end of the target path --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0)
                        save and run it :)






                        share|improve this answer


























                          7












                          7








                          7







                          create a shortcut of your exe file;
                          right click on the shortcut -> add at the end of the target path --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0)
                          save and run it :)






                          share|improve this answer













                          create a shortcut of your exe file;
                          right click on the shortcut -> add at the end of the target path --install_runtimes 0 (eg:postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0)
                          save and run it :)







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 28 '13 at 9:17









                          user2889858user2889858

                          7112




                          7112























                              3














                              I was having a similar issue, and found a fix that worked for me from Garrett_H on this forum post:



                              http://forums.enterprisedb.com/posts/list/1747.page#6180




                              Go to file %windir%infwsh.inf, right click and select 'Install'



                              re-run postgresql installer




                              I'm running Windows XP Pro and I was trying to install postgresql-8.3.17-1-windows.exe. I originally received the following error:




                              An error occurred executing the Microsoft C++ runtime installer.







                              share|improve this answer




























                                3














                                I was having a similar issue, and found a fix that worked for me from Garrett_H on this forum post:



                                http://forums.enterprisedb.com/posts/list/1747.page#6180




                                Go to file %windir%infwsh.inf, right click and select 'Install'



                                re-run postgresql installer




                                I'm running Windows XP Pro and I was trying to install postgresql-8.3.17-1-windows.exe. I originally received the following error:




                                An error occurred executing the Microsoft C++ runtime installer.







                                share|improve this answer


























                                  3












                                  3








                                  3







                                  I was having a similar issue, and found a fix that worked for me from Garrett_H on this forum post:



                                  http://forums.enterprisedb.com/posts/list/1747.page#6180




                                  Go to file %windir%infwsh.inf, right click and select 'Install'



                                  re-run postgresql installer




                                  I'm running Windows XP Pro and I was trying to install postgresql-8.3.17-1-windows.exe. I originally received the following error:




                                  An error occurred executing the Microsoft C++ runtime installer.







                                  share|improve this answer













                                  I was having a similar issue, and found a fix that worked for me from Garrett_H on this forum post:



                                  http://forums.enterprisedb.com/posts/list/1747.page#6180




                                  Go to file %windir%infwsh.inf, right click and select 'Install'



                                  re-run postgresql installer




                                  I'm running Windows XP Pro and I was trying to install postgresql-8.3.17-1-windows.exe. I originally received the following error:




                                  An error occurred executing the Microsoft C++ runtime installer.








                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Dec 5 '11 at 6:55









                                  Bryan DowningBryan Downing

                                  11.6k23350




                                  11.6k23350























                                      3














                                      In my case when I was installing postgresql-11.0-1-windows-x64.exe on windows10, I had faced the same problem. I just uninstalled the Microsoft Visual C++ Redistributable (the latest one for both 32 and 64 bit) and then tried to install postgresql-11.0-1-windows-x64.exe again and it worked for me.






                                      share|improve this answer






























                                        3














                                        In my case when I was installing postgresql-11.0-1-windows-x64.exe on windows10, I had faced the same problem. I just uninstalled the Microsoft Visual C++ Redistributable (the latest one for both 32 and 64 bit) and then tried to install postgresql-11.0-1-windows-x64.exe again and it worked for me.






                                        share|improve this answer




























                                          3












                                          3








                                          3







                                          In my case when I was installing postgresql-11.0-1-windows-x64.exe on windows10, I had faced the same problem. I just uninstalled the Microsoft Visual C++ Redistributable (the latest one for both 32 and 64 bit) and then tried to install postgresql-11.0-1-windows-x64.exe again and it worked for me.






                                          share|improve this answer















                                          In my case when I was installing postgresql-11.0-1-windows-x64.exe on windows10, I had faced the same problem. I just uninstalled the Microsoft Visual C++ Redistributable (the latest one for both 32 and 64 bit) and then tried to install postgresql-11.0-1-windows-x64.exe again and it worked for me.







                                          share|improve this answer














                                          share|improve this answer



                                          share|improve this answer








                                          edited Oct 20 '18 at 15:15









                                          Hossein Golshani

                                          1




                                          1










                                          answered Oct 20 '18 at 14:40









                                          aust_anikaust_anik

                                          312




                                          312























                                              2














                                              Try installing as administrator (using run as administrator). In version 9.0 PostgreSQL can be installed as a windows administrator :)






                                              share|improve this answer




























                                                2














                                                Try installing as administrator (using run as administrator). In version 9.0 PostgreSQL can be installed as a windows administrator :)






                                                share|improve this answer


























                                                  2












                                                  2








                                                  2







                                                  Try installing as administrator (using run as administrator). In version 9.0 PostgreSQL can be installed as a windows administrator :)






                                                  share|improve this answer













                                                  Try installing as administrator (using run as administrator). In version 9.0 PostgreSQL can be installed as a windows administrator :)







                                                  share|improve this answer












                                                  share|improve this answer



                                                  share|improve this answer










                                                  answered Nov 26 '10 at 20:17









                                                  basaratbasarat

                                                  141k27263373




                                                  141k27263373























                                                      2














                                                      Check if WSH is enabled. If not enable. Details here: http://1stopit.blogspot.com/2011/01/postgresql-83-and-84-fails-to-install.html






                                                      share|improve this answer




























                                                        2














                                                        Check if WSH is enabled. If not enable. Details here: http://1stopit.blogspot.com/2011/01/postgresql-83-and-84-fails-to-install.html






                                                        share|improve this answer


























                                                          2












                                                          2








                                                          2







                                                          Check if WSH is enabled. If not enable. Details here: http://1stopit.blogspot.com/2011/01/postgresql-83-and-84-fails-to-install.html






                                                          share|improve this answer













                                                          Check if WSH is enabled. If not enable. Details here: http://1stopit.blogspot.com/2011/01/postgresql-83-and-84-fails-to-install.html







                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered Jan 7 '11 at 2:42









                                                          Igor PIgor P

                                                          211




                                                          211























                                                              2














                                                              Take special care that your Windows user's folder name does not contain spaces, the PostgreSQL (as of version 9.2.2.1) handles that poorly. If I use this account on WinXP, installation fails with the "An error occurred executing the Microsoft C++ runtime installer" message:



                                                              "C:Documents and settingsJimmy (admin)"



                                                              But runs just fine with this:



                                                              "C:Documents and settingsJimmy-admin"



                                                              The spaces in "Documents and settings" don't seem to bother the installer. Go figure.






                                                              share|improve this answer




























                                                                2














                                                                Take special care that your Windows user's folder name does not contain spaces, the PostgreSQL (as of version 9.2.2.1) handles that poorly. If I use this account on WinXP, installation fails with the "An error occurred executing the Microsoft C++ runtime installer" message:



                                                                "C:Documents and settingsJimmy (admin)"



                                                                But runs just fine with this:



                                                                "C:Documents and settingsJimmy-admin"



                                                                The spaces in "Documents and settings" don't seem to bother the installer. Go figure.






                                                                share|improve this answer


























                                                                  2












                                                                  2








                                                                  2







                                                                  Take special care that your Windows user's folder name does not contain spaces, the PostgreSQL (as of version 9.2.2.1) handles that poorly. If I use this account on WinXP, installation fails with the "An error occurred executing the Microsoft C++ runtime installer" message:



                                                                  "C:Documents and settingsJimmy (admin)"



                                                                  But runs just fine with this:



                                                                  "C:Documents and settingsJimmy-admin"



                                                                  The spaces in "Documents and settings" don't seem to bother the installer. Go figure.






                                                                  share|improve this answer













                                                                  Take special care that your Windows user's folder name does not contain spaces, the PostgreSQL (as of version 9.2.2.1) handles that poorly. If I use this account on WinXP, installation fails with the "An error occurred executing the Microsoft C++ runtime installer" message:



                                                                  "C:Documents and settingsJimmy (admin)"



                                                                  But runs just fine with this:



                                                                  "C:Documents and settingsJimmy-admin"



                                                                  The spaces in "Documents and settings" don't seem to bother the installer. Go figure.







                                                                  share|improve this answer












                                                                  share|improve this answer



                                                                  share|improve this answer










                                                                  answered Jan 29 '13 at 17:17









                                                                  Jaime de los Hoyos M.Jaime de los Hoyos M.

                                                                  1235




                                                                  1235























                                                                      2














                                                                      Go to file %windir%infwsh.inf, right click and select 'Install'
                                                                      re-run postgresql installer


                                                                      This works on Windows XP with PostgreSQL 8.4.17-1






                                                                      share|improve this answer




























                                                                        2














                                                                        Go to file %windir%infwsh.inf, right click and select 'Install'
                                                                        re-run postgresql installer


                                                                        This works on Windows XP with PostgreSQL 8.4.17-1






                                                                        share|improve this answer


























                                                                          2












                                                                          2








                                                                          2







                                                                          Go to file %windir%infwsh.inf, right click and select 'Install'
                                                                          re-run postgresql installer


                                                                          This works on Windows XP with PostgreSQL 8.4.17-1






                                                                          share|improve this answer













                                                                          Go to file %windir%infwsh.inf, right click and select 'Install'
                                                                          re-run postgresql installer


                                                                          This works on Windows XP with PostgreSQL 8.4.17-1







                                                                          share|improve this answer












                                                                          share|improve this answer



                                                                          share|improve this answer










                                                                          answered May 2 '13 at 13:00









                                                                          Michal MANYAK OravecMichal MANYAK Oravec

                                                                          213




                                                                          213























                                                                              2














                                                                              First download and install virtual c++ from microsoft website, then run the installation from command with --install_runtimes 0






                                                                              share|improve this answer




























                                                                                2














                                                                                First download and install virtual c++ from microsoft website, then run the installation from command with --install_runtimes 0






                                                                                share|improve this answer


























                                                                                  2












                                                                                  2








                                                                                  2







                                                                                  First download and install virtual c++ from microsoft website, then run the installation from command with --install_runtimes 0






                                                                                  share|improve this answer













                                                                                  First download and install virtual c++ from microsoft website, then run the installation from command with --install_runtimes 0







                                                                                  share|improve this answer












                                                                                  share|improve this answer



                                                                                  share|improve this answer










                                                                                  answered Dec 14 '15 at 11:44









                                                                                  Thakhani TharageThakhani Tharage

                                                                                  1,1541218




                                                                                  1,1541218























                                                                                      2














                                                                                      I too faced the same issue. I fixed it in the following way:




                                                                                      1. I visited the below site:
                                                                                        https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

                                                                                      2. Choose the Download button under PostgreSQL Version 11.1 for Windows x86-64.


                                                                                      In one word, just try to install the latest version.






                                                                                      share|improve this answer



















                                                                                      • 1





                                                                                        That's literally the version giving me this error. Choosing version 10.6-1 instead worked.

                                                                                        – James M.
                                                                                        Dec 11 '18 at 7:28
















                                                                                      2














                                                                                      I too faced the same issue. I fixed it in the following way:




                                                                                      1. I visited the below site:
                                                                                        https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

                                                                                      2. Choose the Download button under PostgreSQL Version 11.1 for Windows x86-64.


                                                                                      In one word, just try to install the latest version.






                                                                                      share|improve this answer



















                                                                                      • 1





                                                                                        That's literally the version giving me this error. Choosing version 10.6-1 instead worked.

                                                                                        – James M.
                                                                                        Dec 11 '18 at 7:28














                                                                                      2












                                                                                      2








                                                                                      2







                                                                                      I too faced the same issue. I fixed it in the following way:




                                                                                      1. I visited the below site:
                                                                                        https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

                                                                                      2. Choose the Download button under PostgreSQL Version 11.1 for Windows x86-64.


                                                                                      In one word, just try to install the latest version.






                                                                                      share|improve this answer













                                                                                      I too faced the same issue. I fixed it in the following way:




                                                                                      1. I visited the below site:
                                                                                        https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

                                                                                      2. Choose the Download button under PostgreSQL Version 11.1 for Windows x86-64.


                                                                                      In one word, just try to install the latest version.







                                                                                      share|improve this answer












                                                                                      share|improve this answer



                                                                                      share|improve this answer










                                                                                      answered Nov 28 '18 at 17:49









                                                                                      Tenneti SrinivasTenneti Srinivas

                                                                                      211




                                                                                      211








                                                                                      • 1





                                                                                        That's literally the version giving me this error. Choosing version 10.6-1 instead worked.

                                                                                        – James M.
                                                                                        Dec 11 '18 at 7:28














                                                                                      • 1





                                                                                        That's literally the version giving me this error. Choosing version 10.6-1 instead worked.

                                                                                        – James M.
                                                                                        Dec 11 '18 at 7:28








                                                                                      1




                                                                                      1





                                                                                      That's literally the version giving me this error. Choosing version 10.6-1 instead worked.

                                                                                      – James M.
                                                                                      Dec 11 '18 at 7:28





                                                                                      That's literally the version giving me this error. Choosing version 10.6-1 instead worked.

                                                                                      – James M.
                                                                                      Dec 11 '18 at 7:28











                                                                                      0














                                                                                      I had the same problem while trying to install PostgreSQL version 11.1. I had to uninstall the Microsoft VC++ and and run the installer again. It downloaded the required VC++ and the installation went successful.






                                                                                      share|improve this answer




























                                                                                        0














                                                                                        I had the same problem while trying to install PostgreSQL version 11.1. I had to uninstall the Microsoft VC++ and and run the installer again. It downloaded the required VC++ and the installation went successful.






                                                                                        share|improve this answer


























                                                                                          0












                                                                                          0








                                                                                          0







                                                                                          I had the same problem while trying to install PostgreSQL version 11.1. I had to uninstall the Microsoft VC++ and and run the installer again. It downloaded the required VC++ and the installation went successful.






                                                                                          share|improve this answer













                                                                                          I had the same problem while trying to install PostgreSQL version 11.1. I had to uninstall the Microsoft VC++ and and run the installer again. It downloaded the required VC++ and the installation went successful.







                                                                                          share|improve this answer












                                                                                          share|improve this answer



                                                                                          share|improve this answer










                                                                                          answered Dec 8 '18 at 8:52









                                                                                          Tony R.Tony R.

                                                                                          1




                                                                                          1























                                                                                              0














                                                                                              The Windows Scripting Host is unable to execute VBscripts. This can occur if the scripting host is disabled (which is unusual), or if the installation is broken. A sign of this problem is a message like




                                                                                              CScript Error: Can't find script engine "VBScript" for script "C:....




                                                                                              It can often be resolved by re-registering the VBScript interpreter, click Start -> Run and enter the following and click OK:



                                                                                              regsvr32 %systemroot%system32vbscript.dll






                                                                                              share|improve this answer






























                                                                                                0














                                                                                                The Windows Scripting Host is unable to execute VBscripts. This can occur if the scripting host is disabled (which is unusual), or if the installation is broken. A sign of this problem is a message like




                                                                                                CScript Error: Can't find script engine "VBScript" for script "C:....




                                                                                                It can often be resolved by re-registering the VBScript interpreter, click Start -> Run and enter the following and click OK:



                                                                                                regsvr32 %systemroot%system32vbscript.dll






                                                                                                share|improve this answer




























                                                                                                  0












                                                                                                  0








                                                                                                  0







                                                                                                  The Windows Scripting Host is unable to execute VBscripts. This can occur if the scripting host is disabled (which is unusual), or if the installation is broken. A sign of this problem is a message like




                                                                                                  CScript Error: Can't find script engine "VBScript" for script "C:....




                                                                                                  It can often be resolved by re-registering the VBScript interpreter, click Start -> Run and enter the following and click OK:



                                                                                                  regsvr32 %systemroot%system32vbscript.dll






                                                                                                  share|improve this answer















                                                                                                  The Windows Scripting Host is unable to execute VBscripts. This can occur if the scripting host is disabled (which is unusual), or if the installation is broken. A sign of this problem is a message like




                                                                                                  CScript Error: Can't find script engine "VBScript" for script "C:....




                                                                                                  It can often be resolved by re-registering the VBScript interpreter, click Start -> Run and enter the following and click OK:



                                                                                                  regsvr32 %systemroot%system32vbscript.dll







                                                                                                  share|improve this answer














                                                                                                  share|improve this answer



                                                                                                  share|improve this answer








                                                                                                  edited Dec 19 '18 at 13:19









                                                                                                  FortyTwo

                                                                                                  1,73021525




                                                                                                  1,73021525










                                                                                                  answered Dec 19 '18 at 11:01









                                                                                                  evan_evan_

                                                                                                  11




                                                                                                  11

















                                                                                                      protected by Jean-François Fabre Feb 15 at 20:54



                                                                                                      Thank you for your interest in this question.
                                                                                                      Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                                                                                      Would you like to answer one of these unanswered questions instead?



                                                                                                      Popular posts from this blog

                                                                                                      Lallio

                                                                                                      Unable to find Lightning Node

                                                                                                      Futebolista