手足口病注意点什么:Inno Setup入门(七)——提供安装语言选项

来源:百度文库 编辑:中财网 时间:2024/05/03 02:30:14
2011-01-24 21:47:21|  分类:Inno Setup |  标签:inno  setup   |字号大中小
Inno Setup安装目录下有一个Languages的文件夹,该文件夹提供了可供使用的语言,通过在脚本中加入[languages]段,可以实现该项功能,实现代码如下:
[setup]
;全局设置,本段必须
AppName=Test
AppVerName=TEST
DefaultDirName="E:\TEST"
AppVersion=1.0
Compression=lzma2/max
ShowLanguageDialog=yes
[languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "cs"; MessagesFile: "compiler:Languages\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
上例中需要提到的是[setup]段中需要加入ShowLanguageDialog=yes,其实不加也是可以的,因为ShowLanguageDialog默认是yes。
安装过程中会根据用户的选择采用不同的语言界面:


最后需要说明的是compiler:他提供了编译器所在目录的路径。