Although, for example, starting from windows ME, there is an option to undo the last installation, it is typically limited to only very specific types of changes in the system, such as for example changes in the registry, but cannot undo other changes, such as for example ruining other directories or files.