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
- :
- Feature-State vs. Feature-Action in Basic MSI
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
‎Jul 18, 2007
11:15 AM
Feature-State vs. Feature-Action in Basic MSI
I have read the Help topic, "Conditional Statement Syntax", but am still not totally clear on the difference between Feature-State and Feature-Action.
I have a Basic MSI installation where during the initial install, a dialog (MyDialog) is conditionally displayed based on whether the user has selected a specific feature for install in the CustomSetup dialog. To do this, I am using &FeatureName=3 in a Next button event of CustomSetup.
However, I also want to display MyDialog during the maintenance install if the user has selected the feature, but not display it if he has decided not to install the feature. This is the part I am having a problem with.
Any suggestions?
I have a Basic MSI installation where during the initial install, a dialog (MyDialog) is conditionally displayed based on whether the user has selected a specific feature for install in the CustomSetup dialog. To do this, I am using &FeatureName=3 in a Next button event of CustomSetup.
However, I also want to display MyDialog during the maintenance install if the user has selected the feature, but not display it if he has decided not to install the feature. This is the part I am having a problem with.
Any suggestions?
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2007
12:48 PM
Something like this should do it:
&FeatureName=3 Or (!FeatureName=3 And Not &FeatureName=2)
&FeatureName=3 Or (!FeatureName=3 And Not &FeatureName=2)
Stefan Krueger
InstallSite.org
InstallSite.org
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2007
01:19 PM
That solution worked perfectly. Thank you!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 09, 2010
12:03 AM
I still didnt get it 😞
can you tel me whats the difference between the feature action and feature state??
Mano
can you tel me whats the difference between the feature action and feature state??
Mano
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2010
06:47 AM
Feature state is the state the feature is in when the setup program starts. For a first time install this would be "absent", later - in maintenance mode or uninstall - it might be "local" (or still "absent" if the user un-selected the feature on the custom instalaltion dialog).
Feature action is the state that the setup will put the feature in, i.e. what it will be at the end of the setup. In this case "absent" means the feature will be uninstalled.
Feature action is the state that the setup will put the feature in, i.e. what it will be at the end of the setup. In this case "absent" means the feature will be uninstalled.
Stefan Krueger
InstallSite.org
InstallSite.org