From d949f945c1101f46679a52069896962a1192102c Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 13 Oct 2009 13:06:42 +0000
Subject: [PATCH] Fix for issue 4273 (server does not work as service if Windows UAC enabled in Windows Server 2008) The problem was that the code assumed that the only windows OS supporting UAC was Windows Vista. This was the case before Windows 2008 came out. The fix consists on creating a method that allows identifying which OS versions of vista support UAC and which do not.
---
opendj-sdk/opends/src/server/org/opends/server/tools/ConfigureWindowsService.java | 17 +++--------------
1 files changed, 3 insertions(+), 14 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/ConfigureWindowsService.java b/opendj-sdk/opends/src/server/org/opends/server/tools/ConfigureWindowsService.java
index 84eb7c3..e79fdd4 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/ConfigureWindowsService.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/ConfigureWindowsService.java
@@ -433,7 +433,7 @@
String[] cmd;
- if (isVista())
+ if (SetupUtils.hasUAC())
{
cmd = new String[] {
getLauncherBinaryFullPath(),
@@ -518,7 +518,7 @@
Message msg;
String serverRoot = getServerRoot();
String[] cmd;
- if (isVista())
+ if (SetupUtils.hasUAC())
{
cmd = new String[] {
getLauncherBinaryFullPath(),
@@ -598,7 +598,7 @@
int returnValue;
Message msg;
String[] cmd;
- if (isVista())
+ if (SetupUtils.hasUAC())
{
cmd = new String[] {
getLauncherBinaryFullPath(),
@@ -831,15 +831,4 @@
{
return getServerRoot()+"\\lib\\winlauncher.exe";
}
-
- /**
- * Indicates whether the underlying operating system is Windows Vista.
- *
- * @return {@code true} if the underlying operating system is Windows
- * Vista, or {@code false} if not.
- */
- private static boolean isVista()
- {
- return SetupUtils.isVista();
- }
}
--
Gitblit v1.10.0