Add support for SQL 2014 in Installer
This commit is contained in:
parent
113386e070
commit
cc12d9d7ab
3 changed files with 10 additions and 2 deletions
|
@ -514,6 +514,10 @@ namespace WebsitePanel.Setup.Actions
|
||||||
{
|
{
|
||||||
serviceInfo.ProviderId = 209;
|
serviceInfo.ProviderId = 209;
|
||||||
}
|
}
|
||||||
|
else if (sqlVersion.StartsWith("12."))
|
||||||
|
{
|
||||||
|
serviceInfo.ProviderId = 1203;
|
||||||
|
}
|
||||||
serviceId = ES.Services.Servers.AddService(serviceInfo);
|
serviceId = ES.Services.Servers.AddService(serviceInfo);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -124,11 +124,11 @@ namespace WebsitePanel.Setup
|
||||||
{
|
{
|
||||||
// check SQL server version
|
// check SQL server version
|
||||||
string sqlVersion = GetSqlServerVersion(connectionString);
|
string sqlVersion = GetSqlServerVersion(connectionString);
|
||||||
if (!sqlVersion.StartsWith("9.") && !sqlVersion.StartsWith("10.") && !sqlVersion.StartsWith("11."))
|
if (!sqlVersion.StartsWith("9.") && !sqlVersion.StartsWith("10.") && !sqlVersion.StartsWith("11.") && !sqlVersion.StartsWith("12."))
|
||||||
{
|
{
|
||||||
// SQL Server 2005 engine required
|
// SQL Server 2005 engine required
|
||||||
e.Cancel = true;
|
e.Cancel = true;
|
||||||
ShowWarning("This program can be installed on SQL Server 2005/2008/2012 only.");
|
ShowWarning("This program can be installed on SQL Server 2005/2008/2012/2014 only.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int securityMode = GetSqlServerSecurityMode(connectionString);
|
int securityMode = GetSqlServerSecurityMode(connectionString);
|
||||||
|
|
|
@ -954,6 +954,10 @@ namespace WebsitePanel.Setup
|
||||||
{
|
{
|
||||||
serviceInfo.ProviderId = 209;
|
serviceInfo.ProviderId = 209;
|
||||||
}
|
}
|
||||||
|
else if (sqlVersion.StartsWith("12."))
|
||||||
|
{
|
||||||
|
serviceInfo.ProviderId = 1203;
|
||||||
|
}
|
||||||
serviceId = ES.Services.Servers.AddService(serviceInfo);
|
serviceId = ES.Services.Servers.AddService(serviceInfo);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue