From 72a49cdc969eed0d2a46c6ec37390a351e360015 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 28 Jun 2007 13:39:36 +0000
Subject: [PATCH] This commit address issue 1674 <https://opends.dev.java.net/issues/show_bug.cgi?id=1674> to make the webstart and offline installers cancelable. The plumbing for cancelability is already in place since the upgrader makes use of it. This commit for the most part implements the actions that the installers must perform when the operation is canceled.
---
opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java b/opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java
index 7ee27c9..bb57cc2 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java
@@ -145,6 +145,19 @@
}
}
+ /**
+ * This method disables this server as a Windows service.
+ * @throws ApplicationException if something goes worong.
+ */
+ public void disableWindowsService() throws ApplicationException
+ {
+ int code = ConfigureWindowsService.disableService(System.out, System.err);
+ if (code == ConfigureWindowsService.SERVICE_DISABLE_ERROR) {
+ throw new ApplicationException(
+ ApplicationException.Type.WINDOWS_SERVICE_ERROR,
+ getMsg("error-disabling-windows-service"), null);
+ }
+ }
private String getThrowableMsg(String key, Throwable t)
{
--
Gitblit v1.10.0