added registration

Um, this code block looks almost the same as in `inst_autosetup.rb`.

It should be extracted to a shared function. If it's not possible to make it into RC2 I'd suggest at least a `FIXME` note at both places. There is a high risk that a future bugfix will go only to one file... :bomb: :boom: