Installer: old to new update #3
This commit is contained in:
parent
51645d124c
commit
7fcbcb18d5
8 changed files with 221 additions and 295 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue