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?
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With