Example #1
0
        /// <summary>Called when the engine has begun installing packages.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnExecuteBegin(Wix.ExecuteBeginEventArgs args)
        {
            LogVerbose("Enter Method: OnExecuteBegin");
            WPFBootstrapperEventArgs <Wix.ExecuteBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ExecuteBeginEventArgs>(args);

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

            this.TryInvoke(new Action(() => { this.model.OnExecuteBegin(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnExecuteBegin(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "ExecuteBegin");
        }
Example #3
0
        Result IBootstrapperApplication.OnExecuteBegin(int cExecutingPackages)
        {
            ExecuteBeginEventArgs args = new ExecuteBeginEventArgs(cExecutingPackages);
            this.OnExecuteBegin(args);

            return args.Result;
        }
Example #4
0
 /// <summary>
 /// Called when the engine has begun installing packages.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnExecuteBegin(ExecuteBeginEventArgs args)
 {
     EventHandler<ExecuteBeginEventArgs> handler = this.ExecuteBegin;
     if (null != handler)
     {
         handler(this, args);
     }
 }