Do you have access to the generator (or are willing to transform its
output)?
Change it like this:

<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
  <Fragment Id='Fr_mingw_make'>
    <Feature Id='Feat_mingw_make' Display='hidden' Level='1'>
      <Component Id='C_916E9797_BA49_3623_A9D5_A256640D3767'
      Guid='916E9797-BA49-3623-A9D5-A256640D3767'
      Directory='D_4BBC5939_3679_3158_9B6E_A932A70117F9'>
        <File Id='F_916E9797_BA49_3623_A9D5_A256640D3767'
        Source='C:\WiXTest\c\bin\mingw32-make.exe' />
      </Component>
    </Feature>
  </Fragment>
</Wix>

Features can obviously contain Components but they just don't contain
Directories. Yes, I know that a DirectoryRef is allowed in some places that
Directory's aren't, but...

Your generator's model, of course, makes sense in some respects as well (we
do place Components under Directories, and we usually use DirectoryRefs when
doing so.

These usage models are, I believe (although I have no knowledge to
substantiate it), why Feature and Directory are also attributes to
Component.

You can always file a feature request.

-----Original Message-----
From: Curtis Jewell [mailto:lists.wix-us...@csjewell.fastmail.us] 
Sent: Tuesday, September 01, 2009 8:54 PM
To: discussion for Windows Installer XML toolset.
Subject: [WiX-users] DirectoryRef under a Feature tag doesn't work where it
would under the Fragment...

I would think that this should work, but it doesn't.  (It works without
the Feature tag, why shouldn't it work with it?)

[Yes, I know. A one-component feature doesn't seem reasonable.  It's
just automatically generated, and it was the one that got printed before
the generator bailed...]

<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
  <Fragment Id='Fr_mingw_make'>
    <Feature Id='Feat_mingw_make' Display='hidden' Level='1'>
      <DirectoryRef Id='D_4BBC5939_3679_3158_9B6E_A932A70117F9'>
        <Component Id='C_916E9797_BA49_3623_A9D5_A256640D3767'
        Guid='916E9797-BA49-3623-A9D5-A256640D3767'>
          <File Id='F_916E9797_BA49_3623_A9D5_A256640D3767'
          Source='C:\WiXTest\c\bin\mingw32-make.exe' />
        </Component>
      </DirectoryRef>
    </Feature>
  </Fragment>
</Wix>
--
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]


----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus
on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to