zoukankan      html  css  js  c++  java
  • 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:LanguagesChineseSimp.isl"

     

    [files]

    Source: "F:desktop estipmsg.exe"; DestDir: "{app}";

    Source: "F:desktop estin.dat"; DestDir: "{app}"

    Source: "F:desktop esthelp.chm"; DestDir: "{app}"

    Source: "F:desktop est eadme.txt"; DestDir: "{app}";Flags:isreadme

    上例中需要提到的是[setup]段中需要加入ShowLanguageDialog=yes,其实不加也是可以的,因为ShowLanguageDialog默认是yes

    安装过程中会根据用户的选择采用不同的语言界面:

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

  • 相关阅读:
    linux tmux基本操作
    AJAX json集合传入Controller后台
    python 数据读取
    appium
    接口测试设计思路
    python 常用模块
    接口测试程序部分
    测试用例设计思路
    mock_待续
    网站收藏
  • 原文地址:https://www.cnblogs.com/zhangzhifeng/p/5711183.html
Copyright © 2011-2022 走看看