The error message seems pretty specific. "component2" isn't being 
referenced by a Feature (if you're building a Product) or a Merge Module 
(if you're building a MergeModule). You need to reference "component2" 
like you did "component1".

Is there a way the error message could be improved.

Jiang, Chunyan (GE Healthcare) wrote:
> Hi wix-users,
>
> I have to manage this data structure:
>
> folderA
> -file1
> -folderB
>     -file2
>
> It means that folderA includes file1 and folderB. And folderB includes
> file2. I set it as following:
>
> <DirectoryRef Id="INSTALLLOCATION">
>
>     <Directory Id="folderA" Name="folderA">
>
>         <Component Id="component1"
> Guid="3B21AF58-B899-4f1d-AD1A-1B74380FEB3D">
>
>             <File Id="file1" Name="ACEdll"
> src="..\..\..\ExtLib\ACE_TAO\lib\ACE.dll" DiskId="1" />
>
>         </Component>
>
>       <Directory Id="folderB" Name="folderB">
>
>         <Component Id="compoment2"
> Guid="772921F5-3569-4000-8847-F325DC89638E">
>
>             <File DiskId="1" Id="file2" Name="admin.xml"
> src="..\..\Fetal Database\English\USA\Admin.xml" />
>
>         </Component>
>
>       </Directory>
>
>    </Directory>
>
>  </DirectoryRef>
>
> When I compile it, there is error:
>
> error LGHT0267 : Found orphaned Component 'component2'. If this is a
> Product, every Component must have at least one parent Feature. To
> include a Component in a Module, you must include it directly as a
> Component element of the Module element or indirectly via ComponentRef,
> ComponentGroup, or ComponentGroupRef elements.
>
> I also tried other ways. But always not working. Could some one tell me
> how to handle it?
>
> Thanks a lot!
>
> Chunyan
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to