summaryrefslogtreecommitdiff
path: root/desktop/source/registration/com/sun/star
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2010-01-22 07:08:17 +0000
committerOliver Bolte <obo@openoffice.org>2010-01-22 07:08:17 +0000
commit59428dc4c48537514bddaa3ed5f8ea0623c38ad5 (patch)
tree036fd6a0ffcf2307329b8aee57221e852da860eb /desktop/source/registration/com/sun/star
parent9185059a471beb1a257694cff3f25f01fa999a9a (diff)
#i10000# fix registry key
Diffstat (limited to 'desktop/source/registration/com/sun/star')
-rw-r--r--desktop/source/registration/com/sun/star/servicetag/Util.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/desktop/source/registration/com/sun/star/servicetag/Util.java b/desktop/source/registration/com/sun/star/servicetag/Util.java
index 7de1e832a5..1981a2ff6f 100644
--- a/desktop/source/registration/com/sun/star/servicetag/Util.java
+++ b/desktop/source/registration/com/sun/star/servicetag/Util.java
@@ -224,9 +224,15 @@ class Util {
*/
static File getWindowsStClientFile() {
File out = null;
- String regKey = "software\\microsoft\\windows\\currentversion\\app paths\\stclient.exe";
+ String regKey1 = "software\\microsoft\\windows\\currentversion\\app paths\\sunstclient.exe";
String keyName = "" ; // use the default key
- String path = getRegistryKey(regKey, keyName);
+ String path = getRegistryKey(regKey1, keyName);
+
+ if ( path == null)
+ {
+ String regKey2 = "software\\microsoft\\windows\\currentversion\\app paths\\stclient.exe";
+ path = getRegistryKey(regKey2, keyName);
+ }
if (path != null && (new File(path)).exists()) {
out = new File(path);