19

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?

2 Answers 2

19

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.

6
  • I have created new Bundle project which includes both my msi files. Is this only one way to do it?
    – ZedZip
    Jan 4, 2012 at 13:34
  • @Oleg: There may be other ways to do it (using merge modules if applicable I think), but I've always done it through a bootstrapper. You're not forced to use Burn though. The way I've done it in the past is to create a visual studio project that references the Wix library. Then you can create custom actions (via C# or whatever). The bottom line though, is that you need to launch the installation from the exe so that each msi can run in sequence.
    – Jason Down
    Jan 4, 2012 at 13:41
  • both of those links are dead now :( Nov 6, 2012 at 17:03
  • @MattClarkson I replaced the bootstrapper link (leaving the old one in just in case). The second link appears to be just fine... maybe the site was just down when you clicked on it?
    – Jason Down
    Nov 6, 2012 at 18:38
  • 1
    @JasonDown Looks like the site was down, thanks for replacing them. I actually found this post along with your provided replacement link perfect for learning how to get Burn going. Nov 9, 2012 at 13:14
6

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

4
  • you mean I need to use exe instead of msi ? like this <ExePackage SourceFile="[sources]\packages\shared\MyPackage.exe" DownloadUrl="example.com/?mypackage.exe" InstallCommand="/q /ACTION=Install" RepairCommand="/q ACTION=Repair /hideconsole" UninstallCommand="/q ACTION=Uninstall /hideconsole" />
    – ZedZip
    Jan 4, 2012 at 13:40
  • No. The final package (the one which includes the MSI) is an EXE. I added another link with more details.
    – Cosmin
    Jan 4, 2012 at 13:57
  • i am stupid ;-),but I dont see how i can add my second MSI to the bootstrapper? I see how to add sql server etc, but how to add my 2nd installer msi package? I mean example "A Sample!"..
    – ZedZip
    Jan 4, 2012 at 15:59
  • As Cosmins link no longer exists, in case anyone is wondering how to reference more than one MSI in a bootstrapper, there's an example of a chain element with multiple msi's here: stackoverflow.com/questions/12917287/… hth... Apr 10, 2013 at 8:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.