diff options
Diffstat (limited to '')
-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; |