That’s not what I meant. Changing the installation folder only changes the location of the program folder, which is not necessary.
Uninstall it again, then reinstall it to the default path.
Only move the Plex data folder to the convenient location.
That’s just as expected, as you have previously moved it to D:\Plex\Data\Plex Media Server
Just copy old machine D:\Plex\Data\Plex Media Server to new machine C:\Plexdata\Plex Media Server.
Then import the registry backup.
Then edit the registry and change the LocalAppDataPath to point to C:\Plexdata
See [HowTo] An extended guide on how to move the Plex data folder on Windows for details about that.