WiX Fix: file copy and config merge on update from C# to MSI based installer.

This commit is contained in:
McMak 2015-06-01 17:55:08 +03:00
parent 67b2903390
commit 0003925691
6 changed files with 33 additions and 6929 deletions

View file

@ -168,8 +168,8 @@ namespace WebsitePanel.WIXInstaller
{
var Current = SesCtx["ProductVersion"];
var Found = string.IsNullOrWhiteSpace(CtxVars.Version) ? "0.0.0" : CtxVars.Version;
if ((new Version(Found) >= new Version(Current)) && !CtxVars.InstallerType.ToLowerInvariant().Equals("msi"))
throw new InvalidOperationException("New version must be reater than previous always.");
if ((new Version(Found) > new Version(Current)) && !CtxVars.InstallerType.ToLowerInvariant().Equals("msi"))
throw new InvalidOperationException("New version must be greater than previous always.");
};
var Ctx = session;