This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Deferred Custom Action - Rollback
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 30, 2007
07:56 AM
Deferred Custom Action - Rollback
During installation time of my product, I create an empty folderstructure.
The application I install, puts some files in there while it is running.
During complete uninstall, this folderstructure needs to be cleaned up/removed completely. Since the uninstaller only uninstalls the files/folders it has copied during installation time, I've created a deferred InstallScript custom action to take care of this.
I've read that every deferred custom action should have its rollback counterpart.
Any idea what this rollback custom action needs to do and where it needs to be sequenced?
Should it be rollback execution or rollback execution in system context?
The application I install, puts some files in there while it is running.
During complete uninstall, this folderstructure needs to be cleaned up/removed completely. Since the uninstaller only uninstalls the files/folders it has copied during installation time, I've created a deferred InstallScript custom action to take care of this.
I've read that every deferred custom action should have its rollback counterpart.
Any idea what this rollback custom action needs to do and where it needs to be sequenced?
Should it be rollback execution or rollback execution in system context?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 30, 2007
06:31 PM
The rollback action should be scheduled before the action it rolls back, and its implementation should undo/restore whatever the action did. (As for detecting a complete uninstallation, REMOVE="ALL" usually does the trick.)
The rollback action's use of "...in system context" should probably match the setting used by the action it rolls back. The documentation has more information about "in system context".
The rollback action's use of "...in system context" should probably match the setting used by the action it rolls back. The documentation has more information about "in system context".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2007
02:34 AM
Robert,
Ok, i understand where and how to schedule the rollback action.
But as my custom action removes a folderstructure, what should i initially do the be able to execute the rollback action? Should I backup the whole folderstructure myself before I remove it in the custom action or...? And I assume if no rollback occurs, I should cleanup the backed up folder but where do I do that...?
Ok, i understand where and how to schedule the rollback action.
But as my custom action removes a folderstructure, what should i initially do the be able to execute the rollback action? Should I backup the whole folderstructure myself before I remove it in the custom action or...? And I assume if no rollback occurs, I should cleanup the backed up folder but where do I do that...?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2007
08:25 AM
Should I backup the whole folderstructure myself before I remove it in the custom action or...?
Yes, I think that's the only way to be sure you can "undo" it.
And I assume if no rollback occurs, I should cleanup the backed up folder but where do I do that...?
If you do that in a "commit" custom action, it will happen when the install successfully completes.
Yes, I think that's the only way to be sure you can "undo" it.
And I assume if no rollback occurs, I should cleanup the backed up folder but where do I do that...?
If you do that in a "commit" custom action, it will happen when the install successfully completes.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)