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: How can I detect what features are selected in Basic MSI Custom action
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 06, 2011
09:26 AM
How can I detect what features are selected in Basic MSI Custom action
I have an install that has many features. Each feature has things that need to be done after the installation if they were installed. How can I check to see if a feature was selected to be installed.
MsiGetFeatureState will tell me if it is installed local or going to be installed local but I need something more like FeatureIsItemSelected.
So using installscript in a Basic MSI custome action how can I check to see if the feature is selected or not?
Thank you
Brandon
MsiGetFeatureState will tell me if it is installed local or going to be installed local but I need something more like FeatureIsItemSelected.
So using installscript in a Basic MSI custome action how can I check to see if the feature is selected or not?
Thank you
Brandon
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 06, 2011
09:35 AM
You're headed down the right path. I think the mapping would be along the lines of ((is-installed and not-removing) or is-installing), where is-installed reflects the current state, and not-removing and is-installing each reflect the action state. The only other approach I know would be to use MsiEvaluateCondition on a condition string which checks the same thing using MSI's Conditional Statement Syntax.