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: Prevent user from unselecting 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
‎Jan 06, 2011
08:46 PM
Prevent user from unselecting features
Hi there!
I would appreciate it very much if some one helps me with this issue.
This is InstallScript project.
There is a "Feature 1" which has 2 subfeatures: "Feature 1a" and "Feature 1b".
I want to prevent user from unselectiong both "Feature 1a" and "Feature 1b" at the same time. Either one can be unselected, but not both.
If both unselected, and user pressed Next button, message box pops up, warning the user.
Please see attachments 1 and 2.
Thanks
I would appreciate it very much if some one helps me with this issue.
This is InstallScript project.
There is a "Feature 1" which has 2 subfeatures: "Feature 1a" and "Feature 1b".
I want to prevent user from unselectiong both "Feature 1a" and "Feature 1b" at the same time. Either one can be unselected, but not both.
If both unselected, and user pressed Next button, message box pops up, warning the user.
Please see attachments 1 and 2.
Thanks
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 07, 2011
07:08 AM
My suggestion:
[SIZE="1"]
if (!FeatureIsItemSelected(MEDIA, "Feature1\\Feature1a") && !FeatureIsItemSelected(MEDIA, "Feature1\\Feature1b")) then
endif;
[/SIZE]
Place it in OnFirstUIBefore() & OnMaintUIBefore().
[SIZE="1"]
if (!FeatureIsItemSelected(MEDIA, "Feature1\\Feature1a") && !FeatureIsItemSelected(MEDIA, "Feature1\\Feature1b")) then
SprintfBox( INFORMATION, "%s", "Warning text" );
goto Dlg_SdFeatureTree;
endif;
[/SIZE]
Place it in OnFirstUIBefore() & OnMaintUIBefore().
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 10, 2011
10:54 PM
Holger_G wrote:
My suggestion:
[SIZE="1"]
if (!FeatureIsItemSelected(MEDIA, "Feature1\\Feature1a") && !FeatureIsItemSelected(MEDIA, "Feature1\\Feature1b")) thenSprintfBox( INFORMATION, "%s", "Warning text" );goto Dlg_SdFeatureTree;
endif;
[/SIZE]
Place it in OnFirstUIBefore() & OnMaintUIBefore().
Thank you Holger for your help.
I added it to OnFirstUIBefore() and it works when installing.
But where can I find that OnMaintUIBefore() method? It's not in my Setup.rul. How to add it? Or, where to place the code, so it could be called during uninstalling the features?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 11, 2011
12:01 AM
Hey you can add OnMaintUIBefore from the InstallScript view.
at the extreme right hand in this view you'll have two drop down.........
you'll find it there.
"Feature_uninstalling" would work when a feature is selected for uninstall.
at the extreme right hand in this view you'll have two drop down.........
you'll find it there.
"Feature_uninstalling" would work when a feature is selected for uninstall.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 11, 2011
12:03 AM
rrinblue22 wrote:
Hey you can add OnMaintUIBefore from the InstallScript view.
at the extreme right hand in this view you'll have two drop down.........
you'll find it there.
"Feature_uninstalling" would work when a feature is selected for uninstall.
Thanks a lot 🙂