I want to give the users an option to leave their data when the app uninstalls, is there a way to do this?
Asked
Active
Viewed 950 times
1
-
Duplicate question: http://stackoverflow.com/questions/195919/removing-files-when-uninstalling-wix – Morten Frederiksen May 06 '12 at 17:39
-
1@MortenFrederiksen This is not a duplicate at all; this specifically asks how to prompt the user with the option. The other question only asks how to do it automatically, without user interaction. – BTownTKD Dec 04 '15 at 14:28
1 Answers
2
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.

Community
- 1
- 1

Alexey Ivanov
- 11,541
- 4
- 39
- 68
-
I do get some UI when I uninstall, are you saying it's not possible to add a checkbox? – Brian May 08 '12 at 14:37
-
No, I didn't say that. I said that the UI is usually minimal during uninstall, therefore users can't select the check box. – Alexey Ivanov May 08 '12 at 15:07