Old 8th April 2005, 22:19   #1
mg323i
Junior Member
 
Join Date: Apr 2005
Posts: 4
using ExecWait to run .msi to install software

I can not get ExecWait to run sucessfully "postgresql-8.0-int.msi". any idea why how to do it?
mg323i is offline   Reply With Quote
Old 8th April 2005, 23:58   #2
bd2005
Junior Member
 
Join Date: Apr 2005
Posts: 19
try
ExecWait 'msiexec /i "$INSTDIR\postgresql-8.0-int.msi" /qn'

/qn - means silent install, you can remove this parameter
bd2005 is offline   Reply With Quote
Old 9th April 2005, 00:04   #3
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
An MSI file is not an actual executable file. It is basically just a data file that tells Windows installer (MSIEXEC.EXE) what to do.

Therefore, to use Exec and wait, you'll probably want to call the actual EXE (MSIEXEC) and pass the MSI file to it as a parameter. Something like this:
code:

ExecWait "'C:\path_to\msiexec.exe' /i postgresql-8.0-int.msi"



Full details about the usage of MSIEXEC can be found at http://msdn.microsoft.com/library/de...ne_options.asp
Comperio is offline   Reply With Quote
Old 11th April 2005, 13:52   #4
mg323i
Junior Member
 
Join Date: Apr 2005
Posts: 4
Hello,
thanks for the reply, but I tried this command:
ExecWait 'msiexec /i "C:\postgresql-8.0.msi"'
and it jumps to the next line right when the setup windows for postgres pops up, it doesn't wait. any ideas why?
mg323i is offline   Reply With Quote
Old 18th September 2005, 21:28   #5
JATO
Junior Member
 
Join Date: Sep 2005
Location: Sacramento CA
Posts: 24
Talking Thanks - it helped me too

Thanks, this worked like a charm for me too.
JATO is offline   Reply With Quote
Old 23rd January 2006, 16:13   #6
viachi
Guest
 
Posts: n/a
Difficult with installing as service.

Hello,
i could run the msi, but I have to install postgre as service, and it asks me for password. Can i put a password in silent mode? If yes, is there an easiest way then finding the window, then finding the item...
Thanks.
  Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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