예제 #1
0
 private void SequentialRunner_OnComplete(object sender, EventArgs e)
 {
     Dispatcher.BeginInvoke(new Action(() =>
     {
         WizardContext.NextPage();
     }));
 }
예제 #2
0
        private void ConsentBrowser_Navigating(object sender, NavigatingCancelEventArgs e)
        {
            NameValueCollection queryParameters = System.Web.HttpUtility.ParseQueryString(e.Uri.Query);

            string adminConsent = queryParameters["admin_consent"];

            if (adminConsent != null)
            {
                if (string.Compare(adminConsent, "true", true) != 0)
                {
                    Dispatcher.BeginInvoke(new Action(() =>
                    {
                        MessageBox.Show("The installer will fail if admin consent is not granted for the application permissions being requested. As consent was not give this installer will now exit.", "Admin Consent Required", MessageBoxButton.OK, MessageBoxImage.Error);
                        Application.Current.MainWindow.Close();
                    }));
                }
                else
                {
                    WizardContext.NextPage();
                }
            }

            string error = queryParameters["error"];

            if (error != null)
            {
                Dispatcher.BeginInvoke(new Action(() =>
                {
                    MessageBox.Show("The installer will fail if admin consent is not granted for the application permissions being requested. As consent was not given this installer will now exit.", "Admin Consent Required", MessageBoxButton.OK, MessageBoxImage.Error);
                    Application.Current.MainWindow.Close();
                }));
            }
        }
예제 #3
0
        private void SequentialRunner_OnComplete(object sender, EventArgs e)
        {
            switch (DataModel.InstallerAction)
            {
            case InstallerActionType.New:
            case InstallerActionType.Modify:
                Dispatcher.BeginInvoke(new Action(() =>
                {
                    WizardContext.NextPage();
                }));
                break;

            default:
                break;
            }
        }