Conditional Install Level - 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!

srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Conditional Install Level

Hello,

I want to install a feature only when a condition is met. To do this I have selected a feature, clicked on the 'Conditional install level" added 2 conditions, one for level 1 and another for level 2 and in the 'greater than' field I have selected 1. But as soon as I navigate away from the page the selection get reset to 'Installed by defaut'. Why is this happeneing?

Cheers
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Conditional Install Level

Hi,
I want to install a feature only when a condition is met. To do this I have selected a feature, clicked on the 'Conditional install level" added 2 conditions, one for level 1 and another for level 2
Please note that the correct approach is this:
- set the feature to be installed by default or to be disabled
- create two conditional install levels:
a) when the condition is true set the install level to 1 (typical) or 4 (complete)
b) when the condition is false set the install level to 0

A typical installation of a feature will install the sub-features using their configurations. A complete installation of a feature should install all sub-features. With the above approach the feature will be installed only if your condition is true.
and in the 'greater than' field I have selected 1.
Please note that the "Install the feature only if INSTALLLEVEL property is greater than" option is not related to the conditional install level. This property affects all features, while the conditional install level affects only the feature which uses it. Also, the conditional install level does not affect the INSTALLLEVEL property.
But as soon as I navigate away from the page the selection get reset to 'Installed by defaut'.
Unfortunately we are unable to reproduce this behavior on our test machines. Please try using the approach I explained and let me know if the problem persists.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Conditional Install Level

Hi Cosmin,

Your explaination is clear. I would prefer this type of explaination in your help file (If it is already there, it better be visible easily when pressing the 'F1' when on a 'contitional level' dialog. We SW engineers are spoiled a lot by the Google).

What I was doing was created a condition and gave it a value 0 and another one and gave it a value one. I think values upto four are assigned for disabled, typical, custom and so on. Now I created conditions with values above 4 and it works.

Thanks for your explaination.

Return to “Common Problems”