Monday, 15 July 2013

deployment - How to skip action defined in Installer's BeforeUninstall function when upgrading to WiX -


Our current setup project needs to be migrated to YX using vdproj. During this process, we are facing the problem while updating the WiX MSI from existing vdproj MSI. The current implementation takes some action on the installer's 'first session' event, which should not be called when upgrading, but when using the YX MSI, this action is being called when using this WiX installer Skip?

I have tried to establish the properties like 'PREVIOUSVERSIONSINSTALLED', 'NEWERPRODUCTFOUND', but still action is taken.

If you are making a big upgrade to WiX then you should use the MajorUpgrad element. If an upgrade is in progress, then it will set the WIX_UPGRADE_DETECTED property as documented here:

I firmly recommend that you install custom action code to installer class Get away from the method and see that in the DTF managed code custom works, I do not know that you can call installer classes from YX anyway because they depend on the infrastructure in Instalalt DLL. Programming that are proprietary to Visual Studio


No comments:

Post a Comment