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: Staying with current Dialog box when Next button clicked for some condition
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
Mar 05, 2015
09:33 AM
Staying with current Dialog box when Next button clicked for some condition
I have a custom dialog box with multiple check boxes, if user does not select any check box and clicking Next, it should popup a message saying that atleast select one and prevent going to next dialog box. I created custom action and my installscript posts message box, but clicking on 'OK' button of this message box going to next dialog box. But I want to stay with current dialog box. I am triggering this custom action in DoAction event of Next button.
Please let me know how do I stay with current dialog box after displaying message.
Thanks in advance.
Please let me know how do I stay with current dialog box after displaying message.
Thanks in advance.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 06, 2015
08:42 AM
It sounds like you're using a Basic MSI. If that's the case, you will need to put a condition on the NewDialog event on that same Next button, and control whether that condition is true by setting properties in your InstallScript code.
As an aside, you should strongly consider using MsiProcessMessage rather than MessageBox when in an MSI project, if you aren't already, as it will ensure the message window is properly parented and more likely to get focus.
As an aside, you should strongly consider using MsiProcessMessage rather than MessageBox when in an MSI project, if you aren't already, as it will ensure the message window is properly parented and more likely to get focus.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 06, 2015
09:07 AM
MichaelU wrote:
It sounds like you're using a Basic MSI. If that's the case, you will need to put a condition on the NewDialog event on that same Next button, and control whether that condition is true by setting properties in your InstallScript code.
As an aside, you should strongly consider using MsiProcessMessage rather than MessageBox when in an MSI project, if you aren't already, as it will ensure the message window is properly parented and more likely to get focus.
Thanks Michael.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 05, 2019
05:09 AM
Hi
Can you please pass here some example.
you issue seems same as i'm looking for.
stay on same dialog when pressing next when condition is true.
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 06, 2019
09:10 AM
The warning dialog box should be generated with a "SpawnDialog" event (as opposed to a "NewDialog"). That will leave the originating dialog in play. Then when you click the OK button it's behaviour event needs to be set to EndDialog|Return
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)