diff --git a/Program.cs b/Program.cs index 963079ec..64002b68 100644 --- a/Program.cs +++ b/Program.cs @@ -20,7 +20,7 @@ static class Program{ public const string BrandName = "TweetDuck"; public const string Website = "https://tweetduck.chylex.com"; - public const string VersionTag = "1.15.2"; + public const string VersionTag = "1.16"; public static readonly string ProgramPath = AppDomain.CurrentDomain.BaseDirectory; public static readonly bool IsPortable = File.Exists(Path.Combine(ProgramPath, "makeportable")); diff --git a/bld/gen_upd.iss b/bld/gen_upd.iss index 970e901a..c78c9412 100644 --- a/bld/gen_upd.iss +++ b/bld/gen_upd.iss @@ -220,10 +220,19 @@ begin end; { Return whether the version of the installed libcef.dll library matches internal one. } +{ TODO: Remove workaround that forces full installation for 1.15 and older eventually. } function TDIsMatchingCEFVersion: Boolean; var CEFVersion: String; +var TDVersionMS: Cardinal; +var TDVersionLS: Cardinal; begin + if (GetVersionNumbers(UpdatePath+'TweetDuck.exe', TDVersionMS, TDVersionLS)) and ((TDVersionMS and $FFFF) < 16) then + begin + Result := False + Exit + end; + Result := (GetVersionNumbersString(UpdatePath+'libcef.dll', CEFVersion) and (CompareStr(CEFVersion, '{#CefVersion}') = 0)) end;