Wix: single MSI instead of msi + cab

2019-01-31 04:50发布

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.

3条回答
beautiful°
2楼-- · 2019-01-31 05:20

Set EmbedCab="yes".

Since WIX 3.8:

<MediaTemplate EmbedCab="yes" />

Before WIX 3.8:

<Media Id="1" Cabinet="cab1.cab" EmbedCab="yes" />
查看更多
Emotional °昔
3楼-- · 2019-01-31 05:26

Use it like this :

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

Also this article describes other ways of doing it.

查看更多
三岁会撩人
4楼-- · 2019-01-31 05:31

You didn't post any source but I assume your wxs file has a Media element. Just set the EmbedCab attribute to "yes".

查看更多
登录 后发表回答