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);