diff options
-rw-r--r-- | desktop/source/registration/com/sun/star/servicetag/Util.java | 10 |
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); |