inno setup 安裝兩個exe

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!


#define MyAppName "xxx系統"
#define MyAppVersion "1.0.1"
#define MyAppPublisher "xxxx有限公司"
#define MyAppURL "xxx有限公司"
#define MyAppClientName "xxx客戶端"
#define MyAppServerName "xxx服務端"
#define MyAppExeName "xxxexe"
#define MyAppServerExeName "xxxServer.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={{3986BC6C-D1AD-4A4E-9BC3-9D133C34AF3A}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputDir=C:\
DisableProgramGroupPage=yes
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes


[Languages]
Name: "china"; MessagesFile: "compiler:Languages\china.isl"


[Tasks]
Name: desktopicon; Description: "創建桌面快捷方式(&D)"; GroupDescription: "添加快捷方式:"; 
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; 
;Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
;Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1


[Files]
Source: "\client\verifyclient.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "F:\\server\Server.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "F:\\client\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "F:\\server\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files


[Icons]
Name:  "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name:  "{group}\server";Filename: "{app}\{#MyAppServerExeName}"; 
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{commondesktop}\server"; Filename: "{app}\{#MyAppServerExeName}"; Tasks: desktopicon
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
;Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon


[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppClientName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Filename: "{app}\{#MyAppServerExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppServerName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章