How to make uninstaller delete installed directories that may grow during use

Comments

1 comment

  • Avatar
    Michiel

    The <addDirectoriesToUninstaller> action can only delete files registered at build time. It is however possible to use <addFilesToUninstaller> for that purpose. If this action is used with directories, the uninstaller will delete them regardless of the changes in its contents:

      <postInstallationActionList>
      ...
        <addFilesToUninstaller>
          <files>${installdir}/configuration/</files>
        </addFilesToUninstaller>
      ... 
      </postInstallationActionList>
    

    Also please note that the added directories must exists at the time the action is executed or it will be skipped. The <postInstallationActionList>for example is executed after the installation but before the creation of the uninstaller.

    You can find more information on these subjects in the following sections of our manual:

    https://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_add_files_to_uninstaller

    https://installbuilder.bitrock.com/docs/installbuilder-userguide.html#actionlist

Please sign in to leave a comment.