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
- :
- Checking selected features
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
‎Sep 20, 2013
10:16 AM
Checking selected features
How can I check which features are selected to be installed? (Basic MSI project).
Strangely, IS allows me to link SQL Scripts and files to specific features, but not custom actions and IIS components (App Pools, Virutal Directories, etc...)
When creating custom actions we can set a condition, so I thought maybe I can have a condition like "IF FEATURE X SELECTED"
How can I accomplish this?
Strangely, IS allows me to link SQL Scripts and files to specific features, but not custom actions and IIS components (App Pools, Virutal Directories, etc...)
When creating custom actions we can set a condition, so I thought maybe I can have a condition like "IF FEATURE X SELECTED"
How can I accomplish this?
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 20, 2013
10:57 AM
Thanks 🙂 this seems to work.
IT looks like I can't do the same to custom actions and dialogs, since they are not registered as components, yeah? Is there a workaround?
IT looks like I can't do the same to custom actions and dialogs, since they are not registered as components, yeah? Is there a workaround?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 20, 2013
11:01 AM
Raffee wrote:
How can I check which features are selected to be installed? (Basic MSI project).
Strangely, IS allows me to link SQL Scripts and files to specific features, but not custom actions and IIS components (App Pools, Virutal Directories, etc...)
When creating custom actions we can set a condition, so I thought maybe I can have a condition like "IF FEATURE X SELECTED"
How can I accomplish this?
To determine if a feature is selected do something like this in your CA..
if (MsiEvaluateCondition(hMSI,"Not Installed And &YourFeatureName=3") = MSICONDITION_TRUE ) then
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 20, 2013
11:10 AM
Raffee wrote:
Thanks 🙂 this seems to work.
IT looks like I can't do the same to custom actions and dialogs, since they are not registered as components, yeah? Is there a workaround?
For Dialogs you can add a condition to the 'NewDialog' Event (this is typically on the 'Next' button of the previous dialog). A condition might look like this:
(FEATURE_SELECTION_IS_VALID="1") AND &YourFeatureName=3