Removing Files that Were Created by Your Product
InstallShield 2020
By default, files created by your product after the installation is complete are assumed to be user data, and are not removed when the user uninstalls your application.
Basic MSI Project
Records you create in the RemoveFile table (using Direct Editor) can specify additional files to remove. For example, if your application creates a file called Product.ini inside INSTALLDIR and you want the file removed when the component containing your main executable is removed, add a record with the following contents to the RemoveFile table:
FileKey |
remove_file |
Component_ |
ProgramFiles |
FileName |
Product.ini |
DirProperty |
INSTALLDIR |
InstallMode |
2 |
InstallScript and InstallScript MSI Projects
In your script, you can call the DeleteFile and DeleteDir functions in uninstallation event handler functions to remove any files or directories you want removed.