aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Util/wixext/UtilCompiler.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2025-02-11 22:17:14 -0800
committerRob Mensching <rob@firegiant.com>2025-02-11 23:14:49 -0800
commit5a3469a43049056773a624032fba170498489e93 (patch)
tree156d3aa3baf29813f05f0a9004036fe7626fa421 /src/ext/Util/wixext/UtilCompiler.cs
parent8f5130afdc60f4957086e41d62cfe9f8d70d5321 (diff)
downloadwix-5a3469a43049056773a624032fba170498489e93.tar.gz
wix-5a3469a43049056773a624032fba170498489e93.tar.bz2
wix-5a3469a43049056773a624032fba170498489e93.zip
Keep Group symbol fields and attributes unnested
Diffstat (limited to 'src/ext/Util/wixext/UtilCompiler.cs')
-rw-r--r--src/ext/Util/wixext/UtilCompiler.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ext/Util/wixext/UtilCompiler.cs b/src/ext/Util/wixext/UtilCompiler.cs
index f59ffcd6..1ad27322 100644
--- a/src/ext/Util/wixext/UtilCompiler.cs
+++ b/src/ext/Util/wixext/UtilCompiler.cs
@@ -1361,7 +1361,7 @@ namespace WixToolset.Util
1361 string domain = null; 1361 string domain = null;
1362 string name = null; 1362 string name = null;
1363 string comment = null; 1363 string comment = null;
1364 Group6Symbol.SymbolAttributes attributes = Group6Symbol.SymbolAttributes.None; 1364 Group6SymbolAttributes attributes = Group6SymbolAttributes.None;
1365 1365
1366 foreach (var attrib in element.Attributes()) 1366 foreach (var attrib in element.Attributes())
1367 { 1367 {
@@ -1394,7 +1394,7 @@ namespace WixToolset.Util
1394 1394
1395 if (YesNoType.No == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib)) 1395 if (YesNoType.No == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib))
1396 { 1396 {
1397 attributes |= Group6Symbol.SymbolAttributes.DontCreateGroup; 1397 attributes |= Group6SymbolAttributes.DontCreateGroup;
1398 } 1398 }
1399 break; 1399 break;
1400 case "FailIfExists": 1400 case "FailIfExists":
@@ -1405,7 +1405,7 @@ namespace WixToolset.Util
1405 1405
1406 if (YesNoType.Yes == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib)) 1406 if (YesNoType.Yes == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib))
1407 { 1407 {
1408 attributes |= Group6Symbol.SymbolAttributes.FailIfExists; 1408 attributes |= Group6SymbolAttributes.FailIfExists;
1409 } 1409 }
1410 break; 1410 break;
1411 case "UpdateIfExists": 1411 case "UpdateIfExists":
@@ -1416,13 +1416,13 @@ namespace WixToolset.Util
1416 1416
1417 if (YesNoType.Yes == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib)) 1417 if (YesNoType.Yes == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib))
1418 { 1418 {
1419 attributes |= Group6Symbol.SymbolAttributes.UpdateIfExists; 1419 attributes |= Group6SymbolAttributes.UpdateIfExists;
1420 } 1420 }
1421 break; 1421 break;
1422 case "RemoveComment": 1422 case "RemoveComment":
1423 if (YesNoType.Yes == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib)) 1423 if (YesNoType.Yes == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib))
1424 { 1424 {
1425 attributes |= Group6Symbol.SymbolAttributes.RemoveComment; 1425 attributes |= Group6SymbolAttributes.RemoveComment;
1426 } 1426 }
1427 break; 1427 break;
1428 case "RemoveOnUninstall": 1428 case "RemoveOnUninstall":
@@ -1433,7 +1433,7 @@ namespace WixToolset.Util
1433 1433
1434 if (YesNoType.No == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib)) 1434 if (YesNoType.No == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib))
1435 { 1435 {
1436 attributes |= Group6Symbol.SymbolAttributes.DontRemoveOnUninstall; 1436 attributes |= Group6SymbolAttributes.DontRemoveOnUninstall;
1437 } 1437 }
1438 break; 1438 break;
1439 case "Vital": 1439 case "Vital":
@@ -1444,7 +1444,7 @@ namespace WixToolset.Util
1444 1444
1445 if (YesNoType.No == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib)) 1445 if (YesNoType.No == this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib))
1446 { 1446 {
1447 attributes |= Group6Symbol.SymbolAttributes.NonVital; 1447 attributes |= Group6SymbolAttributes.NonVital;
1448 } 1448 }
1449 break; 1449 break;
1450 default: 1450 default:
@@ -1468,7 +1468,7 @@ namespace WixToolset.Util
1468 this.Messaging.Write(ErrorMessages.ExpectedAttribute(sourceLineNumbers, element.Name.LocalName, "Name")); 1468 this.Messaging.Write(ErrorMessages.ExpectedAttribute(sourceLineNumbers, element.Name.LocalName, "Name"));
1469 } 1469 }
1470 1470
1471 if (null != comment && (Group6Symbol.SymbolAttributes.RemoveComment & attributes) != 0) 1471 if (null != comment && (Group6SymbolAttributes.RemoveComment & attributes) != 0)
1472 { 1472 {
1473 this.Messaging.Write(ErrorMessages.IllegalAttributeWithOtherAttribute(sourceLineNumbers, element.Name.LocalName, "Comment", "RemoveComment")); 1473 this.Messaging.Write(ErrorMessages.IllegalAttributeWithOtherAttribute(sourceLineNumbers, element.Name.LocalName, "Comment", "RemoveComment"));
1474 } 1474 }