I think you want a "retargetable" Merge Module. I think that keyword will
help in the documentation.

On Wed, Jul 13, 2011 at 5:07 AM, Leigh Wetmore <lwetm...@gmail.com> wrote:

> Hi Rob,
>
> Thanks - I ran Orca (a great tool!) on my MSI, and I found out that the
> merge module files are actually installing to a subfolder within the
> structure created by the MSI.  The MSI files are going to:
>
> TARGETDIR/ProgramFiles/INSTALLLOCATION
>
> whereas the merge module files are going to:
>
> TARGETDIR/ProgramFiles/INSTALLLOCATION/ProgramFiles.<Merge Module
> Guid>/INSTALLLOCATION.<Merge Module Guid>
>
> I'm currently running through different configurations trying to get the
> merge module files to install to the same location as the MSI.
>
> Thanks again,
> Leigh
>
>
> -------------------------------------------------------------------------------------------------------
>
> The Fragment seems like it should have worked. Fastest thing might be to
> open the Merge Module using Orca and see if your Component definition is in
> there. If not, then I'm a little surprised since that ComponentGroupRef
> should do it.  if it is in the Merge Module then you'll want to check your
> Merge elements in your Product.
>
> PS: Any reason not to use .wixlibs in this scenario:
>
> http://www.robmensching.com/blog/posts/2008/10/10/What-are-.wixlibs-and-why-would-you-use-them
>
>
> On Tue, Jul 12, 2011 at 2:46 PM, Leigh Wetmore <lwetm...@gmail.com> wrote:
>
> > Hello,
> > My goal is to create a merge module where my module/package elements are
> > defined in one .wxs file, and the module's directories/components in
> > another. I currently have:
> >  ***MyModule.wxs***
> >
> >
> ----------------------------------------------------------------------------------------------------
> >  <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
> > <?include MyInclude.wxi ?>
> > <Module
> > Id='MyModule'
> > Language='!(loc.Language)'
> > Version='!(bind.FileVersion.MyLib)'>
> >
> > <Package
> > Id="$(var.MyModuleId)"
> > Keywords="!(loc.Keywords)"
> > Description="!(loc.MyModuleDesc) !(bind.FileVersion.MyLib)"
> > Comments="!(loc.MyModuleComments)"
> > Languages="!(loc.Language)"
> > Manufacturer="!(loc.Manufacturer)"
> > InstallerVersion="200" />
> > <ComponentGroupRef Id="MyComponents"/>
> > </Module>
> > </Wix>
> >
> >
>  
> ----------------------------------------------------------------------------------------------------
> >
> >
> > ***MyComponents.wxs***
> >
> >
>  
> ----------------------------------------------------------------------------------------------------
> >
> > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
> > <?include MyInclude.wxi ?>
> > <Fragment>
> > <Directory Id="TARGETDIR" Name="SourceDir">
> > <Directory Id="$(var.PlatformProgramFilesFolder)">
> > <Directory Id="INSTALLLOCATION">
> > <Component Id="MyComponent1" Guid="{myguid}">
> > <File Id="MyFile1" ... />
> > </Component>
> > ...
> > </Directory>
> > </Directory>
> > </Directory>
> > <ComponentGroup Id="MyComponents">
> > <ComponentRef Id="MyComponent1"/>
> > ...
> > </ComponentGroup>
> > </Fragment>
> > </Wix>
> >
> >
> ----------------------------------------------------------------------------------------------------
> > I have another Wix project that consumes the merge module and generates
> an
> > MSI. Everything compiles and the MSI runs, however none of my components
> in
> > MyComponents.wxs are installed. If I get rid of MyComponents.wxs and use
> a
> > single file, everything works:
> >  ***MyModule.wxs***
> >
> >
>  
> ----------------------------------------------------------------------------------------------------
> >
> > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
> > <?include MyInclude.wxi ?>
> > <Module
> > Id='MyModule'
> > Language='!(loc.Language)'
> > Version='!(bind.FileVersion.MyLib)'>
> >
> > <Package
> > Id="$(var.MyModuleId)"
> > Keywords="!(loc.Keywords)"
> > Description="!(loc.MyModuleDesc) !(bind.FileVersion.MyLib)"
> > Comments="!(loc.MyModuleComments)"
> > Languages="!(loc.Language)"
> > Manufacturer="!(loc.Manufacturer)"
> > InstallerVersion="200" />
> >  <Directory Id="TARGETDIR" Name="SourceDir">
> > <Directory Id="$(var.PlatformProgramFilesFolder)">
> > <Directory Id="INSTALLLOCATION">
> > <Component Id="MyComponent1" Guid="{myguid}">
> > <File Id="MyFile1" ... />
> > </Component>
> > ...
> > </Directory>
> > </Directory>
> > </Directory>
> >
> > </Module>
> > </Wix>
> >
> >
> ----------------------------------------------------------------------------------------------------
> > Am I perhaps referencing things in an incorrect manner?
> >  Thanks in advance for any help you can provide,
> > Leigh
> >
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to