deb and rpm uninstall: remaining directories

Comments

2 comments

  • Avatar
    juanjo

    Which directories are not deleted? If you are positive at the end of the uninstallation that they should be deleted, you could use the below code:

    <postUninstallationActionList>
            <deleteFile path="${installdir}/logs"/>
            <deleteFile path="${installdir}/temp"/>
            <deleteFile path="${installdir}"/>
                 <ruleList>
                    <fileTest>
                       <condition>is_empty</condition>
                       <path>${installdir}</path>
                    </fileTest>
                </ruleList>
            </deleteFile>
    </postUninstallationActionList>
    

    Please note that it just tries to delete ${installdr} if it is empty. That prevents issues if for example the user selected / as installdir by mistake.

  • Avatar
    Kai Heitkamp

    deb: ${installdir} (../MyApp), all subdirs are deleted.

    rpm: All dirs are not deleted, files only.

    Strange is that the normal InstallBuilder uninstaller works fine!

Please sign in to leave a comment.