Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 26th August 2006, 17:37   #1
sb100
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.
sb100 is offline   Reply With Quote
Old 27th August 2006, 15:42   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 27th August 2006, 16:05   #3
sb100
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.
sb100 is offline   Reply With Quote
Old 27th August 2006, 16:17   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 27th August 2006, 21:03   #5
Anders
Moderator
 
Anders's Avatar
 
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
Anders is online now   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump