I would like to give the user the option to delete the configuration data stored in the APPDATA folder on uninstall. I have found this answer but it's quite old. There is another answer in this mailing list but it's even older.
Is there a new way of doing this?
We can delete folder recursively with
RemoveFolderEx. For this we need to add following to our Wix root element:Borrowed from here
And the folder definition:
Unfortunately
RemoveFolderExdoes not add the folder to the RemoveFile table, we might get this error:So, as workaround I added following dummy line after it (
RemoveFolderEx)