diff --git a/htdocs/admin/modulehelp.php b/htdocs/admin/modulehelp.php
index c097fa1e843..3175d49ad1f 100644
--- a/htdocs/admin/modulehelp.php
+++ b/htdocs/admin/modulehelp.php
@@ -364,8 +364,9 @@ if ($mode == 'desc') {
$tmpdirofmoduletoshow = preg_replace('/^'.preg_quote(DOL_DOCUMENT_ROOT, '/').'/', '', (string) $dirofmodule);
$textexternal .= '
'.$langs->trans("Origin").': '.$langs->trans("ExternalModule").' - '.$langs->trans("InstalledInto", $tmpdirofmoduletoshow);
+ $installmoduleslock = DOL_DATA_ROOT.'/installmodules.lock';
global $dolibarr_allow_download_external_modules;
- if (!empty($dolibarr_allow_download_external_modules) && preg_match('/\/custom\//', (string) $dirofmodule)) {
+ if ((!file_exists($installmoduleslock) || !empty($dolibarr_allow_download_external_modules)) && preg_match('/\/custom\//', (string) $dirofmodule)) {
// Add a link to download a zip of the module
$textexternal .= ' '.img_picto('', 'download').'';
}