Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UJQhy-0004L3-Ec for pgsql-bugs@arkaria.postgresql.org; Sat, 23 Mar 2013 15:50:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UJQhx-0002Ce-Tm for pgsql-bugs@arkaria.postgresql.org; Sat, 23 Mar 2013 15:50:13 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UJMVE-0003iC-Jv for pgsql-bugs@postgresql.org; Sat, 23 Mar 2013 11:20:48 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UJMVB-0002cW-J4 for pgsql-bugs@postgresql.org; Sat, 23 Mar 2013 11:20:48 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UJMVB-0000KU-B9 for pgsql-bugs@postgresql.org; Sat, 23 Mar 2013 11:20:45 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UJMVB-0007kk-35 for pgsql-bugs@postgresql.org; Sat, 23 Mar 2013 11:20:45 +0000 Date: Sat, 23 Mar 2013 11:20:45 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7985: Postgres Windows Installer fails with "permission denied" To: pgsql-bugs@postgresql.org From: hkhanafe@hotmail.com X-Pg-Spam-Score: -3.5 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7985 Logged by: hassib Email address: hkhanafe@hotmail.com PostgreSQL version: 9.2.2 Operating system: Windows 7=20 Description:=20=20=20=20=20=20=20=20 We are facing an issue with Postgres Windows installer (version 9.2.2).=20 In some machines we find that the installer works, in other machines it fails and=20 when checking the logs, we find that the script "initcluster" failed.=20 We are installing Postgres in the default directory (i.e. c:\program files (x86)\PostgreSQL), and=20 the data directory under "c:\ProgramData".=20 After long hours of debugging in the machines where it fails we found the problem in the following=20 line of the scripts "strInitdbPass =3D strInstallDir & "\" & objFso.GetTempName", which is actually=20 trying to save the password file under the installation directory (i.e. c:\program files (x86)\PostgreSQL)=20 , which failed with "Permission denied" error, when changing this line to point to another directory=20 the script worked.=20 We tried to run the installer as "Local Administrator", but that also didn't fix the issue. What would be the solution for this issue? --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs