How to include wxi file into wxs?

25,129

Solution 1

for reference:

http://wix.sourceforge.net/manual-wix2/preprocessor.htm

Although this is about wix 2.0 and uses a file with extension .wxs - the game stays the same, as only the "include" element is required to exist in the file.

A good article how to use this can be found here: http://weblogs.sqlteam.com/mladenp/archive/2010/02/17/WiX-3-Tutorial-Understanding-main-WXS-and-WXI-file.aspx

Solution 2

use <?include ?> preprocessor tag, for example:

 <?include include.wxi ?>
Share:
25,129
Juozas Kontvainis
Author by

Juozas Kontvainis

Developer with a wide range of technology skills and an interest in usability

Updated on July 11, 2022

Comments

  • Juozas Kontvainis
    Juozas Kontvainis almost 2 years

    Following the excellent suggestion I have moved some variables to WXI file. How do I include it in WXS file?