Because all installations of dotnet runtimes and sdk must be under the same folder, the very first install controls the folder location. To change folder, you must completely uninstall dotnet, and specify the folder on the install of first version. Also 3.1 was the first to allow specification of the folder, see install docs.
It might be easier with a clean o/s install.