How to copy registry data from Windows 10 to Windows 11?

Following my previous question, I had the idea that file “open with” defaults have to be remembered somewhere. The answer I found is that they are remembered in the registry. I was wondering if it is safe to copy this value from Windows 10 to Windows 11, or if there is some sort of conversion I must do first. Will my Windows 11 device have a new id?

The only values I could find relating to paint3d are:

  • ComputerHKEY_LOCAL_MACHINESOFTWAREClassesSystemFileAssociations.pngShell3D Editcommand (did not exist on windows 11)
  • ComputerHKEY_LOCAL_MACHINESOFTWAREClassesSystemFileAssociations.pngShellExContextMenuHandlersShellImagePreview (was already the same on both devices)

And:

  • ComputerHKEY_LOCAL_MACHINESOFTWAREClasses.pngPersistentHandler

Which I replaced with the value from my Windows 10 machine, but the default app did not change or show up in “open with” even after a reboot.