Rollback CA is not executed
Posted 10 May 2004 - 10:31
I have a problem with the execution of some custom action and I don't know what I'm doing wrong.
I have a custom action that only must execute when uninstalling my applicattion. I use for this action the condition REMOVE="ALL". And it works fine, being executed correctly.
For this custom action, I have wrote a rollback CA. It is sequence just before the CA and has the same condition REMOVE="ALL". This custom action manages the situation of an install/uninstall cancellation.
When I cancel an upgrade installation, both CA and rollback are executed fine, but when I install my application normally, and cancel the installer during an uninstallation, only the CA is executed. The rollback is not called.
I don't know what to do, so, if anyone can help me I will be thankful.
Posted 11 May 2004 - 02:57
I am not %100 sure, but i dont think that the rollback custom action needs to be conditioned does it? If it was rollback attributes set, then it should only be executed during the rollback anyway. You should test this.
Posted 11 May 2004 - 08:42
I have tried to eliminate my rollback CA conditions and that don't solve the problem.
When my rollback action has no condition set, it is executed (as expected) when I cancel a fresh installation. That's OK. The problem comes when I cancel an uninstallation process. I mean, I have my application correctly installed, I tried to uninstall it, and cancel the uninstallation before it finish. If I do that, my rollback action is not executed.
I don't know how it is possible if my rollback action has no conditions. So, I still need help. Anyone knows what is happening??
Thank you very much.
Posted 11 May 2004 - 23:31
Maybe run the install with log mode and this might tell you why the action is not being executed.
Posted 13 May 2004 - 15:23
I don't understand why the rollback action would be run when you cancel a fresh install, but I assume this will change the install into uninstall mode and hence the condition REMOVE='ALL' will be valid.
Posted 18 August 2004 - 17:29
->Rollback CA from DLL doen't work if UI is basic...
It's an MSI bug (version 2.0). When you uninstall an application, the install runs in basic UI mode. If in basic UI mode and press cancel, your rollback custom actions don't run. If the uninstall fails for another reason, your rollback CAs do run. I worked round it by disabling cancel button after InstallInitialize.