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

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.

  1. First add multiple Language in your project (EX: Eng and Jap)
  2. Expand the User Interface.
  3. Click String Editor table.
  4. Create a string for both eng and jap languages 
  5. In value column of newly created string add value different for both language(Refer screenshot)
  6. Now to installscript view and add below code
  7. 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;

  8. Go to Release and select both Eng and Jap in UI language field
  9. Save and build 
  10. Now install in English in OS machine, we will see English message
  11. When we install in Japanese OS machine, Japanese message will be displayed

    Additional Information

    Click here for localization help 

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Apr 13, 2022 09:03 AM
Updated by:
Contributors