[izpack-user] updatecheck

367 views
Skip to first unread message

Ricardo Cardoso

unread,
Apr 22, 2010, 12:28:27 PM4/22/10
to us...@izpack.codehaus.org
hi i am developing an updater for my previous installer i am trying to use updatecheck when i do this only the files that have been modified are overwritten right?
But when i am installing it looks like every file is overwriten.
My pack is the following:
packs>
        <pack id="fe_ant" name="ANT base" required="no">
            <description>ANT</description>
        </pack>
        <pack id="chd_ant" name="ANT" parent="fe_ant" required="no">
            <description>Ficheiros do ANT</description>
            <updatecheck>
            <include name="lixo/apache-ant-1.7.0/**"/>
            </updatecheck>
            <file src="lixo/apache-ant-1.7.0" targetdir="$INSTALL_PATH\ant"/>
            <!-- Este ficheiro sera preenchido com as variaveis colhidas no input e e
             executado no final do input-->
            <file src="lixo/variaveis_ant.bat" targetdir="$INSTALL_PATH/"/>
            <parsable targetfile="$INSTALL_PATH/variaveis_ant.bat"/>
        </pack>
        </packs>


Can you tell me how do this updatecheck realy works.

Best regards
Ricardo Cardoso

--
You received this message because you are subscribed to the Google Groups "izpack-user" group.
To post to this group, send email to izpac...@googlegroups.com.
To unsubscribe from this group, send email to izpack-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/izpack-user?hl=en.

René Krell

unread,
Apr 23, 2010, 2:52:04 AM4/23/10
to us...@izpack.codehaus.org
Hi Ricardo,

<updatecheck> does not less and not more than removes files in the
installation target path ${INSTALL_PATH}, which did not come with the
installation. This is how to clean up your target folder at the end of the
installation from obsolete files, which you did not wnt to install.
Please keep in mind that this would also remove files you generated in a pre-
installation step (beforepack,beforepacks) using some custom action, unless
you exclude them from being cleant up using <exclude>.
You must have at least one nested <include> element to <updatecheck>,
otherwise it won't have any effect (this behaviour is changed in the upcoming
IzPack 5.0). Thus a maximum recursive cleanup you reach using

<updatecheck>
<include name="**"/>
</updatecheck>

Overwriting of files you can control using the override attribute, see
http://izpack.org/documentation/installation-files.html#file-add-files-or-directories

René
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Reply all
Reply to author
Forward
0 new messages