windows installer - WIX Major Upgrade : Run a custom action in the second run -


we have installation scenario before doing major upgrade product need to
backup configuration/resource files , later sync them.

so run custom action backup files :

<installexecutesequence> ..       <custom action='backupappfolder' before="removefiles">         <![cdata[(installed , not remove="all") or (upgradingproductcode)]]>       </custom>  .. </installexecutesequence> 

and major upgrade scheduled

<majorupgrade allowdowngrades="no" downgradeerrormessage="!(loc.downgrademessage)"               schedule="afterinstallinitialize"/> 

'sync' action scheduled

<installexecutesequence> ..        <custom action='resourcesync' before="installfinalize">        (installed , not remove = "all" , not wix_upgrade_detected )              or (not installed , wix_upgrade_detected)        </custom>  .. </installexecutesequence> 

i want schedule resourcesync action such runs during
-- repairs / patches
-- second run of major upgrades i.e. install of new product
-- minor upgrades

and not run during
-- uninstall
-- fresh installation
-- first run of major upgrade i.e. uninstall of existing product

edit : problem above , runs in first phase of major upgrade also.

try next:

reinstall or patch or (wix_upgrade_detected , not remove="all") 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -