- Revenera Community
- :
- InstallShield
- :
- InstallShield Knowledge Base
- :
- How to Localize Messagebox in Basic MSI Project
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
How to Localize Messagebox in Basic MSI Project
How to Localize Messagebox in Basic MSI Project
How to Localize Messagebox in Basic MSI Project
Summary
How to Localize Messagebox in Basic MSI Project based on machine OS
Synopsis
How to Localize Messagebox in Basic MSI Project based on machine OS
Discussion
The Message box added in a installscript will be shown in english, even though if we add multi language support. To fix this we need to add a string table entry for specific message.
An entry for string Specific to particular message must be created for each language in the String Editor. The desired translation of the Message should be populated in the Value column. By default, this entry does not exist.
Resolution
To resolve this error message, Go to String editor table and check the specific string which caused this error.
- First add multiple Language in your project (EX: Eng and Jap)
- Expand the User Interface.
- Click String Editor table.
- Create a string for both eng and jap languages
- In value column of newly created string add value different for both language(Refer screenshot)
- Now to installscript view and add below code
-
function MyFunction(hMSI)
// To Do: Declare local variables.
begin// To Do: Write script that will be executed when MyFunction is called
MessageBox(@ID_STRING2,MB_OK);
end; - Go to Release and select both Eng and Jap in UI language field
- Save and build
- Now install in English in OS machine, we will see English message
- When we install in Japanese OS machine, Japanese message will be displayed
Additional Information
Click here for localization help