private void performUninstall() { try { ExchangeHelper.uninstallTransportAgent(); } catch (ExchangeHelperException e) { MessageBox.Show(e.Message, "Uninstall error", MessageBoxButtons.OK, MessageBoxIcon.Error); } this.updateVersions(); }
private string startService() { try { ExchangeHelper.startTransportService(); return(null); } catch (ExchangeHelperException ex) { return(ex.Message); } catch (Exception ex) { return(ex.Message); } }
/// <summary> /// Update the current available and installed version info /// </summary> private void updateVersions() { // Get Exchange.DkimSigner version installed txtDkimSignerInstalled.Text = "Loading ..."; Thread thDkimSignerInstalled = new Thread(new ThreadStart(this.CheckDkimSignerInstalledSafe)); thDkimSignerInstalled.Start(); // Get Exchange.DkimSigner version available txtDkimSignerAvailable.Text = "Loading ..."; Thread thDkimSignerAvailable = new Thread(new ThreadStart(this.CheckDkimSignerAvailableSafe)); thDkimSignerAvailable.Start(); // Get Exchange version installed + load the current configuration txtExchangeInstalled.Text = ExchangeHelper.checkExchangeVersionInstalled(); }
private string stopService() { if (!ExchangeHelper.isTransportServiceRunning()) { return(null); } try { ExchangeHelper.stopTransportService(); return(null); } catch (ExchangeHelperException ex) { return(ex.Message); } catch (Exception ex) { return(ex.Message); } }
private string installAgent() { try { if (ExchangeHelper.isAgentInstalled()) { return(null); } ExchangeHelper.installTransportAgent(); return(null); } catch (ExchangeHelperException ex) { return(ex.Message); } catch (Exception ex) { return(ex.Message); } }