From 65d56b336be6b9f587dd0ba21ee11a58447c0a91 Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Fri, 17 Aug 2018 20:09:15 +0200
Subject: [PATCH] Release 1.16

---
 Program.cs      | 2 +-
 bld/gen_upd.iss | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

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;