The .NET Core SDK for Windows installer
https://go.microsoft.com/fwlink/?LinkID=809122
has an option to set installation path other than C:\Program Files\dotnet.
Unfortunately, the installer always installs it to C:\Program Files\dotnet even if you change the installation path option.
Please fix it if it is a bug.