Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add an MSI file to my installer

I have WiX 3.6 (Oct 2011) installer for my application. My application requires another service to be installed in the system. I added an MSI file to my installer this way:

<Fragment>
    <PackageGroup Id="MyService" >
        <MsiPackage Id="MyService" Name="MyService" SourceFile="MyService.msi" DisplayInternalUI="yes" EnableFeatureSelection="yes">
        </MsiPackage>
    </PackageGroup>
</Fragment>
<Fragment>
    <ComponentGroup Id="APPFILES">
    ...
</Fragment>

The installer works fine, but this additional MSI file is not installing. What am I missing?

like image 586
ZedZip Avatar asked Jan 04 '12 12:01

ZedZip


People also ask

Where do MSI files install?

msi file is stored in the Windows Installer cache. Every update to the product such as a hotfix, a cumulative update, or a service pack setup, also stores the relevant . msp or . msi file in the Windows Installer cache.

How do I convert an MSI file to EXE?

Create Msi from Exe Using Free MSI Wrapper 1. In the Source Folder field, specify the folder with the EXE file that you want to convert to MSI. 2. In the Target Path field, specify the default folder in which the created MSI will be installed.


2 Answers

You cannot install one MSI from another MSI. What you need to do is create a bootstrapper (link appears dead now, possible suitable replacement link) that installs each MSI in sequence. Wix 3.6 has a built-in bootstrapper called Burn.

Here is another helpful link, courtesy of Matt Clarkson.

like image 125
Jason Down Avatar answered Oct 25 '22 11:10

Jason Down


Make sure you are using Burn: http://robmensching.com/blog/posts/2009/7/14/Lets-talk-about-Burn

An MSI cannot include another MSI, so you should also get an EXE file. Make sure you launch the installation through that EXE

like image 20
rmrrm Avatar answered Oct 25 '22 10:10

rmrrm