From 552e147c76a3b3019d5ac67947a0d52ffa214fbe Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 21 Oct 2016 14:27:05 +0200 Subject: [PATCH] Changed: If old installer doesn't return a version, overwrite it --HG-- branch : develop --- code/ryzom/tools/client/ryzom_installer/src/configfile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp b/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp index 437652599..043d9b130 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp @@ -692,6 +692,9 @@ int CConfigFile::compareInstallersVersion() const QString installedVersion = getVersionFromExecutable(installerDst); + // if unable to get version, copy it + if (installedVersion.isEmpty()) return 1; + nlinfo("%s version is %s", Q2C(installerDst), Q2C(installedVersion)); QString newVersion = QApplication::applicationVersion();