I'll continue the mod support discussion from Sogroon's addons here.
I've came to the idea that modmods should have a describing file that could be used later.
The file is named "modInfo.xml" and is put at the root of the modmod Modules/ folder. Here's an example for MegaCivPack current version.
Code:
<?xml version="1.0"?>
<root>
<name>Mega. Civ. Pack</name>
<version>1.3.5</version>
<extrafiles>
<!-- Add here all the files located outsite the mod Modules/ folder which are part of the mod. This will allow mod uninstallation. The parameter "default" should be set to 1 if the listed file replace a default mod file (= can't remove it without causing bug). Set it to 0 if this is safe to remove it. -->
<file default="0">Assets/MCP0.FPK</file>
<file default="1">Assets/Python/Revolution/Gameready/DynamicCivNames.py</file>
<file default="0">Assets/XML/Text/MCP_BUILDINGS.xml</file>
<file default="0">Assets/XML/Text/MCP_BUILDINGS_PEDIA.xml</file>
<file default="0">Assets/XML/Text/MCP_CITIES.xml</file>
<file default="0">Assets/XML/Text/MCP_CIVILIZATIONS.xml</file>
<file default="0">Assets/XML/Text/MCP_CIVILIZATIONS_PEDIA.xml</file>
<file default="0">Assets/XML/Text/MCP_DIPLOMACY.xml</file>
<file default="0">Assets/XML/Text/MCP_LEADERS.xml</file>
<file default="0">Assets/XML/Text/MCP_LEADERS_PEDIA.xml</file>
<file default="0">Assets/XML/Text/MCP_MISC.xml</file>
<file default="0">Assets/XML/Text/MCP_UNITS.xml</file>
<file default="0">Assets/XML/Text/MCP_UNITS_PEDIA.xml</file>
</extrafiles>
</root>
It contains basic infos (name, version) and, more important, a list of files located outside the Modules/ folder. This will allow the updater to know which files to preserve during the update (the mod folder inside Modules/ is automatically preserved).
The parameter "default" will allow for future mod uninstallation handling. If the modfile replace a default file, set it to 1, so when the mod will be uninstalled, this file will be downloaded again. If set to 0, that mean the file is only modmod related, so it should be removed safely.
If there is no modInfo.xml in the modmod folder or if there is no file listed in modInfo.xml, any file outside Modules/ folder not listed here will be removed on update.