Wix组件状态评估

发布于 2024-09-19 17:09:34 字数 159 浏览 2 评论 0原文

如果正在安装另一个功能(不是该组件的父功能),我需要安装一个组件。

组件条件似乎在 CostFinalize 操作期间进行了评估,因此我创建了一个属性并设置了该属性的值,然后我使用自定义操作强制执行 CostInitialize 操作,

但组件仍然没有安装,有任何线索吗?

I have a component that needs to be installed if another feature ( not the parent feature of the component) is being installed.

The component conditions seems to be evaulated during CostFinalize action, so i created a property and set the value of that property, I then force CostInitialize action using a custom action

but the component still doesnt get installed, any clues ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绝不服输 2024-09-26 17:09:34

仅针对属于正在安装的功能的组件评估组件条件。他们只能排除该组件而不能包含该组件。

安装时,您必须使用 ComponentRef 元素使组件属于其他功能。组件可以与多个功能相关联。

<Directory....>
  <Component Id="test1"...>
  <Component Id="test2"...>
  <Component Id="testcommon"...>
</Directory>

<Feature Id="A"...>
  <ComponentRef Id="test1"/>
  <ComponentRef Id="testcommon"/>
</Feature>
<Feature Id="B"...>
  <ComponentRef Id="test2".../>
  <ComponentRef Id="testcommon".../>
</Feature>

Component conditions are only evaluated for components that belong to features that are being installed. They can only exclude the component not include the component.

Install you must make the component belong to the other feature by using a ComponentRef element. Components are allowed to be associated with more then one feature.

<Directory....>
  <Component Id="test1"...>
  <Component Id="test2"...>
  <Component Id="testcommon"...>
</Directory>

<Feature Id="A"...>
  <ComponentRef Id="test1"/>
  <ComponentRef Id="testcommon"/>
</Feature>
<Feature Id="B"...>
  <ComponentRef Id="test2".../>
  <ComponentRef Id="testcommon".../>
</Feature>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文