Hi all,

I have two custom action CA1 and CA2. CA1 will run under Deferred Execution mode, internally it will execute one exe which is installed along with msi. After CA1 I want to run CA2 custom action under Immediate Execution. I have set the sequence for CA2 is After CA1. But when I try to install the MSI first CA2 is executing and then CA1 is executing.

Please suggest me how to run the Immediate Execution custom action after Deferred Execution custom action.

Thanks in advance.
Sanjay
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Sanjay,

You probably want to read up on the installation phases for windows installer: http://www.installsite.org/pages/en/isnews/200108/index.htm

What's probably happening is you have CA1 and CA2 running between InstallInitialise and InstallFinalise. When the installer reads the InstallExecute sequence, it will reach your CA1 action first and write it to an installation script (and not actually execute it since it's Deferred), then it will reach your CA2 afterwards and execute it (since it's Immediate). When it reaches InstallFinalise, it will then execute all your Deferred CA's (which have been written to the Installation script) in a separate process. Make sense?

So, as a solution, if your CA2 really should execute immediately (and after CA1), then schedule it straight after InstallFinalise. Otherwise leave it where it is and make it deferred too.
Answered 12/26/2011 by: captain_planet
Third Degree Brown Belt

Please log in to comment
0
Thanks for your reply.

I think we cannot set the sequence one CA in Deferred and other in Immediate. Is there a way where I can run a custom action in Immediate Execution after copying of all installed files??

Please help me to run custom action in Immediate mode after copying of the files in installed location.

Thanks,
Sanjay
Answered 12/27/2011 by: sanjaypakale
Senior Yellow Belt

Please log in to comment
0
I'm pretty sure I already answered your question in your other thread.
The only Immediate execution after the installation of files is the part after InstallFinalize.

Kr,

PJ
Answered 12/27/2011 by: pjgeutjens
Red Belt

Please log in to comment
0
Thanks.
But if I put my Custom Action after InstallFinalize, based on the CA condition I have to abort the installation and in InstallFinalize I cannot Abort the installation. It is end of installation.
Is there a way where I can Rollback even after InstallFiinalize also.

Thanks,
Sanjay
Answered 12/27/2011 by: sanjaypakale
Senior Yellow Belt

Please log in to comment
0
Is there a way where I can Rollback even after InstallFiinalize also.

Sorry, No

Why does your CA absolutely have to be in immediate context? If the only problem is accessing properties in deferred, I linked you a thread on this site on how to make properties available to deferred custom actions.
Answered 12/27/2011 by: pjgeutjens
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity