cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vvatclor
Level 3

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.
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

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?
0 Kudos
vvatclor
Level 3

Thank you for replying. Is there another way to catch error aside from try/catch?
0 Kudos