O'Reilly logo
  • Chris Kang thinks this is interesting:

Before these launch conditions can be included in the MSI database they have to be referenced in your main WiX file. You can add a property, as in the previous example, that can be referenced in the main file with a PropertyRef element. The LaunchConditionsFile property we have here can be referenced with a PropertyRef element to pull in the Condition statement; the Product.wxs file would include the following line:

<PropertyRef Id="LaunchConditionsFile" />



Without this property, you won't be able to refer to the conditions in the Fragment file.