Bugs item #1562657, was opened at 2006-09-21 09:32
Message generated for change (Comment added) made by igorsol
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1562657&group_id=105970
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: candle
Group: None
Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: appel (appel__)
Assigned to: Rob Mensching (robmen)
Summary: error CNDL0206 when TARGET Directory Name is SOURCEDIR
Initial Comment:
Using:
Microsoft (R) Windows Installer Xml Compiler version
3.0.2015.0
The Directory element is:
<Directory Id="TARGETDIR" Name="SOURCEDIR">
The error:
C:\proj\wixtest\wixtest.wxs(17) : error CNDL0206 :
The 'TARGETDIR' directory has an illegal DefaultDir
value of 'tqepgrb4|SOURCEDIR'. The DefaultDir value
is created from the *Name attributes of the Directory
element. The TARGETDIR directory is a special
directory which must have its Name attribute set
to 'SourceDir' or 'SOURCEDIR'.
If I change SOURCEDIR to SourceDir it works. So either
there's a problem with handling both cases or the
error text is wrong.
----------------------------------------------------------------------
Comment By: igorsol (igorsol)
Date: 2007-07-03 16:18
Message:
Logged In: YES
user_id=1809652
Originator: NO
Error message says:
"The TARGETDIR directory is a special
directory which must have its Name attribute set
to 'SourceDir' or 'SOURCEDIR'"
So error message allows to use SOURCEDIR value. But candle generates
CNDL0206 error. So error message is wrong. (Tested with WiX 3.0.3029.0)
----------------------------------------------------------------------
Comment By: Rob Mensching (robmen)
Date: 2006-12-03 02:15
Message:
Logged In: YES
user_id=991639
Originator: NO
The erorr message is correct, you should use the pair TARGETDIR/SourceDir.
SOURCEDIR is a very old way to refer to SourceDir and is supported by the
Windows Installer only for legacy reasons.
----------------------------------------------------------------------
Comment By: Mike Dimmick (mikedimmick)
Date: 2006-11-06 17:48
Message:
Logged In: YES
user_id=1040952
I'm not sure about the use of SOURCEDIR. That would be a public property,
but you
can't make a public property override a private property with the same
name but
different case - can you? The SDK documentation for the Directory table
only mentions
SourceDir, not SOURCEDIR.
If SOURCEDIR is actually legitimate, the problem here is that the Compiler
class is
generating a shortname for the long name SOURCEDIR and concatenating it;
the whole
then doesn't match the check for SOURCEDIR at line 3874 of Compiler.cs.
The condition
at line 3695 'else if ("SourceDir" == name || ...' should be extended to
include
SOURCEDIR so that this short name is not generated. Line numbers from
3.0.2015.0, but
the problem still exists in 3.0.2301.0 (by source inspection).
Is this the only place where the source part of the directory is expected
to be a
property, or do we need a general way to indicate that a name is a
property and
therefore should not have a short name generated for it?
----------------------------------------------------------------------
Comment By: Hilko_Lantinga (hilko_lantinga)
Date: 2006-09-25 11:53
Message:
Logged In: YES
user_id=1470437
SDK:
SourceDir Property
The SourceDir property is the root directory that contains
the source cabinet file or the source file tree of the
installation package. This value is used for directory
resolution.
So the error text seams to be wrong. Wise uses SOURCEDIR,
but they have been wrong before.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1562657&group_id=105970
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs