On Thu, 8 Jan 2009 15:44:36 -0800, "Colin Fox" <greenene...@gmail.com>
said:
> Before I even get to that stage though, I've got another little problem
> with
> Heat output.
> 
> There are 3 different output templates Heat can use - Product, Fragment
> and
> Module. The one that most closely matches what I'm looking for is
> Fragment.However, when I create it, if I use -sfrag I end up with one
> ComponentGroup that I can use (which is great) but I also en up with a
> Directory heirarchy that candle complains about.
> 
> <?xml version="1.0" encoding="utf-8"?>
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
>     <Fragment>
        <DirectoryRef Id="TARGETDIR">
>         <Directory Id="Template" Name="Template">
>         <Directory Id="_12" Name="12">
>             <Directory Id="FEATURES" Name="FEATURES">
>             <Directory Id="AnnouncementsList" Name="AnnouncementsList">

...

> Error    1    The Directory with Id 'Template' is not a valid root
> directory.  There may only be a single root directory per product or
> module
> and its Id attribute value must be 'TARGETDIR' and its Name attribute
> value
> must be 'SourceDir'.

...

Add the line incorporated above after the <Fragment> (and a matching
</DirectoryRef> before the </Fragment>) and it should work.

That'll make your fragment refer to the root directory in your main .wxs
file and everything will be all right.

--Curtis
--
Curtis Jewell
swords...@csjewell.fastmail.us

%DCL-E-MEM-BAD, bad memory
-VMS-F-PDGERS, pudding between the ears

[I use PC-Alpine, which deliberately does not display colors and pictures in 
HTML mail]


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to