Installing packages at install time?

Permalink
I have been able to add some additional blocks to our base install of Concrete5 by using the code:

$res = BlockType::installBlockType('addthis'); if(strlen($res)) { throw new Exception($res);}

I have some I want to add that are Packages. How do I do this so they can also be autoinstalled?