예제 #1
0
        /// <summary>Called by the engine after trying to launch the preapproved executable.</summary>
        /// <param name="args">Additional arguments for this event.</param>
        protected override void OnLaunchApprovedExeComplete(Wix.LaunchApprovedExeCompleteArgs args)
        {
            LogVerbose("Enter Method: OnLaunchApprovedExeComplete");
            WPFBootstrapperEventArgs <Wix.LaunchApprovedExeCompleteArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.LaunchApprovedExeCompleteArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnLaunchApprovedExeComplete(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnLaunchApprovedExeComplete(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnLaunchApprovedExeComplete");
        }
        /// <summary>Called by the engine after trying to launch the preapproved executable.</summary>
        /// <param name="args">Additional arguments for this event.</param>
        protected override void OnLaunchApprovedExeComplete(Wix.LaunchApprovedExeCompleteArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "LaunchApprovedExeComplete");
            WPFBootstrapperEventArgs <Wix.LaunchApprovedExeCompleteArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.LaunchApprovedExeCompleteArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnLaunchApprovedExeComplete(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnLaunchApprovedExeComplete(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "LaunchApprovedExeComplete");
        }
예제 #3
0
 /// <summary>
 /// Called by the engine after trying to launch the preapproved executable.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnLaunchApprovedExeComplete(LaunchApprovedExeCompleteArgs args)
 {
     EventHandler<LaunchApprovedExeCompleteArgs> handler = this.LaunchApprovedExeComplete;
     if (null != handler)
     {
         handler(this, args);
     }
 }