Uninstall two previous versions - Advanced Installer Community
fegyoka
Posts: 3
Joined: Mon Apr 20, 2015 9:30 am

Uninstall two previous versions

Hi

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?

Regards
Peter
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall two previous versions

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.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fegyoka
Posts: 3
Joined: Mon Apr 20, 2015 9:30 am

Re: Uninstall two previous versions

Hi Eusebiu

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.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall two previous versions

Hi,

Did you add the "UpgradeDlg" dialog in the "Dialogs" page, so you can choose whether the older versions will be removed or not?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fegyoka
Posts: 3
Joined: Mon Apr 20, 2015 9:30 am

Re: Uninstall two previous versions

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
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall two previous versions

You're welcome Peter. I'm glad you got this working.

Juts let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”