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

Reply via email to