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 ?
InstallInitialize------ Rollback_startservice----- RemoveExistingProduct-----
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.