WIX If…else condition using registry

后端 未结 2 1061
悲&欢浪女
悲&欢浪女 2021-01-27 00:57

I am trying to use if...else condition in WIX by checking the registry value.


  

        
2条回答
  •  不知归路
    2021-01-27 01:35

    These are preprocessor directives which are evaluated at compile time, not at run-time. Only the part that is true at compile time is even included in your final MSI.

    Here is more information about wix preprossor.

    I don't know what you are trying to do in the blah blah sections but you will probably just need to control things based on the value of the registry you just read. Update the question with what you are actually trying to do inside the if else and I can update the answer (if I remember) with an example to do what you are trying to do.

提交回复
热议问题