protected override void OnDetectUpdateComplete(DetectUpdateCompleteEventArgs e) { this.Log("OnDetectUpdateComplete"); // Failed to process an update, allow the existing bundle to still install. if (!Hresult.Succeeded(e.Status)) { this.Log(String.Format("Failed to locate an update, status of 0x{0:X8}, updates disabled.", e.Status)); e.IgnoreError = true; // But continue on... } }
private void DetectUpdateComplete(object sender, DetectUpdateCompleteEventArgs e) { // Failed to process an update, allow the existing bundle to still install. if ((UpdateState.Failed != this.State) && !Hresult.Succeeded(e.Status)) { this.State = UpdateState.Failed; WixBA.Model.Engine.Log(LogLevel.Verbose, String.Format("Failed to locate an update, status of 0x{0:X8}, updates disabled.", e.Status)); e.IgnoreError = true; } // If we are uninstalling, we don't want to check or show an update // If we are checking, then the feed didn't find any valid enclosures // If we are initializing, we're either uninstalling or not a full UI else if ((LaunchAction.Uninstall == WixBA.Model.Command.Action) || (UpdateState.Initializing == this.State) || (UpdateState.Checking == this.State)) { this.State = UpdateState.Unknown; } }
private void Bootstrapper_DetectUpdateComplete(object sender, DetectUpdateCompleteEventArgs e) { Log(LogLevel.Debug, $"Bootstrapper has called {nameof(this.Bootstrapper_DetectUpdateComplete)}!"); if (BootstrapperUpdateState != UpdateState.Failed && e.Status < 0) { Log(LogLevel.Standard, $"Failed to detect updates, status: {e.Status:X8}"); BootstrapperUpdateState = UpdateState.Failed; // Re-detect, updates are now disabled Bootstrapper.Engine.Detect(); } else if (Bootstrapper.Command.Action == LaunchAction.Uninstall || BootstrapperUpdateState == UpdateState.Initializing || BootstrapperUpdateState == UpdateState.Checking || !IsInteractive) { BootstrapperUpdateState = UpdateState.Unknown; } }
/// Fired when the update detection phase has completed. static void OnDetectUpdateComplete(object sender, DetectUpdateCompleteEventArgs e) { Logger.Instance.Trace(""); }