Best Library/Macro to Delete Only the Installed Files

Which library or macro that deletes only installed files when the uninstallation is run would you recommend?

I'm aware this kind question has been asked alot but I'm looking for advice on the most current and easiest to use macro/library. As in the past,I used old macros that were posted on for things like Command Line Argument parsing and had problems with the code and implementation.

My understanding is that there are 2 so far(are there more?):

Which library or single macro do you use and recommend?

I am hoping that I am able to install files by only specifying a folder X(and all its sub files will be installed) and the uninstaller will then delete all the subfiles in folder X but leave any the user created.

For eg: