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: Global UI Property not working.
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
‎May 01, 2017
05:03 PM
Global UI Property not working.
I am trying to use a global property set in a custom dialog. The dialog has a check box with the property "INSTALLVSI2010". When this check box is checked, the property is set to "YES". I have validated that when the check box is checked, the property is present and set to "YES". When the check box is not checked, the property is not defined. Now I am trying to use this property in a component condition: "Level:1 INSTALLVSI2010="YES". When I run the installer, the component with this condition doesn't get installed whether the check box was checked or not. If I replace the check box property with a predefined property, say Mycondition=1 and update the component install condition accordingly - everything works as expected. However, I would like to set this condition in a check box. It looks like if the property is set in the property manager, then the check box is always checked, no matter what is the value. If the property is not defined and set in the dialog, then it is being ignored by the installer. Am I missing something here? Is there a way to create component level condition from a check box?
Thank you for your time,
Victor.
Thank you for your time,
Victor.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 02, 2017
01:02 PM
Features have an Install Level, but Components don't. How are you specifying the Level:1?
I use Conditions for Components and I usually just use something like INSTALLVSI2010 and leave out the ="YES". Then if it exists my Condition is satisfied and if it doesn't exist then not.
Chad
I use Conditions for Components and I usually just use something like INSTALLVSI2010 and leave out the ="YES". Then if it exists my Condition is satisfied and if it doesn't exist then not.
Chad
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 02, 2017
03:37 PM
Hi Chad,
Thank you for the prompt response.
I tried to use this condition in the feature condition first. When this did not work, I tried component condition with the same result. When I use it in the feature condition, I specify Install Level: 1. To do that I add condition to the feature and set level:1 and condition INSTALLVS2010="YES". The package install level is 100. I tried both INSTALLVS2010="YES" and just "INSTALLVS2010" with the same result.It always evaluates to FALSE. As I pointed out before, if I assign a value to the condition in the Property Manager, then everything works as expected, but when I set the same property in a custom dialog, then it doesn't work. I have a feeling that the condition gets evaluated before the UI action with this dialog gets executed, but I don't know how to validate this assumption. The dialog is created after the standard "Customer Information" dialog in response to the "Next" button event. Is it to late to set a feature condition at this point?
My goal is pretty simple: Install a feature based on a check box selection in a custom dialog. I am sure I am doing something wrong. Is there a right way to do it?
Victor
Thank you for the prompt response.
I tried to use this condition in the feature condition first. When this did not work, I tried component condition with the same result. When I use it in the feature condition, I specify Install Level: 1. To do that I add condition to the feature and set level:1 and condition INSTALLVS2010="YES". The package install level is 100. I tried both INSTALLVS2010="YES" and just "INSTALLVS2010" with the same result.It always evaluates to FALSE. As I pointed out before, if I assign a value to the condition in the Property Manager, then everything works as expected, but when I set the same property in a custom dialog, then it doesn't work. I have a feeling that the condition gets evaluated before the UI action with this dialog gets executed, but I don't know how to validate this assumption. The dialog is created after the standard "Customer Information" dialog in response to the "Next" button event. Is it to late to set a feature condition at this point?
My goal is pretty simple: Install a feature based on a check box selection in a custom dialog. I am sure I am doing something wrong. Is there a right way to do it?
Victor
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 02, 2017
05:48 PM
I think I have figured this out. Conditional levels are used when properties are defined in the property manager or set in the command line. For using dialog events to add/remove features one should use AddLocal/Remove.
I just tried it and it works as expected. The case is closed. 🙂
I just tried it and it works as expected. The case is closed. 🙂
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)