How to create collection attribute keys during package install?

Permalink
Hey guys!
I am trying to add attributes keys of my custom attribute type automatically when installing a package. I don't know what am I missing, but I simply can not figure this out. Anyone knows how to do this?