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
- :
- Fail custom action without failing installation
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 18, 2008
12:01 PM
Fail custom action without failing installation
I have a dialog in my installation where a user enters a value into an edit box. When the user clicks the Next button, it calls a Custom Action (which is an InstallScript function) that does some validation and lookup on the value entered.
What I would like to do is prevent the user from leaving the dialog if the value does not validate correctly in the script. However, if I have the script return "-1", the installation fails completely.
What's the best way to approach this?
Additionally, I would like the Next button to be disabled until the user types at least one character into the Edit box, but the box doesn't seem to generate any trappable events (unless I am missing something).
Any help is appreciated...
What I would like to do is prevent the user from leaving the dialog if the value does not validate correctly in the script. However, if I have the script return "-1", the installation fails completely.
What's the best way to approach this?
Additionally, I would like the Next button to be disabled until the user types at least one character into the Edit box, but the box doesn't seem to generate any trappable events (unless I am missing something).
Any help is appreciated...
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 18, 2008
05:53 PM
I believe common practice is to have the action set a property value indicating whether the validation succeeded, and then to condition the NewDialog control event based on that property. (The order of control events is significant, so you might need to use the Move Up and Move Down commands to get the order to work.)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 19, 2008
10:31 AM
ok - that seemed to work. Thanks!