Hi, I'm having trouble creating a merge module from fragments. For the time being I'll have to deliver my files in merge modules, but in the foreseeable future those files will no longer be part of the project that currently consumes my merge modules. Instead I'll create the installer (using WiX) that includes those files. Thus, I was planning on creating a fragment that I can use in a merge module right now and then later call from the 'real' installer/msi source code as the merge modules are no longer needed. However, whenever I create a merge module that way, the component from the fragment doesn't seem to get registered correctly.
mergeModule.wxs: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"> <Module Id="MyMergeModule" Guid="12345678-8DEE-4410-990A-1802896C4209" Language="0" Version="1.2.3"> <Package Id="12345678-8DEE-4410-990A-1802896C4209" InstallerVersion="200" Languages="1033" Manufacturer="dev" SummaryCodepage="1252" AdminImage="no" ShortNames="no" /> <Directory Id='TARGETDIR' Name='SourceDir'> </Directory> <FragmentRef Id='MyFragment' /> </Module> </Wix> fragment.wxs: <?xml version='1.0' encoding='windows-1252'?> <Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'> <Fragment Id='MyFragment'> <DirectoryRef Id='TARGETDIR'> <Component Id="MyFile" Guid="A9D21DEC-C1D8-47C9-9DB9-18156465A1A3"> <File Id="MyFile" Name="foo.bar" LongName="MyLongFile.name" Source="$(env.MYSOURCEDIR)\MyLongFile.name" KeyPath="yes" DiskId="1" /> </Component> </DirectoryRef> </Fragment> </Wix> The above code compiles and links fine with WiX 2.0.5010.0, but I get the following warning: fragment.wxs(5) : warning LGHT1010 : Found orphaned Component 'MyFile'. Every Component should have at least one parent Feature. (This is weird, as there are no features in merge modules....afaik) Indeed something is wrong. When I look at the merge module I see that the ModuleComponent table is empty and consequently the validation results in ICEM05 ERROR The component MyFile.12345678_8DEE_4410_990A_1802896C4209 in the Component table is not listed in the ModuleComponents table. Any idea what's wrong? ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users