Using WiX 3.7 and .NET 4.0.
How does one set burn variables when running a WiX bootstrapper EXE from the command line?
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.
First of all, the burn variables that you wish to set need to be set as
Overridable. To do this you must include the follow namespace in your WXS:xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"and if you’re using Visual Studio like me you need to includeWixBalExtension.dllin your project references. Next you need to add the following attribute to all of the burn variables that you want to set via the command line:bal:Overridable="yes".Now you can set the variables via the command line in this fashion:
Below is an example of a WXS file that satifies all of the conditions described above: