WIX installer GUID clashes

Hello, I have a problem with wix errors regarding duplicated guids for files I add to a component.

I have two components here

  • voxedit
  • voxconvert

They both inherit files from a module they depend on (the lua scripts that are mentioned in the error logs here: WIX: installer creation failed · Issue #557 · vengi-voxel/vengi · GitHub)

With WIX I now try to build one installer for both components in the project.

It looks like this is only possible by putting the shared files into a shared wix <Component> like this

<DirectoryRef Id="SharedScripts">
    <Component Id="CM_CP_shared.scripts.animate.lua" Guid="*">
        <File Id="CM_FP_shared.scripts.animate.lua" Source="D:/a/vengi/vengi/build/_CPack_Packages/Windows/WIX/vengi/shared/scripts/animate.lua" KeyPath="yes"/>
    </Component>
</DirectoryRef>

<DirectoryRef Id="CM_DP_voxconvert.voxconvert.scripts">
    <ComponentRef Id="CM_CP_shared.scripts.animate.lua" />
</DirectoryRef>

<DirectoryRef Id="CM_DP_voxedit.voxedit.scripts">
    <ComponentRef Id="CM_CP_shared.scripts.animate.lua" />
</DirectoryRef>

(But to my knowledge this is not possible with cmake to generate.)… or by using different GUIDs for the files for each component.

Is this approach even working for someone? A multi-component project that are using a shared subset of files and that are all put into one wix installer script?

Or: Is there a way to provide or override the guids for those shared files by myself?

Thanks a lot