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
- :
- VBScript localization
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, 2007
05:42 AM
VBScript localization
My task is to write VBScript that will show localized message box.
I'v not found any information about reading from string tables from vbscript.
I've write the following script but it crashes with error. Please help me!!!
strMsg = ""
Set View = Database.OpenView("Select `Value` FROM `ISString` = `ID_ERR_NOT_ADMIN` AND `ISLanguage` = " & Session.Property("ProductLanguage"))
View.Execute
Do
Set Record = View.Fetch
strMsg = Record.StringData(1)
Loop
MsgBox strMsg, _
vbCritical + vbOKOnly, _
"My product installation"
I'v not found any information about reading from string tables from vbscript.
I've write the following script but it crashes with error. Please help me!!!
strMsg = ""
Set View = Database.OpenView("Select `Value` FROM `ISString` = `ID_ERR_NOT_ADMIN` AND `ISLanguage` = " & Session.Property("ProductLanguage"))
View.Execute
Do
Set Record = View.Fetch
strMsg = Record.StringData(1)
Loop
MsgBox strMsg, _
vbCritical + vbOKOnly, _
"My product installation"
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 17, 2007
09:45 AM
The ISString table is not available in the built MSI. You need to use a Windows Installer property in order to accomplish it. In the Property Manager, you can create a new localizable property.
Hope that helps.
Hope that helps.