How do I compare registry versions in WiX?

前端 未结 1 1048
北恋
北恋 2021-01-05 03:14

In my wix installer, I want to check for a version of ESRI ArcMap which I can find by:


    

        
相关标签:
1条回答
  • 2021-01-05 03:40

    The value returned by the RegistrySearch element depends on the @Type attribute value, as well as on the data type of that value in the registry. Hence, in case you specify raw as a value of Type attribute, the result you'll get will most likely contain a certain prefix. For instance, if it's REG_BINARY you'll get the value prefixed with #. You should consider this in the operations of comparison.

    As for the string comparison in particular, I would use the substring operators supported by the MSI condition syntax. It supports 'starts with', 'ends with' and 'contains', which looks like the best way to identify your value 10. somewhere in the value you receive in ARC10INSTALLED property.

    0 讨论(0)
提交回复
热议问题