static void ReadArgsFromSystem() { InstallDir = RegRead("INSTALLDIR"); CommonVersion = RegistrySettings.ReadInt32(Configurator.ConstCommonVersion); BackupDir = Path.Combine(Environment.GetEnvironmentVariable("TEMP"), string.Concat(IbnConst.ProductFamilyShort, IbnConst.VersionMajorMinor, "UpdateBackup")); UpdateDir = AppDomain.CurrentDomain.BaseDirectory; DemoBackupDir = RegRead("DemoBackupDir"); DemoHosts = RegRead("DemoHosts"); }
static void ReadArgsFromSystem() { _InstallDir = RegRead("INSTALLDIR"); _InstallDirWeb = RegRead("INSTALLDIR_WEB"); _SqlServer = RegRead("MC_SQL_SERVER"); _SqlDatabase = RegRead("MC_SQL_DATABASE"); _SqlUser = RegRead("MC_SQL_USER"); _SqlPassword = RegRead("MC_SQL_PASSWORD"); _IbnSqlUser = RegRead(constIbnSqlUser); _SiteId = long.Parse(RegRead("MC_WEB_SERVER_NUMBER"), CultureInfo.InvariantCulture); _Version = RegistrySettings.ReadInt32(Configurator.ConstCommonVersion); _MaxVersion = _Version; _BackupDir = Environment.GetEnvironmentVariable("TEMP"); AppendSlash(ref _BackupDir); _BackupDir += string.Format(CultureInfo.InvariantCulture, "Ibn{0}UpdateBackup\\", IbnConst.VersionMajorMinor); _UpdatesDir = AppDomain.CurrentDomain.BaseDirectory; _PauseUpdate = !string.IsNullOrEmpty(RegRead("PauseUpdate")); }