When uninstalling my application, I'd like to configure the WiX setup to remove all the files that were added to %appdata% folder, after the original installation.
But here is the problem, my application can be run for many users. In the application start I have a function that creates the files if they do not exist. So I want to remove all files, no matter what "user/appdata" they are.
A similar question has already been asked here: Removing files when uninstalling WiX
But the difference is the handling for multiple users.
Synopsis: Don't do it that way; Leave it to each user but make it easy to understand and do.
Scenario:
Variations:
Considerations:
Possible solution:
Let each user decide at any time to "uninstall" the data. (This solution addresses only some of the issues raised above.)