diff --git a/code/ryzom/tools/client/ryzom_installer/src/main.cpp b/code/ryzom/tools/client/ryzom_installer/src/main.cpp index 31fbf12e3..4982fcad8 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/main.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/main.cpp @@ -157,7 +157,7 @@ int main(int argc, char *argv[]) QString tempPath = QStandardPaths::writableLocation(QStandardPaths::TempLocation); // check if launched from TEMP directory - if (step == Done && !QApplication::applicationDirPath().startsWith(tempPath)) + if (step == Done && !config.getInstallerCurrentDirPath().startsWith(tempPath)) { // try to delete all temporary installers QDir tempDir(tempPath);