diff options
author | Rob Mensching <rob@firegiant.com> | 2021-04-11 12:20:54 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-04-12 19:28:07 -0700 |
commit | aea4e48d8408689c5749d154dddcfb99ddfb257b (patch) | |
tree | df9e09caf8e16b65da763342c33ad9c385e09a96 /src/wixext/Symbols | |
parent | e1c4d762286bcdd58c2fdac4098c9a5846398920 (diff) | |
download | wix-aea4e48d8408689c5749d154dddcfb99ddfb257b.tar.gz wix-aea4e48d8408689c5749d154dddcfb99ddfb257b.tar.bz2 wix-aea4e48d8408689c5749d154dddcfb99ddfb257b.zip |
Move RestartResource attributes to symbol
Diffstat (limited to 'src/wixext/Symbols')
-rw-r--r-- | src/wixext/Symbols/WixRestartResourceSymbol.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/wixext/Symbols/WixRestartResourceSymbol.cs b/src/wixext/Symbols/WixRestartResourceSymbol.cs index 7f76f1b8..01b92b63 100644 --- a/src/wixext/Symbols/WixRestartResourceSymbol.cs +++ b/src/wixext/Symbols/WixRestartResourceSymbol.cs | |||
@@ -30,6 +30,14 @@ namespace WixToolset.Util.Symbols | |||
30 | Attributes, | 30 | Attributes, |
31 | } | 31 | } |
32 | 32 | ||
33 | public enum WixRestartResourceAttributes | ||
34 | { | ||
35 | Filename = 1, | ||
36 | ProcessName, | ||
37 | ServiceName, | ||
38 | TypeMask = 0xf, | ||
39 | } | ||
40 | |||
33 | public class WixRestartResourceSymbol : IntermediateSymbol | 41 | public class WixRestartResourceSymbol : IntermediateSymbol |
34 | { | 42 | { |
35 | public WixRestartResourceSymbol() : base(UtilSymbolDefinitions.WixRestartResource, null, null) | 43 | public WixRestartResourceSymbol() : base(UtilSymbolDefinitions.WixRestartResource, null, null) |
@@ -54,10 +62,10 @@ namespace WixToolset.Util.Symbols | |||
54 | set => this.Set((int)WixRestartResourceSymbolFields.Resource, value); | 62 | set => this.Set((int)WixRestartResourceSymbolFields.Resource, value); |
55 | } | 63 | } |
56 | 64 | ||
57 | public int Attributes | 65 | public WixRestartResourceAttributes? Attributes |
58 | { | 66 | { |
59 | get => this.Fields[(int)WixRestartResourceSymbolFields.Attributes].AsNumber(); | 67 | get => (WixRestartResourceAttributes?)this.Fields[(int)WixRestartResourceSymbolFields.Attributes].AsNullableNumber(); |
60 | set => this.Set((int)WixRestartResourceSymbolFields.Attributes, value); | 68 | set => this.Set((int)WixRestartResourceSymbolFields.Attributes, (int?)value); |
61 | } | 69 | } |
62 | } | 70 | } |
63 | } \ No newline at end of file | 71 | } \ No newline at end of file |