| | |
| | | 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. |
| | |
| | | } |
| | | |
| | | /** |
| | | * 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. |
| | | */ |
| | |
| | | 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()) |