|
|
#1 |
|
Junior Member
Join Date: Jun 2006
Posts: 4
|
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. |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
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.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2006
Posts: 4
|
Well, i did try using "start /wait". Strangely, this time the installer does not even invoke the MSI package.
|
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
He has a few more arguments there, try them all.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,784
|
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
IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|