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: queryExit event not executing
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
‎Aug 17, 2006
11:25 AM
queryExit event not executing
I created a custom dialog inthe Finish group. I added the event queryExit to the dialogs swing code. When the Finish button is click on the dialog none of the code in the queryExit event is executed. Would anyone know why this is, and what a work around might be?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 21, 2006
06:09 PM
This happened to me once before when I cut and paste some queryExit code from another panel into the code editor INSTEAD of first creating the event using the little event creator thing in the dialog code editor.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 23, 2006
11:16 AM
I had opened a support case for this problem. A support engineer sent me a sample project in which this was working. Comparing the code I found one small discrepenciy that made all the difference.
Our code in FrameFinish.java
The sample code had this
As soon as wizardUI.finish(false) was executed all other code is not executed and the install gracefully terminates. But if wizardUI.doNext() executes first the queryExit event is then executed on our custom dialog.
Our code in FrameFinish.java
SwingWizardUI wizardUI = (SwingWizardUI)context.getWizardUI();
if (isLast)
wizardUI.finish(false);
else
wizardUI.doNext();
The sample code had this
SwingWizardUI wizardUI = (SwingWizardUI)context.getWizardUI();
wizardUI.doNext();
if (isLast)
wizardUI.finish(false);
As soon as wizardUI.finish(false) was executed all other code is not executed and the install gracefully terminates. But if wizardUI.doNext() executes first the queryExit event is then executed on our custom dialog.