I have written a wix script for my application and it has 2 deferred custom actions associated with it.
One of the custom actions is run during installation and the other is run during uninstallation.
The error occurs during uninstallation if the uninstaller is run after the user has manually deleted the files. This causes the msi to look for the .exe which is to be run as a custom action, fails because the file doesn't exist and causes the uninstallation to abort.
How to not run the custom action if the file doesn't exist?
I have not found any similar query so I'm posting here. Please help me out if you can
1)
use a dll custom action embedded in the setup,2)
eliminate the need for the custom action altogether. Remember that some cleanup done on uninstall can be replaced by instructions to the user for cleanup if they want to. Very often what you leave behind on uninstall are user data files or settings files that may potentially be desired for the user to keep (if they reinstall for example). You should generally not delete any user data. Doing so often causes more problems than leaving the data in place. – Stein Åsmul