Archive: Postgresql silent install


Postgresql silent install
Hi everybody !

Is someone can help me to use NSIS for Progresql silent install. With the documentation of NSIS, someone can run a .exe file with exec or execwait commands ; but i don't know how to run a .msi file(postgresql.msi) on command line.

Thanks !


Search the forum for "msi". There are plenty of threads that should help you with this problem.


What about postgresql silent install ?
Hi kichik,

What i would like is to run this command line to silent install postgresql, in a NSIS script:

msiexec /i postgresql-8.0.0-rc1-int.msi /qr INTERNALLAUNCH=1 ADDLOCAL=server,psql,docs SERVICEDOMAIN=%COMPUTERNAME% SERVICEPASSWORD=SecretWindowsPassword123 SUPERPASSWORD=VerySecret BASEDIR=c:\postgres TRANSFORMS=:lang_fr

Is it possible with NSIS ?

My second question how to get nsExec plugin ?

Thanks everybody for your help!


Use:

nsExec::Exec 'msiexec /i "$EXEDIR\postgresql-8.0.0-rc1-int.msi" /qr INTERNALLAUNCH=1 ADDLOCAL=server,psql,docs SERVICEDOMAIN=%COMPUTERNAME% SERVICEPASSWORD=SecretWindowsPassword123 SUPERPASSWORD=VerySecret BASEDIR=c:\postgres TRANSFORMS=:lang_fr'

"$EXEDIR\postgresql-8.0.0-rc1-int.msi" needs to be the full path to the MSI on the user's system.

-Stu