[wix-users] Referencing a library project artifact (wixlib) from a setup project (MSI)

Jace Malloy jace81657 at gmail.com
Fri Dec 1 09:36:10 PST 2017

Thanks for the reply, Edwin.

Yes, I thought of looking at the setup project in the "larger" project and
it was overwhelming. There were so many files. I searched for specific
components, but nothing jumped out at me. I couldn't find the entry
point...I assume it to be the Product.wxs file.

I then thought I could (initially), just cut the Feature element (and all
the children of course) from the Library.wxs file, and paste it into the
main setup project somewhere. I'm not sure I know what I'm doing, but
that's what I'm going to try now. I've been reading through the WiX doc,
and spending time on the FireGiant site.

On Fri, Dec 1, 2017 at 12:18 PM, Edwin Castro <egcastr at gmail.com> wrote:

> The details matter... in general you need to add an element reference of
> some kind into your setup project (that is in addition to the project
> reference). Think ComponentGroupRef for example. Something like a
> ComponentGroupRef will bring in the fragment that defines that
> ComponentGroupRef into the setup project. Of course, what you need to do in
> your case will depend on the contents of your wixlib. Presumably there is a
> setup project getting built by appveyor for the larger project. Can you
> take a look at that one for an example of how they consume the content of
> the wixlib?
> --
> Edwin G. Castro
> On Fri, Dec 1, 2017 at 7:38 AM, Jace Malloy via wix-users <
> wix-users at lists.wixtoolset.org> wrote:
>> I apologize ahead of time, in that I'm not familiar at all with WiX;
>> however, in reading some of the documentation in my plight to resolve my
>> current issue, I see it's power and why it's preferred over the standard
>> VS
>> options.
>> I'm maintaining a large .NET sub project through Visual Studio 2015,
>> that's
>> part of a larger project. The guy before me configured a Wix Setup Library
>> (wixlib output) for the smaller, sub project. The sub project is
>> referenced
>> through a build process (Appveyor), which creates a MSI file for the
>> entire
>> product (the larger project).
>> What I need to do is quite simple, but I'm at a loss with what I've tried
>> thus far. I want to create a MSI file for the sub project component for
>> testing. I want to do it through Visual Studio to where the build process
>> outputs a MSI using the existing wixlib.
>> I've added a WiX Setup Project to the sub project, but can't figure out
>> how
>> to simply reference the existing Setup Library (wixlib). I've added a VS
>> reference to the Library Project in the Setup Project, but I'm not sure
>> how
>> to call the Fragment from the library, from the newer Setup Project.
>> Any help is greatly appreciated.
>> Thanks all...
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/

More information about the wix-users mailing list