ediouf
15th March 2005 16:45 UTC
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 !
kichik
15th March 2005 18:56 UTC
Search the forum for "msi". There are plenty of threads that should help you with this problem.
ediouf
16th March 2005 09:20 UTC
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!
Afrow UK
16th March 2005 16:27 UTC
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