From 61d789db5de8613c51df1e7db94f459aadbd3ca8 Mon Sep 17 00:00:00 2001 From: Bevan Weiss Date: Sat, 18 Jan 2025 23:01:30 +1100 Subject: Add a basic unit test for the round msmq decompiler round trip. Needed fix up for Group decompiler to work correctly, adding to Index, and fixing where the Group name column is located. Signed-off-by: Bevan Weiss --- src/ext/Util/wixext/UtilDecompiler.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ext/Util/wixext/UtilDecompiler.cs') diff --git a/src/ext/Util/wixext/UtilDecompiler.cs b/src/ext/Util/wixext/UtilDecompiler.cs index 1f3079d8..55323e15 100644 --- a/src/ext/Util/wixext/UtilDecompiler.cs +++ b/src/ext/Util/wixext/UtilDecompiler.cs @@ -435,11 +435,15 @@ namespace WixToolset.Util { foreach (var row in table.Rows) { - this.DecompilerHelper.AddElementToRoot(UtilConstants.GroupName, + var group = new XElement(UtilConstants.GroupName, new XAttribute("Id", row.FieldAsString(0)), new XAttribute("Name", row.FieldAsString(2)), AttributeIfNotNull("Domain", row, 3) ); + + this.DecompilerHelper.AddElementToRoot(group); + + this.DecompilerHelper.IndexElement(row, group); } } /// -- cgit v1.2.3-55-g6feb