コード例 #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");
        }
コード例 #2
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)
        {
            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");
        }
コード例 #3
0
ファイル: BootstrapperApplication.cs プロジェクト: zooba/wix3
        Result IBootstrapperApplication.OnShutdown()
        {
            ShutdownEventArgs args = new ShutdownEventArgs();
            this.OnShutdown(args);

            return args.Result;
        }
コード例 #4
0
ファイル: BootstrapperApplication.cs プロジェクト: zooba/wix3
 /// <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);
     }
 }
コード例 #5
0
        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;
        }