SectionIn Custom
It's just an idea, but shouldn't it be possible to use a SectionIn to be executed when a custom section is selected. I tought of the following:
Section anysection
SectionIn 0 ;0 says that the Custom selection is used
SectionEnd
So SectionIn 0 means the custom install type, and everything else remails the same.