Upgrade from less features to more features - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

DEV_cstanden
Posts: 2
Joined: Fri Dec 03, 2010 5:37 pm

Upgrade from less features to more features

Hello,

I have created an installer package with multiple features that are selectedable via the Custom dialog and public properties. This scenario occurs when I have installed a subset of the features and would like to upgrade to all of the features.

In one example:
The installation contains "FeatureA" and "FeatureB"
I have installed the application only with "FeatureA"
I have performed updates, rebuilt the package and now want to install with both features - performing an upgrade by first removing the product.
I have noticed that in this case that a registry value from "FeatureB" is not installed with the upgrade installation

Now I have run this test where the original installation is installed with both features and is successfully upgraded with both features

In the Upgrades tab, the upgrade action for "Enable Migrate Features action" is unchecked.
DEV_cstanden
Posts: 2
Joined: Fri Dec 03, 2010 5:37 pm

Re: Upgrade from less features to more features

I have noticed an entry in the log:

MSI (c) (C0:A8) [13:49:26:323]: MigrateFeatureStates: based on existing product, setting feature 'Pricing' to 'Absent' state.

In this case, the feature "Pricing" is my "FeatureB" in the above scenario.

Also I am attempting to run this from the command line in passive mode.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Upgrade from less features to more features

Hello,

I have tested this scenario and it seems you can add the same Upgrade Code in the "Upgrades" page. We will add an improvement regarding this in a future version.
If you don't want the "Migrate Feature States" option activated for your upgrades please follow these steps:
  • in the "Upgrades" page check the "Customize Advanced Installer upgrade rules" option
  • double click on the entry with the OLDPRODUCTS property from the upgrades list and in the "Upgrade Action" tab uncheck the "Enable Migrate Features action" option
Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”