Installer: old to new update #5 - old to new update, wix sql fixes.
This commit is contained in:
parent
68397679db
commit
faee7a4315
5 changed files with 31 additions and 57 deletions
|
@ -63,9 +63,6 @@ namespace WebsitePanel.Setup.Actions
|
|||
|
||||
void IInstallAction.Run(SetupVariables vars)
|
||||
{
|
||||
if (vars.ComponentExists)
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
OnInstallProgressChanged(LogStartInstallMessage, 0);
|
||||
|
@ -235,10 +232,7 @@ namespace WebsitePanel.Setup.Actions
|
|||
{
|
||||
void IInstallAction.Run(SetupVariables vars)
|
||||
{
|
||||
if (vars.ComponentExists)
|
||||
return;
|
||||
|
||||
try
|
||||
try
|
||||
{
|
||||
//
|
||||
Log.WriteStart(String.Format("Creating database user {0}", vars.Database));
|
||||
|
@ -336,9 +330,6 @@ namespace WebsitePanel.Setup.Actions
|
|||
|
||||
void IInstallAction.Run(SetupVariables vars)
|
||||
{
|
||||
if (vars.ComponentExists)
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
Log.WriteStart("Updating serveradmin password");
|
||||
|
@ -398,9 +389,6 @@ namespace WebsitePanel.Setup.Actions
|
|||
{
|
||||
void IInstallAction.Run(SetupVariables vars)
|
||||
{
|
||||
if (vars.ComponentExists)
|
||||
return;
|
||||
|
||||
Log.WriteStart("Updating web.config file (connection string)");
|
||||
var file = Path.Combine(vars.InstallationFolder, vars.ConfigurationFile);
|
||||
vars.ConnectionString = String.Format(vars.ConnectionString, vars.DatabaseServer, vars.Database, vars.Database, vars.DatabaseUserPassword);
|
||||
|
|
|
@ -151,8 +151,6 @@ namespace WebsitePanel.Setup.Actions
|
|||
|
||||
void IInstallAction.Run(SetupVariables vars)
|
||||
{
|
||||
if (vars.ComponentExists)
|
||||
return;
|
||||
// Exit with an error if Windows account with the same name already exists
|
||||
if (SecurityUtils.UserExists(vars.UserDomain, vars.UserAccount))
|
||||
throw new Exception(UserAccountExists);
|
||||
|
@ -503,10 +501,7 @@ namespace WebsitePanel.Setup.Actions
|
|||
|
||||
void IInstallAction.Run(SetupVariables vars)
|
||||
{
|
||||
if (vars.ComponentExists)
|
||||
return;
|
||||
|
||||
var siteName = vars.ComponentFullName;
|
||||
var siteName = vars.ComponentFullName;
|
||||
var ip = vars.WebSiteIP;
|
||||
var port = vars.WebSitePort;
|
||||
var domain = vars.WebSiteDomain;
|
||||
|
@ -779,10 +774,7 @@ namespace WebsitePanel.Setup.Actions
|
|||
|
||||
void IInstallAction.Run(SetupVariables vars)
|
||||
{
|
||||
if (vars.ComponentExists)
|
||||
return;
|
||||
|
||||
try
|
||||
try
|
||||
{
|
||||
Begin(LogStartInstallMessage);
|
||||
//
|
||||
|
|
|
@ -198,7 +198,7 @@ namespace WebsitePanel.Setup.Internal
|
|||
var mup = "MODE_UP";
|
||||
var mrup = "MODE_RUP";
|
||||
var Result = ModeExtension.Normal;
|
||||
if (Src.Keys.Contains(mup) && !string.IsNullOrWhiteSpace(Src[mup]))
|
||||
if ((Src.Keys.Contains(mup) && !string.IsNullOrWhiteSpace(Src[mup])) || (Src.Keys.Contains("ComponentId") && !string.IsNullOrWhiteSpace(Src["ComponentId"])))
|
||||
Result = ModeExtension.Restore;
|
||||
else if (Src.Keys.Contains(mrup) && !string.IsNullOrWhiteSpace(Src[mrup]))
|
||||
Result = ModeExtension.Backup;
|
||||
|
@ -3943,7 +3943,7 @@ namespace WebsitePanel.Setup.Internal
|
|||
XmlDocumentMerge.KeyAttributes = new List<string> { "name", "id", "key", "pageID", "localName", "xmlns", "privatePath", "moduleDefinitionID", "ref", "verb;path", "controlRenderingCompatibilityVersion;clientIDMode" };
|
||||
XmlDocumentMerge.FrozenAttributes = new List<XmlDocumentMerge.FrozenAttrTag>
|
||||
{
|
||||
new XmlDocumentMerge.FrozenAttrTag() { Path="configuration/microsoft.web.services3/security/securityTokenManager/add", Attributes = new List<string>() {"localName"} },
|
||||
new XmlDocumentMerge.FrozenAttrTag() { Path="configuration/microsoft.web.services3/security/securityTokenManager/add", Attributes = new List<string>() {"type"} },
|
||||
new XmlDocumentMerge.FrozenAttrTag(true) { Path="compilation", Attributes = new List<string>() {"targetFramework"} },
|
||||
new XmlDocumentMerge.FrozenAttrTag() { Path="configuration/startup/supportedRuntime", Attributes = new List<string>() {"version", "sku" } }
|
||||
};
|
||||
|
@ -4242,12 +4242,6 @@ namespace WebsitePanel.Setup.Internal
|
|||
WiXThrow = true;
|
||||
});
|
||||
sam.Start();
|
||||
if (Context.ComponentExists)
|
||||
{
|
||||
Context.UpdateVersion = Context.Release;
|
||||
AppConfig.LoadComponentSettings(Context);
|
||||
new RestoreScript(Context).Run();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -4326,12 +4320,6 @@ namespace WebsitePanel.Setup.Internal
|
|||
WiXThrow = true;
|
||||
});
|
||||
sam.Start();
|
||||
if(Context.ComponentExists)
|
||||
{
|
||||
Context.UpdateVersion = Context.Release;
|
||||
AppConfig.LoadComponentSettings(Context);
|
||||
new RestoreScript(Context).Run();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -4410,12 +4398,6 @@ namespace WebsitePanel.Setup.Internal
|
|||
WiXThrow = true;
|
||||
});
|
||||
sam.Start();
|
||||
if (Context.ComponentExists)
|
||||
{
|
||||
Context.UpdateVersion = Context.Release;
|
||||
AppConfig.LoadComponentSettings(Context);
|
||||
new RestoreScript(Context).Run();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue