-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstaller.iss.base
135 lines (107 loc) · 6.8 KB
/
installer.iss.base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
; Script for Inno Setup QuickStart Pack software (version 5.3.10-u).
; Usage: ant installer
#define AppName "Compendium"
#define AppVerNumber "1.7.1"
#define AppBuild "__build__number__"
#define AppURL "http://compendium.open.ac.uk/"
#define InstallerDir "installer"
[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={{B255B748-6FDE-4AF2-9AA9-CBBF19CF4AAE}
AppName={#AppName}
AppVersion={#AppVerNumber} {#AppBuild}
AppVerName={#AppName} {#AppVerNumber} {#AppBuild}
AppPublisher=Verizon and The Open University UK
AppPublisherURL={#AppURL}
AppSupportURL={#AppURL}
AppUpdatesURL={#AppURL}
DefaultDirName={pf32}\{#AppName}
DefaultGroupName={#AppName}
LicenseFile={#InstallerDir}\installer-license.txt
OutputBaseFilename={#AppName} {#AppVerNumber} {#AppBuild}{#Configuration}
Compression=lzma
SolidCompression=yes
WindowVisible=yes
AppCopyright=Copyright (C) 1998-2010 Verizon & The Open University UK
WizardImageFile={#InstallerDir}\installer-logo.bmp
;AlwaysRestart=yes
ChangesEnvironment=yes
SetupLogging=yes
[Registry]
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; ValueName: "CompendiumSysPath"; ValueData: "{app}"
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; ValueName: "CompendiumUserPath"; ValueData: "C:\Users\Public\Documents\Compendium"
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
[Dirs]
Name: "{app}\Templates"
Name: "C:\Users\Public\Documents\Compendium\Backups\"
Name: "C:\Users\Public\Documents\Compendium\Exports\"
Name: "C:\Users\Public\Documents\Compendium\Linked Files\"
Name: "C:\Users\Public\Documents\Compendium\Temp\"
Name: "C:\Users\Public\Documents\Compendium\System\resources\Databases\"
Name: "C:\Users\Public\Documents\Compendium\System\resources\Logs\"
Name: "C:\Users\Public\Documents\Compendium\System\resources\Meetings\"
[Files]
Source: "dist\Compendium.bat"; DestDir: "{app}\"; Flags: ignoreversion
Source: "dist\Compendium.dtd"; DestDir: "{app}\"; Flags: ignoreversion
Source: "dist\open_word_with_template.vbs"; DestDir: "{app}\"; Flags: ignoreversion
Source: "dist\Skins\*"; DestDir: "{app}\Skins\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "dist\System\lib\*"; DestDir: "{app}\System\lib\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "dist\System\resources\Audio\*"; DestDir: "{app}\System\resources\Audio\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "dist\System\resources\Help\*"; DestDir: "{app}\System\resources\Help\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "dist\System\resources\LinkGroups\*"; DestDir: "{app}\System\resources\LinkGroups\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "dist\System\resources\Images\*"; DestDir: "{app}\System\resources\Images\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "dist\System\resources\OutlineStyles\*"; DestDir: "{app}\System\resources\OutlineStyles\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "dist\System\resources\ReferenceNodeIcons\*"; DestDir: "{app}\System\resources\ReferenceNodeIcons\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "dist\System\resources\Stencils\*"; DestDir: "{app}\System\resources\Stencils\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "dist\System\resources\*.properties"; DestDir: "C:\Users\Public\Documents\Compendium\System\resources\"; Flags: ignoreversion
Source: "dist\System\resources\toolbars.xml"; DestDir: "C:\Users\Public\Documents\Compendium\System\resources\"; Flags: ignoreversion
Source: "C:\Users\Public\Documents\Microsoft\Templates\Compendium-outline.dot"; DestDir: "C:\Users\Public\Documents\Microsoft\Templates"; DestName: "Compendium-outline-previous.dot"; Flags: ignoreversion external skipifsourcedoesntexist
Source: "{#InstallerDir}\Compendium-outline.dot"; DestDir: "C:\Users\Public\Documents\Microsoft\Templates"; Flags: ignoreversion
Source: "{userappdata}\Microsoft\Templates\Compendium-outline.dot"; DestDir: "{userappdata}\Microsoft\Templates"; DestName: "Compendium-outline-previous.dot"; Flags: ignoreversion external skipifsourcedoesntexist
Source: "{#InstallerDir}\Compendium-outline.dot"; DestDir: "{userappdata}\Microsoft\Templates"; Flags: ignoreversion
Source: "C:\Users\Public\Documents\Microsoft\Templates\Compendium-outline.dotm"; DestDir: "C:\Users\Public\Documents\Microsoft\Templates"; DestName: "Compendium-outline-previous.dotm"; Flags: ignoreversion external skipifsourcedoesntexist
Source: "{#InstallerDir}\Compendium-outline.dotm"; DestDir: "C:\Users\Public\Documents\Microsoft\Templates"; Flags: ignoreversion
Source: "{userappdata}\Microsoft\Templates\Compendium-outline.dotm"; DestDir: "{userappdata}\Microsoft\Templates"; DestName: "Compendium-outline-previous.dotm"; Flags: ignoreversion external skipifsourcedoesntexist
Source: "{#InstallerDir}\Compendium-outline.dotm"; DestDir: "{userappdata}\Microsoft\Templates"; Flags: ignoreversion
[Icons]
Name: "{group}\Compendium"; Filename: "{app}\Compendium.bat"; WorkingDir: "{app}"; IconFilename: "{app}\System\resources\Images\compendium.ico"
Name: "{group}\Uninstall Compendium"; Filename: "{uninstallexe}"
Name: "{commondesktop}\Compendium"; Filename: "{app}\Compendium.bat"; Tasks: desktopicon; WorkingDir: "{app}"; IconFilename: "{app}\System\resources\Images\compendium.ico"
[Code]
procedure DoPostInstall();
var LogDir : string;
var LogFile : string;
var UserName : string;
var DateTime : string;
var InstallVersion : string;
begin
LogDir := 'C:\Program Files\Compendium\';
LogFile := 'CompendiumInstall.log';
InstallVersion := ' Compendium 1.7.1 __build__number__'
UserName := GetUserNameString();
DateTime := GetDateTimeString('mm/dd/yyyy hh:nn:ss am/pm', #0, #0);
if (DirExists(LogDir)) then
begin
SaveStringToFile(LogDir+LogFile, DateTime + InstallVersion + UserName + #13#10, True);
end;
if (DirExists('\\sce\workgroup\CEH&S1\ENVIRONMENTAL\SHARE\QM\Compendium_Admin\')) then
begin
SaveStringToFile('\\sce\workgroup\CEH&S1\ENVIRONMENTAL\SHARE\QM\Compendium_Admin\'+LogFile, DateTime + InstallVersion + UserName + #13#10, True);
end
else
begin
SaveStringToFile(LogDir+LogFile, 'Error - sce directory for logging does not exist' + #13#10, True);
end;
end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssPostInstall then
begin
DoPostInstall();
end;
end;