Installation of scheduler service added into enterprise server installer

This commit is contained in:
vfedosevich 2013-07-16 17:45:52 +03:00
parent 02a2fa50b9
commit efa7af35a1
6 changed files with 112 additions and 25 deletions

View file

@ -288,7 +288,14 @@ namespace WebsitePanel.Setup
action.Description = "Removing Windows service...";
action.Log = string.Format("- Remove {0} Windows service", serviceName);
list.Add(action);
}
}
if (ServiceController.GetServices().Any(s => s.DisplayName.Equals(Global.Parameters.SchedulerServiceName, StringComparison.CurrentCultureIgnoreCase)))
{
action = new InstallAction(ActionTypes.UnregisterWindowsService) { Path = Path.Combine(installFolder, "bin", Global.Parameters.SchedulerServiceFileName), Name = Global.Parameters.SchedulerServiceName, Description = "Removing Windows service..." };
action.Log = string.Format("- Remove {0} Windows service", action.Name);
list.Add(action);
}
//database
bool deleteDatabase = AppConfig.GetComponentSettingBooleanValue(componentId, "NewDatabase");