December 2012
Intermediate to advanced
488 pages
10h 23m
English
WiX lets you specify variables that are evaluated at compile time. You might use this to get environmental variables from the build machine, get the directory where your source files are, or access custom variables you've set up in a separate WiX include file (.wxi).
WiX has three classifications for compile-time (otherwise known as preprocessor) variables: Custom, Environment, and System. We'll discuss each in the following sections.
To set your own compile-time variables, also known as preprocessor variables, use the <?define ?> directive in your WiX markup:
<?define myVar = "myvalue" ?>
Although you can do this in any of your .wxs files, it's common to do it in a separate include file (.wxi) file, ...
Read now
Unlock full access