我已经分配了一项任务,在该任务中,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自定义操作来在运行时更改它,但是无法获得足够的结果。
有人能指点我一下吗?
谢谢和最诚挚的问候
发布于 2010-12-16 13:01:17
将级别设置为高于INSTALLLEVEL属性值的值:http://msdn.microsoft.com/en-us/library/aa369536(VS.85).aspx
例如,如果INSTALLLEVEL为3,则功能级别应为4。要确定INSTALLLEVEL值,可以检查MSI中的属性表。
https://stackoverflow.com/questions/4459402
复制相似问题