Installer: old to new update #3

This commit is contained in:
McMak 2015-05-20 11:14:32 +03:00
parent 51645d124c
commit 7fcbcb18d5
8 changed files with 221 additions and 295 deletions

View file

@ -398,7 +398,7 @@ namespace WebsitePanel.Setup
/// <summary>
/// Check for existing user
/// </summary>
internal static bool UserExists(string domain, string userName)
public static bool UserExists(string domain, string userName)
{
bool found = false;
// check whether user account already exists

View file

@ -768,7 +768,7 @@ namespace WebsitePanel.Setup
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
internal static bool ApplicationPoolExists(string name)
public static bool ApplicationPoolExists(string name)
{
WmiHelper wmi = new WmiHelper("root\\MicrosoftIISv2");
return(wmi.ExecuteQuery(
@ -780,7 +780,7 @@ namespace WebsitePanel.Setup
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
internal static bool IIS7ApplicationPoolExists(string name)
public static bool IIS7ApplicationPoolExists(string name)
{
ServerManager serverManager = new ServerManager();
bool ret = (serverManager.ApplicationPools[name] != null);

View file

@ -2859,7 +2859,6 @@ namespace WebsitePanel.Setup.Internal
{
List<InstallAction> list = new List<InstallAction>();
InstallAction action = null;
//database
string connectionString = AppConfig.GetComponentSettingStringValue(componentId, "InstallConnectionString");
if (!String.IsNullOrEmpty(connectionString))
@ -2871,7 +2870,6 @@ namespace WebsitePanel.Setup.Internal
action.Description = string.Format("Backing up database {0}...", database);
list.Add(action);
}
//directory
string path = AppConfig.GetComponentSettingStringValue(componentId, "InstallFolder");
if (!string.IsNullOrEmpty(path))
@ -2881,7 +2879,6 @@ namespace WebsitePanel.Setup.Internal
action.Description = string.Format("Backing up directory {0}...", path);
list.Add(action);
}
//config
action = new InstallAction(ActionTypes.BackupConfig);
action.Description = "Backing up configuration settings...";
@ -2889,9 +2886,7 @@ namespace WebsitePanel.Setup.Internal
list.Add(action);
return list;
}
private void UpdateWebSiteBindings()
{
string component = Context.ComponentFullName;