aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/ExtensibilityServices
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/ExtensibilityServices')
-rw-r--r--src/WixToolset.Core/ExtensibilityServices/ParseHelper.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/WixToolset.Core/ExtensibilityServices/ParseHelper.cs b/src/WixToolset.Core/ExtensibilityServices/ParseHelper.cs
index 7447d420..2a851a21 100644
--- a/src/WixToolset.Core/ExtensibilityServices/ParseHelper.cs
+++ b/src/WixToolset.Core/ExtensibilityServices/ParseHelper.cs
@@ -260,6 +260,43 @@ namespace WixToolset.Core.ExtensibilityServices
260 section.Tuples.Add(tuple); 260 section.Tuples.Add(tuple);
261 } 261 }
262 262
263 public void CreateWixSearchTuple(IntermediateSection section, SourceLineNumber sourceLineNumbers, string elementName, Identifier id, string variable, string condition, string after, string bundleExtensionId)
264 {
265 // TODO: verify variable is not a standard bundle variable
266 if (variable == null)
267 {
268 this.Messaging.Write(ErrorMessages.ExpectedAttribute(sourceLineNumbers, elementName, "Variable"));
269 }
270
271 section.Tuples.Add(new WixSearchTuple(sourceLineNumbers, id)
272 {
273 Variable = variable,
274 Condition = condition,
275 BundleExtensionRef = bundleExtensionId,
276 });
277
278 if (after != null)
279 {
280 this.CreateSimpleReference(section, sourceLineNumbers, "WixSearch", after);
281 // TODO: We're currently defaulting to "always run after", which we will need to change...
282 this.CreateWixSearchRelationTuple(section, sourceLineNumbers, id, after, 2);
283 }
284
285 if (!String.IsNullOrEmpty(bundleExtensionId))
286 {
287 this.CreateSimpleReference(section, sourceLineNumbers, "WixBundleExtension", bundleExtensionId);
288 }
289 }
290
291 public void CreateWixSearchRelationTuple(IntermediateSection section, SourceLineNumber sourceLineNumbers, Identifier id, string parentId, int attributes)
292 {
293 section.Tuples.Add(new WixSearchRelationTuple(sourceLineNumbers, id)
294 {
295 ParentSearchRef = parentId,
296 Attributes = attributes,
297 });
298 }
299
263 [Obsolete] 300 [Obsolete]
264 public IntermediateTuple CreateRow(IntermediateSection section, SourceLineNumber sourceLineNumbers, string tableName, Identifier identifier = null) 301 public IntermediateTuple CreateRow(IntermediateSection section, SourceLineNumber sourceLineNumbers, string tableName, Identifier identifier = null)
265 { 302 {