From 9f76754ad3c1988ecfff883a0c807da10a6b47c5 Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Tue, 13 Feb 2018 13:37:30 +0100
Subject: [PATCH] Force full install from 1.13 to 1.13.0.1

---
 bld/gen_upd.iss | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bld/gen_upd.iss b/bld/gen_upd.iss
index 2c4a5366..0c332982 100644
--- a/bld/gen_upd.iss
+++ b/bld/gen_upd.iss
@@ -275,8 +275,15 @@ end;
 { Return whether the version of the installed libcef.dll library matches internal one. }
 function TDIsMatchingCEFVersion: Boolean;
 var CEFVersion: String;
+var TmpTDVersion: String;
 
 begin
+  if GetVersionNumbersString(UpdatePath+'TweetDuck.exe', TmpTDVersion) and (CompareStr(TmpTDVersion, '1.13.0.0') = 0) then
+  begin
+    Result := False;
+    Exit;
+  end;
+  
   Result := (GetVersionNumbersString(UpdatePath+'libcef.dll', CEFVersion) and (CompareStr(CEFVersion, '{#CefVersion}') = 0))
 end;