Re: BUG #4108: PgInstaller Update modify install paths in Registry

From: "gildas prime" <g(dot)prime(at)aeschemunex(dot)com>
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #4108: PgInstaller Update modify install paths in Registry
Date: 2008-06-06 08:26:01
Message-ID: 0B69A1D46E31E049927814824DDB37A60361EF81@OLIER.aes-local.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

To reproduce it quickly type in a MSDOS command to install :

msiexec /i "C:\Documents and Settings\gildas\Bureau\postgresql-8.3-int.msi" /qb! INTERNALLAUNCH=1 ADDLOCAL=server,psql BASEDIR="C:\Program Files\TOTO" DATADIR="C:\Program Files\TOTO\data" SERVICEDOMAIN="GILDAS" CREATESERVICEUSER=1 SERVICEPASSWORD="postgresql" SERVICEPASSWORDV="postgresql" SUPERUSER="superuser" SUPERPASSWORD="superuser" SUPERPASSWORDV="superuser" ENCODING="WIN1252" PERMITREMOTE=1 PL_PGSQL=1 NOSHORTCUTS=1 ADMINPACK=0"

This will install silently Postgres to C:\Program Files\TOTO and datas will be in C:\Program Files\TOTO\data, this could be verified in the service parameters, for that click properties on the postgres service and see at the end of the command line, or go into registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\pgsql-8.3 and see the ImagePath key (in the two cases the -D option is set to the correct postgresql data path).

Then, update the version that you have installed (imagine that you have a problem... imagine...) with the command line :

msiexec /i "C:\Documents and Settings\gildas\Bureau\postgresql-8.3-int.msi" REINSTALLMODE=vamus REINSTALL=ALL /qb!

this will reinstall the postgresql, but, your postgresql data path will be erased by tha by default postgresql data directory in the command line of the service... (C:\Program Files\TOTO\bin\pg_ctl.exe" runservice -w -N "pgsql-8.3" -D "C:\Program Files\PostgreSQL\8.3\data\)

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2008-06-06 11:50:15 Re: BUG #4219: fseeko test failure in configure script
Previous Message Heikki Linnakangas 2008-06-06 05:49:38 Re: BUG #4222: ERROR: cache lookup failed for relation