Upgrade installation does not install hidden sub features - Advanced Installer Community
ChapterOne
Posts: 7
Joined: Fri Feb 01, 2013 9:48 am

Upgrade installation does not install hidden sub features

Hello,

I've a problem while upgrade installtion within hidden sub features.
I'm using Advanced Installer Version 13.1.

The Application Upgrades are configured like this:
- Automatically upgrade older product versions
- Use original installation path when upgrading
- Uninstall old version first and then install new version

The installation has features like this:
  • Main Feature
    • Feature 1
      • Feature 1 Sub 32-Bit
        Feature 1 Sub 64-Bit
The Feature 1 is configured with
- General Feature Tree: Display Expanded
- Installation Behavior: Not installed

The Feature 1 Sub 32-Bit is configured with
- General Feature Tree: Not Displayed
- Installation Behavior: Installed and Disabled if VersionNT64
- Installation Settings: Use parent feature installation settings

The Feature 1 Sub 64-Bit is configured with
- General Feature Tree: Not Displayed
- Installation Behavior: Installed and Disabled if Not VersionNT64
- Installation Settings: Use parent feature installation settings

I've added the SetupTypeDlg to the dialog sequence with that the user can choise the type of installation.
I build 2 versions 1.0.0 and 1.0.1 of this installation with the same configuration and different Product Code of course.

With the following I can reproduce the possible issue with hidden sub features:
1. I start the installation 1.0.0 and choise custom installation.
2. At the step Custom Setup I don't change the features (Feature 1 is Entire feature will be unavailable).
3. The installation finished successfully with my choises.
3. After this I start the installation 1.0.1 to upgrade version 1.0.0.
4. I choise custom installation again.
5. At the step Custom Setup I select Will be installed on local hard drive for Feature 1.
6. The installation removed version 1.0.0 and finished version 1.0.1 successfully but the Feature 1 is not installed locally.

After all I start version 1.0.1 again and the step Custom Setup show me that Feature 1 is installed but it isn't installed there.

Can you help me please.

Thank you in anticipation.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade installation does not install hidden sub features

Hi,

Sorry for the delayed reply.

I'm not sure why you encounter this problem. Can you please send me the .AIP (project file), a verbose log of the first version's installation and one of the second version's installation, to support at advancedinstaller dot com, so I can investigate them and try to find the problem?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ChapterOne
Posts: 7
Joined: Fri Feb 01, 2013 9:48 am

Re: Upgrade installation does not install hidden sub features

Hello,

We sent the requested files via email to your support email.

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

Re: Upgrade installation does not install hidden sub features

Hi,

I looked over the files you sent and it seems that you encounter the same problem described in the "Upgrade from less features to more features thread. Can you uncheck the "Enable Migrate Features action" option as suggested there and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ChapterOne
Posts: 7
Joined: Fri Feb 01, 2013 9:48 am

Re: Upgrade installation does not install hidden sub features

Hi,

I tried this. While upgrade installation the features have to be selected again. Independent of if the features was installed or not.
This is only a workaround. It don't fix the problem we have, with the hidden feature installation within upgrades.
With uncheck the "Enable Migrate Features action" option, the user have to select all features again on every upgrade installation.

Is there another solution or do you work on a future improvement.

Best regards
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade installation does not install hidden sub features

Hi,

You can try the following solution:
- check the "Enable Migrate Features action" option again
- on the "Next" button of the dialog that displays the features, use the "Install one or more features locally" event to install a feature (e.g. Feature 1 Sub 32-Bit)
- use a condition to install the feature only if its parent feature is selected and if the machine bitness the related one (e.g. ((&Feature_1 = 3) AND NOT (!Feature_1 = 3)) AND NOT VersionNT64)
- use the "Uninstall one or more features" event to uncheck that feature if the parent feature is not selected
- build and run the project

Let me know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ChapterOne
Posts: 7
Joined: Fri Feb 01, 2013 9:48 am

Re: Upgrade installation does not install hidden sub features

Hi,

we tried this also.
In a small installation (e.g. the sample project) it's possible to use it in this way.
But in our installation we have many feature and sub features and it should be also possible to upgrade the installation in silent mode.
Therefore I think your solution will not work for us.
But thank you for trying to help me.

Do you think that this problem I had described is an issue of the Advanced Installer and will be fixed in the future?

Best regards
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade installation does not install hidden sub features

Hi,

If the application will be upgraded in silent mode, no UI will be displayed for the user to change the states of the features. However, they can be changed through the "ADDLOCAL" and "REMOVE" properties which behave just as the events I mentioned in my previous post.

The "MigrateFeatureStates" action is a Windows Installer action and it seems that this is its default behavior. So, this is not an Advanced Installer issue that we can fix in the future.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ChapterOne
Posts: 7
Joined: Fri Feb 01, 2013 9:48 am

Re: Upgrade installation does not install hidden sub features

Hi,

Sorry for the delayed reply.
We are still in testing the behavior of silent installation.
I'll answer again if we get results.
But thank you in advance for the information.

Best regards
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade installation does not install hidden sub features

You're welcome.

Just let me know if you encounter any problem.

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

Return to “Common Problems”