From 3b842b6ca6c6baae6e60d8e1d0858d7c2d371a1d Mon Sep 17 00:00:00 2001 From: Daniel Berteaud <daniel@firewall-services.com> Date: Mon, 23 Feb 2015 12:07:24 +0100 Subject: [PATCH] Fix install check --- packages/winscp.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/winscp.xml b/packages/winscp.xml index 1eb0093..01bbf1b 100755 --- a/packages/winscp.xml +++ b/packages/winscp.xml @@ -12,7 +12,7 @@ <variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\WinSCP\" /> <variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\WinSCP\" /> - <check type="uninstall" condition="exists" path="WinSCP %PKG_VERSION%" /> + <check type="uninstall" condition="versiongreaterorequal" path="WinSCP .+" value="%PKG_VERSION%" /> <install cmd="%SOFTWARE%\winscp\%SETUP_FILE% /sp- /silent /nocancel /norestart /nocandy /log" />