Invalid file Extension

Permalink
When developing a package, is there any way to add a file extension to the list of approved extensions programmatically from the install controller?