|
From: Sanjay R. <sr...@no...> - 2010-06-29 05:15:58
|
use condition
(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")
cge wrote:
> 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.
>
>
>
>
|