diff --git a/lib/SetupJelix16.php b/lib/SetupJelix16.php
index <HASH>..<HASH> 100644
--- a/lib/SetupJelix16.php
+++ b/lib/SetupJelix16.php
@@ -32,7 +32,16 @@ class SetupJelix16 {
         $configDir = $this->parameters->getVarConfigDir();
 
         // open the configuration file
-        $iniFileName = $this->parameters->getConfigFileName();
+        // during upgrade of composer-module-setup, it seems Composer load some classes
+        // of the previous version (here ModuleSetup + JelixParameters), and load
+        // other classes (here SetupJelix16) after the upgrade. so API is not the one we expected.
+        // so we should check if the new method getConfigFileName is here
+        if (method_exists($this->parameters, 'getConfigFileName')) {
+            $iniFileName = $this->parameters->getConfigFileName();
+        }
+        else {
+            $iniFileName = 'localconfig.ini.php';
+        }
         if (!$iniFileName) {
             $iniFileName = 'localconfig.ini.php';
         }
SetupJelix<I>: fix error during composer install about missing method

During the upgrade of composer-module-setup, some classes of the
previous version are already loaded and then may not contain new feature
or new api, expected by the classes loaded after the source update.

This why we add errors like Call to undefined method Jelix\ComposerPlugin\JelixParameters::getConfigFileName()
during composer install/update.