installationwindows-installerinstallshieldrollbackmajor-upgrade

How to execute a Rollback custom action after RemoveExistingProduct custom action in Rollback Scenerio during Major Upgrade?


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 ?

  1. 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-----

  1. "StartService" standard action is not called in "RemoveExistingProduct" standard Action
  2. 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?


Solution

  • Schedule the rollback action before the InstallExecute standard custom action.