Hello jiayang2,
Great, I am happy that worked. Honestly I don't have any idea why XAMPP cause the registry to changed but I'm glad your issue was already resolved. If you don't have any more concerns, feel free to mark one of the replies as solved and have a moment to rate my support I’d appreciate it. This will help other people facing the same problem. You're very much welcome. Stay safe and have a great day!
Sincerely
John DeV
Independent Advisor