Why uninstall does not revert old files ?

Answered

Comments

2 comments

  • Avatar
    wojciechka

    You need to use <restoreRollback/> action which will restore files from rollback directory after uninstallation finishes. The <restoreRollback/> action is undocumented and unsupported for now.

    <project>
      <uninstallerName>uninstall servicepack</uninstallerName>
      <enableRollback>1</enableRollback>
      <rollbackBackupDirectory>${installdir}/servicepackRollbackDirectory</rollbackBackupDirectory>
      <!-- restore files on rollback -->
      <postUninstallationActionList>
        <restoreRollback/>
      </postUninstallationActionList>
      <!-- ... -->
    </project>
    

    The original question has also been updated to reflect this.

  • Avatar
    Mahantesh

    rollback not working can you provide complete code to demonstrate rollback

Please sign in to leave a comment.