From 4c484ff6ea57ce79c5072a830e6536ac41c820c3 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 15 Mar 2007 15:52:50 +0000
Subject: [PATCH] Fix for issue 528 (Windows Service Definition for Automatic Startup).
---
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
index bef514e..c972175 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
@@ -46,6 +46,7 @@
import org.opends.quicksetup.util.Utils;
import org.opends.server.util.SetupUtils;
+
/**
* This is an abstract class that is in charge of actually performing the
* installation.
@@ -860,6 +861,18 @@
}
/**
+ * This methods enables this server as a Windows service.
+ * @throws InstallException if something goes wrong.
+ */
+ protected void enableWindowsService() throws InstallException
+ {
+ notifyListeners(getFormattedProgress(
+ getMsg("progress-enabling-windows-service")));
+ InstallerHelper helper = new InstallerHelper();
+ helper.enableWindowsService();
+ }
+
+ /**
* This methods starts the server.
* @throws InstallException if something goes wrong.
*/
@@ -1043,6 +1056,8 @@
getMsg("summary-importing-automatically-generated")));
hmSummary.put(InstallProgressStep.STARTING_SERVER,
getFormattedSummary(getMsg("summary-starting")));
+ hmSummary.put(InstallProgressStep.ENABLING_WINDOWS_SERVICE,
+ getFormattedSummary(getMsg("summary-enabling-windows-service")));
String cmd;
if (Utils.isWindows())
--
Gitblit v1.10.0