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
Related Articles
How to Localize Product Name in Installscript MSI Project 4Number of Views Convert a Basic MSI Project to an InstallScript Project 3Number of Views Perform Major Upgrade of InstallScript MSI Project with Basic MSI 3Number of Views Basic MSI Project: Components Getting Installed Dynamically 4Number of Views Implementing Setup Types in a Basic MSI Project 3Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago