张志峰的博客

水滴石川,积少成多。

导航

[InnoSetup]Inno Setup软件打包脚本

Posted on 2016-11-16 13:54  ╰★张志峰★╮  阅读(478)  评论(0编辑  收藏  举报
 脚本由 Inno Setup 脚本向导 生成!
; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!
 
#define MyAppName "SFT期货交易系统"
#define MyAppVersion "1.0"
#define MyAppPublisher "shaoming.mark@126.com"
#define MyAppURL "http://blog.sina.com.cn/shaomingmark"
#define MyAppExeName "SFT.exe"
#define MyPkgmk "D:\pkgmk"
#define MyDependentTool "vcredist_x86_VS2010.exe" 
 
 
[Setup]
; 注: AppId的值为单独标识该应用程序。
; 不要为其他安装程序使用相同的AppId值。
; (生成新的GUID,点击 工具|在IDE中生成GUID。)
 
AppId={{C11BF97B-5A96-4B66-94DE-8E5C007CF40D}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
LicenseFile={#MyPkgmk}\LicenseFile\许可协议.txt
OutputDir={#MyPkgmk}\Output
OutputBaseFilename=SFT Setup
SetupIconFile={#MyPkgmk}\Logo\logo.ico
Compression=lzma
SolidCompression=yes
;版权消息
AppCopyright=Copyright (C) 2015-2016 邵明 QQ:469242728, Inc
ShowComponentSizes=yes
 
 ;背景图片(左边)
WizardImageFile={#MyPkgmk}\Image\left.bmp
;右上角图片
;WizardSmallImageFile={#MyPkgmk}\Image\right.bmp
 
[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
 
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone
 
[Files]
;Source: "E:\个人文件\文件传送\测试\hyqhf\bin\Luncher.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#MyPkgmk}\SFT\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#MyPkgmk}\SFT\Release\*"; DestDir: "{app}\bin"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#MyPkgmk}\DependentPackage\{#MyDependentTool}"; DestDir: "{app}"; Flags: ignoreversion
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion”
 
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\bin\{#MyAppExeName}"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
 
[Run]
Filename: "{app}\{#MyDependentTool}"; Description: "{cm:LaunchProgram,{#StringChange("MYSQL-ODBC", '&', '&&')}}"; Flags: shellexec skipifsilent
Filename: "{app}\bin\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent