diff options
Diffstat (limited to 'src/wixext/FirewallCompiler.cs')
-rw-r--r-- | src/wixext/FirewallCompiler.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wixext/FirewallCompiler.cs b/src/wixext/FirewallCompiler.cs index 900af7aa..aefc7f2c 100644 --- a/src/wixext/FirewallCompiler.cs +++ b/src/wixext/FirewallCompiler.cs | |||
@@ -8,7 +8,7 @@ namespace WixToolset.Firewall | |||
8 | using WixToolset.Data; | 8 | using WixToolset.Data; |
9 | using WixToolset.Extensibility; | 9 | using WixToolset.Extensibility; |
10 | using WixToolset.Extensibility.Data; | 10 | using WixToolset.Extensibility.Data; |
11 | using WixToolset.Firewall.Tuples; | 11 | using WixToolset.Firewall.Symbols; |
12 | 12 | ||
13 | /// <summary> | 13 | /// <summary> |
14 | /// The compiler for the WiX Toolset Firewall Extension. | 14 | /// The compiler for the WiX Toolset Firewall Extension. |
@@ -259,7 +259,7 @@ namespace WixToolset.Firewall | |||
259 | fileId = file; | 259 | fileId = file; |
260 | } | 260 | } |
261 | 261 | ||
262 | var tuple = section.AddTuple(new WixFirewallExceptionTuple(sourceLineNumbers, id) | 262 | var symbol = section.AddSymbol(new WixFirewallExceptionSymbol(sourceLineNumbers, id) |
263 | { | 263 | { |
264 | Name = name, | 264 | Name = name, |
265 | RemoteAddresses = remoteAddresses, | 265 | RemoteAddresses = remoteAddresses, |
@@ -271,7 +271,7 @@ namespace WixToolset.Firewall | |||
271 | 271 | ||
272 | if (!String.IsNullOrEmpty(port)) | 272 | if (!String.IsNullOrEmpty(port)) |
273 | { | 273 | { |
274 | tuple.Port = port; | 274 | symbol.Port = port; |
275 | 275 | ||
276 | if (!protocol.HasValue) | 276 | if (!protocol.HasValue) |
277 | { | 277 | { |
@@ -282,22 +282,22 @@ namespace WixToolset.Firewall | |||
282 | 282 | ||
283 | if (protocol.HasValue) | 283 | if (protocol.HasValue) |
284 | { | 284 | { |
285 | tuple.Protocol = protocol.Value; | 285 | symbol.Protocol = protocol.Value; |
286 | } | 286 | } |
287 | 287 | ||
288 | if (!String.IsNullOrEmpty(fileId)) | 288 | if (!String.IsNullOrEmpty(fileId)) |
289 | { | 289 | { |
290 | tuple.Program = $"[#{fileId}]"; | 290 | symbol.Program = $"[#{fileId}]"; |
291 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.File, fileId); | 291 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.File, fileId); |
292 | } | 292 | } |
293 | else if (!String.IsNullOrEmpty(program)) | 293 | else if (!String.IsNullOrEmpty(program)) |
294 | { | 294 | { |
295 | tuple.Program = program; | 295 | symbol.Program = program; |
296 | } | 296 | } |
297 | 297 | ||
298 | if (CompilerConstants.IntegerNotSet != attributes) | 298 | if (CompilerConstants.IntegerNotSet != attributes) |
299 | { | 299 | { |
300 | tuple.Attributes = attributes; | 300 | symbol.Attributes = attributes; |
301 | } | 301 | } |
302 | 302 | ||
303 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "SchedFirewallExceptionsInstall", this.Context.Platform, CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64 | CustomActionPlatforms.X64 | CustomActionPlatforms.X86); | 303 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "SchedFirewallExceptionsInstall", this.Context.Platform, CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64 | CustomActionPlatforms.X64 | CustomActionPlatforms.X86); |