# WIX installer GUID clashes

**URL:** https://discourse.cmake.org/t/wix-installer-guid-clashes/13118
**Category:** Usage
**Tags:** os:windows, cpack:wix
**Created:** [December 4, 2024, 8:12am UTC](https://discourse.cmake.org/t/wix-installer-guid-clashes/13118 "2024-12-04T08:12:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mgerhardy](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mgerhardy/32/4563_2.png) [@mgerhardy](https://discourse.cmake.org/u/mgerhardy)
#### Post date: [December 4, 2024, 8:12am UTC](https://discourse.cmake.org/t/wix-installer-guid-clashes/13118/1 "2024-12-04T08:12:29Z")

</div>

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](https://github.com/vengi-voxel/vengi/issues/557))

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

```auto
<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
