How to run Immediate Execution Custom action after Deferred Execution custom action
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
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
Answers (5)
Please log in to answer
Posted by:
captain_planet
12 years ago
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.
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.
Posted by:
sanjaypakale
12 years ago
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
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
Posted by:
pjgeutjens
12 years ago
Posted by:
sanjaypakale
12 years ago
Posted by:
pjgeutjens
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.