Re: PostgreSQL 9.0 (x86-64) and Windows 7 (x86-64) - Unable to install

From: Christian Ullrich <chris(at)chrullrich(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL 9.0 (x86-64) and Windows 7 (x86-64) - Unable to install
Date: 2010-10-01 10:01:05
Message-ID: i84bgs$85g$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Dave Page wrote:

> Thats very odd, but it explains why things are going wrong -
> essentially, the prerequisites are being unpacked to:
>
> C:\Users\Administrator\AppData\Local
>
> But the installer expects to find them in:
>
> C:\Users\Administrator\Lokale Einstellungen\
>
> Which is a link to the first folder. I (as the guy the wrote the
> original version of the installer) expect them to be in:
>
> C:\Users\Administrator\Lokale Einstellungen\Temp\
>
> So, it sounds like there are two questions for me to figure out - why
> is the installer not able to follow the link and find the files (which
> is probably a question for BitRock), and why isn't it using the actual
> Temp subdirectory as it's supposed to.

It can't follow the link because these links (actually, junctions) have
ACLs that deny FILE_READ_DATA, which means you cannot enumerate the
contents of the target directory through the link. See
<http://technet.microsoft.com/en-us/magazine/ee851567.aspx> for an
explanation of the ACLs.

The OP indicates in his reply to your message that his %TEMP% path is

C:\Users\ADMINI~1\LOKALE~1\Temp

, which is using one of these junctions. This is definitely not the
default value set when the Administrator profile is created during
installation; that value would be

C:\Users\Administrator\AppData\Local\Temp

. I would recommend to change the user environment variables (TEMP and
TMP) to the correct value and retry.

Of course, even if it works, this does not answer two questions:

1. How did TEMP end up with this value?

2. Why does the installer use the wrong directory?

There are two things I can think of with regard to 1. The more likely
one is that there is some logon script or group policy that applies to
the local Administrator account, which was written for XP clients and
therefore uses XP paths. The other idea is that his system may have been
upgraded from XP by way of Vista and somehow kept the old paths intact.

As for 2, I suspect that somewhere in the installer, it walks down the
path to the TEMP directory, and fails at the junction because it cannot
read the contents of its target directory.

--
Christian

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dave Page 2010-10-01 10:30:25 Re: PostgreSQL 9.0 (x86-64) and Windows 7 (x86-64) - Unable to install
Previous Message Thomas Kellerer 2010-10-01 09:58:20 Re: PostgreSQL 9.0 (x86-64) and Windows 7 (x86-64) - Unable to install