diff options
author | Rob Mensching <rob@firegiant.com> | 2021-04-11 12:20:10 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-04-12 19:28:07 -0700 |
commit | e1c4d762286bcdd58c2fdac4098c9a5846398920 (patch) | |
tree | 862d00552fb705ae44cf64ff4936797a8ef64bb1 /src/wixext/Symbols | |
parent | 5184f19621cff955cc1d4544568edde4e2154888 (diff) | |
download | wix-e1c4d762286bcdd58c2fdac4098c9a5846398920.tar.gz wix-e1c4d762286bcdd58c2fdac4098c9a5846398920.tar.bz2 wix-e1c4d762286bcdd58c2fdac4098c9a5846398920.zip |
Move SecureObj attributes to symbol
Diffstat (limited to 'src/wixext/Symbols')
-rw-r--r-- | src/wixext/Symbols/SecureObjectsSymbol.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/wixext/Symbols/SecureObjectsSymbol.cs b/src/wixext/Symbols/SecureObjectsSymbol.cs index b90df521..25fc6dca 100644 --- a/src/wixext/Symbols/SecureObjectsSymbol.cs +++ b/src/wixext/Symbols/SecureObjectsSymbol.cs | |||
@@ -25,6 +25,7 @@ namespace WixToolset.Util | |||
25 | 25 | ||
26 | namespace WixToolset.Util.Symbols | 26 | namespace WixToolset.Util.Symbols |
27 | { | 27 | { |
28 | using System; | ||
28 | using WixToolset.Data; | 29 | using WixToolset.Data; |
29 | 30 | ||
30 | public enum SecureObjectsSymbolFields | 31 | public enum SecureObjectsSymbolFields |
@@ -38,6 +39,13 @@ namespace WixToolset.Util.Symbols | |||
38 | ComponentRef, | 39 | ComponentRef, |
39 | } | 40 | } |
40 | 41 | ||
42 | [Flags] | ||
43 | public enum WixPermissionExAttributes | ||
44 | { | ||
45 | None = 0x0, | ||
46 | Inheritable = 0x01 | ||
47 | } | ||
48 | |||
41 | public class SecureObjectsSymbol : IntermediateSymbol | 49 | public class SecureObjectsSymbol : IntermediateSymbol |
42 | { | 50 | { |
43 | public SecureObjectsSymbol() : base(UtilSymbolDefinitions.SecureObjects, null, null) | 51 | public SecureObjectsSymbol() : base(UtilSymbolDefinitions.SecureObjects, null, null) |
@@ -74,10 +82,10 @@ namespace WixToolset.Util.Symbols | |||
74 | set => this.Set((int)SecureObjectsSymbolFields.User, value); | 82 | set => this.Set((int)SecureObjectsSymbolFields.User, value); |
75 | } | 83 | } |
76 | 84 | ||
77 | public int Attributes | 85 | public WixPermissionExAttributes Attributes |
78 | { | 86 | { |
79 | get => this.Fields[(int)SecureObjectsSymbolFields.Attributes].AsNumber(); | 87 | get => (WixPermissionExAttributes)this.Fields[(int)SecureObjectsSymbolFields.Attributes].AsNumber(); |
80 | set => this.Set((int)SecureObjectsSymbolFields.Attributes, value); | 88 | set => this.Set((int)SecureObjectsSymbolFields.Attributes, (int)value); |
81 | } | 89 | } |
82 | 90 | ||
83 | public int? Permission | 91 | public int? Permission |