Files that are installed as part of your Tarma Installer project are automatically removed from the customer's computer when your application is uninstalled. However, some applications create additional files after installation that should be removed as well. The current topic describes how to deal with these files.
Note - You should never remove the customer's documents, i.e., the files that your customer created and saved while working with your application whether it be text documents, images, multi-media files, or whatever other kind of files your application is designed to manipulate. The current topic concerns only auxiliary files created and used by your application such as scratch files, caches, and perhaps configuration files.
Tip - Tarma Installer automatically removes certain files that are created by Windows on behalf of your application, for example:
You do not have to specify removal rules for these file types.
To specify files that must be removed when your application is uninstalled, even if they were not installed by Tarma Installer, act as follows.
Decide in which folders your application creates the files that must be uninstalled. Do not use hard-coded paths such as C:\Program Files\MyApp, but use names like:
Select the newly added Unnamed file in the Installation Files List to display its Installation file settings pane, then adjust its settings as follows:
If you need to remove a variable number of files, the names of which you do not know in advance, you can use wildcards in the Source path specification in step 5. For example, to remove all backup files during uninstallation, specify *.bak. This only works for Uninstall files; if you also check the Install action, the build will fail.