Removing files when uninstalling WiX
When uninstalling my application, I'd like to configure the Wix setup to remove all the files that were added after the original installation . It seems like the uninstaller removes only the directories and files that were originally installed from the MSI file and it leaves everything else that was added later in the application folder. In another words, I'd like to purge the directory when uninstalling. How do I do that? Use RemoveFile element with On=" uninstall ". Here's an example: <Directory Id="CommonAppDataFolder" Name="CommonAppDataFolder"> <Directory Id="MyAppFolder" Name="My">