How do I to pass in a WiX variable defined in another file (without redefining it again)?
It seems like the standard way of defining a variable is this:
<?define Var1= "****" ?>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s right, you can define some variables in this syntax. Then include them in a separate WiX include file, with the extension
.wxi. (like a.hinclude file), for exampleMyWixDefines.wxi. Then in your other WiX file Fragments, include this file, like this:And finally, in the other fragments, you reference the variable like this:
A reminder: The variable is resolved at WiX compile time. It’s not dynamically available at install time.