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
- :
- WaitOnDialog returns -1
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 28, 2008
02:02 PM
WaitOnDialog returns -1
I've created a new dialog with EzDefineDialog("myname", ISUSER, "myname", NULL). When I call WaitOnDialog("myname") it returns -1. This is an InstallScript project in InstallShield 2008. Any ideas? :confused:
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 28, 2008
05:10 PM
The help topic "Using InstallScript to Implement Custom Dialogs" has a bit more background information; is the dialog name in EzDefineDialog the same (including capitalization) as the name in the Dialogs view? Does EzDefineDialog return success even though WaitOnDialog doesn't?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 29, 2008
08:55 AM
I did verify the dialog name in the EzDefineDialog call is the same as the name in the Dialog views. And yes, EzDefineDialog does return success. Is there an option or setting that needs to be set somewhere? I imported a custom dialog from another InstallScript project that works in the original project but won't work in my current one. I get the same error on WaitOnDialog. the error message says "Setup has detected a possible infinite loop in the script withfunction WaitOnDialog. ...error 440. I did look at the article you suggested and had actually used that exact example to test a custom dialog when mine wasn't working. It didn't work either - same error. Any other ideas?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 29, 2008
10:05 AM
Update - I got my new custom dialog to work - not exactly sure how but the WaitOnDialog finally returned properly and went into the switch to wait for user input. The custom dialog I imported from another project, in which it works, is STILL not working. I made sure the Resource ID in the DirectEditor view was different for the two dialogs and used their respective ID's in the EzDefineDialog call, which is: EzDefineDialog("customdialog", ISUSER, "customDialog", 0) -- for the dialog that works and EzDefineDialog("importedcustdialog", ISUSER, "importedcustdialog", 5) ...I've tried using NULL instead of the ResourceID also and that doesn't work but DOES work in the original project! Still looking for ideas on the dialog that doesn't work....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 29, 2008
10:09 AM
SOLUTION! OK, sorry for so many posts but maybe someone can tell me WHY what I found works. I made the ResourceID for both custom dialogs = 0 in the DirectEditor and used 0 in the EzDefineDialog call as the ResourceID (EzDefineDialog("importedcustom", ISUSER, "importedcustom", 0)) and they both work now!:)