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
- :
- Another INSTALLLEVEL question
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 18, 2009
11:37 AM
Another INSTALLLEVEL question
I've been reading the posts on here regarding setting components conditionally via setting the INSTALLLEVEL but for some reason I can't get it to work.
Here it is: I have a dialog in my install where customer enters in some info. I evaluate it via InstallScipt and then set a property (CODEVALUE) based on this (property value set is either A, B or C). I have 3 different features for this install and based on the users choice in this dialog only 1 of these will get installed (A, B or C).
In my project, these 3 components all have an INSTALLEVEL of 200 so that they won't get installed by default. I added a condition to each one of these (i.e. Set Level to 1, Condition = CODEVALUE=A)
So when I'm testing, just before the install starts the file transfer I display the value of CODEVALUE and yes it's set correctly. However, after the install is complete, the component 'A' has not been copied. What gives? The property has been set and since it's set to a 1 it should copy.
Here it is: I have a dialog in my install where customer enters in some info. I evaluate it via InstallScipt and then set a property (CODEVALUE) based on this (property value set is either A, B or C). I have 3 different features for this install and based on the users choice in this dialog only 1 of these will get installed (A, B or C).
In my project, these 3 components all have an INSTALLEVEL of 200 so that they won't get installed by default. I added a condition to each one of these (i.e. Set Level to 1, Condition = CODEVALUE=A)
So when I'm testing, just before the install starts the file transfer I display the value of CODEVALUE and yes it's set correctly. However, after the install is complete, the component 'A' has not been copied. What gives? The property has been set and since it's set to a 1 it should copy.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 22, 2009
01:37 AM
just before the install starts the file transfer I display the value of CODEVALUE and yes it's set correctly.
You might have an issue with the visibility of the properties. Depending on how you have implemented your setup, you might have to pass your property as a custom action data to the custom action that actually uses this property.
Can you try to display the value of the property in the custom action that uses it?
Am I right in thinking that you are working on an MSI project?
Regards