Archive: deleting application created files


deleting application created files
I have an installer that silently installs an application which creates a number of sub folders when it runs, these can be any number depending on thee assets it downloads remotely to the client machine.

I am trying to find a way to delete the sub directories and their contents in the uninstall section of the installer.

Maybe I am going blind but I can't find a way to do this the uninstaller deletes the top level but leaves the sub-directories, I want it to clean up completely

any pointers please?


RmDir /r "$INSTDIR" safe when $INSTDIR is locked on something like e.g. "$PROGRAMFILES\My Application",
risky when depended on user selection, none couldn't tell if some user has selected on select directory page something like e.g. Program Files without the appended application name, in this case the entire Program Files is going to be removed.