Added separate providers for IIS 8 and FTP 8
This commit is contained in:
parent
d72e715ee6
commit
d826a96f6d
12 changed files with 271 additions and 16 deletions
|
@ -0,0 +1,30 @@
|
|||
using Microsoft.Win32;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.Web
|
||||
{
|
||||
public class IIs80 : IIs70, IWebServer
|
||||
{
|
||||
public new bool IsIISInstalled()
|
||||
{
|
||||
int value = 0;
|
||||
RegistryKey root = Registry.LocalMachine;
|
||||
RegistryKey rk = root.OpenSubKey("SOFTWARE\\Microsoft\\InetStp");
|
||||
if (rk != null)
|
||||
{
|
||||
value = (int)rk.GetValue("MajorVersion", null);
|
||||
rk.Close();
|
||||
}
|
||||
|
||||
return value == 8;
|
||||
}
|
||||
|
||||
public override bool IsInstalled()
|
||||
{
|
||||
return IsIISInstalled();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue