As mentioned above can be used in the use of language files to achieve different display, convenient and international standards, in fact, even without language files can be implemented. The [Messages] segment is used to define the messages displayed in the installer and uninstaller. It is generally not necessary to create [Messages] segments, because all messages are already contained in the DEFAULT.ISL file of Inno Setup (or the language option specified in the [Languages] segment). However, you can create your own message display interface by overwriting the default message. Open the file in the Inno Setup directory, where the button is defined as follows:
; 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
You can overwrite these messages in the [Messages] segment. An example is as follows:
[Setup]
Global settings, this paragraph must be
Appname=test
Appvername=test
Defaultdirname= "E:\TEST"
appversion=1.0
Compression=lzma2/max
Showlanguagedialog=yes
[Components]
Name:main; Description: "Main program (required)"; Types:full Compact Custom; Flags:fixed
Name:data; Description: "Data File"; Types:full
Name:help;description: "Help file"; 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= go ahead (&f) >
Buttonback= Back (&B) <
Buttoncancel= exit (&C)
Buttoninstall= Install it (&i)!
Buttonfinish= fix (&X) ~ ~
The results are as follows:
The special purpose of the Beveledlabel message is to specify a line of text that appears in the lower-left corner of the wizard window and the Uninstaller window, as in Castor:
Inno Setup Introduction (ix)--Modify text display during installation