ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/AnywhereTS-MSSQL/trunk/TSAdminTool/ProSupport.cs
(Generate patch)

Comparing trunk/TSAdminTool/ProSupport.cs (file contents):
Revision 164 by william, Mon Jul 16 09:47:04 2012 UTC vs.
Revision 165 by william, Mon Jul 16 10:19:21 2012 UTC

--- trunk/TSAdminTool/ProSupport.cs	2012/07/16 09:53:12	164
+++ trunk/TSAdminTool/ProSupport.cs	2012/07/16 10:19:21	165
@@ -26,11 +26,15 @@ namespace AnywhereTS
 
         // Registry keys
         public const string strRegTFTP_root = "TFTP_root"; // Reg key for TFTP root directory in database
-        //public const string strRegDatabaseDir = "DatabaseDir"; // Reg key for database directory
+
         public const string strRegAnywhereTSServer = "ATSServer"; // Reg key for database server
         public const string strRegDatabaseServer = "DatabaseServer"; // Reg key for database server
         public const string strRegDatabaseInstance = "DatabaseInstance"; // Reg key for database server
+#if HAVE_FRMCONFIGMODE
+        [Obsolete("strRegDatabaseDir has been deprecated in favor of Direct SQL Server Access")]
+        public const string strRegDatabaseDir = "DatabaseDir"; // Reg key for database directory
         public const string strRegDestDir = "DestDir"; // Reg key for Destination directory, used in unmanged mode..
+#endif
 
         // Database constants
         public const string DEFAULT_RECORD_MAC = "Default     "; // Phony MAC address (12 chars) used to identify the client record that contains the default settings for all new clients
@@ -46,16 +50,20 @@ namespace AnywhereTS
         public static string strDatabaseInstance; // If this computer does not contain the database server, this is the name of the database server that contains the ATS database. Used by the Control Panel
 
         // Directories
-        //public static string strDatabasePath; // The directory where the database file is located.
+        #if HAVE_FRMCONFIGMODE
+        [Obsolete("strDatabasePath has been deprecated in favor of Direct SQL Server Access")]
+        public static string strDatabasePath; // The directory where the database file is located.
         public static string strDestDir; // Destination directory for client files in unmanaged mode.
-
+#endif
         // Constructor Initializes the global variables
         static ProSupport()
         {
            //  Initiate variables from registry
             strAnywhereTSServer = ATSGlobals.GetATSRegValueString(strRegAnywhereTSServer);
-            //strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir);
+#if HAVE_FRMCONFIGMODE
+            strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir);
             strDestDir = ATSGlobals.GetATSRegValueString(strRegDestDir);
+#endif
             strDatabaseServer = ATSGlobals.GetATSRegValueString(strRegDatabaseServer);
             strDatabaseInstance = ATSGlobals.GetATSRegValueString(strRegDatabaseInstance);
         }