177

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.

wtjones
  • 3,982
  • 4
  • 30
  • 41

3 Answers3

268

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
  • 3,665
  • 4
  • 21
  • 30
Christopher Painter
  • 53,479
  • 6
  • 61
  • 98
70

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,242
  • 26
  • 31
26

Use it like this :

<Media Id="1" Cabinet="CabFileName.cab" EmbedCab="yes" />

Also this article describes other ways of doing it.

Sid
  • 4,225
  • 1
  • 16
  • 17