Exemplo n.º 1
0
        /// <summary>Called when the engine executes one or more patches targeting a product.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnExecutePatchTarget(Wix.ExecutePatchTargetEventArgs args)
        {
            LogVerbose("Enter Method: OnExecutePatchTarget");
            WPFBootstrapperEventArgs <Wix.ExecutePatchTargetEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ExecutePatchTargetEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnExecutePatchTarget(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnExecutePatchTarget(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnExecutePatchTarget");
        }
        /// <summary>Called when the engine executes one or more patches targeting a product.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnExecutePatchTarget(Wix.ExecutePatchTargetEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "ExecutePatchTarget");
            WPFBootstrapperEventArgs <Wix.ExecutePatchTargetEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ExecutePatchTargetEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnExecutePatchTarget(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnExecutePatchTarget(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "ExecutePatchTarget");
        }
Exemplo n.º 3
0
        Result IBootstrapperApplication.OnExecutePatchTarget(string wzPackageId, string wzTargetProductCode)
        {
            ExecutePatchTargetEventArgs args = new ExecutePatchTargetEventArgs(wzPackageId, wzTargetProductCode);
            this.OnExecutePatchTarget(args);

            return args.Result;
        }
Exemplo n.º 4
0
 /// <summary>
 /// Called when the engine executes one or more patches targeting a product.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnExecutePatchTarget(ExecutePatchTargetEventArgs args)
 {
     EventHandler<ExecutePatchTargetEventArgs> handler = this.ExecutePatchTarget;
     if (null != handler)
     {
         handler(this, args);
     }
 }