I am somewhat confused about how to put this before you, so pardon me if it creates confusion in your head.
Requirement:: To write a removal Tool for a Software.
Language:: C (preferred), C++ (Will do), Windows API (Will also do)
Problem:: The problem is where and how to start. I know all the registry keys and files to be deleted to remove the software. But I do not want them to be hard-coded in my code as it will be very messy for me to change or add a path or registry value every time if the software is modified to create any more keys or files or folders. So, I want to know as to how should I start? What should be my approach or the structure of my code to achieve this? Any pointers would be of very great help.