diff --git a/code/ryzom/tools/client/ryzom_installer/src/main.cpp b/code/ryzom/tools/client/ryzom_installer/src/main.cpp
index 4658a3b99..3d7ee1d1c 100644
--- a/code/ryzom/tools/client/ryzom_installer/src/main.cpp
+++ b/code/ryzom/tools/client/ryzom_installer/src/main.cpp
@@ -223,8 +223,10 @@ int main(int argc, char *argv[])
 
 		if (step == Done)
 		{
+#if defined(Q_OS_WIN) && !defined(_DEBUG)
 			// restart Installer, so it could be copied in TEMP and allowed to update itself
 			if (QProcess::startDetached(QApplication::applicationFilePath(), QApplication::arguments())) return 0;
+#endif
 		}
 	}