From 13a44de8e4e138967908163d3c4fe7b15b410373 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 16 Aug 2016 18:27:00 +0200 Subject: [PATCH] Changed: Relaunch Installer when installed/migrated, see #279 --- code/ryzom/tools/client/ryzom_installer/src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/main.cpp b/code/ryzom/tools/client/ryzom_installer/src/main.cpp index 2e4ad5481..6a9662c4f 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/main.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/main.cpp @@ -215,6 +215,12 @@ int main(int argc, char *argv[]) if (!dialog.exec()) return 1; step = config.getInstallNextStep(); + + if (step == Done) + { + // restart Installer, so it could be copied in TEMP and allowed to update itself + if (QProcess::startDetached(QApplication::applicationFilePath(), QApplication::arguments())) return 0; + } } CMainWindow mainWindow;