Reputation: 7146
I want to give the users an option to leave their data when the app uninstalls, is there a way to do this?
Upvotes: 1
Views: 984
Reputation: 11878
Both yes and no.
No UI is shown during uninstall, that's why you cannot give users this option.
Yet you can remove these files as described in the answers to the question linked by Morten.
Additionally you can use RemoveFolderEx
element from Util extension. This element correctly handles removal of subdirectory structure.
As for UI part, some programs do not display several buttons, like Uninstall, Change, Repair, on the Control Panel rather have one button Uninstall/Change. In the latter case, there's usually UI shown when they are uninstalled.
Upvotes: 2