View Full Version : Fail during uninstall in Custom Action

05-23-2003, 01:44 PM
I have a product action that creates a new file based on the name of a file supplied as a property to the action.

If I add this action and provide the directory the file is in, and the name of the file then this action will create a brand new file. For example,

BeanID: CreateFile
Directory: special\files
FileName: testFile.txt
(this will create the file <installdir>\special\files\testFile.txt.foo)

During uninstall though, this newly created file is not deleted. I use the actions properties during uninstall -- which are supposed to be valid.

05-30-2003, 09:22 AM
You will need to override the uninstall() method of your custom product action, and then call FileService.deleteFile() for the file that you created.