WiX 包含与片段 [英] WiX Includes vs Fragments

查看:30
本文介绍了WiX 包含与片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • WiX 包含(.wxi 文件)和 WiX 片段(.wxs 文件)之间有什么区别?
  • 每种方法的用例是什么?
  • 应该使用哪些以及为什么?
  • What's the difference between a WiX include (.wxi file) and a WiX fragment (.wxs file)?
  • What are the use cases for each?
  • Which should be used and why?

推荐答案

文件扩展名是一种方便,文件的内容才是真正重要的.这种区别使得管理实际安装(wxs 文件)和创建安装所需的属性(wxi 文件)之间的差异变得更容易.

The file extension is a convenience, the content of the file is what really matters. The distinction makes it easier to manage the difference between the actual installation (wxs files) and the properties required to create the installation (wxi files).

例如,您的 wxs 文件指定产品及其内容(您安装哪些文件),而您将使用 wxi 文件指定产品版本、升级代码、常用路径等.

For example, your wxs files specify the product and its contents (which files you install) whereas you would use your wxi files to specify product version, upgrade codes, common paths, etc.

WiX 文档提供了一些明确的信息.

The WiX documentation provides some clear information.

这篇关于WiX 包含与片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆