/[AnywhereTS-MSSQL]/trunk/TSAdminTool/Globals.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/Globals.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/TSAdminTool/Globals.cs	2012/07/15 09:15:41	148
+++ trunk/TSAdminTool/Globals.cs	2012/07/15 11:21:36	149
@@ -100,10 +100,10 @@
 
             helpFile = "AnywhereTS.chm"; // The ATS help file
 
-            if (GetATSRegValueInt(strRegRunFirstTime) == 1)
-            {   // We are runnning this version for the first time, write the needed registry values
-                CreateRegistryValues();
-            }
+            //if (GetATSRegValueInt(strRegRunFirstTime) == 1)
+            //{   // We are runnning this version for the first time, write the needed registry values
+            //    CreateRegistryValues();
+            //}
 
             strExecPath = Path.GetDirectoryName(Application.ExecutablePath);
 
@@ -128,6 +128,10 @@
             SelectedGraphicsAdaptersFile = GraphicsAdaptersA;
             SelectedNicAdaptersFile = NicAdaptersA;
             SelectedSoundAdaptersFile = SoundAdaptersA;
+
+            ProSupport.strDatabaseServer = GetATSRegValueString(ProSupport.strRegDatabaseServer);
+            ProSupport.strDatabaseInstance = GetATSRegValueString(ProSupport.strRegDatabaseInstance);
+
             Logging.ATSAdminLog.Debug("Leaving ATSGlobals()");
 
         }
@@ -716,8 +720,8 @@
             CreateRegistryValue(strATSregRoot, ProSupport.strRegAnywhereTSServer, "");
             CreateRegistryValue(strATSregRoot, ProSupport.strRegDatabaseDir, "");            
             CreateRegistryValue(strATSregRoot, ProSupport.strRegDestDir, "");
-            CreateRegistryValue(strATSregRoot, ProSupport.strRegDatabaseServer, AnywhereTS.DBSupport.Properties.Settings.Default.DBServer);
-            CreateRegistryValue(strATSregRoot, ProSupport.strRegDatabaseInstance, AnywhereTS.DBSupport.Properties.Settings.Default.DBInstance);
+            CreateRegistryValue(strATSregRoot, ProSupport.strRegDatabaseServer, ProSupport.strDatabaseServer);
+            CreateRegistryValue(strATSregRoot, ProSupport.strRegDatabaseInstance, ProSupport.strDatabaseInstance);
             
 
             CreateRegistryValue(strATSregRoot, strRegDHCPconfig , 0);

 

  ViewVC Help
Powered by ViewVC 1.1.22