diff options
| author | Bob Arnson <bob@firegiant.com> | 2025-04-04 19:19:56 -0400 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2025-04-04 20:10:19 -0400 |
| commit | 717ac8183b04da445b751865deb40330e5da87c3 (patch) | |
| tree | ee4a67d33053b01396b9fa21474a0151d4d38d70 /src/test/burn/TestBA | |
| parent | 90b1d345326fd05e701c82fa874590aeb6d1ee93 (diff) | |
| download | wix-717ac8183b04da445b751865deb40330e5da87c3.tar.gz wix-717ac8183b04da445b751865deb40330e5da87c3.tar.bz2 wix-717ac8183b04da445b751865deb40330e5da87c3.zip | |
Sync IEngine.SetUpdateSource with native side.
Fixes https://github.com/wixtoolset/issues/issues/9023
Diffstat (limited to 'src/test/burn/TestBA')
| -rw-r--r-- | src/test/burn/TestBA/TestBA.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/burn/TestBA/TestBA.cs b/src/test/burn/TestBA/TestBA.cs index 4f75a055..51fc1cbd 100644 --- a/src/test/burn/TestBA/TestBA.cs +++ b/src/test/burn/TestBA/TestBA.cs | |||
| @@ -42,6 +42,7 @@ namespace WixToolset.Test.BA | |||
| 42 | private int retryExecuteFilesInUse; | 42 | private int retryExecuteFilesInUse; |
| 43 | private bool rollingBack; | 43 | private bool rollingBack; |
| 44 | private string forceDownloadSource; | 44 | private string forceDownloadSource; |
| 45 | private string forceUpdateSource; | ||
| 45 | 46 | ||
| 46 | private IBootstrapperCommand Command { get; set; } | 47 | private IBootstrapperCommand Command { get; set; } |
| 47 | 48 | ||
| @@ -217,9 +218,28 @@ namespace WixToolset.Test.BA | |||
| 217 | } | 218 | } |
| 218 | } | 219 | } |
| 219 | 220 | ||
| 221 | protected override void OnDetectBegin(DetectBeginEventArgs args) | ||
| 222 | { | ||
| 223 | this.Log("OnDetectBegin"); | ||
| 224 | |||
| 225 | this.forceUpdateSource = this.ReadPackageAction(null, "ForceUpdateSource"); | ||
| 226 | if (!String.IsNullOrEmpty(this.forceUpdateSource)) | ||
| 227 | { | ||
| 228 | this.Log(" OnDetectBegin::ForceUpdateSource: {0}", this.forceUpdateSource); | ||
| 229 | } | ||
| 230 | |||
| 231 | } | ||
| 232 | |||
| 220 | protected override void OnDetectUpdateBegin(DetectUpdateBeginEventArgs args) | 233 | protected override void OnDetectUpdateBegin(DetectUpdateBeginEventArgs args) |
| 221 | { | 234 | { |
| 222 | this.Log("OnDetectUpdateBegin"); | 235 | this.Log("OnDetectUpdateBegin"); |
| 236 | |||
| 237 | if (!String.IsNullOrEmpty(this.forceUpdateSource)) | ||
| 238 | { | ||
| 239 | this.Log(" OnDetectUpdateBegin::ForceUpdateSource: {0}", this.forceUpdateSource); | ||
| 240 | this.Engine.SetUpdateSource(this.forceUpdateSource, String.Empty); | ||
| 241 | } | ||
| 242 | |||
| 223 | if (LaunchAction.UpdateReplaceEmbedded == this.action || LaunchAction.UpdateReplace == this.action) | 243 | if (LaunchAction.UpdateReplaceEmbedded == this.action || LaunchAction.UpdateReplace == this.action) |
| 224 | { | 244 | { |
| 225 | args.Skip = false; | 245 | args.Skip = false; |
