• Inno Setup入门(九)——修改安装过程中的文字显示


    前面说到过可以使用不用的语言文件实现不同的显示方式,方便与国际接轨,事实上即使没有语言文件也可以实现修改。[Messages] 段用于定义安装程序和卸载程序中显示的消息。一般不需要创建 [Messages] 段,因为所有的消息在Inno SetupDefault.isl文件 (或在[Languages] 段指定的语言选项中已经包含。但是可以通过覆盖默认的消息,打造自己的消息显示界面。打开Inno Setup目录下的该文件,其中button的定义如下:

    ; *** Buttons

    ButtonBack=< &Back

    ButtonNext=&Next >

    ButtonInstall=&Install

    ButtonOK=OK

    ButtonCancel=Cancel

    ButtonYes=&Yes

    ButtonYesToAll=Yes to &All

    ButtonNo=&No

    ButtonNoToAll=N&o to All

    ButtonFinish=&Finish

    ButtonBrowse=&Browse...

    ButtonWizardBrowse=B&rowse...

    ButtonNewFolder=&Make New Folder

    可以在[Messages]段中覆盖修改这些消息。一个例子如下:

    [setup]

    ;全局设置,本段必须

    AppName=Test

    AppVerName=TEST

    DefaultDirName="E:\TEST"

    AppVersion=1.0

    Compression=lzma2/max

    ShowLanguageDialog=yes

     

    [components]

    Name: main; Description:"主程序(必选)";Types:full compact custom;Flags: fixed

    Name: data; Description:"数据文件";Types:full

    Name: help;Description:"帮助文件";Types:full compact

     

    [files]

    Source: "F:\desktop\test\ipmsg.exe"; DestDir: "{app}";Components:main

    Source: "F:\desktop\test\bin.dat"; DestDir: "{app}";Components:data

    Source: "F:\desktop\test\help.chm"; DestDir: "{app}" ;Components:help

    Source: "F:\desktop\test\readme.txt"; DestDir: "{app}";components:help;Flags:isreadme

    [Messages]

    BeveledLabel=Castor

    ButtonNext=继续吧(&F)>

    ButtonBack=返回吧(&B)<

    ButtonCancel=退出吧(&C)

    ButtonInstall=安装吧(&I)!

    ButtonFinish=搞定(&X)~~

    运行效果如下:

    Inno Setup入门(九)——修改的安装过程中的消息显示 - Castor - 趁年轻,多折腾~~
    BeveledLabel 消息的特殊用途是可以用于指定显示在向导窗口和卸载程序窗口左下角的文本行,如下图中的Castor
    Inno Setup入门(九)——修改的安装过程中的消息显示 - Castor - 趁年轻,多折腾~~

     

    Inno Setup入门(九)——修改的安装过程中的消息显示 - Castor - 趁年轻,多折腾~~
     
     

    转自:http://www.360doc.com/content/13/0327/15/4221543_274250221.shtml

  • 相关阅读:
    用mapreduce 处理气象数据集
    熟悉常用的HBase操作,编写MapReduce作业
    爬虫大作业
    第三章 熟悉常用的HDFS操作
    数据结构化与保存
    获取全部校园新闻
    爬取校园新闻首页的新闻的详情,使用正则表达式,函数抽离
    网络爬虫基础练习
    Hadoop综合大作业
    理解MapReduce
  • 原文地址:https://www.cnblogs.com/xiurui12345/p/3095167.html
Copyright © 2020-2023  润新知