I’m searching a way to create a Setup with WIX, which is loading settings from a xml-file (or only a simple table in the file) and modifies the features of the setup depending on the data in the xml/table.
Any ideas?
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.
WiX doesn’t have an xmlLocator pattern so you will have to write a custom action to read your dataset into properties. From there it depends on what you mean by modify features. Do you just mean hide, install or don’t install the feature or do you have something more dynamic in mind?
If the former, you can use the properites you loaded in Condition elements to change the installLevel of the features relative to your INSTALLLEVEL property. If you have something more complex in mind ( unlikely ) you would have to use a custom action to emit temporary rows into the feature / featurecomponents table.