Can I create a component with Wix that has files in different directories/subdirectories? Or all the files of a component should be in the same directory?
How do I set the XML for that?
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.
No.
See the Windows Installer documentation on Components… one of the main rules is that Each component must be stored in a single folder.
Component rules are very easy to violate, the best solution is to stick to one file per component if there is any chance at all any of the files will change in a later version.
Putting multiple files into a component can cause headaches down the line, avoid it if possible unless you have a valid reason – and having easier to maintain WiX sources isn’t a valid reason 🙂