Migrating our product installer from Wix to Advanced Installer.
Problem description -
We have a 4 dot version with the last being the Build Number( e.g. 7.0.6.42076)
I need to invoke an upgrade with the change of build number as I need to run an action to backup a few directories before a re-install.
How to reproduce
I am using the OLDPRODUCTS to detect the upgrade and invoking a change of Product Code on every build, but this does not fill OLDPRODUCTS.
Installer Log
MSI (c) (5C:5C) [10:29:20:564]: Invoking remote custom action. DLL: C:\Users\spaul\AppData\Local\Temp\MSI60D7.tmp, Entrypoint: OnDetectSoftware
Action ended 10:29:20: AI_DetectSoftware. Return value 1.
MSI (c) (5C:00) [10:29:20:566]: Doing action: FindRelatedProducts
Action 10:29:20: FindRelatedProducts. Searching for related applications
Action start 10:29:20: FindRelatedProducts.
Action ended 10:29:20: FindRelatedProducts. Return value 1.
By explicitly changing the 3rd . verios for ege to 7.0.7.42076, this invokes a Product Code change...it works
Installer Log
MSI (c) (14:2C) [10:37:09:247]: Invoking remote custom action. DLL: C:\Users\spaul\AppData\Local\Temp\MSI87A9.tmp, Entrypoint: OnDetectSoftware
Action ended 10:37:09: AI_DetectSoftware. Return value 1.
MSI (c) (14:70) [10:37:09:257]: Doing action: FindRelatedProducts
Action 10:37:09: FindRelatedProducts. Searching for related applications
Action start 10:37:09: FindRelatedProducts.
FindRelatedProducts: Found application: {8805B140-7887-438B-9E30-B5245520A794}
MSI (c) (14:70) [10:37:09:258]: PROPERTY CHANGE: Adding OLDPRODUCTS property. Its value is '{8805B140-7887-438B-9E30-B5245520A794}'.
MSI (c) (14:70) [10:37:09:258]: PROPERTY CHANGE: Adding MIGRATE property. Its value is '{8805B140-7887-438B-9E30-B5245520A794}'.
Action ended 10:37:09: FindRelatedProducts. Return value 1.
MSI (c) (14:70) [10:37:09:258]: Doing action: LaunchConditions
Action 10:37:09: LaunchConditions. Evaluating launch conditions
Environment -
Ai 14.9