aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2019-11-05 19:27:06 -0500
committerBob Arnson <bob@firegiant.com>2019-11-05 19:32:42 -0500
commit0f65aaaca2faf1b6fc233c445216d547f08c6fa5 (patch)
tree656e070ac1fe3b8e609002196f325386f6220731 /src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs
parente6f381b0ce2011ced88697ca7ddaae8a053b57d7 (diff)
downloadwix-0f65aaaca2faf1b6fc233c445216d547f08c6fa5.tar.gz
wix-0f65aaaca2faf1b6fc233c445216d547f08c6fa5.tar.bz2
wix-0f65aaaca2faf1b6fc233c445216d547f08c6fa5.zip
Move creation of hidden properties...
...for deferred CAs with HideTarget="yes" to the MSI backend where it belongs.
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs
index e6c089a1..8f769904 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs
@@ -20,9 +20,9 @@ namespace WixToolset.Core.WindowsInstaller.Bind
20 public void Execute() 20 public void Execute()
21 { 21 {
22 // Create lists of the properties that contribute to the special lists of properties. 22 // Create lists of the properties that contribute to the special lists of properties.
23 SortedSet<string> adminProperties = new SortedSet<string>(); 23 var adminProperties = new SortedSet<string>();
24 SortedSet<string> secureProperties = new SortedSet<string>(); 24 var secureProperties = new SortedSet<string>();
25 SortedSet<string> hiddenProperties = new SortedSet<string>(); 25 var hiddenProperties = new SortedSet<string>();
26 26
27 foreach (var wixPropertyRow in this.Section.Tuples.OfType<WixPropertyTuple>()) 27 foreach (var wixPropertyRow in this.Section.Tuples.OfType<WixPropertyTuple>())
28 { 28 {
@@ -42,6 +42,15 @@ namespace WixToolset.Core.WindowsInstaller.Bind
42 } 42 }
43 } 43 }
44 44
45 // Hide properties for in-script custom actions that have HideTarget set.
46 var hideTargetCustomActions = this.Section.Tuples.OfType<CustomActionTuple>().Where(
47 ca => ca.Hidden
48 && (ca.ExecutionType == CustomActionExecutionType.Deferred
49 || ca.ExecutionType == CustomActionExecutionType.Commit
50 || ca.ExecutionType == CustomActionExecutionType.Rollback))
51 .Select(ca => ca.Id.Id);
52 hiddenProperties.UnionWith(hideTargetCustomActions);
53
45 if (0 < adminProperties.Count) 54 if (0 < adminProperties.Count)
46 { 55 {
47 var tuple = new PropertyTuple(null, new Identifier(AccessModifier.Private, "AdminProperties")); 56 var tuple = new PropertyTuple(null, new Identifier(AccessModifier.Private, "AdminProperties"));