1

Today I wanted to make more free room on my C:/ driver and I saw Postgresql has like 8GB so I wanted to move it to another part of my hdd so I just copy and pasted it, but i had to first quit everything that had SQL or postgres in task bar to be able to move it, but things stopped working so i decided to uninstall postgresql.

Now I want to install it back, but everytime I try to I get this error: An error occured executing the Microsoft VC++ runtime installer when I run 8.3 and 8.4 version and when I try 9.x version of postgresql I get this error: Unable to write inside TEMP environment variable path. heres pic: http://oi40.tinypic.com/rb06eh.jpg

Can you please help me what to do ? i have been trying to fix this problem for like 2 hours, but nothing works.

4
  • If 8gb is 'too big' then I suggest you get a bigger HDD. You can get a terabyte for under $100 quite easily these days. You cannot just move a windows application's files around and expect it to keep working. Commented Feb 27, 2012 at 14:43
  • i have 600GB HDD, but yea...that was stupid thing to do Commented Feb 27, 2012 at 15:06
  • stackoverflow.com/q/28471348/330315 Commented Jun 26, 2016 at 8:16
  • You may want to try the solution to this question to solve the VC++ runtime installer issue: stackoverflow.com/questions/4288303/…. I used the command they suggest in Run.exe and it worked on Windows 10, (sorry, I come from the future;) Commented Jan 24, 2019 at 8:15

1 Answer 1

0

The simple solution is copy your data directory to a backup location with postgreSQL stopped, then uninstall PostgreSQL and reinstall it. This gives the installer a chance to fix a bunch of things.

Note that if you want to move data somewhere else you can always create tablespaces on your other drive and move your tables there. That's better than copying the whole installation.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.