Hide installation view

I have an installation contribution + view + service for a functionality but I only use the contribution class and I want to hide the view part under installation tab>URCaps.

I think it’s the same as the question below.
https://forum.universal-robots.com/t/how-to-hide-the-installation-node-urcap/4683
But the only answer there is to remove the registerService from the activator class which also removes my contribution.

Thanks for your help.