I would remove TARGETDIR from the Fragment and change MergeRedirectFolder
to a DirectoryRef.  Might even call "MergeRedirectFolder" something more
like "ThePurposeOfThisFragmentFolder". That ends up being a reference to a
folder that the .wixlib will need the "parent project" (MSI or Merge
Module) to define.  The linker will remind you if you forget.

Then, wrap the Components in your Fragment with a ComponentGroup so you can
easily refer to them all.

Finally, define your Directory tree in your Product and/or Module then add
a ComponentGroupRef under the appropriate Product/Feature and/or just under
the Module itself.  The linker starts at the Product or Module element and
resolves references down from there. The ComponentGroupRef will reference
the stuff in your .wixlib and pull that fragment in. The .wixlib will then
reference it's required Directory elements that should be resolved back in
the Product or Module or another fragment if you choose.

On Tue, Sep 18, 2012 at 7:10 AM, StevenOgilvie <sogil...@msn.com> wrote:

> okay I figured out how to add the wixlib, however the files are not being
> installed :(
>
> in the wixlib:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
>   <?include $(var.SolutionDir)Setup\Includes\Variables.wxi ?>
>   <Fragment>
>     <Directory Id="TARGETDIR" Name="SourceDir">
>       <Directory Id="MergeRedirectFolder">
>
>
>         <Component Id="cmp_Log4Net"
> Guid="{CB08ECF2-0F34-4324-BD22-0C1A6E042252}">
>           <File Id="file_log4net" KeyPath="yes" Name="log4net.dll"
>
> Source="..\..\..\Source\ThirdParty\NServiceBus\3.2.8\binaries\log4net.dll"/>
>         </Component>
>         <Component Id="cmp_NServiceBusAssembly"
> Guid="{088E18F8-EF0F-4626-9712-98277F2473D9}">
>           <File Id="file_NServiceBusAssembly" KeyPath="yes"
> Name="NServiceBus.dll"
>
> Source="..\..\..\Source\ThirdParty\NServiceBus\3.2.8\binaries\NServiceBus.dll"/>
>         </Component>
>         <Component Id="cmp_NServiceBusHost"
> Guid="{B5CFDF82-7BF7-4655-8EE0-C72D82831B35}">
>           <File Id="file_NServiceBusHost" KeyPath="yes"
> Name="NServiceBus.Host.exe"
>
> Source="..\..\..\Source\ThirdParty\NServiceBus\3.2.8\binaries\NServiceBus.Host.exe"/>
>         </Component>
>         <Component Id="cmp_NServiceBusCore"
> Guid="{9A5992DC-F21E-4BA7-A0C0-73E423014D65}">
>           <File Id="file_NServiceBusCore" KeyPath="yes"
> Name="NServiceBus.Core.dll"
>
> Source="..\..\..\Source\ThirdParty\NServiceBus\3.2.8\binaries\NServiceBus.Core.dll"/>
>         </Component>
>
>       </Directory>
>     </Directory>
>
>   </Fragment>
>
> </Wix>
>
> I added this wixlib as a reference in one of my services merge module, its
> directory structure is:
> <Directory Id="TARGETDIR" Name="SourceDir">
>                         <Directory Id="MergeRedirectFolder">
>         <Directory Id="ServiceESName" Name="EnterpriseSettingsService">
>
> I can't hard code a directory in the wixlib since it needs to install its
> files to the merge module directory...
>
> Not sure what I am supposed to do?
>
> Steve
>
>
>
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/creating-database-problem-tp7580594p7580622.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
virtually,

   Rob Mensching
   http://RobMensching.com LLC
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to