Autodiscovery enabled for Lync and Exchange 2010 SP2

This commit is contained in:
robvde 2012-09-04 22:47:50 +04:00
parent 8d27e916bd
commit 9da0b01716
3 changed files with 20 additions and 5 deletions

View file

@ -229,14 +229,21 @@ namespace WebsitePanel.Providers.HostedSolution
public override bool IsInstalled()
{
int value = 0;
bool bResult = false;
RegistryKey root = Registry.LocalMachine;
RegistryKey rk = root.OpenSubKey(ExchangeRegistryPath);
if (rk != null)
{
value = (int)rk.GetValue("MsiProductMajor", null);
if (value == 14)
{
value = (int)rk.GetValue("MsiProductMinor", null);
if ((value == 0) | (value == 1)) bResult = true;
}
rk.Close();
}
return value == 14;
return bResult;
}
}
}