Sorry, I didn't see your emails. I respond: > 1 - use the -suid flag with heat.exe to make your id's more readable.
I tried it and don't help. Even, I don't see the benefits of NO generating UIDs in a .msi. > 2 - what's the Component throwing that error actually contain? The opening > tag doesn't actually give enough info by itself. The component throwing the error points to an Empty folder. > 3 - heat.exe isn't designed to be used directly after generation. You will > more often than not have to do some clean-up on the output from heat.exe > before it'll compile/link. I didn't know this. But I can't delete these empty folders: these folders aren't "tmp" folders of my compilations, they are product folders by design. > See #3 from my previous message. Then read it again until you understand it. I think that I understand what you mean. Thanks. So, to conclude -ke works well with -gg and doesn't work well with -ag. If this is not a bug, why the -ag option fails with error LGHT0230? Thanks a lot for your time. 2013/5/28 BGINFO4X <bginf...@kztsoftware.com>: > Hello again, I need your help. > > The problem with "heat -ke" + light seems to be related to the fact > that the guid of empty directories can't be an "*". > It must be a normal GUID, so light doesn't crash with the error LGHT0230. > > Do you know how to create a GUID (not *) for empty directories with heat -ag? > > If I use -gg, light works, but here in the forum this option is not > recommended. > > Can you confirm that this is a bug? I use the latest wix 3.8.520 version > If it is, I will open a bug in bug file site. > > Thanks a lot. > > > 2013/5/27 BGINFO4X <bginf...@kztsoftware.com>: >> Hello, >> >> I'm using HEAT with the option -ke (keep empty directories) with the >> following commands: >> >> >> @echo off >> echo >> "##########################################################################" >> echo "HEAT!" >> >> "C:\Program Files\WiX Toolset v3.7\bin\heat" dir "BGINFO4XW" -cg >> SampleGroup -out SampleGroup.wxs -ag -dr BaseDir -srd -ke >> >> echo >> "##########################################################################" >> echo "CANDLE!" >> "C:\Program Files\WiX Toolset v3.7\bin\candle" -ext "C:\Program >> Files\WiX Toolset v3.7\bin\WixUIExtension.dll" -ext "C:\Program >> Files\WiX Toolset v3.7\bin\WixUtilExtension.dll" -ext "C:\Program >> Files\WiX Toolset v3.7\bin\WixNetFxExtension.dll" SampleFirst.wxs >> SampleGroup.wxs >> >> echo >> "##########################################################################" >> echo "LIGHT!" >> "C:\Program Files\WiX Toolset v3.7\bin\light" -ext "C:\Program >> Files\WiX Toolset v3.7\bin\WixUIExtension.dll" -ext "C:\Program >> Files\WiX Toolset v3.7\bin\WixUtilExtension.dll" -ext "C:\Program >> Files\WiX Toolset v3.7\bin\WixNetFxExtension.dll" SampleFirst.wixobj >> SampleGroup.wixobj -cultures:en-us -out SampleFirst.msi -b "BGINFO4XW" >> >> But, here in light, I get errors for EACH empty directory, and the msi >> is not created. >> >> The error is: \SampleGroup.wxs(338) : error LGHT0230 : The >> Component/@Guid attribute's value '*' is not valid for this component >> because it does not meet the criteria for having an automatically >> generated guid. Components using a Directory as a KeyPath or >> containing ODBCDataSource child elements cannot use an automatically >> generated guid. Make sure your component doesn't have a Directory as >> the KeyPath and move any ODBCDataSource child elements to components >> with explicit component guids. >> >> In line 338 I have: >> <Component Id="cmpD7EAB448C8FD4A1D7DC06BA49EC41B6E" >> Directory="dir0D636418BB9632BDBE27AA13B3B87D9C" Guid="*" >> KeyPath="yes"> >> >> And the dir0D636418BB9632BDBE27AA13B3B87D9C refers to: >> <Fragment><DirectoryRef Id="dir9D86EEBEA4804C429E60401935D6E0D9"> >> <Directory Id="dir0D636418BB9632BDBE27AA13B3B87D9C" Name="SERVER" /> >> </DirectoryRef></Fragment> >> >> Where SERVER is one of the EMPTY directories. >> >> >> Can you help me? Is this a bug? >> >> Thanks a lot for your time. ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users