diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-04-14 12:18:39 -0700 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-04-14 14:52:06 -0500 |
| commit | 6c740c1070475a8a894393a186cdcdd8a8a81112 (patch) | |
| tree | 5c1c5976ae262356f6f16058d0c1f0dab843b830 /src/WixToolset.Mba.Core | |
| parent | 732e719b6888895ac01aa02c2a86d0beb37ec74d (diff) | |
| download | wix-6c740c1070475a8a894393a186cdcdd8a8a81112.tar.gz wix-6c740c1070475a8a894393a186cdcdd8a8a81112.tar.bz2 wix-6c740c1070475a8a894393a186cdcdd8a8a81112.zip | |
Allow BA to update feed source
Fixes wixtoolset/issues#5568
Diffstat (limited to 'src/WixToolset.Mba.Core')
| -rw-r--r-- | src/WixToolset.Mba.Core/Engine.cs | 6 | ||||
| -rw-r--r-- | src/WixToolset.Mba.Core/IBootstrapperEngine.cs | 8 | ||||
| -rw-r--r-- | src/WixToolset.Mba.Core/IEngine.cs | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/src/WixToolset.Mba.Core/Engine.cs b/src/WixToolset.Mba.Core/Engine.cs index d5c43a53..e07ecd8b 100644 --- a/src/WixToolset.Mba.Core/Engine.cs +++ b/src/WixToolset.Mba.Core/Engine.cs | |||
| @@ -247,6 +247,12 @@ namespace WixToolset.Mba.Core | |||
| 247 | } | 247 | } |
| 248 | 248 | ||
| 249 | /// <inheritdoc/> | 249 | /// <inheritdoc/> |
| 250 | public void SetUpdateSource(string url) | ||
| 251 | { | ||
| 252 | this.engine.SetUpdateSource(url); | ||
| 253 | } | ||
| 254 | |||
| 255 | /// <inheritdoc/> | ||
| 250 | public void SetLocalSource(string packageOrContainerId, string payloadId, string path) | 256 | public void SetLocalSource(string packageOrContainerId, string payloadId, string path) |
| 251 | { | 257 | { |
| 252 | this.engine.SetLocalSource(packageOrContainerId, payloadId, path); | 258 | this.engine.SetLocalSource(packageOrContainerId, payloadId, path); |
diff --git a/src/WixToolset.Mba.Core/IBootstrapperEngine.cs b/src/WixToolset.Mba.Core/IBootstrapperEngine.cs index af3101dc..78753a42 100644 --- a/src/WixToolset.Mba.Core/IBootstrapperEngine.cs +++ b/src/WixToolset.Mba.Core/IBootstrapperEngine.cs | |||
| @@ -278,6 +278,14 @@ namespace WixToolset.Mba.Core | |||
| 278 | ); | 278 | ); |
| 279 | 279 | ||
| 280 | /// <summary> | 280 | /// <summary> |
| 281 | /// Sets the URL to the update feed. | ||
| 282 | /// </summary> | ||
| 283 | /// <param name="url">URL of the update feed.</param> | ||
| 284 | void SetUpdateSource( | ||
| 285 | [MarshalAs(UnmanagedType.LPWStr)] string url | ||
| 286 | ); | ||
| 287 | |||
| 288 | /// <summary> | ||
| 281 | /// See <see cref="IEngine.CompareVersions(string, string)"/>. | 289 | /// See <see cref="IEngine.CompareVersions(string, string)"/>. |
| 282 | /// </summary> | 290 | /// </summary> |
| 283 | /// <param name="wzVersion1"></param> | 291 | /// <param name="wzVersion1"></param> |
diff --git a/src/WixToolset.Mba.Core/IEngine.cs b/src/WixToolset.Mba.Core/IEngine.cs index 0899ec43..3e636961 100644 --- a/src/WixToolset.Mba.Core/IEngine.cs +++ b/src/WixToolset.Mba.Core/IEngine.cs | |||
| @@ -145,6 +145,12 @@ namespace WixToolset.Mba.Core | |||
| 145 | void SetUpdate(string localSource, string downloadSource, long size, UpdateHashType hashType, byte[] hash); | 145 | void SetUpdate(string localSource, string downloadSource, long size, UpdateHashType hashType, byte[] hash); |
| 146 | 146 | ||
| 147 | /// <summary> | 147 | /// <summary> |
| 148 | /// Sets the URL to the update feed. | ||
| 149 | /// </summary> | ||
| 150 | /// <param name="url">URL of the update feed.</param> | ||
| 151 | void SetUpdateSource(string url); | ||
| 152 | |||
| 153 | /// <summary> | ||
| 148 | /// Set the local source for a package or container. | 154 | /// Set the local source for a package or container. |
| 149 | /// </summary> | 155 | /// </summary> |
| 150 | /// <param name="packageOrContainerId">The id that uniquely identifies the package or container.</param> | 156 | /// <param name="packageOrContainerId">The id that uniquely identifies the package or container.</param> |
