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.