Hello Experts, I have a simple question about upgrades and a condition I am using.
I have two MSIs A and B. (A is old and B is new) When I upgrade A with B, A was written a long time ago by someone else and they mismanaged upgrades, so I am trying to recuperate application generated files. The installer from A explicitly deletes these files so I created a CA that backups up the required files before RemoveingExistingFiles is called and restores them after InstallFinalize, this seems to be working well, I simply need a confirmation that I am not missing any details for the future packages. <Custom Action="CABackupRuntimeFolders" Before='RemoveExistingProducts'>WIX_UPGRADE_DETECTED AND NOT (REMOVE="ALL")</Custom> <Custom Action="CARestoreRuntimeFolders" After='InstallFinalize'>WIX_UPGRADE_DETECTED AND NOT (REMOVE="ALL")</Custom> Does this condition makes sense in all scenarios, we only run MajorUpgrades. I need this CA to run in the current package (B), and not the one being uninstalled (A). In my case it only gets executed in package B and not A. When C will exist one day, C will run this CA and not B... and so on. Thanks for sharing your expertise, Marc ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users