[izpack-users] Removing files before installing
Jose M. Rus
josemrus at gmail.com
Wed Jan 24 16:44:36 CET 2007
Thank you Klaus,
I've been exploring the listener path you mentioned but it doesn't really
fit my needs. I've solved it by using the ProcessPanel and launching some
batch files to process the update just after the installation.
What I wanted was something to:
* Delete some files and directories before the installation (the files to
* Keep some files and directories (for example configuration files).
What I consider something near to the ideal solution would be to add a new
parameter to <fileset> inside pack elements to force deletion of some dirs
(¿"remove"?). This could empty dirs completely, complementing the "override"
attribute (which doesn't delete files created after the installation by the
application itself or files present in the previous version that should be
deleted during the upgrade). But this seemed too much complicated so I took
the easy path of launching batch files, thanks anyway.
On 1/18/07, Klaus Bartz <bartzkau at gmx.net> wrote:
> Hi Jose,
> not by configure, but you can write a custom action which will
> be called before installation and do it. Only possible if you are
> firm with Java. If you will do it, there is a description in the
> docu and some existent InstallerListener in the subdir "event".
> Am 18.01.2007, 21:45 Uhr, schrieb Jose M. Rus <josemrus at gmail.com>:
> > Hi list,
> > Is is possible to configure IzPack to delete the installation directory
> > when
> > it's not empty before installing its files? I have some problems when
> > user installs a new version of the application over a previous
> > because of already existing jar and configuration files.Ideally the user
> > should uninstall the previous version, but this rarely happens.
> > Regards,
> > __________ NOD32 1.1392 (20060202) Information __________
> > Diese E-Mail wurde vom NOD32 Antivirus System geprüft
> > http://www.nod32.com
> Erstellt mit Operas revolutionärem E-Mail-Modul:
> izpack-users mailing list
> izpack-users at lists.berlios.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the izpack-users