Our current setup project created using vdproj needs to be migrated to WiX. During the process, we are facing problem while upgrading existing vdproj msi to WiX msi. The existing implementation performs some action on 'BeforeUninstall' event of Installer, which should not be called when upgrading, but on using WiX msi, this action is being called. How to skip this event while upgrading using WiX installer?
I have tried setting properties like 'PREVIOUSVERSIONSINSTALLED', 'NEWERPRODUCTFOUND' but still the action is called.