cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Diablo_m
Level 4

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"
Labels (1)
0 Kudos
(1) Reply
hidenori
Level 17

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.
0 Kudos