There is a installer with the custom action in the following order : InstallInitialize (Standard Action)-- RemoveExistingProduct(Standard Action)--- Few Custom Actions---- StartService (StandardAction)
Before StartService ,when the rollback happens during Major Upgrade , RemoveExistingProduct will execute . On completion of RemoveExistingProduct , I Observe an application service is enabled through a custom action but it is not started .
How to schedule or start the service in this case ?
- If I write a rollback custom action : Rollback_startService and schedule as below , RemoveExistingProduct standard action throws an error saying incorrectly sequenced.
InstallInitialize------ Rollback_startservice----- RemoveExistingProduct-----
- "StartService" standard action is not called in "RemoveExistingProduct" standard Action
- Cannot Sequnce "RemoveExistingProduct" in any other place as "UPGRADINGPRODUCTCODE" property is used in multiple places throughout the installer
Either through "StartService" standard action or "Rollback_startService" custom action , a service need to be started . What is the best way to resolve this issue?
Schedule the rollback action before the InstallExecute standard custom action.