spaul@data.com.au
Posts: 5
Joined: Wed Jul 04, 2018 5:01 am

OLDPRODUCTS property not set in case of force Upgrade by changing Product Code

Fri Jul 06, 2018 1:59 am

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
Attachments
Works_AI.log
(59.41KiB)Downloaded 211 times
NotWorking_AI.log
(59.67KiB)Downloaded 227 times


Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: OLDPRODUCTS property not set in case of force Upgrade by changing Product Code

Fri Jul 06, 2018 10:18 am

Thank you for your follow up on this.

I am glad that you got the resolution.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”