From 12b592a532896d1683566163bf385744856710d8 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 01 Oct 2009 15:44:27 +0000
Subject: [PATCH] Fix a problem calculating the ratios on Windows when the server is not configured to run as a service.

---
 opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java b/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
index 3aee6e1..fc5cf61 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
@@ -411,7 +411,7 @@
       }
     }
 
-    if (Utils.isWindows())
+    if (Utils.isWindows() && getUserData().getEnableWindowsService())
     {
         totalTime += hmTime.get(InstallProgressStep.ENABLING_WINDOWS_SERVICE);
         steps.add(InstallProgressStep.ENABLING_WINDOWS_SERVICE);

--
Gitblit v1.10.0