A custom installer dll should export the Uninstall_Exit function. This function will be called after an application is uninstalled. This function can be used for custom operations such as the following:
Saving database data into a file and deleting the database.
Informing the user where the user data files are stored.
Informing the user how to reinstall the application.