WIX中的Media和MediaTemplate有什么区别? [英] What is the difference between Media and MediaTemplate in WIX?
问题描述
在构建wix项目期间是否有手动橱柜文件正在准备VS自动橱柜文件的创建?
Is there are manual cabinet file's preparing VS automatic cabinet file's creation during building wix project?
或者这可能是其他吗?
推荐答案
MediaTemplate替换了Media,并且从WiX 3.8开始可用。请阅读以下内容:
MediaTemplate replaced Media and is available starting in WiX 3.8. Take a read at:
基本上,Media元素花了很多代码来描述当CAB文件超过1个时该怎么做。 MediaTemplate元素是语法糖,可将其减少到一行。
Basically the Media element took a lot of code to describe what to do when you had more then 1 CAB file. The MediaTemplate element is syntactical sugar that reduces this to one line.
许多只有1个CAB的较小安装程序将不在乎其中一种方式。但是,当您开始建立大型MSI时,它会有所帮助。
Many smaller installers with just 1 CAB won't care one way or the other. But when you start to build large MSIs it'll help.
这篇关于WIX中的Media和MediaTemplate有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!