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.
From: http://www.360doc.com/content/13/0327/15/4221543_274250821.shtml