Bugs item #1703369, was opened at 2007-04-18 21:09 Message generated for change (Settings changed) made by uglaeser You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1703369&group_id=105970
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: light Group: v2.0 Status: Open Resolution: None >Priority: 8 Private: No Submitted By: Ulf Glaeser (uglaeser) >Assigned to: Bob Arnson (barnson) Summary: WiX2: Building merge modules from fragments fails Initial Comment: Whenever I create a merge module that includes a fragment with WiX 2, the component from the fragment doesn't seem to get registered correctly resulting in a faulty merge module. See the following code for illustration: 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. Not sure, whether this is a problem in candle or light. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1703369&group_id=105970 ------------------------------------------------------------------------- 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-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-devs
