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

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


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.


This is a an old thread, but I just had the same problem on windows 10:

Unable to write inside TEMP environment path

Solve by the following steps

  1. Check that the problem is related to Windows Script Host.
  2. From cmd run wscript.exe
  3. If you get an error Windows Script Host is not enabled then you can solved it by running the following from cmd

Fix for Current User

REG DELETE "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v Enabled /f

Fix for Local Machine

REG DELETE "HKLM\SOFTWARE\Microsoft\Windows Script Host\Settings" /v Enabled /f

Now you can install psql


As I was finishing off my question above, our IT chap turned up and knew what the problem was immediately: it's McAfee. It prevents anything from running in a TEMP folder, including Windows Scripting Host scripts. Disabling McAfee for the duration of the installation fixed the problem for me.

So if you see this problem, try disabling your anti-virus.