Comments

1 comment

  • Avatar
    Jake

    You can use the <removeFilesFromUninstaller> action:

    <removeFilesFromUninstaller>
      <files>file1;file2;...;fileN</files>
    </removeFilesFromUninstaller>
    

    Files may be specified each on a single line or separated by semi-colons.

    This action doesn't work recursively on directories. You may use though wildcards to achieve a similar effect:

      <removeFilesFromUninstaller>
        <files>/path/to/some/directory/*/*/*</files>
      </removeFilesFromUninstaller>
    

    (the number of asterisks may vary depending on the depth of nested children inside the folder)

    IMPORTANT: this action requires the files to have already been installed by the installer and also requires the files to exist on disk. This usually implies setting the <removeFilesFromUninstaller> action inside the <postInstallationActionList>.

    Also note that the uninstaller is only responsible for removing files directly installed by the installer. Any other file generated as a result of an application execution (for instance any data, log or temporary files) will not be registered by the uninstaller so they will not be removed. You may want to use the counterpart of this action (<addFilesToUninstaller>) to register files so they will be deleted by the uninstaller.

Please sign in to leave a comment.