sb100
26th August 2006 18:37 UTC
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.
kichik
27th August 2006 16:42 UTC
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.
sb100
27th August 2006 17:05 UTC
Well, i did try using "start /wait". Strangely, this time the installer does not even invoke the MSI package.
kichik
27th August 2006 17:17 UTC
He has a few more arguments there, try them all.
Anders
27th August 2006 22:03 UTC
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