Correct the condition to compare version for Windows installer. Regression of last commit.

This commit is contained in:
Aditya Toshniwal
2019-07-02 20:12:00 +05:30
committed by Akshay Joshi
parent b76e0bea83
commit 15556f9f89

View File

@@ -179,7 +179,7 @@ begin
begin
UpgradeMode := True;
RegQueryStringValue(HKEY_LOCAL_MACHINE,'Software\{#MyAppName}\{#MyAppVersion}', 'Version', Version);
if CompareVersions(Version, '{#MyAppFullVersion}') = -1 then
if CompareVersions(Version, '{#MyAppFullVersion}') = 1 then
begin
MsgBox(ExpandConstant('{cm:NewerVersionExists}' + '(v' + Version + ') is already installed' ), mbInformation, MB_OK);
Result := False;