blob: 4a3a193a08bb03e89dbb80a49d548515e80e0889 [file] [log] [blame]
Alex Karasulu07d20492006-03-06 15:35:44 +00001; Project supplied Inno Setup File
2
3#define MyAppName "${app}"
4#define MyAppVerName "${app} ${app.version}"
5#define MyAppVersion "${app.version}"
6#define MyAppPublisher "${app.author}"
7#define MyAppURL "${app.url}"
8#define MyAppExeName "${app}w.exe"
9#define MyAppCompanyName "${app.company.name}"
10#define MyAppDescription "${app.description}"
11#define MyAppCopyright "Copyright (c) ${app.copyright.year} ${app.company.name}"
12
13; Set this constant to the path where your installation image resides
14#define SourceBase "${image.basedir}"
15
16[Setup]
17AppName={#MyAppName}
18AppVerName={#MyAppVerName}
19AppPublisher={#MyAppPublisher}
20AppPublisherURL={#MyAppURL}
21AppSupportURL={#MyAppURL}
22AppUpdatesURL={#MyAppURL}
23DefaultDirName={pf}\${app}-${app.version}
24DefaultGroupName={#MyAppName}
25LicenseFile={#SourceBase}\${app.license.name}
26OutputDir="${installer.output.directory}"
27OutputBaseFilename=${app.final.name}
28SetupIconFile={#SourceBase}\${app.icon.name}
29Compression=lzma
30SolidCompression=true
31VersionInfoCompany={#MyAppCompanyName}
32VersionInfoDescription={#MyAppDescription}
33AppCopyright={#MyAppCopyright}
34ShowLanguageDialog=yes
35AppVersion={#MyAppVersion}
36
37[Languages]
38Name: eng; MessagesFile: compiler:Default.isl
39
40[Tasks]
41Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
42
43[Files]
44; bin directory targets
45Source: {#SourceBase}\bin\${app}w.exe; DestDir: {app}\bin; Tasks: ; Languages:
46Source: {#SourceBase}\bin\${app}.exe; DestDir: {app}\bin
47Source: {#SourceBase}\bin\bootstrapper.jar; DestDir: {app}\bin; DestName: bootstrapper.jar
48Source: {#SourceBase}\bin\felix.jar; DestDir: {app}\bin; DestName: felix.jar
49Source: {#SourceBase}\bin\logger.jar; DestDir: {app}\bin; DestName: logger.jar
50Source: {#SourceBase}\bin\daemon.jar; DestDir: {app}\bin; DestName: daemon.jar
Richard S. Hall33554862007-06-01 15:37:21 +000051; bundle directory targets
52Source: {#SourceBase}\bundle\*; DestDir: {app}\bundle; Flags: ignoreversion recursesubdirs createallsubdirs
Alex Karasulu07d20492006-03-06 15:35:44 +000053; conf directory targets
54Source: {#SourceBase}\conf\log4j.properties; DestDir: {app}\conf; DestName: log4j.properties
55Source: {#SourceBase}\conf\bootstrapper.properties; DestDir: {app}\conf; DestName: bootstrapper.properties
Richard S. Hall33554862007-06-01 15:37:21 +000056Source: {#SourceBase}\conf\config.properties; DestDir: {app}\conf; DestName: config.properties
Alex Karasulu07d20492006-03-06 15:35:44 +000057; top level directory targets
58Source: {#SourceBase}\${app.license.name}; DestDir: {app}; DestName: ${app.license.name}
59Source: {#SourceBase}\${app.readme.name}; DestDir: {app}; DestName: ${app.readme.name}
60Source: {#SourceBase}\${app.icon.name}; DestDir: {app}; DestName: ${app.icon.name}
61; empty var & lib\ext directory structure
62Source: {#SourceBase}\var\*; DestDir: "{app}\var\"; Flags: ignoreversion recursesubdirs createallsubdirs
63Source: {#SourceBase}\lib\ext; DestDir: "{app}\lib"; Flags: ignoreversion recursesubdirs createallsubdirs
64; lib directory targets
65${app.lib.jars}
66${docs.directive}
67${sources.directive}
68${notice.file}
69
70[Icons]
71Name: {group}\Service Settings; Filename: {app}\bin\${app}w.exe; Parameters: //ES//${app}; IconIndex: 0
72Name: {userdesktop}\{#MyAppName}; Filename: {app}\bin\${app}w.exe; Tasks: desktopicon; Parameters: //ES//${app}; IconIndex: 0; Languages:
73Name: {group}\Tray Monitor; Filename: {app}\bin\${app}w.exe; Parameters: //MS//${app}; IconIndex: 0
74Name: {group}\Test Service; Filename: {app}\bin\${app}.exe; IconIndex: 0
75
76[Run]
77Filename: {app}\bin\${app}.exe; WorkingDir: {app}\bin; Tasks: ; Languages: ; Parameters: "//IS//${app.displayname} --Description=""${app.description} Service ${app.version} - ${app.url}"" --DisplayName=${app.displayname} --Install=""{app}\bin\${app}.exe"" --StartMode=jvm --StopMode=jvm --StartClass=org.apache.directory.daemon.ProcrunBootstrapper --StartMethod prunsrvStart --StartParams=""{app}"" --StopClass=org.apache.directory.daemon.ProcrunBootstrapper --StopMethod prunsrvStop --StopParams=""{app}"" --Startup=manual --JvmOptions=""-D${app}.home={app}"" --Classpath=""{app}\bin\bootstrapper.jar;{app}\conf;{app}\bin\logger.jar;{app}\bin\daemon.jar"" --LogPath=""{app}\var\log"" --LogPrefix=${app}.log --LogLevel=debug --StdOutput=""{app}\var\log\${app}-stdout.log"" --StdError=""{app}\var\log\${app}-stderr.log"""; Flags: runhidden
78Filename: {app}\bin\${app}w.exe; Parameters: //ES//${app.displayname}; WorkingDir: {app}\bin; Flags: postinstall nowait; Description: Runs the configuration manager for the ${app} windows service
79
80[Registry]
81
82[UninstallRun]
83Filename: {app}\bin\${app}.exe; WorkingDir: {app}\bin; Parameters: //DS//${app.displayname}