Bugs item #1752713, was opened at 2007-07-12 16:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1752713&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Adrian Wilkins (dr_barnowl)
Assigned to: Nobody/Anonymous (nobody)
Summary: [EMAIL PROTECTED] is not mandatory
Initial Comment:
When using self-registration to generate registry keys for COM classes,
@Context will not appear for classes that are marked as PublicNotCreateable in
VB6 projects. Because instances can only be created by private code, the
execution context is not required. The self-registry of these classes does not
generate this element.
The absence of Context is however precluded by the validity checking code in
Compiler.cs, and the schema in wix.xsd, but because heat uses the self registry
routines to determine the content, it can generate Class elements with no
@Context when processing VB6 libraries with PublicNotCreateable classes, a
common construct in more advanced code (this is the closest you'll get to
having a dedicated "Interface" concept in VB6, for example).
Suggest:
* Change [EMAIL PROTECTED] to optional in schema
* Remove the following code from Compiler.cs
if (0 == context.Count)
{
this.core.OnMessage(WixErrors.ExpectedAttribute(sourceLineNumbers, node.Name,
"Context", classId));
}
Tested this on a local build and it seems to work fine for the discussed case.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1752713&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