(Switch) Inno Setup entry (7) -- provides installation language options

Source: Internet
Author: User

This article Reprinted from: http://blog.csdn.net/yushanddddfenghailin/article/details/17250803

There is a ages folder under the Inno Setup installation directory. This folder provides languages for use. By adding the [ages] segment to the script, you can implement this function. The implementation code is as follows:

[Setup]

; Global settings, this section is required

Appname = test

Appvername = test

Defaultdirname = "E: \ test"

Appversion = 1.0

Compression = lzma2/MAX

Showemediagedialog = Yes

[Ages]

Name: "en"; messagesfile: "compiler: Default. isl"

Name: "CS"; messagesfile: "compiler: Ages \ chinesesimp. isl"

 

[Files]

Source: "F: \ Desktop \ test \ ipmsg.exe"; destdir: "{app }";

Source: "F: \ Desktop \ test \ bin. dat"; destdir: "{app }"

Source: "F: \ Desktop \ test \ HELP. chm"; destdir: "{app }"

Source: "F: \ Desktop \ test \ readme.txt"; destdir: "{app}"; flags: isreadme

In the above example, we need to add show‑agedialog = yes to the [setup] section. In fact, it is okay not to add show‑agedialog, because show‑agedialog is yes by default.

During the installation process, different language interfaces will be used according to the user's selection:

 

Finally, compiler provides the path to the directory where the compiler is located.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.