PDA

View Full Version : Roll back based on user input??



GunbladeVIII
01-05-2009, 04:42 PM
Hello all,

I've tried to search to find something like this, but wasn't able to.

I'm very new at InstallShield development, so apologies if I don't frame this quite right.

I have a merge module basic MSI project, and need to create a custom action that runs a Perl script on the system. The problem is that this Perl script needs to run after all of the files have been installed, and based on the return code of that Perl script, I need to offer users a choice of whether they want to roll back or not.

So the custom action runs the Perl script, grabs its return code, and if it's 2, then I need to have a dialog box asking the users if they want to cancel the installation that has just completed and roll back, or keep it.

I know that this custom action has to be the last deferred custom action, but it seems that once I get to the deferred sequence, I can no longer have dialog boxes. If so, is what I'm describing impossible?

Thank you so much for your help.