aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Unbinder.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-04-02 20:45:40 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-04-02 21:34:24 +1000
commit177784c9a6d93eeb3c195e6d62b97eb4c1dde32b (patch)
tree1ad322fa26816a32279f5433ec500cbdf5934f86 /src/WixToolset.Core.WindowsInstaller/Unbinder.cs
parent302b501f9ed2ae840ce598b30792d0fc1b538572 (diff)
downloadwix-177784c9a6d93eeb3c195e6d62b97eb4c1dde32b.tar.gz
wix-177784c9a6d93eeb3c195e6d62b97eb4c1dde32b.tar.bz2
wix-177784c9a6d93eeb3c195e6d62b97eb4c1dde32b.zip
Use IWixToolsetServiceProvider and IWixToolsetCoreServiceProvider to expose the more convenient methods from WixToolsetServiceProvider without requiring casting or extension methods.
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Unbinder.cs')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Unbinder.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbinder.cs b/src/WixToolset.Core.WindowsInstaller/Unbinder.cs
index e8c109d2..2ca0b557 100644
--- a/src/WixToolset.Core.WindowsInstaller/Unbinder.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Unbinder.cs
@@ -2,11 +2,11 @@
2 2
3namespace WixToolset.Core 3namespace WixToolset.Core
4{ 4{
5 using System.Collections; 5 using System.Collections.Generic;
6 using System.IO; 6 using System.IO;
7 using WixToolset.Data; 7 using WixToolset.Data;
8 using WixToolset.Extensibility; 8 using WixToolset.Extensibility;
9 using System.Collections.Generic; 9 using WixToolset.Extensibility.Services;
10 10
11 /// <summary> 11 /// <summary>
12 /// Unbinder core of the WiX toolset. 12 /// Unbinder core of the WiX toolset.
@@ -21,6 +21,8 @@ namespace WixToolset.Core
21 /// <value>Set to true if the input msi is part of an admin image.</value> 21 /// <value>Set to true if the input msi is part of an admin image.</value>
22 public bool IsAdminImage { get; set; } 22 public bool IsAdminImage { get; set; }
23 23
24 public IWixToolsetServiceProvider ServiceProvider { get; }
25
24 /// <summary> 26 /// <summary>
25 /// Gets or sets the option to suppress demodularizing values. 27 /// Gets or sets the option to suppress demodularizing values.
26 /// </summary> 28 /// </summary>
@@ -64,7 +66,7 @@ namespace WixToolset.Core
64 // if we don't have the temporary files object yet, get one 66 // if we don't have the temporary files object yet, get one
65 Directory.CreateDirectory(this.TempFilesLocation); // ensure the base path is there 67 Directory.CreateDirectory(this.TempFilesLocation); // ensure the base path is there
66 68
67 var context = new UnbindContext(); 69 var context = new UnbindContext(this.ServiceProvider);
68 context.InputFilePath = file; 70 context.InputFilePath = file;
69 context.ExportBasePath = exportBasePath; 71 context.ExportBasePath = exportBasePath;
70 context.IntermediateFolder = this.TempFilesLocation; 72 context.IntermediateFolder = this.TempFilesLocation;