[izpack-users] Ensure that install dir is clean from previousinstall

Bartz, Klaus Klaus.Bartz at coi.de
Wed Aug 22 14:02:51 CEST 2007

Hi François,
there are more than one ways to solve your problem.
1. Use a custom action.
1a. Use the custom action AntInstallListener, declare a delete tag in the ant buildfile and add a call to it in AntActionSpec.xml for it with order="beforepacks". Do not forget to add the ant jars into install.xml.
1b. Write an own custom action which delete the files.
2. Modify TargetPanel.
Derive from TargetPanel your own panel. Implement isValidated() and make your tests there.
Hope it helps

	-----Original Message-----
	From: izpack-users-bounces at lists.berlios.de [mailto:izpack-users-bounces at lists.berlios.de] On Behalf Of François Guillet
	Sent: Wednesday, August 22, 2007 12:57 PM
	To: izpack-users at lists.berlios.de
	Subject: [izpack-users] Ensure that install dir is clean from previousinstall
	We use IzPack to provide an installer for each sofware release. After installation, user may install plugins available for the software. When another version of the software is released, users are likely to use the previous install dir as target. This is not a problem except for plugins which may be incompatible with new versions and break software. How can we ensure that the installation directory is clean and that any file not belonging to the installed file set is deleted? I thought setting fileset attribute override="true" would do the trick but apparently it's not the case (that would have been a simple option, though).
	I suppose that this is a common situation. Does anyone have the answer to this problem?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20070822/8187dec9/attachment.html 

More information about the izpack-users mailing list