我正在使用Visual 'Votive‘集成开发一个WiX安装程序。
我正在使用<CustomTable>编写一个简单的自定义表,我希望将它放在<Fragment>中的一个单独的文件中。
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<CustomTable Id="CustomActionData">
<Column Id="Id" Category="Identifier" PrimaryKey="yes" Type="int" Width="4" />
<Column Id="AssemblyFile" Category="Text" Type="string" PrimaryKey="no" />
<Column Id="TypeName" Category="Text" Type="string" PrimaryKey="no" />
<Row>
<Data Column="Id">1</Data>
<Data Column="AssemblyFile">MyAssembly.dll</Data>
<Data Column="TypeName">MyAssembly.TypeName</Data>
</Row>
</CustomTable>
</Fragment>
</Wix>问题是,WiX/Votive没有包含片段,因为没有引用它。没有像<CustomTableRef>这样的东西。然而,<Fragment>是<CustomTable>的有效父级,因此必须有一种使WiX包含它的方法。
有什么建议吗?如何在片段中引用自定义表?
发布于 2014-03-30 22:43:54
理想情况下,应该有一个CustomTableRef,但它并不存在。(可以随意提出建议。)所以您需要另一个元素/ElementRef对。尝试Property/PropertyRef。
使用WiX自定义操作的方式是编译器扩展直接写入自定义表行,因此不需要在其中链接创作。
https://stackoverflow.com/questions/22749199
复制相似问题