I have a number of custom modules I'm developing for a rather complex site. These modules need to create quite a few custom types, views, panels, imagecache presets, etc when they are enabled. Obviously doing that much configuration takes some time so I was wondering if it's possible to use the batch api in D6 during the hook_install of my module?
I've tried it out and can get the progress bar to show up during the module install but then the page goes back to the module list without enabling the module and none of the tasks in the batch were executed.
Are there any documentation on the Drupal site on how to do this or are there any other modules in the repository that do something similar that I could reference?