简体   繁体   中英

Install4j: Overriding default rollback

I am building my Installer using install4j 6.1.4. I have added an InstallerEventListener to the context for EventType.CANCELLING for adding manual rollback functions. But I believe this does not override the default rollback function of Install4j.

For some debug issue my customers require the "Failed installation" to conditionally stay as it is. Which means the customer would like to choose whether to perform the rollback or not.

Currently, I am using Util.showOptionDialog() inside the custom rollback. Even though if the user wants to keep the installation as it is and the rollback method does not do anything, the default rollback from install4j cleans up the installation.

Is there any way I can override/ diactivate the default rollback?

As of 6.1.5 there is no way to dynamically add rollback barriers while the rollback is in progress. I've added this feature request to the issue tracker.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM