1 - use the -suid flag with heat.exe to make your id's more readable.
2 - what's the Component throwing that error actually contain? The opening tag 
doesn't actually give enough info by itself.
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.

Palbinder Sandher 
Software Platform Engineer 
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501
http://www.iesve.com 

**Design, Simulate + Innovate with the <Virtual Environment>** 
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer 

-----Original Message-----
From: BGINFO4X [mailto:bginf...@kztsoftware.com] 
Sent: 27 May 2013 17:29
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Heat -ke error (empty directories)

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.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only 
SaaS-based application performance monitoring service that delivers powerful 
full stack analytics. Optimize and monitor your browser, app, & servers with 
just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! 
http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to