I have a custom action that should only run on uninstall, but not run during
an upgrade. After browsing the list archives and other sites, I came up with
the following:

      <Custom Action='SetUnDeployParams'
After='MsiUnpublishAssemblies'>Installed AND (REMOVE="ALL") AND NOT
(UPGRADEFOUND OR UPGRADINGPRODUCTCODE)</Custom>
      <Custom Action='UnDeploy' After='SetUnDeployParams'>Installed AND
(REMOVE="ALL") AND NOT (UPGRADEFOUND OR UPGRADINGPRODUCTCODE)</Custom>


But the action is still being run during an upgrade. I can't figure out why,
given these log exerpts:

MSI (c) (AC:34) [13:59:18:455]: Doing action: FindRelatedProducts
Action 13:59:18: FindRelatedProducts. Searching for related applications
Action start 13:59:18: FindRelatedProducts.
FindRelatedProducts: Found application:
{4EBE949A-5DEE-11DF-A3C0-4BE0DED72085}
MSI (c) (AC:34) [13:59:18:455]: PROPERTY CHANGE: Adding UPGRADEFOUND
property. Its value is '{4EBE949A-5DEE-11DF-A3C0-4BE0DED72085}'.
Action ended 13:59:18: FindRelatedProducts. Return value 1.
...
MSI (s) (18:C0) [13:59:21:267]: PROPERTY CHANGE: Adding UPGRADINGPRODUCTCODE
property. Its value is '{C17B34D1-C56E-4BD7-8E2F-D20B06902E17}'.
...
Action ended 13:59:21: MsiUnpublishAssemblies. Return value 0.
MSI (s) (18:C0) [13:59:21:314]: Doing action: SetUnDeployParams
Action 13:59:21: SetUnDeployParams. 
Action start 13:59:21: SetUnDeployParams.



-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CustomAction-on-Uninstall-but-not-upgrade-tp5232029p5232029.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to