首页 > 其他 > 详细

安装包范例

时间:2014-08-21 14:58:14      阅读:407      评论:0      收藏:0      [点我收藏+]
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "快销系统"
#define MyAppVersion "1.5"
#define MyAppPublisher "DM"
#define MyAppURL "http://www.dm.com/"
#define MyAppExeName "UI.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{1043927D-FBAC-4A63-BC24-C6BF39BF3266}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName=快销系统
OutputDir=D:\Program Files (x86)\DM
OutputBaseFilename=快销系统
SetupIconFile=D:\work\DM\UI\32.ico
Compression=lzma
SolidCompression=yes

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

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

[Files]
Source: "D:\work\DM\UI\bin\Debug\UI.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\work\DM\UI\bin\Debug\BaseControls.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\work\DM\UI\bin\Debug\BusinessLogic.dll"; DestDir: "{app}"; Flags: ignoreversion
;Source: "D:\work\DM\UI\bin\Debug\Connect.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\work\DM\UI\bin\Debug\DBAccesser.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\work\DM\UI\bin\Debug\Model.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\work\DM\UI\bin\Debug\NPOI.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\work\DM\UI\bin\Debug\UI.exe.config"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\work\DM\UI\bin\Debug\AutoUpdate.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\work\DM\UI\bin\Debug\AutoUpdate.exe.config"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\work\DM\UI\bin\Debug\FileList.xml"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\test\SetupDM\SetupDM\SetupDM\Debug\DotNetFX40\dotNetFx40_Full_x86_x64.exe";DestDir:"{app}";Flags:ignoreversion;
Source: "D:\test\SetupDM\SetupDM\SetupDM\Debug\DotNetFX40\dotNetFx40LP_Full_x86_x64zh-Hans.exe";DestDir:"{app}";Flags:ignoreversion;
Source: "D:\work\DM\UI\bin\Debug\SearchNet.bat"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don‘t use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{group}\卸载.exe"; Filename: "{uninstallexe}" 

[Run]
;Filename: "{app}\dotNetFx40_Client_x86_x64.exe"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, ‘&‘, ‘&&‘)}}"; Flags: nowait postinstall skipifsilent
Filename: "{app}\SearchNet.bat";
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{B174F507-33BB-4B49-B8ED-84B4F25CC787}
AppName=DMServer
AppVersion=1.5
;AppVerName=DMServer 1.5
AppPublisher=My Company, Inc.
AppPublisherURL=http://www.example.com/
AppSupportURL=http://www.example.com/
AppUpdatesURL=http://www.example.com/
DefaultDirName={pf}\DMServer
DefaultGroupName=DMServer
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes

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

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

[Files]
Source: "D:\work\DM\DMServer\bin\Debug\DMServer.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\work\DM\DMServer\bin\Debug\*"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\test\SetupDM\SetupDM\SetupDM\Debug\DotNetFX40\dotNetFx40_Full_x86_x64.exe";DestDir:"{app}";Flags:ignoreversion;
Source: "D:\test\SetupDM\SetupDM\SetupDM\Debug\DotNetFX40\dotNetFx40LP_Full_x86_x64zh-Hans.exe";DestDir:"{app}";Flags:ignoreversion;
Source: "D:\work\DM\UI\bin\Debug\SearchNet.bat"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don‘t use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\DMServer"; Filename: "{app}\DMServer.exe"
Name: "{commondesktop}\DMServer"; Filename: "{app}\DMServer.exe"; Tasks: desktopicon
Name: "{group}\卸载.exe"; Filename: "{uninstallexe}" 

[Run]
Filename: "{app}\DMServer.exe"; Description: "{cm:LaunchProgram,DMServer}"; Flags: nowait postinstall skipifsilent
Filename: "{app}\SearchNet.bat";

 

安装包范例,布布扣,bubuko.com

安装包范例

原文:http://www.cnblogs.com/wpcnblog/p/3927085.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!