Hi @Ahmed issa
After Win10 upgrading to Win11, the custom registry key value is retained.
However, if you have important registry keys, we recommend that you back up the registry before upgrading, please refer to:
Hope the information is helpful.
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.