Exemple #1
0
        /// <summary>Called by the engine to uninitialize the user experience.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnShutdown(Wix.ShutdownEventArgs args)
        {
            LogVerbose("Enter Method: OnShutdown");
            WPFBootstrapperEventArgs <Wix.ShutdownEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ShutdownEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnShutdown(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnShutdown(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnShutdown");
        }
        /// <summary>Called by the engine to uninitialize the user experience.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnShutdown(Wix.ShutdownEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "Shutdown");
            WPFBootstrapperEventArgs <Wix.ShutdownEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ShutdownEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model?.OnShutdown(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnShutdown(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "Shutdown");
        }
        Result IBootstrapperApplication.OnShutdown()
        {
            ShutdownEventArgs args = new ShutdownEventArgs();
            this.OnShutdown(args);

            return args.Result;
        }
 /// <summary>
 /// Called by the engine to uninitialize the user experience.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnShutdown(ShutdownEventArgs args)
 {
     EventHandler<ShutdownEventArgs> handler = this.Shutdown;
     if (null != handler)
     {
         handler(this, args);
     }
 }
        private void OnShutdown(object sender, ShutdownEventArgs e)
        {
			//if sdk installation selected, launch wizard checked and operation is SuccessfullInstall launch the wizard
			if (InstallSdk && LaunchConfigurationWizard && Result == OperationResult.SuccessfulInstall) // launch wizard
            {
                var basePath = _engine.FormatString("[InstallFolder]");
                Process.Start(new ProcessStartInfo(string.Format("{0}\\SDK\\Configuration\\{1}", basePath, "ConfigurationWizard.exe")));
            }
            e.Result = Reboot ? WIXResult.Restart : WIXResult.Close;
        }