If you do not want to upgrade NTA and APM/SAM to versions that are compatible with NPM 10.4, you DO need to first uninstall NTA and APM to prevent issues during installation of your NPM upgrade. You will be prompted to acknowledge the version disparity, but your NPM upgrade will NOT proceed.
Out of curiosity, what versions to you have installed? Confirm your upgrade ability in our upgrade compatibility article, if you haven't already.
I'm actually doing this for our client. We're a local reseller here for Solarwinds. He upgraded his NPM and discontinued his NTA and APM. And now want to upgrade the NPM to the latest version. 10.4
Unfortunately for your client, NPM 10.4 requires NTA 3.8 and APM/SAM 5.0. NTA 3.7 is compatible with NPM 10.3.X, but APM 3.5 is limiting your client to NPM 10.2.2.