PDA

View Full Version : How do I run script during Rollback?



dfling
04-04-2002, 03:26 PM
My installation adds some registry entries by running a seperate program in script. If the user cancels the installation I would like to Rollback these changes. MSI does this automatically through there tables but I must enter these entries in script. Is there an ONRollback event or a way I could trigger a custom action based on the Rollback status of my project.

Thanks,

Dan Fling

Barbara
04-05-2002, 02:31 AM
You can add a customaction which is executed during rollback. (When YOu create the customaction choose the execution type "Rollback execution") In this custom action You can execute a script which does all the neccessary things. Be sure to add this custom action before Your original custom action in the sequence. I suppose that Your original custom action is executed in deferred mode, because only this custom actions can be rolled back.

Barbara