Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PostgreSQL 9 install on Windows: "Unable to write inside TEMP environment path."

I am attempting to install PostgreSQL 9 (postgresql-9.0.3-1-windows.exe) on my WinXP machine and get the following error at the start:

Unable to write inside TEMP environment variable path.

Some googling around yielded some advice that suggested Windows Scripting Host might be disabled. I've checked and WSH is definitely enabled, so it must be something else. Question is, what?

I can see a file called prerun_checks.vbs is created in %TEMP% and when I try to run this manually, I get the following:

enter image description here

Which looks like a permissions error. However, I am an Admin, and I've given myself full control of the temp folder and it's still not working.

Any help appreciated.

like image 448
Charles Roper Avatar asked Mar 07 '11 19:03

Charles Roper


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.

Do we need to set environment variables for PostgreSQL?

The use of the PostgreSQL environment variables is not required.


1 Answers

In my case the solution was related to NotePad++ being the default application for opening .vbs files. If you have the same situation, here's an elaborate solution:

http://igordcard.blogspot.co.il/2012/03/unable-to-write-inside-temp-environment.html

In a nutshell, in the registry, you need to go to HKEY_CLASSES_ROOT\.vbs, and set the (Default) entry back to the string VBSFile.

like image 182
Zach-M Avatar answered Oct 14 '22 22:10

Zach-M