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\)

 

Reply via email to