changeset 1348:b90df38bb6dc

Include organization to determine if it is root installation
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 30 Oct 2014 11:19:18 +0100
parents e3aeaef007f6
children 7840851b26b9
files common/util.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common/util.c	Thu Oct 30 11:18:58 2014 +0100
+++ b/common/util.c	Thu Oct 30 11:19:18 2014 +0100
@@ -27,6 +27,10 @@
 #define APPNAME "TrustBridge"
 #endif
 
+#ifndef ORGANIZATION
+#define ORGANIZATION "BSI"
+#endif
+
 #ifdef WIN32
 char*
 read_registry_string (const HKEY root, const wchar_t *key,
@@ -287,7 +291,7 @@
   bool ret = false;
 
   reg_inst_dir = read_registry_string (HKEY_LOCAL_MACHINE,
-                                       L"Software\\"APPNAME, L"");
+                                       L"Software\\"ORGANIZATION"\\"APPNAME, L"");
 
   if (reg_inst_dir == NULL)
     {

http://wald.intevation.org/projects/trustbridge/