-
Notifications
You must be signed in to change notification settings - Fork 56
/
Setup.iss
216 lines (182 loc) · 12.1 KB
/
Setup.iss
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
// -- KeyNote NF.iss --
//
#pragma verboselevel 9
#define AppName "KeyNote NF"
#define AppFileExe "keynote.exe"
#define Version "1.9.5.2"
#define AppVersion "1.9.5 .2"
;#define AppVersion GetVersionNumbersString("..\Output\bin\keynote.exe")
#define DefaultProfile "{app}\Profiles\Default"
#define _KNT_FILETYPE 'KeyNote file'
#define _KNE_FILETYPE 'KeyNote encrypted file'
#define _KNM_FILETYPE 'KeyNote macro'
#define _KNL_FILETYPE 'KeyNote plugin'
[Setup]
SignTool=mySignTool
TouchDate=2024-05-18
TouchTime=12:00
AppName={#AppName}
AppVersion={#AppVersion}
VersionInfoVersion={#Version}
AppCopyright=Copyright (C) 2007-2024 Daniel Prado Velasco (C) 2000-2005 Marek Jedlinski
;AppComments=
AppContact=Daniel Prado Velasco <[email protected]>
AppPublisher=Daniel Prado Velasco
AppPublisherURL=https://github.com/dpradov/keynote-nf
AppReadmeFile=https://github.com/dpradov/keynote-nf#readme
AppSupportURL=https://github.com/dpradov/keynote-nf/issues
AppUpdatesURL=https://github.com/dpradov/keynote-nf/releases
WizardStyle=modern
DefaultDirName={autopf}\{#AppName}
DefaultGroupName={#AppName}
AllowNoIcons=yes
UninstallDisplayIcon={app}\{#AppFileExe}
LicenseFile={#file AddBackslash(SourcePath) + "doc\License_agreement.txt"}
OutputDir=..\..\Output
OutputBaseFilename=kntSetup_{#Version}
SetupIconFile=keynote_Icon.ico
WizardImageFile=resources\keynote_4.bmp
WizardSmallImageFile=resources\keynote_0.bmp, resources\keynote_1.bmp, resources\keynote_2.bmp, resources\keynote_3.bmp
WizardImageStretch=no
DisableWelcomePage=no
Uninstallable=not WizardIsTaskSelected('portablemode')
ChangesAssociations=WizardIsTaskSelected('associate')
InfoBeforeFile=doc\NotesBeforeSetup.txt
InfoAfterFile=doc\history.txt
SignedUninstaller=yes
[Types]
Name: "full"; Description: "Full installation"
Name: "compact"; Description: "Compact installation"
Name: "custom"; Description: "Custom installation"; Flags: iscustom
[Components]
Name: "main"; Description: "Program Files"; Types: full compact custom; Flags: fixed
Name: "help"; Description: "Help File"; Types: full
Name: "plugins"; Description: "Plugins"; Types: full
[Tasks]
Name: portablemode; Description: "&Portable Mode (no uninstallation support)"; Flags: unchecked
Name: desktopicon; Description: "Create a &Shortcut on the &Desktop"; Components: main; Flags: unchecked
Name: associate; Description: "Associate KeyNote NF with the .knt, kne and .knm file extension"; Flags: unchecked
; GroupDescription: "Additional icons:"
[Dirs]
Name: "{app}\lang"; Permissions: users-modify
Name: "{app}\macros"; Permissions: users-modify
Name: "{app}\plugins"; Permissions: users-modify;
Name: "{app}\templates"; Permissions: users-modify
Name: "{app}\Profiles" ; Permissions: users-modify
Name: "{app}\Profiles\Default"
Name: "{app}\Profiles\Default\macros"
Name: "{app}\Profiles\Help"
;Flags: uninsalwaysuninstall uninsneveruninstall
[InstallDelete]
Type: files; Name: "{app}\KeyNote Handbook.lnk"
Type: files; Name: "{app}\KeyNote Help 1.6.lnk"
Type: files; Name: "{app}\KeyNote.chm"
Type: files; Name: "{app}\doc\Images_Readme.txt"
Type: files; Name: "{app}\help\Comments on KNT file formats.txt"
Type: files; Name: "{app}\help\sample.knt"
Type: files; Name: "{app}\help\KeyNote Handbook.lnk"
Type: files; Name: "{app}\help\KeyNote Help 1.6.lnk"
Type: files; Name: "{app}\help\KeyNote Help chm.lnk"
Type: filesandordirs; Name: "{app}\help\kntHelpFiles"
Type: files; Name: "{app}\plugins\funckey.knl"
Type: files; Name: "{app}\plugins\funckey_readme.txt"
Type: files; Name: "{app}\plugins\readme.txt"
Type: files; Name: "{app}\Profiles\Help\keynote_hlp.ico"
[UninstallDelete]
Type: files; Name: "{app}\Profiles\Help\keynote.mgr"
Type: files; Name: "{app}\Profiles\Help\keynote.mru"
[Files]
Source: "..\Output\bin\{#AppFileExe}"; DestDir: "{app}"; Components: main; Flags: touch
Source: "..\Output\bin\kntLauncher.exe"; DestDir: "{app}"; Components: main; Flags: touch
Source: "..\Output\bin\kntutils.dll" ; DestDir: "{app}" ; Components: main
;Source: "Lang\keynote.lan"; DestDir: "{app}" ; Components: main
Source: "general\keyboard.css"; DestDir: "{app}" ; Components: main
Source: "misc_files\clip.wav"; DestDir: "{app}" ; Components: main; Flags: onlyifdoesntexist
Source: "misc_files\alert.wav"; DestDir: "{app}" ; Components: main; Flags: onlyifdoesntexist
Source: "misc_files\KeyNote.tip"; DestDir: "{app}" ; Components: main
Source: "misc_files\dateformats.txt"; DestDir: "{app}" ; Components: main; Flags: onlyifdoesntexist
Source: "misc_files\timeformats.txt"; DestDir: "{app}" ; Components: main; Flags: onlyifdoesntexist
; Profiles
Source: "doc\Profiles.txt"; DestDir: "{app}\Profiles" ; Components: main
; {#DefaultProfile}
Source: "misc_files\keynote.kns" ; DestDir: "{#DefaultProfile}" ; Components: main; Flags: onlyifdoesntexist
Source: "misc_files\keynote.exp" ; DestDir: "{#DefaultProfile}" ; Components: main; Flags: onlyifdoesntexist
Source: "misc_files\keynote.icn" ; DestDir: "{#DefaultProfile}" ; Components: main; Flags: onlyifdoesntexist
Source: "misc_files\nodehead.rtf" ; DestDir: "{#DefaultProfile}" ; Components: main; Flags: onlyifdoesntexist
Source: "misc_files\notehead.rtf" ; DestDir: "{#DefaultProfile}" ; Components: main; Flags: onlyifdoesntexist
;Source: "misc_files\keyboard.ini"; DestDir: "{#DefaultProfile}" ; Components: main; Flags: onlyifdoesntexist
; Help profile
Source: "misc_files\keynote_Help.ini"; DestDir: "{app}\Profiles\Help"; DestName: "keynote.ini" ; Components: help; Flags: onlyifdoesntexist
Source: "misc_files\keynote.kns" ; DestDir: "{app}\Profiles\Help" ; Components: help; Flags: onlyifdoesntexist
; {app}\macros
Source: "macros\examples\_AutoNewFile.knm"; DestDir: "{app}\macros\examples" ; Components: main
Source: "macros\examples\_AutoNewNode.knm"; DestDir: "{app}\macros\examples" ; Components: main
Source: "macros\examples\_AutoNewNote.knm"; DestDir: "{app}\macros\examples" ; Components: main
Source: "macros\examples\_AutoNewTree.knm"; DestDir: "{app}\macros\examples" ; Components: main
Source: "macros\examples\_Test_Macro.knm" ; DestDir: "{app}\macros\examples" ; Components: main
; {app}\doc
Source: "doc\history.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\acknowledgments.txt"; DestDir: "{app}\doc"; Components: main
Source: "doc\References.md"; DestDir: "{app}\doc" ; Components: main
Source: "README.md"; DestDir: "{app}\doc" ; Components: main; Flags: isreadme
Source: "LICENSE.txt"; DestDir: "{app}\doc" ; Components: main;
Source: "doc\README_News.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\kn_fileformat\fileformat.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\kn_fileformat\fileformat_1.6.5.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\kn_fileformat\fileformat.knt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\kn_fileformat\fileformat_minimal.knt"; DestDir: "{app}\doc"; Components: main
Source: "doc\kn_fileformat\fileformat_readme.txt"; DestDir: "{app}\doc" ; Components: main
Source: "misc_files\wordweb.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.8.0 Beta1-6.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.8.1 Beta1-6.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.8.2 .01.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.8.3 .01.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.8.4 .01.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.8.5 .01.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.9.0 .01.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.9.1 .01.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.9.2 .01.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.9.3 .01.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\Changes in 1.9.5 .01.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\dart.txt"; DestDir: "{app}\doc" ; Components: main
Source: "doc\dart_format.txt"; DestDir: "{app}\doc" ; Components: main
; {app}\help
Source: "doc\cmdline.txt"; DestDir: "{app}\help" ; Components: help
Source: "misc_files\KeyNoteNF_Help.knt"; DestDir: "{app}\help" ; Components: help
Source: "resources\keynote_hlp.ico" ; DestDir: "{app}\help" ; Components: help
; {app}\templates
Source: "misc_files\Meeting template - sample.rtf"; DestDir: "{app}\templates"; Flags: onlyifdoesntexist
; {app}\plugins
Source: "plugins\Binary examples\kncalendar.knl"; DestDir: "{app}\plugins" ; Components: plugins
Source: "plugins\Binary examples\kncalendar_readme.txt"; DestDir: "{app}\plugins" ; Components: plugins
; confirmoverwrite promptifolder
[Icons]
Name: "{group}\{#AppName}"; Filename: "{app}\{#AppFileExe}"
Name: "{group}\{#AppName} GitHub"; Filename: "https://github.com/dpradov/keynote-nf"
Name: "{group}\{#AppName} GitHub - Issues"; Filename: "https://github.com/dpradov/keynote-nf/issues"
Name: "{autodesktop}\{#AppName}"; Filename: "{app}\{#AppFileExe}"; Tasks: desktopicon
; Links to help file
Name: "{app}\KeyNote NF Help"; Filename: "{app}\kntLauncher.exe"; Parameters: "Profiles\Help\keynote.ini help\keynoteNF_Help.knt -ignSI -dnd -jmp""file:///*8|2"" -title""KeyNote NF Topics"""; Components: help; IconFilename: "{app}\help\keynote_hlp.ico"
Name: "{app}\help\Profiles.txt"; Filename: "{app}\Profiles\Profiles.txt"; Components: help
[Registry]
; Associate .knt, .kne, .knm files with Keynote (requires ChangesAssociations=yes)
Root: HKA; Subkey: "Software\Classes\.knt\OpenWithProgids"; ValueType: string; ValueName: "{#_KNT_FILETYPE}.knt"; ValueData: ""; Flags: uninsdeletevalue
Root: HKA; Subkey: "Software\Classes\{#_KNT_FILETYPE}"; ValueType: string; ValueName: ""; ValueData: "{#_KNT_FILETYPE}"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\{#_KNT_FILETYPE}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#AppFileExe},0"
Root: HKA; Subkey: "Software\Classes\{#_KNT_FILETYPE}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#AppFileExe}"" ""%1"""
Root: HKA; Subkey: "Software\Classes\Applications\{#AppFileExe}\SupportedTypes"; ValueType: string; ValueName: ".knt"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\.kne\OpenWithProgids"; ValueType: string; ValueName: "{#_KNE_FILETYPE}.kne"; ValueData: ""; Flags: uninsdeletevalue
Root: HKA; Subkey: "Software\Classes\{#_KNE_FILETYPE}"; ValueType: string; ValueName: ""; ValueData: "{#_KNE_FILETYPE}"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\{#_KNE_FILETYPE}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#AppFileExe},0"
Root: HKA; Subkey: "Software\Classes\{#_KNE_FILETYPE}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#AppFileExe}"" ""%1"""
Root: HKA; Subkey: "Software\Classes\Applications\{#AppFileExe}\SupportedTypes"; ValueType: string; ValueName: ".kne"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\.knm\OpenWithProgids"; ValueType: string; ValueName: "{#_KNM_FILETYPE}.knm"; ValueData: ""; Flags: uninsdeletevalue
Root: HKA; Subkey: "Software\Classes\{#_KNM_FILETYPE}"; ValueType: string; ValueName: ""; ValueData: "{#_KNM_FILETYPE}"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\{#_KNM_FILETYPE}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#AppFileExe},0"
Root: HKA; Subkey: "Software\Classes\{#_KNM_FILETYPE}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#AppFileExe}"" ""%1"""
Root: HKA; Subkey: "Software\Classes\Applications\{#AppFileExe}\SupportedTypes"; ValueType: string; ValueName: ".knm"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\.knm\OpenWithProgids"; ValueType: string; ValueName: "{#_KNL_FILETYPE}.knm"; ValueData: ""; Flags: uninsdeletevalue
Root: HKA; Subkey: "Software\Classes\{#_KNL_FILETYPE}"; ValueType: string; ValueName: ""; ValueData: "{#_KNL_FILETYPE}"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\{#_KNL_FILETYPE}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#AppFileExe},0"
Root: HKA; Subkey: "Software\Classes\{#_KNL_FILETYPE}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#AppFileExe}"" ""%1"""
Root: HKA; Subkey: "Software\Classes\Applications\{#AppFileExe}\SupportedTypes"; ValueType: string; ValueName: ".knm"; ValueData: ""