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: String ID Validation for Strings Table
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 24, 2008
02:35 PM
String ID Validation for Strings Table
Hi,
In order to have a Global Installation, all the strings are added to String Tables:
Example: @IDS_MYString
Identifier -------------------- Value
IDS_MYString ------------------ My string Value
Usage:
MessageBox(@IDS_MYString, WARNING);
But I was surprised to find out; if there is a misspelling for the String Identifier such as the following: MessageBox(@ID_MStrng, WARNING);
the InstallShield 2008 compiler does not complain and builds the setup successfully?
Is there a way to get InstallShield to warn on this Error? Or Validate the script against the String Tables?
Thanks
In order to have a Global Installation, all the strings are added to String Tables:
Example: @IDS_MYString
Identifier -------------------- Value
IDS_MYString ------------------ My string Value
Usage:
MessageBox(@IDS_MYString, WARNING);
But I was surprised to find out; if there is a misspelling for the String Identifier such as the following: MessageBox(@ID_MStrng, WARNING);
the InstallShield 2008 compiler does not complain and builds the setup successfully?
Is there a way to get InstallShield to warn on this Error? Or Validate the script against the String Tables?
Thanks
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2008
06:11 PM
Alas, there's currently no validation by the compiler. One option, though it's a bit more typing, is to use LoadStringFromStringTable (instead of the @ operator) to load string table entries; at run time, anyway, you can catch missing entries.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2008
07:05 PM
Hi Robert,
The problem with @ and the LoadStringFromStringTable() as you mentioned is that they both only catch the error at runtime. ( When customer is reading them:( )
There should be a better way to address the issue.
This is a major shortcoming for over 10 years of development at InstallShield and now Macrovision as of 2004, given that everyone is moving to localization.
The problem with @ and the LoadStringFromStringTable() as you mentioned is that they both only catch the error at runtime. ( When customer is reading them:( )
There should be a better way to address the issue.
This is a major shortcoming for over 10 years of development at InstallShield and now Macrovision as of 2004, given that everyone is moving to localization.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2008
07:54 AM
Yes, this is currently a limitation. Please note that we are considering adding build-time validation of string table identifiers in .rul files for a future release. It's logged as issue IOC-000058433.
Debbie Landers
Macrovision Corporation
Debbie Landers
Macrovision Corporation
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2008
08:24 AM
Hi Debbie,
I am glad to hear you are planning to address this.
But from the sounds of the, am I guessing the timeframe to be for IS 2009 and not 2008 SP1?
Thanks
I am glad to hear you are planning to address this.
But from the sounds of the
Thanks
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)