Unfortunatelly we have changed the upgrade code in one of previous version, so we have to uninstall two products with different upgrade codes if user choose the upgrade option. Actually I able to add only one OLDPRODUCT item in upgrade form of IDE. Id there a way to do it with two previous version?
Hi Peter and welcome to Advanced Installer forums.
In order to be able to uninstall more products that have different Upgrade Codes, during the upgrade of an application, you can go in the "Upgrades" page, use the "Upgrade" toolbar button for each product that you want to uninstall and add the Upgrade Codes of those products in the "Upgrades" list.
Thanks for quick answer.
My intention would be to give an option to user to choose between removing previous product or installing it side-by-side.
When I have selected the option "allow side by side installs of different product versions" and added my previous product to upgrades list as OLDPRODUCTS
then it works fine, but it can remove only one previous product.
If I add these two previous products by upgrade button as UPGRADE_1 and UPGRADE_2 then installer does not recognize them and the option for remove/side-by-side does not appear. Do you have solution for this?
Regards
Peter
FindRelatedProducts: Found application: {7C0D7D21-E47C-4B9B-8935-97166871AD83}
MSI (c) (20:48) [17:06:24:527]: PROPERTY CHANGE: Adding UPGRADE_1 property. Its value is '{7C0D7D21-E47C-4B9B-8935-97166871AD83}'.
MSI (c) (20:48) [17:06:24:563]: PROPERTY CHANGE: Adding MIGRATE property. Its value is '{7C0D7D21-E47C-4B9B-8935-97166871AD83}'.
FindRelatedProducts: Found application: {66ADDDDE-755E-425A-A515-70666BC0DC42}
MSI (c) (20:48) [17:06:24:637]: PROPERTY CHANGE: Adding UPGRADE_2 property. Its value is '{66ADDDDE-755E-425A-A515-70666BC0DC42}'.
MSI (c) (20:48) [17:06:24:671]: PROPERTY CHANGE: Modifying MIGRATE property. Its current value is '{7C0D7D21-E47C-4B9B-8935-97166871AD83}'. Its new value: '{7C0D7D21-E47C-4B9B-8935-97166871AD83};{66ADDDDE-755E-425A-A515-70666BC0DC42}'.
Action ended 17:06:24: FindRelatedProducts. Return value 1.
MSI (c) (20:48) [17:06:24:747]: Doing action: LaunchConditions
...............
Action start 17:06:25: MigrateFeatureStates.
MSI (c) (20:48) [17:06:25:538]: Migrating feature settings from product(s) '{7C0D7D21-E47C-4B9B-8935-97166871AD83};{66ADDDDE-755E-425A-A515-70666BC0DC42}'
MSI (c) (20:48) [17:06:25:592]: MigrateFeatureStates: based on existing product, setting feature 'MainFeature' to 'Local' state.
MSI (c) (20:48) [17:06:25:610]: MigrateFeatureStates: based on existing product, setting feature 'Feature' to 'Local' state.
Action ended 17:06:25: MigrateFeatureStates. Return value 1.
Thanks for hint. I had UpgradeDlg in dialog sequence, but I had to upgrade conditions under event tab with UPGRADE_1 and UPGRADE_2. Now it is working.
Regards
Peter
FOLLOW US
Get the latest news in Application Packaging