In the old install, the property UPGRADINGPRODUCTCODE is set if the older
version is being removed by a major upgrade (=RemovePreviousVersions), so a
condition of NOT UPGRADINGPRODUCTCODE on a custom action will be true in the
older install as it's being uninstalled by an upgrade.

Signature
Phil Wilson [MVP Windows Installer]
----
> I have an installer class which runs some custom code on
> uninstallation. However, I only want to run this code if the
[quoted text clipped - 6 lines]
>
> Thanks.