Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wix Duplicate Symbol Error

Tags:

wix

I am new to wix and I am having to add a dll to two separate folders as it is being used by two separate part in my application, but I am getting a duplicate symbol found error, how can I go about resolving this issue?

like image 302
Sheenie Avatar asked Dec 06 '25 06:12

Sheenie


1 Answers

First, create multiple component groups that target different installation locations. They contain the same DLLs/files. Then, give also a unique identifier for those DLLs inside the respective components with Id attribute.

For example:

<ComponentGroup Directory="FirstDirectory">
    <Component Id="Component1">
        <File Source="MyFile.dll" Id="MyFile.dll.InFirstDirectory" />
    </Component>
</ComponentGroup>
...
<ComponentGroup Directory="SomeElseDirectory">
    <Component Id="Component2">
        <File Source="MyFile.dll" Id="MyFile.dll.InSecondDirectory" />
    </Component>
</ComponentGroup>
like image 200
am9417 Avatar answered Dec 10 '25 19:12

am9417



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!