Improvements WiX UI, installed component detection, update via UI.
This commit is contained in:
parent
473fd3c3ef
commit
ce508b178c
6 changed files with 127 additions and 18 deletions
|
@ -8,7 +8,7 @@ using Ionic.Zip;
|
|||
|
||||
namespace WebsitePanel.Setup.Internal
|
||||
{
|
||||
class BackupRestore
|
||||
public class BackupRestore
|
||||
{
|
||||
struct DirectoryTag
|
||||
{
|
||||
|
@ -47,9 +47,7 @@ namespace WebsitePanel.Setup.Internal
|
|||
Version BckpVersion;
|
||||
var StrVersion = VersionName.Substring(FullId.Length);
|
||||
if (Version.TryParse(StrVersion, out BckpVersion))
|
||||
{
|
||||
DirList.Add(new DirectoryTag { Name = VersionItem, Date = date, Version = BckpVersion });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,6 +59,16 @@ namespace WebsitePanel.Setup.Internal
|
|||
}
|
||||
return Result;
|
||||
}
|
||||
public static bool HaveChild(string XmlDocPath, string XmlPath)
|
||||
{
|
||||
var Result = false;
|
||||
var XCfg = new XmlDocument();
|
||||
XCfg.Load(XmlDocPath);
|
||||
var Node = XCfg.SelectSingleNode(XmlPath);
|
||||
if (Node != null)
|
||||
Result = Node.ChildNodes.Count > 0;
|
||||
return Result;
|
||||
}
|
||||
private static string GetComponentRoot(DirectoryTag DirTag, string Id)
|
||||
{
|
||||
var Cfg = GetMainConfig(DirTag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue