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
- :
- FeatureSelectItem
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
‎Aug 07, 2008
02:59 PM
Filtering Components in an InstallScript (non-MSI) Project
Is there any sample code on how to implement an OnFilterComponents override - to filter on something other than on OS or Language -- in an InstallScript project (non-MSI)?
The doco seems to suggest moving to separate Features instead of Components. Unfortunately, the Feature level is also the level at which the user selects what is to be installed, and the goal here is to manage installation of components at a level below that where the end-user sees this.
Basically, we're building an install in which the entry of a key code and other custom UI selections are made that result in which components are installed. The app also includes thousands of files, so it would be best if the dynamic component creation feature is used, to avoid having thousands of lines of code hardcoded in the InstallScript.
Perhaps there is a feature-based solution that would work, if implemented correctly.
The doco seems to suggest moving to separate Features instead of Components. Unfortunately, the Feature level is also the level at which the user selects what is to be installed, and the goal here is to manage installation of components at a level below that where the end-user sees this.
Basically, we're building an install in which the entry of a key code and other custom UI selections are made that result in which components are installed. The app also includes thousands of files, so it would be best if the dynamic component creation feature is used, to avoid having thousands of lines of code hardcoded in the InstallScript.
Perhaps there is a feature-based solution that would work, if implemented correctly.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2008
03:55 PM
If nothing else, could you introduce a layer of hidden features (with Visible set to No) between the user-selectable features and the components, and then conditionally select and deselect those invisible features?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2008
04:27 PM
Yes, Thanks. That might work.
Is there an example of how to filter on a feature/subfeature in a non-MSI InstallScript project? Sadly, a search on this returns many hits on how to accomplish this in an MSI project, but little on how to do it in InstallScript.
I see that there are feature-specific function overrides ("FeatureName_Installing", etc), but what statements would go inside such a function? What variable should be set or method called inside the function override to tell the engine to not install the feature?
Or, is there some other way of coding this in an InstallScript?
How, in an InstallScript, do you code something like this:
Is there an example of how to filter on a feature/subfeature in a non-MSI InstallScript project? Sadly, a search on this returns many hits on how to accomplish this in an MSI project, but little on how to do it in InstallScript.
I see that there are feature-specific function overrides ("FeatureName_Installing", etc), but what statements would go inside such a function? What variable should be set or method called inside the function override to tell the engine to not install the feature?
Or, is there some other way of coding this in an InstallScript?
How, in an InstallScript, do you code something like this:
if (varA = 1)
do-not-install-this-feature (or feature A)?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2008
05:12 PM
I think FeatureSelectItem is the InstallScript function you want. (The help topic for that function describes how to refer to subfeatures in your code.)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2008
05:32 PM
Thanks. It looks like that will work.
The topic on FeatureSelectItem in the InstallScript Guide even has a sample.
The topic on FeatureSelectItem in the InstallScript Guide even has a sample.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)