Only (un)install com_txi when $installer = com_txi
When $installer = 'component' was used, the preflight bugfixes were applied *after* installation of the component. This fixes it.

The result was that the menu was removed after installation and the bugfixes wouldn't work.
Comments markup