85 |
|
DBInstance = this.Context.Parameters["DBINSTANCE"]; |
86 |
|
try |
87 |
|
{ |
88 |
< |
string server = ATSGlobals.GetATSRegValueString(ProSupport.strRegDatabaseServer); |
89 |
< |
string instance = ATSGlobals.GetATSRegValueString(ProSupport.strRegDatabaseInstance); |
90 |
< |
int first_run = 0; |
91 |
< |
try |
92 |
< |
{ |
93 |
< |
first_run = Convert.ToInt32(ATSGlobals.GetATSRegValueString("RunFirstTime")); |
94 |
< |
} |
95 |
< |
catch { first_run = 0; } |
96 |
< |
if (first_run != 1) |
97 |
< |
{ |
98 |
< |
if (!string.IsNullOrEmpty(server)) |
99 |
< |
DBServer = server; |
100 |
< |
if (!string.IsNullOrEmpty(instance)) |
101 |
< |
DBInstance = instance; |
102 |
< |
} |
88 |
> |
string server = string.Empty; |
89 |
> |
string instance = string.Empty; |
90 |
> |
|
91 |
> |
try { server = ATSGlobals.GetATSRegValueString(ProSupport.strRegDatabaseServer); } |
92 |
> |
catch { } |
93 |
> |
try { instance = ATSGlobals.GetATSRegValueString(ProSupport.strRegDatabaseInstance); } |
94 |
> |
catch { } |
95 |
> |
Logging.ATSAdminInstallerLog.DebugFormat("RegServer={0} RegInstance={1}", server, instance); |
96 |
> |
|
97 |
> |
if (!string.IsNullOrEmpty(server)) |
98 |
> |
DBServer = server; |
99 |
> |
if (!string.IsNullOrEmpty(instance)) |
100 |
> |
DBInstance = instance; |
101 |
|
} |
102 |
|
catch |
103 |
|
{ |