// Token: 0x0600016A RID: 362 RVA: 0x0000828C File Offset: 0x0000648C private void InitializingSetupPage_WizardCancel(object sender, CancelEventArgs e) { if (this.backgroundWorker.WorkerSupportsCancellation && this.backgroundWorker.IsBusy) { this.backgroundWorker.CancelAsync(); } ExSetupUI.ExitApplication(ExitCode.Success); }
public static int Main(string[] args) { Application.SetCompatibleTextRenderingDefault(false); ExSetupUI.UpdateThreadUICulture(); SplashScreen.SplashInstance.ShowSplash(); ExSetupUI.SetMessageBoxHelper(); ExSetupUI.SystemParametersInfo(4107, 0, 1, 2); return(SetupBase.MainCore <ExSetupUI>(args, new SetupLoggerImpl())); }
// Token: 0x06000053 RID: 83 RVA: 0x0000385D File Offset: 0x00001A5D private void CopyFilePage_WizardCancel(object sender, CancelEventArgs e) { if (this.fileCopier.PercentageCopiedFiles != 100) { this.CancelCopying(); return; } ExSetupUI.ExitApplication(ExitCode.Success); }
// Token: 0x06000056 RID: 86 RVA: 0x0000398A File Offset: 0x00001B8A private void FileCopier_CancelEvent() { if (base.InvokeRequired) { base.Invoke(new FileCopierCanceledHandler(this.FileCopier_CancelEvent)); return; } ExSetupUI.ExitApplication(ExitCode.Success); }
// Token: 0x060001ED RID: 493 RVA: 0x0000B886 File Offset: 0x00009A86 private void CancelDownload() { this.userCancelled = true; this.UpdateDownloadUpdatesStatusBox(Strings.CancellingDownload); if (this.webFileDownloader != null) { this.webFileDownloader.StopDownloading(); } ExSetupUI.ExitApplication(ExitCode.Success); }
// Token: 0x06000169 RID: 361 RVA: 0x0000821C File Offset: 0x0000641C private void BackgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.progressTimer.Stop(); this.indeterminiteProgressBar.Visible = false; if (e.Error != null) { MessageBoxHelper.ShowError(e.Error.Message); ExSetupUI.ExitApplication(ExitCode.Error); return; } if (e.Cancelled) { ExSetupUI.ExitApplication(ExitCode.Success); return; } base.SetWizardButtons(WizardButtons.Next); if (this.EnableNextAutoClick) { base.DoBtnNextClick(); return; } base.SetVisibleWizardButtons(WizardButtons.Next); }
// Token: 0x06000045 RID: 69 RVA: 0x00002B5E File Offset: 0x00000D5E private void CheckForUpdatesPage_WizardCancel(object sender, CancelEventArgs e) { ExSetupUI.ExitApplication(ExitCode.Success); }
// Token: 0x060001F1 RID: 497 RVA: 0x0000BA34 File Offset: 0x00009C34 private void VerifyAndSetRegistry(object checkPath) { if (base.InvokeRequired) { base.Invoke(new UpdatesDownloadsPage.VerifyAndSetRegistryDelegate(this.VerifyAndSetRegistry), new object[] { checkPath }); return; } string text = (string)checkPath; string languagePackBundleFileName = Path.Combine(text, "LanguagePackBundle.exe"); bool flag = true; string value = string.Empty; if (File.Exists(languagePackBundleFileName)) { using (LanguagePackValidator languagePackValidator = new LanguagePackValidator(languagePackBundleFileName, this.localXMLVersioningPath, new Action <object>(this.UpdateDownloadUpdatesStatusBox))) { flag = languagePackValidator.Validate(); if (flag) { value = languagePackValidator.ValidatedFiles.FirstOrDefault((string x) => x.Equals(languagePackBundleFileName, StringComparison.InvariantCultureIgnoreCase)); } goto IL_C2; } } languagePackBundleFileName = null; IL_C2: bool flag2 = true; string text2 = string.Empty; if (Directory.Exists(text)) { string[] files = Directory.GetFiles(text, "*.msp", SearchOption.TopDirectoryOnly); if (files.Length != 0) { using (MspValidator mspValidator = new MspValidator(files, Path.Combine(this.sourceDir, "EXCHANGESERVER.msi"), languagePackBundleFileName, File.Exists(this.localXMLVersioningPath) ? this.localXMLVersioningPath : null, new Action <object>(this.UpdateDownloadUpdatesStatusBox))) { flag2 = mspValidator.Validate(); if (flag2) { text2 = mspValidator.ValidatedFiles.LastOrDefault((string x) => !string.IsNullOrEmpty(x) && MsiHelper.IsMspFileExtension(x)); } } } } bool flag3 = !string.IsNullOrEmpty(value); bool flag4 = !string.IsNullOrEmpty(text2); bool flag5 = false; if (flag && flag2) { flag5 = (text.Equals(this.saveToDirectory, StringComparison.InvariantCultureIgnoreCase) || this.MoveToSaveToPath()); } bool flag6 = false; if (flag5) { flag6 = this.SetRegistryKeyForBundle(); } if (flag6) { bool flag7 = false; string text3 = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "Temp\\ExchangeSetup\\MspTemp"); if (flag4) { MspUtility.UnpackMspCabs(Path.Combine(this.saveToDirectory, Path.GetFileName(text2)), text3); flag7 = SetupLauncherHelper.SetupRequiredFilesUpdated(SetupChecksFileConstant.GetSetupRequiredFiles(), SetupHelper.GetSetupRequiredFilesFromAssembly(text3), text3); } if (flag7 || flag3) { ExSetupUI.ExitApplication(ExitCode.Restart); } else if (flag4) { SetupLauncherHelper.CopyMspFiles(text3, Path.Combine(SetupHelper.WindowsDir, "Temp\\ExchangeSetup")); } this.UpdateDownloadUpdatesStatusBox(Strings.DownloadInstallationCompleted); base.SetWizardButtons(WizardButtons.Next); base.SetVisibleWizardButtons(WizardButtons.Next); return; } this.customProgressBarWithTitle.TitleOnly = true; this.UpdateDownloadUpdatesStatusBox(Strings.FinishedWithError(new LocalizedString(Logger.PathToFileLog))); base.SetVisibleWizardButtons(WizardButtons.Previous | WizardButtons.Next); base.SetWizardButtons(WizardButtons.Previous); }