This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Installlevel - What am I doing wrong ?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 02, 2009
10:42 PM
Installlevel - What am I doing wrong ?
Hello All,
I'm only wishing to install a feature based upon the value of a property that is set during the UI. I add the feature and set its InstallLevel = 0.
I then add a condition to that feature.
Level 1...... PROPERTY=1.
I figured that the initial state of the Feature is 0 therefore it will not be installed. However if PROPERTY=1 it sets the InstallLevel of the feature to 1.
However at runtime this just doesn't happen and although the PROPERTY=1 that feature is never installed. What have I missed or misunderstood about how the Feature Conditions are meant to work?
Many Thanks
I'm only wishing to install a feature based upon the value of a property that is set during the UI. I add the feature and set its InstallLevel = 0.
I then add a condition to that feature.
Level 1...... PROPERTY=1.
I figured that the initial state of the Feature is 0 therefore it will not be installed. However if PROPERTY=1 it sets the InstallLevel of the feature to 1.
However at runtime this just doesn't happen and although the PROPERTY=1 that feature is never installed. What have I missed or misunderstood about how the Feature Conditions are meant to work?
Many Thanks
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2009
12:34 PM
A feature is installed only if its InstallLevel value is less than or equal to the current INSTALLLEVEL value (check property manager). The initial InstallLevel value for your feature should be higher, and when the property is set, it should be set lower.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2009
05:29 PM
Thanks. I made those corrections.
The INSTALLLEVEL Property is set to 100.
The default Installlevel of my feature I have set to 200. (so it will not install by default). The condition is set to Level 1.... PROPERTY=1.
No matter what the property value is the feature is always installing.
I will have a look at other ways around this now as I cannot see I have done anything wrong reading the guidlines. The condition should be evaulated as false therefore it should never run. However something is evaluating the feature condition as true.
The INSTALLLEVEL Property is set to 100.
The default Installlevel of my feature I have set to 200. (so it will not install by default). The condition is set to Level 1.... PROPERTY=1.
No matter what the property value is the feature is always installing.
I will have a look at other ways around this now as I cannot see I have done anything wrong reading the guidlines. The condition should be evaulated as false therefore it should never run. However something is evaluating the feature condition as true.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 04, 2009
09:20 AM
Firstly, check the property dump at the end of your installation log and see if the value of your property is what you would expect, if not then your logic is wrong somewhere.
If the above is correct then you need to look at the sequencing. The installer decides whether or not to install a feature based on its install levels at the cost finalize stage. If your property is being set after that then it won't take affect
If the above is correct then you need to look at the sequencing. The installer decides whether or not to install a feature based on its install levels at the cost finalize stage. If your property is being set after that then it won't take affect
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 05, 2010
06:26 PM
Sorry for the delay in reply as I have been on an extended break over xmas.
You were right in that the CostFinalise runs before the Interface begins and it is from the interface from which I am setting the properties that are in the Features InstallLevel condition. Can I re-locate the CostFinalise to the point in the interface in which the properties are set ?
The goal is...
I have a feature that I only wish to install if a tick box has been ticked during the installation routine (I do not wish to provide access to the custom screem). What other options are available to achieve my goal. I dont really fancy having to place a condition against each of the components within that feature.
Apologies if this is a basic question. I am knew to Installshield. The other product I was using would allow for what I was attempting above with a condition containing properties sitting under a feature. I just need to know how this is done in InstallShield and I will be away.
Many thanks in advance.
You were right in that the CostFinalise runs before the Interface begins and it is from the interface from which I am setting the properties that are in the Features InstallLevel condition. Can I re-locate the CostFinalise to the point in the interface in which the properties are set ?
The goal is...
I have a feature that I only wish to install if a tick box has been ticked during the installation routine (I do not wish to provide access to the custom screem). What other options are available to achieve my goal. I dont really fancy having to place a condition against each of the components within that feature.
Apologies if this is a basic question. I am knew to Installshield. The other product I was using would allow for what I was attempting above with a condition containing properties sitting under a feature. I just need to know how this is done in InstallShield and I will be away.
Many thanks in advance.
