Archive: NSIS: msiexec and postgres installation


NSIS: msiexec and postgres installation
Hello,
I am trying to install PostgreSQL database using msi framework. Here's the NSIS code snippet:
ExecWait 'msiexec /i "$EXEDIR\components\PostgreSQL\postgresql-8.1.msi" /log "postgresql.log"'

Now, the NSIS installer skips to the next command prior to the completion of database installation.

I tried using "start /wait" as shown below w/o any success:

ExecWait 'start /wait msiexec /i "$EXEDIR\components\PostgreSQL\postgresql-8.1.msi" /log "postgresql.log"'

Any help appreciated in solving this problem.


The installer probably executes another process, exits the original process and so ExecWait continues. A quick Google search showed up pgsql mailing list thread that might be useful as to how to tell the installer not to do that. The user uses start /wait as well, so it might be working for him.


Well, i did try using "start /wait". Strangely, this time the installer does not even invoke the MSI package.


He has a few more arguments there, try them all.


on NT systems "start" is not a program but a part of cmd.exe, so you probably need to use: cmd.exe /c start ... but I don't see why you need to use start at all