diff options
| author | Bob Arnson <bob@firegiant.com> | 2019-11-08 14:54:15 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2019-11-08 15:07:28 -0500 |
| commit | e29c25090e26c8cca52232d580528840d1161b73 (patch) | |
| tree | 8adc655455a219574318131d89501350a9364861 /src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs | |
| parent | 8a7d727f1ab0dfef956db726d64985311291505e (diff) | |
| download | wix-e29c25090e26c8cca52232d580528840d1161b73.tar.gz wix-e29c25090e26c8cca52232d580528840d1161b73.tar.bz2 wix-e29c25090e26c8cca52232d580528840d1161b73.zip | |
Ensure upgrade action properties are secure.
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs index 8f769904..0d165f80 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs | |||
| @@ -51,6 +51,10 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 51 | .Select(ca => ca.Id.Id); | 51 | .Select(ca => ca.Id.Id); |
| 52 | hiddenProperties.UnionWith(hideTargetCustomActions); | 52 | hiddenProperties.UnionWith(hideTargetCustomActions); |
| 53 | 53 | ||
| 54 | // Ensure upgrade action properties are secure. | ||
| 55 | var actionProperties = this.Section.Tuples.OfType<UpgradeTuple>().Select(u => u.ActionProperty); | ||
| 56 | secureProperties.UnionWith(actionProperties); | ||
| 57 | |||
| 54 | if (0 < adminProperties.Count) | 58 | if (0 < adminProperties.Count) |
| 55 | { | 59 | { |
| 56 | var tuple = new PropertyTuple(null, new Identifier(AccessModifier.Private, "AdminProperties")); | 60 | var tuple = new PropertyTuple(null, new Identifier(AccessModifier.Private, "AdminProperties")); |
