Personally I find a wixlib is mostly only useful if you're going to be sharing them with a third party. They're effectively WiX's own version of merge modules (but without a bunch of the problems merge modules have).
If your products A & B are being built from the same solution then feel free to use Fragments for the shared parts. Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Marc Beaudry [mailto:mbeau...@matrox.com] Sent: 15 February 2013 16:52 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] wxLibs - Usage Thanks Peter for the explanation. I created a Lib file in VS and using it through a second installation WXS. Not sure what "bound files" are but I will look that part up to see how I can use these. As for the tutorial, it does not talk about lib files only fragments. -----Original Message----- From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] Sent: February-15-2013 11:22 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] wxLibs - Usage There might be a wixlib example in the wix tutorial but I can't access it at the moment. A wixlib is like a compiled wxs file containing 1+ fragments. Instead of a wixobj it's compiled into a wixlib. Optionally it can have the files referenced added to the wixlib file in a cab (a bound wixlib) which makes it easier to use. You store resources (components/binary elements/directory structures/etc) in the wixlib and then reference them in your wxs files using component-/binary-/directory- Refs. The wixlib is added to the wixobjs on the light command line or in the references section if using visual studio. A simple example of defining and using one would be: A visual studio wixlib project containing a wxs file. The file defines a component in a fragment. A visual studio MSI project containing another wxs file. The file has a feature that includes a componentref to the component defined in the wixlib. The wixlib created by the first project is a reference in the second project. -----Original Message----- From: Marc Beaudry [mailto:mbeau...@matrox.com] Sent: 15 February 2013 15:40 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] wxLibs - Usage Hello Again, Figured out that libs are essentially Fragments. If there is a tutorial somewhere that I missed I would appreciate a link. If libs are not like fragments I would appreciate someone correct me on this misconception I have Thanks again, Marc Hello, I am in the process of learning wix and have a question on wxLib files: I found this link explaining why someone would use lib files: http://robmensching.com/blog/posts/2008/10/10/what-are-.wixlibs-and-why-woul d-you-use-them I cannot find a good primer on how to use wxlib files: Here is what I am trying to do: I have two projects (A & B) that both share a common set on installation files. I understand that the lib file will contain the sections that are going to be shared amongst A & B. My question is what do I put and not put in the Lib File. How is the installation directory shared between the Lib file and the root wxs file. In the wxs file I set variables to point to my debug or release folder depending on what configuration is being build, how are variable passed from the wxs file to the lib file. All my variable values are kept in a wxi file should I include the wxi file in both the lib file and wxs file. etc. Is there a usage sample of how to incorporate a wxlib file in an installer project. Thanks for the advice, Marc ---------------------------------------------------------------------------- -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- - - Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ---------------------------------------------------------------------------- -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users