/// <summary>Called when the engine has begun installing the bundle.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnDetectForwardCompatibleBundle(Wix.DetectForwardCompatibleBundleEventArgs args) { LogVerbose("Enter Method: OnDetectForwardCompatibleBundle"); WPFBootstrapperEventArgs <Wix.DetectForwardCompatibleBundleEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectForwardCompatibleBundleEventArgs>(args); TryInvoke(new Action(() => { _mainWindow.OnDetectForwardCompatibleBundle(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnDetectForwardCompatibleBundle(cancelArgs.Arguments); } LogVerbose("Leaving Method: OnDetectForwardCompatibleBundle"); }
/// <summary>Called when the engine has begun installing the bundle.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnDetectForwardCompatibleBundle(Wix.DetectForwardCompatibleBundleEventArgs args) { this.LogBootstrapperEnterEvent(args, "DetectForwardCompatibleBundle"); WPFBootstrapperEventArgs <Wix.DetectForwardCompatibleBundleEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectForwardCompatibleBundleEventArgs>(args); this.TryInvoke(new Action(() => { this.model.OnDetectForwardCompatibleBundle(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnDetectForwardCompatibleBundle(cancelArgs.Arguments); } this.LogBootstrapperLeaveEvent(null, "DetectForwardCompatibleBundle"); }
/// <summary> /// Called when the update detection phase has begun. /// </summary> /// <param name="args">Additional arguments for this event.</param> protected virtual void OnDetectForwardCompatibleBundle(DetectForwardCompatibleBundleEventArgs args) { EventHandler<DetectForwardCompatibleBundleEventArgs> handler = this.DetectForwardCompatibleBundle; if (null != handler) { handler(this, args); } }
Result IBootstrapperApplication.OnDetectForwardCompatibleBundle(string wzBundleId, RelationType relationType, string wzBundleTag, bool fPerMachine, long version, int nRecommendation) { DetectForwardCompatibleBundleEventArgs args = new DetectForwardCompatibleBundleEventArgs(wzBundleId, relationType, wzBundleTag, fPerMachine, version, nRecommendation); this.OnDetectForwardCompatibleBundle(args); return args.Result; }