firecodex
Posts: 6
Joined: Wed Nov 21, 2007 4:35 pm

Easy way to merge two projects or install two MSI's at once?

I have used the repackager to capture two different 3rd party installs, built those MSI's, and now I want to somehow merge or repackage those two MSI's into one install. The problem is that one of the MSI's must be installed before the other; the install order is very important. I still have both project files in addition to the two MSI's. I want to avoid using any kind of outside script to install the MSI's in order; I'd much rather just create one MSI that does it all.

What is the best way to do this? I have the enterprise product.

Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This can be done by adding one of the MSI packages (the one that needs to be installed first) as a prerequisite for the second one.

We have a tutorial about using prerequisites, please take a look:
http://www.advancedinstaller.com/user-g ... requisites
Also, you can read more about this feature here:
http://www.advancedinstaller.com/user-g ... tware.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
firecodex
Posts: 6
Joined: Wed Nov 21, 2007 4:35 pm

The problem is that when you do that, it creates an exe file with an ini settings file. I need the entire project to be included in one MSI file so that I can deploy it via active directory. Is there a way to do this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Here is how you can do this:
- you add the second MSI in the first one (in the "Files and Folders" page)
- in the "Custom Actions" page you create an "EXE with working Dir" custom action under "InstallExecuteSequence" -> "Install"
- you make these modifications for the custom action:

Code: Select all

Full Path: msiexec /i "[#test.msi]" /qn (where "test.msi" is the second MSI and /qn installs it silently)
Execution Properties: Asynchronous execution, do not wait for return
Execution Condition: NOT Installed 
- with these settings the second MSI will be installed right after the main MSI

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
firecodex
Posts: 6
Joined: Wed Nov 21, 2007 4:35 pm

Awesome. I followed your instructions and all went well. I have yet to test the MSI file, but I dont see why it won't work. Thanks for your help!

Return to “Common Problems”