Wix:如何设置功能状态“此功能将不可用”?

发布于 2024-10-08 02:01:59 字数 888 浏览 0 评论 0原文

我已经分配了一项任务,其中 4 个子功能中的一个应以“此功能将不可用”的状态显示给用户。

例如,我有此功能集:

<Feature Id="Main" AllowAdvertise="no" ConfigurableDirectory="MYROOT" Description="Required components"   Display="expand" Level="1" Title="Main Feature" Absent="disallow">
        <ComponentRef Id ="Cmp22"/>

    <Feature Id="SubFeature_1" AllowAdvertise="no" Level="1"> 

    </Feature>
    <Feature Id="SubFeature_2" AllowAdvertise="no" Level="1"> 

    </Feature>
    <Feature Id="SubFeature_3" AllowAdvertise="no" Level="1"> 
            <!-- I want this feature to displayed as "This Feature Will Not be available" -->
    </Feature>

</Feature>

我尝试过不同的 级别 价值观。

另外,我使用了使用 Session.FeatureRequestState 方法的 VbScript 自定义操作,在运行时更改它,但无法获得足够的结果。

有人可以指导我吗?

谢谢并致以诚挚的问候

I've assigned a task in which one sub feature among 4 should be displayed to the user in the state as "This Feature Will Not be available"

For instance, I have this feature set:

<Feature Id="Main" AllowAdvertise="no" ConfigurableDirectory="MYROOT" Description="Required components"   Display="expand" Level="1" Title="Main Feature" Absent="disallow">
        <ComponentRef Id ="Cmp22"/>

    <Feature Id="SubFeature_1" AllowAdvertise="no" Level="1"> 

    </Feature>
    <Feature Id="SubFeature_2" AllowAdvertise="no" Level="1"> 

    </Feature>
    <Feature Id="SubFeature_3" AllowAdvertise="no" Level="1"> 
            <!-- I want this feature to displayed as "This Feature Will Not be available" -->
    </Feature>

</Feature>

I've tried with different Level values.

Also, I used a VbScript custom action using Session.FeatureRequestState method, to change it at runtime, but can't get enough results.

Can someone please guide me about this?

Thanks and Best regards

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

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

发布评论

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

评论(1

紅太極 2024-10-15 02:02:00

将级别设置为高于 INSTALLLEVEL 属性值的值:
http://msdn.microsoft.com/en-us/ library/aa369536(VS.85).aspx

例如,如果 INSTALLLEVEL 为 3,则您的功能级别应为 4。要确定 INSTALLLEVEL 值,您可以检查 MSI 中的属性表。

Set the level to a value higher than INSTALLLEVEL property value:
http://msdn.microsoft.com/en-us/library/aa369536(VS.85).aspx

For example, if INSTALLLEVEL is 3, your feature level should be 4. To determine the INSTALLLEVEL value you can check the Property table in your MSI.

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