Page 1 of 1

Waiting for an MSI package to finish installing

Posted: Mon May 24, 2010 9:02 am
by sdolan
Hi,

My application installer depends on a number of other (third-party) packages, which are distributed as MSI files. I'm trying to fold these into my installer script, and install them using the "install MSI package" command.

The problem I have is that the first MSI package must be installed before the second can be installed. However, the install script moves onto the second MSI package before the first is complete and it fails as a result. How do I get it to wait until package one is finished before installing the second package?

Re: Waiting for an MSI package to finish installing

Posted: Mon May 24, 2010 3:20 pm
by Edos
DId you find a solution for it?

Re: Waiting for an MSI package to finish installing

Posted: Mon May 24, 2010 5:25 pm
by MichaelNesmith
(Un)Install MSI Setup would never return before the MSI in question has finished running. It might be an issue with the MSI itself.

Re: Waiting for an MSI package to finish installing

Posted: Tue May 25, 2010 2:44 am
by sdolan
Hmmm. The MSI files are provided by a third party, so I don't have any control over them.

From what you say though, if I convert them into installaware MSIs, that will guarantee that the 'Install MSI Setup' will only return when the install is complete, is that correct?

Re: Waiting for an MSI package to finish installing

Posted: Tue May 25, 2010 4:01 am
by MichaelNesmith
The suggested code reuse mechanism with InstallAware is via the Include Script command; and in most cases you can do what took multiple setup projects before using a single global project.

Re: Waiting for an MSI package to finish installing

Posted: Thu Dec 30, 2010 12:26 pm
by hamuz
For multiple MSI installations, I suggest the following alternative:
1. make a .CMD file (e.g. PostInst.CMD) containing:

Code: Select all

   
   start /w msiexec.exe /i [Your 1st MSI file + its options]
   start /w msiexec.exe /i [Your 2nd MSI file + its options]
   del PostInst.CMD


-- the last line is optional for cleanup

2. Add the .CMD file to your project Files

3. Add the .CMD file to "Run Programs", After Install, with /min in command line options

Re: Waiting for an MSI package to finish installing

Posted: Wed Jan 19, 2011 9:13 pm
by giaviv
Dear InstallAware users,

Please note that the best way to install MSI setups are with the use of our (Un)Install MSI Setup plugin - it is intuitive, easy, and integrated right into InstallAware.
I am attaching a tutorial how to use it here - I strongly suggest that you read it since this plugin is very useful!

Best