/// <summary>Called when the engine has begun removing the registration for the location and visibility of the bundle.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnUnregisterBegin(Wix.UnregisterBeginEventArgs args) { LogVerbose("Enter Method: OnUnregisterBegin"); WPFBootstrapperEventArgs <Wix.UnregisterBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.UnregisterBeginEventArgs>(args); TryInvoke(new Action(() => { _mainWindow.OnUnregisterBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnUnregisterBegin(cancelArgs.Arguments); } LogVerbose("Leaving Method: OnUnregisterBegin"); }
/// <summary>Called when the engine has begun removing the registration for the location and visibility of the bundle.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnUnregisterBegin(Wix.UnregisterBeginEventArgs args) { this.LogBootstrapperEnterEvent(args, "UnregisterBegin"); WPFBootstrapperEventArgs <Wix.UnregisterBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.UnregisterBeginEventArgs>(args); this.TryInvoke(new Action(() => { this.model.OnUnregisterBegin(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnUnregisterBegin(cancelArgs.Arguments); } this.LogBootstrapperLeaveEvent(null, "UnregisterBegin"); }