[InnoSetup]Inno Setup软件打包脚本

 脚本由 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}Logologo.ico
Compression=lzma
SolidCompression=yes
;版权消息
AppCopyright=Copyright (C) 2015-2016 邵明 QQ:469242728, Inc
ShowComponentSizes=yes
 
 ;背景图片(左边)
WizardImageFile={#MyPkgmk}Imageleft.bmp
;右上角图片
;WizardSmallImageFile={#MyPkgmk}Image ight.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:个人文件文件传送测试hyqhfinLuncher.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#MyPkgmk}SFTdata*"; DestDir: "{app}data"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#MyPkgmk}SFTRelease*"; DestDir: "{app}in"; 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}in{#MyAppExeName}"; Tasks: desktopicon
Name: "{userappdata}MicrosoftInternet ExplorerQuick Launch{#MyAppName}"; Filename: "{app}{#MyAppExeName}"; Tasks: quicklaunchicon
 
[Run]
Filename: "{app}{#MyDependentTool}"; Description: "{cm:LaunchProgram,{#StringChange("MYSQL-ODBC", '&', '&&')}}"; Flags: shellexec skipifsilent
Filename: "{app}in{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
原文地址:https://www.cnblogs.com/zhangzhifeng/p/6069230.html