takesides
takesides

Reputation: 137

Split WiX ComponentGroup across multiple files

I am an InstallShield veteran but keen to move our product over to Wix. So far I am impressed and enjoying the challenge but I have one question:

I have split my source files (*.wxs) up as they were getting rather unwieldy. I have split the registry and file parts into separate files, however I would like them to be part of the same component group and I get an error LGHT0091 : Duplicate symbol when I compile the files with the ComponentGroup Id tag set the same.

Is there a way to have multiple files which contain child elements for the same ComponentGroup?

Upvotes: 1

Views: 1074

Answers (1)

jbudreau
jbudreau

Reputation: 1307

"Why" you'd want to do this aside, here's how you'd do it:

<ComponentGroup Id="MyGroup">
   <?include MyComponents1.wxi?>
   <?include MyComponents2.wxi?>
</ComponentGroup>

Have your components defined in separate wxi files, and just include them inside your single ComponentGroup element.

Upvotes: 4

Related Questions