在 WiX 片段文件中引用自定义表 [英] Reference custom table in WiX fragment file

查看:23
本文介绍了在 WiX 片段文件中引用自定义表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个片段文件,在文件中只包含一个 CustomTable.这很容易,但我不知道如何将它链接/包含回主 product.wxs 文件.

I want to create a fragment file that will only contain a CustomTable in the file. This is easy enough, but I do not know how to link/include it back into the main product.wxs file.

片段文件与产品文件在同一个项目中,我也尝试过为文件添加include标签没有成功,甚至将自定义表放入WiX包含文件中.

The fragment file is in the same project as the product file, and I have also tried adding an include tag for the file without success, and even putting the custom table into a WiX include file.

有没有办法做到这一点?或者它必须存在于产品文件中?

Is there a way to do this? Or is it going to have to live in the product file?

推荐答案

WiX 工具集以与 C/C++ 编译器类似的方式进行编译和链接.链接器从主"入口点(在您的情况下为 Product 元素)开始,然后从那里跟随引用,然后从那里跟随引用,直到所有被解析.

The WiX toolset compiles and links in a similar manner to the C/C++ compiler. The linker starts at the "main" entry point (Product element, in your case) then follows the references from there, which in turn follows references from there until all are resolved.

您的问题的一部分丢失了,但根据标题,我猜您需要一个 CustomTable 元素.通常,CustomTableCustomAction 处理.引用 CustomAction 有几种好方法.

Part of your question is missing but based on the title I'm going to guess that you want a CustomTable element. Typically that CustomTable is processed by a CustomAction. There are a couple good ways to reference a CustomAction.

不会使用包含文件.

这篇关于在 WiX 片段文件中引用自定义表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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