title: How do I package my joomla 2.5 component with a plugin?
body: <p>I'm still learning joomla and I was wondering how do you install a plugin with a component in the pkg_youcomponent.xml installation <a href="https://docs.joomla.org/Package" rel="nofollow noreferrer">file</a>. I've noticed with Joomla <img src="https://docs.joomla.org/images/d/da/Compat_icon_1_6.png" alt="Joomla 1.6"> or higher it is possible to use the <code>folder="packages"</code> attribute on <code>files</code>.</p>
  
  <p>I'm trying to package the <a href="https://rockettheme.com/joomla/extensions/rokbox" rel="nofollow noreferrer">Rocket Theme RokBox Plugin</a> with my component. But I'm not having much luck.</p>
  
  <p>Here is a zip preview of <b>pkg_autobase</b>.</p>
  
  <p><a href="https://i.stack.imgur.com/8KW6v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8KW6v.png" alt="Zip preview of pkg_autobase"></a><br>
  <sub>(source: <a href="http://iforce.co.nz/i/df43tkzb.2ib.png" rel="nofollow noreferrer">iforce.co.nz</a>)</sub>  </p>
  
  <p>And here the package script based off <a href="https://docs.joomla.org/Package" rel="nofollow noreferrer">this</a>.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;extension type="package" version="1.6"&gt;
  &lt;name&gt;Autobase&lt;/name&gt;
  &lt;author&gt;Michael Jones&lt;/author&gt;
  &lt;creationDate&gt;May 2012&lt;/creationDate&gt;
  &lt;packagename&gt;autobase&lt;/packagename&gt;
  &lt;version&gt;1.0.0&lt;/version&gt;
  &lt;url&gt;http://www.triotech.co.nz/&lt;/url&gt;
  &lt;packager&gt;Michael Jones&lt;/packager&gt;
  &lt;packagerurl&gt;http://www.triotech.co.nz/&lt;/packagerurl&gt;
  &lt;description&gt;Package installer for AutoBase and RokBox Gallery Manager&lt;/description&gt;
  &lt;update&gt;http://www.triotech.co.nz/update&lt;/update&gt;
  &lt;files folder="packages"&gt;
     &lt;file type="component" id="autobase" &gt;com_autobase.zip&lt;/file&gt;
     &lt;file type="plugin" id="rokbox" group="system"&gt;plg_sys_rokbox.zip&lt;/file&gt;
  &lt;/files&gt;
  &lt;/extension&gt;
  </code></pre>
  
  <p>Now the thing I'm unsure about is.. the joomla 2.5 extension manager reports the error </p>
  
  <pre><code>    Install path does not exist
      Package Install: There was an error installing an extension: com_autobase.zip
  </code></pre>
  
  <p>But as far as I know I've packaged everything up correctly (both <code>component</code> and <code>plugin</code> install fine individually). Thus I'm wondering how do you correctly package a component?</p>