首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Inno Setup 脚本示范

2012-11-05 
Inno Setup 脚本示例 脚本由 Inno Setup 脚本向导 生成! 有关创建 Inno Setup 脚本文件的详细资料请查阅

Inno Setup 脚本示例

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

#define MyAppName "xxx平台"
#define MyAppVerName "xxx平台"
#define MyAppPublisher "xxxx"
#define MyAppURL "http://www.xxx.com"
#define MyAppExeName "apache-tomcat-6.0.20\bin\startup.bat"
#define AppBin "apache-tomcat-6.0.20\bin"

[Setup]
; 注: AppId的值为单独标识该应用程序。
; 不要为其他安装程序使用相同的AppId值。
; (生成新的GUID,点击 工具|在IDE中生成GUID。)
AppId={{ECB70519-A7A3-4FEF-83AD-7F50C49EEA79}
AppName={#MyAppName}
AppVerName={#MyAppVerName}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=fujitsu\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputDir=C:\Users\cloud\Desktop
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes

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

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\maruzen\DevelopmentEnvironment\fujitsu\apache-tomcat-6.0.20\bin\startup.bat"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\maruzen\DevelopmentEnvironment\fujitsu\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion”

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";WorkingDir: "{app}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}";WorkingDir: "{app}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon;WorkingDir: "{app}\{#AppBin}"

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: shellexec postinstall skipifsilent

?

热点排行