I would like to create an installer script module based on PHP
Install Process
1. user upload the component (.zip file)
2. extract the zip and copy to appropriate folder
3. run installer's sql queries
4. register the uploaded component to database
Uninstall Process
1. Delete the file that belong to the component
2. run sql to delete the table
3. remove component from the database
Note:
- The installer file can mimic on how joomla component installer work
- The file details (folder information, etc) placed on XML file as controller (or you might use different method)