Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XSI8K-00060N-WA for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Sep 2014 04:06:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XSI8K-0006jr-ER for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Sep 2014 04:06:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XSAuU-00066A-9t for pgsql-bugs@postgresql.org; Thu, 11 Sep 2014 20:24:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XSAuR-0003eD-0c for pgsql-bugs@postgresql.org; Thu, 11 Sep 2014 20:24:05 +0000 MIME-Version: 1.0 Subject: BUG #11399: CreateUser error when upgrading To: pgsql-bugs@postgresql.org From: kkaminski@vidsys.com Date: Thu, 11 Sep 2014 20:23:35 +0000 Message-ID: <20140911202335.2488.89116@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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: 11399 Logged by: Kathy Kaminski Email address: kkaminski@vidsys.com PostgreSQL version: 9.0.16 Operating system: Windows 2008 R2 Description: I'm trying to install PostGres via InstallShield for our application as a prerequisite. I noticed it won't let me upgrade from 9.0.13 to 9.0.16. I see the following error: Error running C:\Users\Administrator\AppData\Local\Temp\2\postgresql_installer_d64e804b58\validateuser.exe "." "postgres" "****" : Program ended with an error exit code My InstallShield installer doesn't know the difference between new install & upgrade (it doesn't need to, it just invokes the installer), I just pass the same params to my prereq. Now, if I try to net /delete my user account, then run the installer, then I get an error that it won't let me use the password I used before (which is odd because it will allow it on a fresh install). I changed the password, ran through the install finally and THEN can't start the service because of a permissions problem on the data directory! I can't think of a way to work around this issue. Seems that the script should be smart enough to know it's doing an upgrade and to ignore the user params. I tried 9.0.16 & 9.0.18, but in 9.0.18 we can't run the 32 bit installer because of another bug. Here's what I'm passing for reference (passwords changed): --unattendedmodeui none --mode unattended --superaccount postgres --serviceaccount postgres --servicepassword password--superpassword password--datadir "%SYSTEMDRIVE%\ProgramData\PostgreSQL\9.0\data" -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs