0
I was trying to install PostgreSQL 9.2 in Windows 7. When I launched the installer, it failed and showed the error message:
Unable to write inside TEMP environment variable path
I did a lot of research. I tried almost all methods but none of them works. Finally I came across this post.
I can see my HKEY_LOCAL_MACHINE->SOFTWARE->Classes->CLSID->B54F3741-5B07-11cf-A4B0-00AA004A55E8} -> InprocServer32
is NOT C:\Windows\System32\vbscript.dll
. It is incorrectly set to C:\Program Files\Common Files\McAfee\SystemCore\ScriptSn.20120815030544.dll
. Actually I don't have McAfee installed on my machine.
But when I tried modifying this key, Windows regedit doesn't allow me to change this key.
So what can I do to resolve this problem?
You need to run your installer as an administrator. (Right-click the installer, and choose
Run as administrator
from the context menu.) Adminstrative privileges are required to write toHKLM
on Vista and higher (or XP when not running as a power user or local administrator). Software installation isn't really a programming question; this is more suited for [su] instead of StackOverflow. – Ken White – 2013-05-30T01:52:05.547I tried running PostgreSQL installer in administrator mode but the same error happened. I guess it is due to the incorrect Registry key. So how to run the regedit in administrator mode in Win 7 so that I can change that key? – tonga – 2013-05-30T01:57:59.067
Start it from an adminstrator command prompt. (Click the Start button and type
Command
in the search box. WhenCommand Prompt
appears at the top of the menu, right-click it and chooseRun as administrator
. Once that command prompt appears, typeregedit
and hit Enter.) Once again, not a programming question. :-) – Ken White – 2013-05-30T02:01:48.300Thanks Ken. I ran the regedit in administrator mode and tried modifying that key but it still doesn't allow me to change that key. The error says: "Cannot edit: error writing the value's new contents". Any idea to solve this? – tonga – 2013-05-30T02:05:21.873
1Sorry, no. It appears you do have some AV or malware prevention software, or you have other issues with your system. However, for the third time, this is not a programming question and is off topic here. We're now in the area of general computer support (not even software installation). Ask a question at [su] about this issue and how to solve it. :-) – Ken White – 2013-05-30T02:09:16.357
See http://wiki.postgresql.org/wiki/Troubleshooting_Installation for a discussion of some of these issues.
– Craig Ringer – 2013-05-30T02:19:47.137@Ken I understand this. I just saw some other related posts about issues with Postgresql installation so I posted here in SO. But will move to SuperUser afterwards. – tonga – 2013-05-30T02:36:01.717
Those are most likely from before [su] existed, and at the time they were posted they were on topic here. Things change. :-) – Ken White – 2013-05-30T02:38:48.330
@KenWhite You should take a look at the answer I posted for the question he asked on Super User. That regestery key by default can't be written, even by an administrator.
– Scott Chamberlain – 2013-05-30T13:31:51.953@Scott: Yep, right you are. I didn't look that closely at anything past the
HKLM
. – Ken White – 2013-05-30T13:46:07.810