to intall a component you must have in your zipfile an xml file
it s composed like this :
<?xml version="1.0" ?>
<mosinstall type="component">
<name>yourcomponent</name>
<creationDate>the date</creationDate>
<author>your name</author>
<copyright>copyright</copyright>
<authorEmail>your mail</authorEmail>
<authorUrl>http://www.whatyouwant.pt</authorUrl>
<version>version number</version>
<description>
a description
</description>
<files>
<filename>yourcomponent.php</filename>
<filename>yourcomponent.html.php</filename>
<filename>otherfile.php</filename>
<filename>otherfile.png</filename>
</files>
<installfile>install.yourcomponent.php</installfile>
<uninstallfile>uninstall.yourcomponent.php</uninstallfile>
<administration>
<menu>Your component menu name</menu>
<submenu>
<menu task="menu">Your component sub-menu name</menu>
</submenu>
<files>
<filename>admin.yourcomponent.html.php</filename>
<filename>admin.yourcomponent.php</filename>
<filename>otherfile.php</filename>
<filename>otherfile.png</filename>
</files>
</administration>
</mosinstall>
enjoy it ( it's work for me

)