inno setup 多语言版本脚本示例

; -- Languages.iss --
; Demonstrates a multilingual installation.


; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!


[Setup]
AppName={cm:MyAppName}
AppId={{9B82A8DF-D70D-41C9-937B-6136D4674B08}
AppVerName={cm:MyAppVerName,1.5}
DefaultDirName={pf}\{cm:MyAppName}
DefaultGroupName={cm:MyAppName}
UninstallDisplayIcon={app}\MyProg.exe
VersionInfoDescription=My Program Setup
VersionInfoProductName=My Program
OutputDir=userdocs:Inno Setup Examples Output
ShowUndisplayableLanguages=yes

;显示语言选择框



[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
Name: "english"; MessagesFile: "compiler:Languages\English.isl"




[Messages]
english.BeveledLabel=English
chinesesimp.BeveledLabel=Chineses




[CustomMessages]
english.MyDescription=你的描述英文
english.MyAppName=程序名称英文
english.MyAppVerName=程序版本英文t %1


chinesesimp.MyDescription=程序描述
chinesesimp.MyAppName=程序名称
chinesesimp.MyAppVerName=程序版本 %1
 


 


[Files]
Source: "路径\程序名称.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "程序需要其他文件路径\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs






[Icons]
Name: "{group}\程序菜单"; Filename: "{app}\对应的文件名"; Languages: chinesesimp;
 ;在开始菜单出现的程序菜单




Name: "{group}\程序菜单"; Filename: "{app}\Quick Start.pdf"; Languages: english;
;英文版 


Name: "{group}\{cm:MyAppName}"; Filename: "{app}\程序名称.exe";  Languages: chinesesimp;

Name: "{group}\{cm:MyAppName}"; Filename: "{app}\程序名称.exe";  Languages: english; Parameters:"-e"   ;

;英文版本是通过传递 -e 的参数实现的

Name: "{group}\{cm:UninstallProgram,{cm:MyAppName}}"; Filename: "{uninstallexe}"

;卸载程序的路径



 




[Tasks]
Name: mytask; Description: "{cm:MyDescription}"
;桌面快捷方式

[Run]
Filename: "{app}\程序名称.exe"; Description: "{cm:LaunchProgram,{#StringChange("程序名称", "&", "&&")}}"; Flags: nowait postinstall skipifsilent  ;   Languages: chinesesimp;

Filename: "{app}\程序名称.exe"; Description: "{cm:LaunchProgram,{#StringChange("程序名称", "&", "&&")}}"; Flags: nowait postinstall skipifsilent  ;   Languages: english; Parameters:"-e"   ;

;定义安装完成后是否直接运行的程序路径


你可能感兴趣的:(脚本,文档,语言,Parameters,compiler,icons)