Wix: single MSI instead of msi + cab

匿名 (未验证) 提交于 2019-12-03 02:44:02

问题:

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.

回答1:

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



回答2:

Set EmbedCab="yes".

Since WIX 3.8:

<MediaTemplate EmbedCab="yes" /> 

Before WIX 3.8:

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


回答3:

Use it like this :

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

Also this article describes other ways of doing it.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!