Brian
Brian

Reputation: 7146

WiX - Optionally remove user-generated files on uninstall

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

Answers (1)

Alexey Ivanov
Alexey Ivanov

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

Related Questions