[wix-users] Referring a fragment contained in a wixlib

Reuss, Matthias matthias.mr.reuss at sivantos.com
Tue Jul 24 03:53:23 PDT 2018


Hello,

Meanwhile I could figure out what went wrong here:

My code does not contain CustomActionRef tags, but of course several Custom action sequencing tags (<Custom Action="foo" ...>)

Within the product in question, there is a custom action with the same name as a custom action that is defined in a fragment of the wixlib not referred to elsewhere. This custom action is also sequenced within the product.

At link time, this "implicit" reference to the CustomAction is treated the same way as an explicit CustomActionRef. Thus, the linker tries to resolve it and searches through all available object files, even though there is a CustomAction tag resolving this reference within the same fragment. So it does find two matching symbols - one in the same fragment and one in the wixlib.

One reason that this did not become obvious to me right from the beginning is that there are many occurrences of explicit references (...Ref elements) in the documentation, but not of the implicit references.

Best regards,

Matthias Reuss

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Reuss, Matthias via wix-users
Sent: Thursday, July 19, 2018 2:44 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Reuss, Matthias <matthias.mr.reuss at sivantos.com>
Subject: [wix-users] Referring a fragment contained in a wixlib

Hello,

we have modularized some parts of our WiX code in a wixlib. To be more precise, the wixlib is built from 6 wxs files with one fragment each.

Some products references some of these fragments using ...Ref tags.

This works well for several products, however, for one product light gives several "Duplicate symbol" errors. These errors refer to custom actions that are defined both in a product-specific fragment and in a fragment of the wixlib that - as far as I can see - is not referenced by this product at all.

This error persists even if I put the questionable Custom Actions in a separate fragment in my wixlib.

So it seems to me that for some reason the linker does not only link the referenced fragments from the wixlib, but the whole wixlib.

In addition, is there some linker setting (command-line or wixproj) that alklows me to track why the linker linked a certain fragment?

Best regards,

Matthias Reuss

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list