My Wix project creates install.msi and cab1.cab. How can I have it bundle everything into the msi? I will likely use 7-zip SFX to work around this but I have seen other apps with only a single msi.
Asked
Active
Viewed 3.9k times
4 Answers
272
You didn't post any source but I assume your wxs file has a Media element. Just set the EmbedCab attribute to "yes" in MediaTemplate
e.g.
<MediaTemplate EmbedCab="yes" />

Sisir
- 4,584
- 4
- 26
- 37

Christopher Painter
- 54,556
- 6
- 63
- 100
-
8I had an empty MediaTemplate element but I replaced it with this:
Thanks! – wtjones Jul 01 '12 at 20:28 -
134Note, you can add `EmbedCab="yes"` to the `MediaTemplate` element to achieve this. – Jeff Yates Aug 17 '12 at 16:56
-
10MediaTemplate wasn't available until WiX 3.6. wtjones didn't mention what version of WiX he was using so I mentioned the way that would work for more people. – Christopher Painter Mar 22 '13 at 12:02
73
Set EmbedCab="yes"
.
Since WIX 3.8:
<MediaTemplate EmbedCab="yes" />
Before WIX 3.8:
<Media Id="1" Cabinet="cab1.cab" EmbedCab="yes" />

Philipp Hofmann
- 3,388
- 26
- 32
3
With WiX toolset v4 you just need to add the following MediaTemplate
element inside your Package
element:
<MediaTemplate EmbedCab="yes" />

Lucas
- 373
- 1
- 9