R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Feature "install based on condition" broken with AI 10.5.2 ?

Hi,

I have some features, which are using a condition for installing (based on a recommendation on a previous support call via email). In particular, I have two feature (sets), the first one is using a condition like:

Code: Select all

AI_BUILD_NAME = "Server"
and the second a condition like:

Code: Select all

SystemLanguageID = 1036
for setting some predefined defaults for installing.

The idea is that a user has some preselected features, but is able to change the installation defaults. This was working until AI 10.5.1 perfectly: A default was selected, but the user was able to override the default selection with his custom choice.

Beginning with AI 10.5.2, the predefined selection is still selected. But if the user changes the predefined defaults during a first-time-installation, his settings will be ignored and the predefined default will be used instead for those features. When modifying the installation later on, it is still possible to change the feature install state independently from the defaults. But during first time installations, the users choice will be ignored any time.

Any idea why this could happen?

We also tested AI 10.5.1 for this issue and it works as expected.

Regards,

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

Re: Feature "install based on condition" broken with AI 10.5

Hi Roland,

There is an Advanced Installer issue (not only in 10.5.2) with the same behavior as you explained above. This issue is caused by the "UpdateFeaturesInstallStates" custom action that is automatically added in the Custom Action page when a condition is set for a feature in the Organization page. A fix will be available in a future version of Advanced Installer.

Meanwhile, you can try the following workaround:
- go in the Custom Actions page and delete the "UpdateFeaturesInstallStates" custom action
- add it again "without sequence"
- go in the Dialogs page, on the "CustomizeDlg" dialog and in the "Init Events" tab create a new "Execute custom action" event then choose the "UpdateFeaturesInstallStates" custom action from the "Argument" combobox

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Feature "install based on condition" broken with AI 10.5

Hi Eusebiu,

I tried as recommended, I found the CA at the end of the Wizard Dialogs Stage. I deleted it from there and added it again without sequence. Then I created a new event during init of the CustomDlg dialog.

Rebuild of setup and a test does not show the expected result. If I change the install state of a feature, which gets an default state via a custom action, setup will ignore my custom setting and always take the default install setting.

Do you need my project file or log files of the installation?

Regards,

Roland
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Feature "install based on condition" broken with AI 10.5

Hi Eusebiu,

indeed, if I do as recommended, then it works correctly. If I play around with the install conditions, AI will automatically add a second UpdateFeatureInstallState call to the sequence. This will again break the functionality. Manually deleting the sequenced UpdateFeatureInstallState_1 action helps here. Furthermore a condition AI_INSTALL for the UpdateFeatureInstallState action run during init of CustomizeDlg dialog will help to keep the current install state of the feature to default, if opening the setup in maintenance mode.

Thanks for helping!

Regards,

//R
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Feature "install based on condition" broken with AI 10.5

Hi Roland,

Thank you for sharing your results with us, I'm sure they will help other users with the same problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Luke
Posts: 22
Joined: Thu Oct 11, 2012 11:00 am

Re: Feature "install based on condition" broken with AI 10.5

A fix will be available in a future version of Advanced Installer.
I realise this is quite an old thread but I have just hit this problem in 9.6.1 and I was wondering whether a fix has been implemented yet?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Feature "install based on condition" broken with AI 10.5

Hi,

Unfortunately, the problem was not fixed yet, but a fix will be included in a future version of Advanced Installed. Meanwhile, you can use the workaround described above.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Luke
Posts: 22
Joined: Thu Oct 11, 2012 11:00 am

Re: Feature "install based on condition" broken with AI 10.5

OK, thanks for the update
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Feature "install based on condition" broken with AI 10.5

You're welcome. We'll let you know, on this thread, when the problem is fixed.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Feature "install based on condition" broken with AI 10.5

Hello,

This was fixed in version 11.5 of Advanced Installer released on September 25th, 2014.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”