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.
But the only answer there is to remove the registerService from the activator class which also removes my contribution.

Thanks for your help.