a.k.a. PublicNotCreatable revisited...
I couldn't see a compelling reason why this was still like this in WiX
3.0.4624.0, so here is yet another patch. Maybe someday we can stop
shipping VB6 COM components...
--
Thomas S. Trias
Senior Developer
Artizan Internet Services
http://www.artizan.com/
Index: src/wix/Compiler.cs
===================================================================
--- src/wix/Compiler.cs (version 3.0.4624.0)
+++ src/wix/Compiler.cs (working copy)
@@ -1256,9 +1256,9 @@
this.core.OnMessage(WixErrors.ExpectedAttribute(sourceLineNumbers, node.Name,
"Id"));
}
- if (0 == context.Count)
+ if (0 == context.Count && YesNoType.Yes == advertise)
{
-
this.core.OnMessage(WixErrors.ExpectedAttribute(sourceLineNumbers, node.Name,
"Context", classId));
+
this.core.OnMessage(WixErrors.ExpectedAttribute(sourceLineNumbers, node.Name,
"Context", "Advertise", "yes"));
}
// Local variables used strictly for child node processing.
Index: src/wix/Xsd/wix.xsd
===================================================================
--- src/wix/Xsd/wix.xsd (version 3.0.4624.0)
+++ src/wix/Xsd/wix.xsd (working copy)
@@ -4482,8 +4482,8 @@
<xs:attribute name="Id" type="Guid" use="required">
<xs:annotation><xs:documentation>The Class identifier (CLSID)
of a COM server.</xs:documentation></xs:annotation>
</xs:attribute>
- <xs:attribute name="Context" use="required">
- <xs:annotation><xs:documentation>The server context(s) for
this server.</xs:documentation></xs:annotation>
+ <xs:attribute name="Context" use="optional">
+ <xs:annotation><xs:documentation>The server context(s) for
this server. Only required if Advertise =
"yes"</xs:documentation></xs:annotation>
<xs:simpleType>
<xs:list>
<xs:simpleType>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs