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
- :
- How to trap error
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 01, 2008
11:34 AM
How to trap error
Silent install is heavily used in my installation. and if there's an error messagebox popups that's not defined in my iss file (silent installation file). I'll get a negative result code in my silent install log.
Here's a common mistake/error I want to trap:
1. if I use a string table entry name that was misspelled, it will throw an error telling me that there no such entry in my string table
example. I have MSG_STATUS in my table entry and I misspelled it in my installscript code - @MSG_STATUSS <-- this will throw a message box and my code will immediately goto OnAbort(). Then my silent install will return a negative result.
How can I handle this. I want to trap it. try/catch block does not work.
Thanks.
Here's a common mistake/error I want to trap:
1. if I use a string table entry name that was misspelled, it will throw an error telling me that there no such entry in my string table
example. I have MSG_STATUS in my table entry and I misspelled it in my installscript code - @MSG_STATUSS <-- this will throw a message box and my code will immediately goto OnAbort(). Then my silent install will return a negative result.
How can I handle this. I want to trap it. try/catch block does not work.
Thanks.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 01, 2008
11:49 AM
InstallShield 2009 added a build error for a missing string-table entry as you describe it; for InstallShield 2008 and earlier, perhaps use LoadStringFromStringTable instead of the @STRING_ID syntax?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 01, 2008
09:07 PM
Thank you for replying. Is there another way to catch error aside from try/catch?
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)