Esempio n. 1
0
        /// <summary>Called when the engine has begun installing the bundle.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnApplyBegin(Wix.ApplyBeginEventArgs args)
        {
            LogVerbose("Enter Method: OnApplyBegin");
            WPFBootstrapperEventArgs <Wix.ApplyBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ApplyBeginEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnApplyBegin(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnApplyBegin(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnApplyBegin");
        }
        /// <summary>Called when the engine has begun installing the bundle.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnApplyBegin(Wix.ApplyBeginEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "ApplyBegin");
            WPFBootstrapperEventArgs <Wix.ApplyBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ApplyBeginEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnApplyBegin(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnApplyBegin(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "ApplyBegin");
        }