ihsiu1
Posts: 17
Joined: Tue Feb 21, 2006 4:36 pm

rollback does not occur even my custom actions returns non-0

Hi,

The property of my Custom Actions which runs at ExecuteAction is set to "Synchronous execution, check return code", "Immediate Execution" & "Always Execute".

When it fails and returns non-0, I get the dialog saying "Your Application Setup Wizard ended prematurely" but the rollback does NOT occur.

Any idea?

Thanks,
ihsui
Mihai
Posts: 38
Joined: Wed Mar 23, 2005 12:19 pm

Hi,

If you scheduled your custom action in the InstallUISequence, after the ExecuteAction standard action, then it is normal to not have a rollback operation.

The rollback occurs only at the failure of an deferred action (standard or custom) which was scheduled between InstallValidate and InstallFinalize of the InstallExecuteSequence. That happens because there are no actions needed to be rolled-back until then, except your eventual custom actions.

Regards,
Mihai
Mihai Udrea
Advenced Installer Team
ihsiu1
Posts: 17
Joined: Tue Feb 21, 2006 4:36 pm

Hi Mike,

Thanks for your reply.

In this case, is there a way to invoke the automatic un-installation?

Thanks,
ihsiu
Mihai
Posts: 38
Joined: Wed Mar 23, 2005 12:19 pm

Hi,

The ExecuteAction standard action consist in the execution of the whole InstallExecuteSequence actions. The product is installed even if your custom action fails because your custom action is schedulled after ExecuteSequence and implicitly after the InstallFinalize standard action.

NO, it is not possible to automatically uninstall the application at the end of the installation.

You could schedule your custom action before the "ExecuteAction" standard action or in the InstallExecuteSequence.

All the best,
Mihai
Mihai Udrea
Advenced Installer Team

Return to “Common Problems”