Error 25451.Setup found that the Management Group registry configuration is corrupted. Error Code: -2147024894 (The system cannot find the file specified.)
NOTE:-Make sure you backup registy before making changes.
registy key is located under following path;
and every product has it own ID for example:
you need to go through each product ID and find the SCOM agent one then delete the product key for SCOM agent.
Easiest way is searching the registry for example:-
Click Start / Run
Click Edit / Find
Type part of the agent keyword for example “System Center”
Locate the right registry key and delete it.