Waiting for an MSI package to finish installing

Got a problem you cannot solve? Try here.
sdolan
Posts: 8
Joined: Tue May 04, 2010 8:14 am
Location: Dublin, Ireland

Waiting for an MSI package to finish installing

Postby sdolan » Mon May 24, 2010 9:02 am

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?

Edos
Posts: 6
Joined: Thu Oct 15, 2009 4:13 am

Re: Waiting for an MSI package to finish installing

Postby Edos » Mon May 24, 2010 3:20 pm

DId you find a solution for it?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: Waiting for an MSI package to finish installing

Postby MichaelNesmith » Mon May 24, 2010 5:25 pm

(Un)Install MSI Setup would never return before the MSI in question has finished running. It might be an issue with the MSI itself.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

sdolan
Posts: 8
Joined: Tue May 04, 2010 8:14 am
Location: Dublin, Ireland

Re: Waiting for an MSI package to finish installing

Postby sdolan » Tue May 25, 2010 2:44 am

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?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: Waiting for an MSI package to finish installing

Postby MichaelNesmith » Tue May 25, 2010 4:01 am

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.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

hamuz
Posts: 1
Joined: Thu Dec 30, 2010 12:19 pm

Re: Waiting for an MSI package to finish installing

Postby hamuz » Thu Dec 30, 2010 12:26 pm

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

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Waiting for an MSI package to finish installing

Postby giaviv » Wed Jan 19, 2011 9:13 pm

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
Attachments
msi setup.docx
(1.98 MiB) Downloaded 1214 times
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 91 guests