How to install feature based on the property set in custom action?

前端 未结 4 493
感动是毒
感动是毒 2020-12-02 03:08

I am trying to install one from two features based on the value that should be set inside of the custom action.
Firstly, I set the value of a property:

U         


        
4条回答
  •  醉酒成梦
    2020-12-02 03:16

    Thank you for your replies. In the end, a combination of your suggestions helped me.

    I want to state what did and what did not work:

    1. Adding property to WiX with a default value was not necessary (as well with adding property of this property Secure='yes')
    2. Calling custom action before CostInitialize did not solve the problem on its own, but I believe it was one of the factors that resolved an issue.
    3. Conditional sintax was corrected by:
      a) Putting condition inside of CDATA and adding quotes to the value of property as suggested:
      b) Reversing condition levels so feature has condition level 1 and condition has level 0. This means that feature is always installed, unless the condition expression is false.

提交回复
热议问题