~ubuntu-branches/ubuntu/precise/gtkmm3.0/precise

« back to all changes in this revision

Viewing changes to win32_installer/gtkmm-installer.nsi.in

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-17 00:12:44 UTC
  • Revision ID: james.westby@ubuntu.com-20110617001244-9hl5an15hiaaahi6
Tags: upstream-3.0.1
ImportĀ upstreamĀ versionĀ 3.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
; Title          gtkmm for win32 installer
 
3
; Author         Cedric Gustin <cedric.gustin@swing.be>
 
4
 
 
5
;    Copyright (C) 2004-2006  Cedric Gustin
 
6
;                  2008-2010  Armin Burgmeier
 
7
;
 
8
;    This program is free software; you can redistribute it and/or modify
 
9
;    it under the terms of the GNU General Public License as published by
 
10
;    the Free Software Foundation; either version 2 of the License, or
 
11
;    (at your option) any later version.
 
12
;
 
13
;    This program is distributed in the hope that it will be useful,
 
14
;    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
;    GNU General Public License for more details.
 
17
;
 
18
;    You should have received a copy of the GNU General Public License
 
19
;    along with this program; if not, write to the Free Software
 
20
;    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
21
 
 
22
;--------------------------------
 
23
; Settings
 
24
 
 
25
; !define RUNTIME_ONLY 1
 
26
 
 
27
!ifndef PRODUCT_VERSION_MAJOR
 
28
!define PRODUCT_VERSION_MAJOR "@GTKMM_MAJOR_VERSION@"
 
29
!endif
 
30
!ifndef PRODUCT_VERSION_MINOR
 
31
!define PRODUCT_VERSION_MINOR "@GTKMM_MINOR_VERSION@"
 
32
!endif
 
33
!ifndef PRODUCT_VERSION_MICRO
 
34
!define PRODUCT_VERSION_MICRO "@GTKMM_MICRO_VERSION@"
 
35
!endif
 
36
!ifndef PRODUCT_VERSION_INSTALLER
 
37
!define PRODUCT_VERSION_INSTALLER "2"
 
38
!endif
 
39
 
 
40
!ifdef PRODUCT_API_VERSION
 
41
!undef PRODUCT_API_VERSION
 
42
!endif
 
43
 
 
44
!define PRODUCT_API_VERSION "@GTKMM_API_VERSION@"
 
45
 
 
46
;--------------------------------
 
47
; Defines
 
48
 
 
49
!define PRODUCT_NAME "gtkmm"
 
50
; TODO: Should choose between gtkmm32 and gtkmm64 or somesuch when we can break compatibility (with gtkmm3 maybe)
 
51
!define PRODUCT_PLATFORM_NAME "gtkmm"
 
52
!define PRODUCT_SMNAME "Gtkmm"
 
53
!ifdef RUNTIME_ONLY
 
54
  !define PRODUCT_FULLNAME "gtkmm Runtime Environment"
 
55
!else
 
56
  !define PRODUCT_FULLNAME "gtkmm Development Environment"
 
57
!endif
 
58
!define PRODUCT_PUBLISHER "The gtkmm developers"
 
59
!define PRODUCT_WEB_SITE "http://www.gtkmm.org/"
 
60
 
 
61
!ifdef PRODUCT_VERSION
 
62
!undef PRODUCT_VERSION
 
63
!endif
 
64
!define PRODUCT_VERSION "@PACKAGE_VERSION@"
 
65
 
 
66
!ifdef RUNTIME_ONLY
 
67
  !define INSTALLER_NAME "${PRODUCT_NAME}-win32-runtime-${PRODUCT_VERSION}-${PRODUCT_VERSION_INSTALLER}.exe"
 
68
  !define BINDIR "bin_stripped"
 
69
!else
 
70
  !define INSTALLER_NAME "${PRODUCT_NAME}-win32-devel-${PRODUCT_VERSION}-${PRODUCT_VERSION_INSTALLER}.exe"
 
71
  !define BINDIR "bin"
 
72
!endif
 
73
 
 
74
!define GTKMM_REG_KEY            "Software\gtkmm\${PRODUCT_API_VERSION}"
 
75
!define GTKMM_UNINSTALL_KEY      "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}"
 
76
!define GTKMM_UNINSTALL_EXE      "gtkmm-uninst.exe"
 
77
 
 
78
;--------------------------------
 
79
; Installer Details
 
80
 
 
81
SetCompressor /SOLID lzma
 
82
ShowInstDetails hide
 
83
ShowUninstDetails hide
 
84
SetDateSave on
 
85
CRCCheck on
 
86
XPStyle on
 
87
 
 
88
;--------------------------------
 
89
; Standard Libraries
 
90
 
 
91
!include "MUI.nsh"
 
92
!include "Sections.nsh"
 
93
!include "StrFunc.nsh"
 
94
${StrTok} # Supportable for Install Sections and Functions
 
95
 
 
96
;--------------------------------
 
97
; Local Libraries
 
98
 
 
99
!addincludedir "NSISLibrary"
 
100
!include "PathManipulation.nsh"
 
101
;!include "DetectGTK.nsh"
 
102
!include "VersionCheck.nsh"
 
103
!include "CmdParameters.nsh"
 
104
!include "StringUtilities.nsh"
 
105
 
 
106
;--------------------------------
 
107
; Variables
 
108
 
 
109
Var CB_PATH_VALUE
 
110
Var ISADMIN
 
111
Var CONTEXT
 
112
Var ICONS_GROUP
 
113
Var FORCE_UNINSTALL
 
114
Var USE_GTKDIR
 
115
 
 
116
;--------------------------------
 
117
; MUI Settings
 
118
 
 
119
!define MUI_ABORTWARNING
 
120
!define MUI_ICON .\gtkmm.ico
 
121
!define MUI_UNICON .\gtkmm.ico
 
122
 
 
123
; Reserve space for InstallOptions
 
124
; Don't do it here as we want full extraction during the installer initialization
 
125
; ReserveFile "NSISLibrary\PathQuestion.ini"
 
126
; Reservefile "NSISLibrary\SetContext.ini"
 
127
; !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
 
128
; !insertmacro MUI_RESERVEFILE_LANGDLL
 
129
 
 
130
; Remember the installer language
 
131
!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
 
132
!define MUI_LANGDLL_REGISTRY_KEY "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}"
 
133
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
 
134
 
 
135
!define MUI_CUSTOMFUNCTION_GUIINIT CustomPreviousVersion
 
136
!define MUI_PAGE_CUSTOMFUNCTION_PRE EnableGTKInstaller
 
137
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE DisableGTKInstaller
 
138
!insertmacro MUI_PAGE_INSTFILES
 
139
!define MUI_WELCOMEPAGE_TITLE_3LINES
 
140
!insertmacro MUI_PAGE_WELCOME
 
141
; !define MUI_LICENSEPAGE_RADIOBUTTONS
 
142
!insertmacro MUI_PAGE_LICENSE "lgpl.txt"
 
143
Page custom CustomPageSetContext
 
144
!define MUI_PAGE_CUSTOMFUNCTION_PRE CustomSetTargetDirectory
 
145
!define MUI_DIRECTORYPAGE_TEXT_TOP  "$(GTKMM_DIRECTORYPAGE_HINT)"
 
146
!insertmacro MUI_PAGE_DIRECTORY
 
147
Page custom CustomPagePathQuestion
 
148
!ifndef RUNTIME_ONLY
 
149
  !insertmacro MUI_PAGE_COMPONENTS
 
150
!endif
 
151
!define MUI_STARTMENUPAGE_NODISABLE
 
152
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Gtkmm";
 
153
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
 
154
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${GTKMM_UNINSTALL_KEY}"
 
155
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "NSIS:StartMenuDir"
 
156
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
 
157
!insertmacro MUI_PAGE_INSTFILES
 
158
!define MUI_FINISHPAGE_TITLE_3LINES
 
159
!insertmacro MUI_PAGE_FINISH
 
160
 
 
161
!define MUI_WELCOMEPAGE_TITLE_3LINES
 
162
!insertmacro MUI_UNPAGE_WELCOME
 
163
!insertmacro MUI_UNPAGE_INSTFILES
 
164
!define MUI_FINISHPAGE_TITLE_3LINES
 
165
!insertmacro MUI_UNPAGE_FINISH
 
166
 
 
167
;--------------------------------
 
168
; Languages
 
169
 
 
170
!insertmacro MUI_LANGUAGE "English"
 
171
!insertmacro MUI_LANGUAGE "French"
 
172
!insertmacro MUI_LANGUAGE "SimpChinese"
 
173
 
 
174
!include "translations\english.nsh"
 
175
!include "translations\french.nsh"
 
176
!include "translations\simpchinese.nsh"
 
177
 
 
178
;--------------------------------
 
179
; General Installer Options
 
180
 
 
181
Name "${PRODUCT_FULLNAME} ${PRODUCT_VERSION}"
 
182
OutFile "${INSTALLER_NAME}"
 
183
;InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
 
184
; Use a default path which has no spaces in it, pkg-config fails otherwise.
 
185
; see http://lists.freedesktop.org/archives/pkg-config/2007-September/000224.html
 
186
InstallDir "C:\${PRODUCT_PLATFORM_NAME}"
 
187
; Get installation folder from registry if available
 
188
InstallDirRegKey HKLM Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION} "Path"
 
189
 
 
190
;--------------------------------
 
191
; Installer Sections
 
192
 
 
193
!ifndef RUNTIME_ONLY
 
194
  InstType "Full"
 
195
  InstType "Runtime only"
 
196
!endif
 
197
 
 
198
;Section -installgtk SecGTKInstaller
 
199
 
200
;  Push ${GTK_VERSION}
 
201
;  Call CheckGTKRuntime
 
202
 
203
;SectionEnd
 
204
 
 
205
SubSection "GTK+"
 
206
 
 
207
Section "Runtime" SecGTKRuntime
 
208
!ifndef RUNTIME_ONLY
 
209
  SectionIn 1 2 RO
 
210
!else
 
211
  SectionIn RO
 
212
!endif
 
213
  SetOverwrite ifnewer
 
214
 
 
215
  SetOutPath $INSTDIR\bin
 
216
 
 
217
  File ${BINDIR}\libgcc_s_sjlj-1.dll
 
218
 
 
219
  ; These break when stripped, therefore we always load them from bin/
 
220
  File bin\zlib1.dll
 
221
  File bin\intl.dll
 
222
;  File bin\charset.dll
 
223
;  File bin\iconv.dll
 
224
 
 
225
  File ${BINDIR}\libxml2-2.dll
 
226
;  File ${BINDIR}\libjpeg-7.dll
 
227
  File ${BINDIR}\libpng14-14.dll
 
228
;  File ${BINDIR}\libtiff-3.dll
 
229
  File ${BINDIR}\freetype6.dll
 
230
  File ${BINDIR}\libexpat-1.dll
 
231
  File ${BINDIR}\libfontconfig-1.dll
 
232
  File ${BINDIR}\libglib-2.0-0.dll
 
233
  File ${BINDIR}\libgobject-2.0-0.dll
 
234
  File ${BINDIR}\libgmodule-2.0-0.dll
 
235
  File ${BINDIR}\libgthread-2.0-0.dll
 
236
  File ${BINDIR}\libgio-2.0-0.dll
 
237
  File ${BINDIR}\libcairo-2.dll
 
238
  File ${BINDIR}\libatk-1.0-0.dll
 
239
  File ${BINDIR}\libpango-1.0-0.dll
 
240
  File ${BINDIR}\libpangocairo-1.0-0.dll
 
241
  File ${BINDIR}\libpangoft2-1.0-0.dll
 
242
  File ${BINDIR}\libpangowin32-1.0-0.dll
 
243
  File ${BINDIR}\libgailutil-18.dll
 
244
  File ${BINDIR}\libgdk-win32-2.0-0.dll
 
245
  File ${BINDIR}\libgdk_pixbuf-2.0-0.dll
 
246
  File ${BINDIR}\libgtk-win32-2.0-0.dll
 
247
  File ${BINDIR}\libglade-2.0-0.dll
 
248
  File ${BINDIR}\gspawn-win32-helper.exe
 
249
  File ${BINDIR}\gspawn-win32-helper-console.exe
 
250
  File ${BINDIR}\gtk-update-icon-cache.exe
 
251
  File ${BINDIR}\gtk-demo.exe
 
252
 
 
253
  SetOutPath $INSTDIR\lib\gtk-2.0\2.10.0
 
254
  File /r lib\gtk-2.0\2.10.0\engines
 
255
  SetOutPath $INSTDIR\lib\gdk-pixbuf-2.0\2.10.0
 
256
  File /r lib\gdk-pixbuf-2.0\2.10.0\loaders
 
257
 
 
258
  SetOutPath $INSTDIR\lib\gtk-2.0
 
259
  File /r lib\gtk-2.0\modules
 
260
 
 
261
  SetOutPath $INSTDIR\etc
 
262
  File /r etc\gtk-2.0
 
263
  File /r etc\pango
 
264
 
 
265
  ; TODO: Add others... libiconv, fontconfig, libxml2, tiff... however note
 
266
  ; that some contain devel-only things.
 
267
  SetOutPath $INSTDIR\share\doc
 
268
  File /r share\doc\glib-2.26.0
 
269
  File /r share\doc\cairo_1.10.0-1_win32
 
270
  File /r share\doc\pango-1.28.3
 
271
  File /r share\doc\gtk+-2.22.0
 
272
 
 
273
  SetOutPath $INSTDIR\share
 
274
  File /r share\locale
 
275
  File /r share\themes
 
276
; Only required for gtk-demo:
 
277
  File /r share\gtk-2.0
 
278
 
 
279
!ifndef RUNTIME_ONLY
 
280
  SetOutPath $INSTDIR\redist
 
281
 
 
282
  File bin_stripped\libgcc_s_sjlj-1.dll
 
283
 
 
284
  ; These are broken when stripped:
 
285
  File bin\zlib1.dll
 
286
  File bin\intl.dll
 
287
;  File bin\charset.dll
 
288
;  File bin\iconv.dll
 
289
 
 
290
  File bin_stripped\libxml2-2.dll
 
291
;  File bin_stripped\libjpeg-7.dll
 
292
  File bin_stripped\libpng14-14.dll
 
293
;  File bin_stripped\libtiff-3.dll
 
294
  File bin_stripped\freetype6.dll
 
295
  File bin_stripped\libexpat-1.dll
 
296
  File bin_stripped\libfontconfig-1.dll
 
297
  File bin_stripped\libglib-2.0-0.dll
 
298
  File bin_stripped\libgobject-2.0-0.dll
 
299
  File bin_stripped\libgmodule-2.0-0.dll
 
300
  File bin_stripped\libgthread-2.0-0.dll
 
301
  File bin_stripped\libgio-2.0-0.dll
 
302
  File bin_stripped\libcairo-2.dll
 
303
  File bin_stripped\libatk-1.0-0.dll
 
304
  File bin_stripped\libpango-1.0-0.dll
 
305
  File bin_stripped\libpangocairo-1.0-0.dll
 
306
  File bin_stripped\libpangoft2-1.0-0.dll
 
307
  File bin_stripped\libpangowin32-1.0-0.dll
 
308
  File bin_stripped\libgailutil-18.dll
 
309
  File bin_stripped\libgdk-win32-2.0-0.dll
 
310
  File bin_stripped\libgdk_pixbuf-2.0-0.dll
 
311
  File bin_stripped\libgtk-win32-2.0-0.dll
 
312
  File bin_stripped\libglade-2.0-0.dll
 
313
  File bin_stripped\gspawn-win32-helper.exe
 
314
  File bin_stripped\gspawn-win32-helper-console.exe
 
315
!endif
 
316
 
 
317
SectionEnd
 
318
 
 
319
!ifndef RUNTIME_ONLY
 
320
Section "Development" SecGTKDevelopment
 
321
  SectionIn 1
 
322
  SetOverwrite ifnewer
 
323
 
 
324
  SetOutPath $INSTDIR\bin
 
325
 
 
326
  ; Again, we always use the non-stripped version here since stripping breaks it
 
327
;  File bin\iconv.exe
 
328
 
 
329
  ; These are only useful to developers
 
330
  File ${BINDIR}\pkg-config.exe
 
331
  File ${BINDIR}\glib-genmarshal.exe
 
332
  File ${BINDIR}\glib-gettextize
 
333
  File ${BINDIR}\glib-mkenums
 
334
  File ${BINDIR}\gobject-query.exe
 
335
  File ${BINDIR}\pango-querymodules.exe
 
336
  File ${BINDIR}\gdk-pixbuf-csource.exe
 
337
  File ${BINDIR}\gdk-pixbuf-query-loaders.exe
 
338
  File ${BINDIR}\gtk-builder-convert
 
339
  File ${BINDIR}\gtk-query-immodules-2.0.exe
 
340
 
 
341
  SetOutPath $INSTDIR\include
 
342
  File /r include\libxml2
 
343
  File /r include\freetype2
 
344
  File /r include\fontconfig
 
345
  File /r include\libpng14
 
346
  File /r include\glib-2.0
 
347
  File /r include\cairo
 
348
  File /r include\atk-1.0
 
349
  File /r include\pango-1.0
 
350
  File /r include\gdk-pixbuf-2.0
 
351
  File /r include\gtk-2.0
 
352
  File /r include\libglade-2.0
 
353
  File /r include\gail-1.0
 
354
 
 
355
  File include\expat.h
 
356
  File include\expat_external.h
 
357
  File include\ft2build.h
 
358
;  File include\iconv.h
 
359
;  File include\jconfig.h
 
360
;  File include\jerror.h
 
361
;  File include\jmorecfg.h
 
362
;  File include\jpeglib.h
 
363
;  File include\libcharset.h
 
364
;  File include\localcharset.h
 
365
  File include\libintl.h
 
366
  File include\png.h
 
367
  File include\pngconf.h
 
368
;  File include\tiff.h
 
369
;  File include\tiffconf.h
 
370
;  File include\tiffio.h
 
371
;  File include\tiffvers.h
 
372
  File include\zconf.h
 
373
  File include\zlib.h
 
374
 
 
375
  SetOutPath $INSTDIR\lib\gtk-2.0
 
376
  File /r lib\gtk-2.0\include
 
377
 
 
378
  SetOutPath $INSTDIR\lib\glib-2.0
 
379
  File /r lib\glib-2.0\include
 
380
 
 
381
  SetOutPath $INSTDIR\lib\gtk-2.0
 
382
  File /r lib\gtk-2.0\include
 
383
 
 
384
  SetOutPath $INSTDIR\lib
 
385
  File lib\libxml2.lib
 
386
  File lib\libxml2.dll.a
 
387
;  File lib\charset.lib
 
388
;  File lib\iconv.lib
 
389
;  File lib\libiconv.a
 
390
  File lib\libintl.def
 
391
  File lib\intl.lib
 
392
  File lib\libintl.dll.a
 
393
;  File lib\libtiff.def Is no longer provided by the bundle since 2.16.6
 
394
;  File lib\libtiff.lib Is no longer provided by the bundle since 2.16.6
 
395
;  File lib\libtiff.dll.a
 
396
  File lib\libpng.def
 
397
  File lib\libpng.lib
 
398
  File lib\libpng14.dll.a
 
399
  File lib\zlib.def
 
400
  File lib\zdll.lib
 
401
  File lib\libz.dll.a
 
402
  File lib\libfreetype.dll.a
 
403
  File lib\libexpat.def
 
404
  File lib\expat.lib
 
405
  File lib\libexpat.dll.a
 
406
  File lib\fontconfig.def
 
407
  File lib\fontconfig.lib
 
408
  File lib\libfontconfig.dll.a
 
409
  File lib\glib-2.0.def
 
410
  File lib\glib-2.0.lib
 
411
  File lib\libglib-2.0.dll.a
 
412
  File lib\gobject-2.0.def
 
413
  File lib\gobject-2.0.lib
 
414
  File lib\libgobject-2.0.dll.a
 
415
  File lib\gmodule-2.0.def
 
416
  File lib\gmodule-2.0.lib
 
417
  File lib\libgmodule-2.0.dll.a
 
418
  File lib\gthread-2.0.def
 
419
  File lib\gthread-2.0.lib
 
420
  File lib\libgthread-2.0.dll.a
 
421
  File lib\gio-2.0.def
 
422
  File lib\gio-2.0.lib
 
423
  File lib\libgio-2.0.dll.a
 
424
  File lib\cairo.def
 
425
  File lib\cairo.lib
 
426
  File lib\libcairo.dll.a
 
427
  File lib\atk-1.0.def
 
428
  File lib\atk-1.0.lib
 
429
  File lib\libatk-1.0.dll.a
 
430
  File lib\pango-1.0.def
 
431
  File lib\pango-1.0.lib
 
432
  File lib\libpango-1.0.dll.a
 
433
  File lib\pangocairo-1.0.def
 
434
  File lib\pangocairo-1.0.lib
 
435
  File lib\libpangocairo-1.0.dll.a
 
436
  File lib\pangoft2-1.0.def
 
437
  File lib\pangoft2-1.0.lib
 
438
  File lib\libpangoft2-1.0.dll.a
 
439
  File lib\pangowin32-1.0.def
 
440
  File lib\pangowin32-1.0.lib
 
441
  File lib\libpangowin32-1.0.dll.a
 
442
  File lib\gailutil.lib
 
443
  File lib\libgailutil.dll.a
 
444
; TODO: What about .defs here?
 
445
  File lib\gdk-win32-2.0.lib
 
446
  File lib\libgdk-win32-2.0.dll.a
 
447
  File lib\gdk_pixbuf-2.0.lib
 
448
  File lib\libgdk_pixbuf-2.0.dll.a
 
449
  File lib\gtk-win32-2.0.lib
 
450
  File lib\libgtk-win32-2.0.dll.a
 
451
  File lib\glade-2.0.lib
 
452
  File lib\libglade-2.0.dll.a
 
453
 
 
454
  SetOutPath $INSTDIR\lib\pkgconfig
 
455
  File lib\pkgconfig\libxml-2.0.pc
 
456
  File lib\pkgconfig\libpng.pc
 
457
  File lib\pkgconfig\libpng14.pc
 
458
  File lib\pkgconfig\freetype2.pc
 
459
  File lib\pkgconfig\fontconfig.pc
 
460
  File lib\pkgconfig\glib-2.0.pc
 
461
  File lib\pkgconfig\gmodule-2.0.pc
 
462
  File lib\pkgconfig\gmodule-no-export-2.0.pc
 
463
  File lib\pkgconfig\gobject-2.0.pc
 
464
  File lib\pkgconfig\gthread-2.0.pc
 
465
  File lib\pkgconfig\gio-2.0.pc
 
466
  File lib\pkgconfig\cairo.pc
 
467
  File lib\pkgconfig\cairo-png.pc
 
468
  File lib\pkgconfig\cairo-pdf.pc
 
469
  File lib\pkgconfig\cairo-ps.pc
 
470
  File lib\pkgconfig\cairo-svg.pc
 
471
  File lib\pkgconfig\cairo-win32.pc
 
472
  File lib\pkgconfig\cairo-win32-font.pc
 
473
  File lib\pkgconfig\atk.pc
 
474
  File lib\pkgconfig\pango.pc
 
475
  File lib\pkgconfig\pangocairo.pc
 
476
  File lib\pkgconfig\pangoft2.pc
 
477
  File lib\pkgconfig\pangowin32.pc
 
478
  File lib\pkgconfig\gdk-2.0.pc
 
479
  File lib\pkgconfig\gdk-pixbuf-2.0.pc
 
480
  File lib\pkgconfig\gdk-win32-2.0.pc
 
481
  File lib\pkgconfig\gtk+-2.0.pc
 
482
  File lib\pkgconfig\gtk+-win32-2.0.pc
 
483
  File lib\pkgconfig\libglade-2.0.pc
 
484
  File lib\pkgconfig\gail.pc
 
485
 
 
486
  SetOutPath $INSTDIR\share\doc
 
487
  File /r share\doc\glib-dev-2.26.0
 
488
  File /r share\doc\pango-dev-1.28.3
 
489
  File /r share\doc\gtk+-dev-2.22.0
 
490
 
 
491
  SetOutPath $INSTDIR\share\xml
 
492
  File /r share\xml\libglade
 
493
 
 
494
  SetOutPath $INSTDIR\share
 
495
  File /r share\glib-2.0
 
496
 
 
497
  SetOutPath $INSTDIR\share\aclocal
 
498
  File share\aclocal\libxml.m4
 
499
  File share\aclocal\freetype2.m4
 
500
  File share\aclocal\glib-2.0.m4
 
501
  File share\aclocal\glib-gettext.m4
 
502
  File share\aclocal\gtk-2.0.m4
 
503
  File share\aclocal\pkg.m4
 
504
SectionEnd
 
505
 
 
506
Section "Documentation" SecGTKDocumentation
 
507
  SectionIn 1
 
508
  SetOverwrite ifnewer
 
509
  
 
510
;  SetOutPath $INSTDIR\share\doc
 
511
;  File /r share\doc\libiconv
 
512
 
 
513
  SetOutPath $INSTDIR\share\gtk-doc\html
 
514
  File /r share\gtk-doc\html\libxml2
 
515
  File /r share\gtk-doc\html\glib
 
516
  File /r share\gtk-doc\html\gobject
 
517
  File /r share\gtk-doc\html\cairo
 
518
  File /r share\gtk-doc\html\pango
 
519
  File /r share\gtk-doc\html\gdk
 
520
  File /r share\gtk-doc\html\gdk-pixbuf
 
521
  File /r share\gtk-doc\html\gtk
 
522
  File /r share\gtk-doc\html\libglade
 
523
  File /r share\gtk-doc\html\gail-libgail-util
 
524
 
 
525
SectionEnd
 
526
!endif
 
527
 
 
528
SubSectionEnd 
 
529
 
 
530
SubSection "libsigc++"
 
531
 
 
532
Section "Runtime" SecSigcRuntime
 
533
!ifndef RUNTIME_ONLY
 
534
  SectionIn 1 2 RO
 
535
!else
 
536
  SectionIn RO
 
537
!endif
 
538
  SetOverwrite ifnewer
 
539
  
 
540
  SetOutPath $INSTDIR\bin
 
541
  File ${BINDIR}\libsigc-2.0-0.dll
 
542
  File MSVC\sigc-vc80-2_0.dll
 
543
  File MSVC\sigc-vc90-2_0.dll
 
544
  File MSVC\sigc-vc100-2_0.dll
 
545
  !ifndef RUNTIME_ONLY
 
546
    File MSVC\sigc-vc80-d-2_0.dll
 
547
    File MSVC\sigc-vc90-d-2_0.dll
 
548
    File MSVC\sigc-vc100-d-2_0.dll
 
549
    File MSVC\sigc-vc80-d-2_0.pdb
 
550
    File MSVC\sigc-vc90-d-2_0.pdb
 
551
    File MSVC\sigc-vc100-d-2_0.pdb
 
552
 
 
553
    SetOutPath $INSTDIR\redist
 
554
    File bin_stripped\libsigc-2.0-0.dll
 
555
  !endif
 
556
  
 
557
SectionEnd
 
558
 
 
559
!ifndef RUNTIME_ONLY
 
560
Section "Development" SecSigcDevelopment
 
561
  SectionIn 1
 
562
  SetOverwrite ifnewer
 
563
 
 
564
  SetOutPath $INSTDIR\include
 
565
  File /r include\sigc++-2.0
 
566
 
 
567
  SetOutPath $INSTDIR\lib
 
568
  File lib\libsigc-2.0.dll.a
 
569
  File /r lib\sigc++-2.0
 
570
  File MSVC\sigc-vc80-2_0.lib
 
571
  File MSVC\sigc-vc90-2_0.lib
 
572
  File MSVC\sigc-vc100-2_0.lib
 
573
  File MSVC\sigc-vc80-d-2_0.lib
 
574
  File MSVC\sigc-vc90-d-2_0.lib
 
575
  File MSVC\sigc-vc100-d-2_0.lib
 
576
  
 
577
  SetOutPath $INSTDIR\lib\pkgconfig
 
578
  File lib\pkgconfig\sigc++-2.0.pc
 
579
 
 
580
SectionEnd
 
581
 
 
582
Section "Documentation" SecSigcDocumentation
 
583
  SectionIn 1
 
584
  SetOverwrite ifnewer
 
585
  
 
586
  SetOutPath $INSTDIR\share\doc
 
587
  
 
588
  File /r share\doc\libsigc++-2.0
 
589
  
 
590
SectionEnd
 
591
!endif
 
592
 
 
593
SubSectionEnd
 
594
 
 
595
SubSection "cairomm"
 
596
 
 
597
Section "Runtime" SecCairommRuntime
 
598
!ifndef RUNTIME_ONLY
 
599
  SectionIn 1 2 RO
 
600
!else
 
601
  SectionIn RO
 
602
!endif
 
603
  SetOverwrite ifnewer
 
604
 
 
605
  SetOutPath $INSTDIR\bin
 
606
  File ${BINDIR}\libcairomm-1.0-1.dll
 
607
  File MSVC\cairomm-vc80-1_0.dll
 
608
  File MSVC\cairomm-vc90-1_0.dll
 
609
  File MSVC\cairomm-vc100-1_0.dll
 
610
  !ifndef RUNTIME_ONLY
 
611
    File MSVC\cairomm-vc80-d-1_0.dll
 
612
    File MSVC\cairomm-vc90-d-1_0.dll
 
613
    File MSVC\cairomm-vc100-d-1_0.dll
 
614
    File MSVC\cairomm-vc80-d-1_0.pdb
 
615
    File MSVC\cairomm-vc90-d-1_0.pdb
 
616
    File MSVC\cairomm-vc100-d-1_0.pdb
 
617
 
 
618
    SetOutPath $INSTDIR\redist
 
619
    File bin_stripped\libcairomm-1.0-1.dll
 
620
  !endif
 
621
  
 
622
SectionEnd
 
623
 
 
624
!ifndef RUNTIME_ONLY
 
625
Section "Development" SecCairommDevelopment
 
626
  SectionIn 1
 
627
  SetOverwrite ifnewer
 
628
 
 
629
  SetOutPath $INSTDIR\include
 
630
  File /r include\cairomm-1.0
 
631
 
 
632
  SetOutPath $INSTDIR\lib
 
633
  File /r lib\cairomm-1.0
 
634
  File lib\libcairomm-1.0.dll.a
 
635
  File MSVC\cairomm-vc80-1_0.lib
 
636
  File MSVC\cairomm-vc90-1_0.lib
 
637
  File MSVC\cairomm-vc100-1_0.lib
 
638
  File MSVC\cairomm-vc80-d-1_0.lib
 
639
  File MSVC\cairomm-vc90-d-1_0.lib
 
640
  File MSVC\cairomm-vc100-d-1_0.lib
 
641
 
 
642
  SetOutPath $INSTDIR\lib\pkgconfig
 
643
  File lib\pkgconfig\cairomm-1.0.pc
 
644
  
 
645
SectionEnd
 
646
 
 
647
Section "Documentation" SecCairommDocumentation
 
648
  SectionIn 1
 
649
  SetOverwrite ifnewer
 
650
 
 
651
  SetOutPath $INSTDIR\share\doc
 
652
  File /r share\doc\cairomm-1.0
 
653
 
 
654
SectionEnd
 
655
!endif
 
656
 
 
657
SubSectionEnd
 
658
 
 
659
SubSection "glibmm"
 
660
 
 
661
Section "Runtime" SecGlibmmRuntime
 
662
!ifndef RUNTIME_ONLY
 
663
  SectionIn 1 2 RO
 
664
!else
 
665
  SectionIn RO
 
666
!endif
 
667
  SetOverwrite ifnewer
 
668
 
 
669
  SetOutPath $INSTDIR\bin
 
670
  File ${BINDIR}\libglibmm-2.4-1.dll
 
671
  File ${BINDIR}\libgiomm-2.4-1.dll
 
672
  File ${BINDIR}\libglibmm_generate_extra_defs-2.4-1.dll
 
673
  File MSVC\glibmm-vc80-2_4.dll
 
674
  File MSVC\glibmm-vc90-2_4.dll
 
675
  File MSVC\glibmm-vc100-2_4.dll
 
676
  File MSVC\giomm-vc80-2_4.dll
 
677
  File MSVC\giomm-vc90-2_4.dll
 
678
  File MSVC\giomm-vc100-2_4.dll
 
679
  !ifndef RUNTIME_ONLY
 
680
    File MSVC\glibmm-vc80-d-2_4.dll
 
681
    File MSVC\glibmm-vc90-d-2_4.dll
 
682
    File MSVC\glibmm-vc100-d-2_4.dll
 
683
    File MSVC\glibmm-vc80-d-2_4.pdb
 
684
    File MSVC\glibmm-vc90-d-2_4.pdb
 
685
    File MSVC\glibmm-vc100-d-2_4.pdb
 
686
    File MSVC\giomm-vc80-d-2_4.dll
 
687
    File MSVC\giomm-vc90-d-2_4.dll
 
688
    File MSVC\giomm-vc100-d-2_4.dll
 
689
    File MSVC\giomm-vc80-d-2_4.pdb
 
690
    File MSVC\giomm-vc90-d-2_4.pdb
 
691
    File MSVC\giomm-vc100-d-2_4.pdb
 
692
 
 
693
    SetOutPath $INSTDIR\redist
 
694
    File bin_stripped\libglibmm-2.4-1.dll
 
695
    File bin_stripped\libgiomm-2.4-1.dll
 
696
  !endif
 
697
  
 
698
SectionEnd
 
699
 
 
700
!ifndef RUNTIME_ONLY
 
701
Section "Development" SecGlibmmDevelopment
 
702
  SectionIn 1
 
703
  SetOverwrite ifnewer
 
704
 
 
705
  SetOutPath $INSTDIR\include
 
706
  File /r include\glibmm-2.4
 
707
  File /r include\giomm-2.4
 
708
 
 
709
  SetOutPath $INSTDIR\lib
 
710
  File lib\libglibmm-2.4.dll.a
 
711
  File lib\libgiomm-2.4.dll.a
 
712
  File lib\libglibmm_generate_extra_defs-2.4.dll.a
 
713
  File /r lib\glibmm-2.4
 
714
  File /r lib\giomm-2.4
 
715
  File MSVC\glibmm-vc80-2_4.lib
 
716
  File MSVC\glibmm-vc90-2_4.lib
 
717
  File MSVC\glibmm-vc100-2_4.lib
 
718
  File MSVC\glibmm-vc80-d-2_4.lib
 
719
  File MSVC\glibmm-vc90-d-2_4.lib
 
720
  File MSVC\glibmm-vc100-d-2_4.lib
 
721
  File MSVC\giomm-vc80-2_4.lib
 
722
  File MSVC\giomm-vc90-2_4.lib
 
723
  File MSVC\giomm-vc100-2_4.lib
 
724
  File MSVC\giomm-vc80-d-2_4.lib
 
725
  File MSVC\giomm-vc90-d-2_4.lib
 
726
  File MSVC\giomm-vc100-d-2_4.lib
 
727
 
 
728
  SetOutPath $INSTDIR\lib\pkgconfig
 
729
  File lib\pkgconfig\glibmm-2.4.pc
 
730
  File lib\pkgconfig\giomm-2.4.pc
 
731
  
 
732
  SetOutPath $INSTDIR\share\aclocal
 
733
  File share\aclocal\glibmm_check_perl.m4
 
734
  
 
735
SectionEnd
 
736
 
 
737
Section "Documentation" SecGlibmmDocumentation
 
738
  SectionIn 1
 
739
  SetOverwrite ifnewer
 
740
 
 
741
  SetOutPath $INSTDIR\share\doc
 
742
  File /r share\doc\glibmm-2.4
 
743
 
 
744
;  SetOutPath $INSTDIR\share\devhelp\books
 
745
;  File /r share\devhelp\books\glibmm-2.4
 
746
SectionEnd
 
747
!endif
 
748
 
 
749
SubSectionEnd
 
750
 
 
751
SubSection "pangomm"
 
752
 
 
753
Section "Runtime" SecPangommRuntime
 
754
!ifndef RUNTIME_ONLY
 
755
  SectionIn 1 2 RO
 
756
!else
 
757
  SectionIn RO
 
758
!endif
 
759
  SetOverwrite ifnewer
 
760
 
 
761
  SetOutPath $INSTDIR\bin
 
762
  File ${BINDIR}\libpangomm-1.4-1.dll
 
763
  File MSVC\pangomm-vc80-1_4.dll
 
764
  File MSVC\pangomm-vc90-1_4.dll
 
765
  File MSVC\pangomm-vc100-1_4.dll
 
766
 
 
767
  !ifndef RUNTIME_ONLY
 
768
    File MSVC\pangomm-vc80-d-1_4.dll
 
769
    File MSVC\pangomm-vc90-d-1_4.dll
 
770
    File MSVC\pangomm-vc100-d-1_4.dll
 
771
    File MSVC\pangomm-vc80-d-1_4.pdb
 
772
    File MSVC\pangomm-vc90-d-1_4.pdb
 
773
    File MSVC\pangomm-vc100-d-1_4.pdb
 
774
 
 
775
    SetOutPath $INSTDIR\redist
 
776
    File bin_stripped\libpangomm-1.4-1.dll
 
777
  !endif
 
778
 
 
779
SectionEnd
 
780
 
 
781
!ifndef RUNTIME_ONLY
 
782
Section "Development" SecPangommDevelopment
 
783
  SectionIn 1
 
784
  SetOverwrite ifnewer
 
785
 
 
786
  SetOutPath $INSTDIR\include
 
787
  File /r include\pangomm-1.4
 
788
 
 
789
  SetOutPath $INSTDIR\lib
 
790
  File lib\libpangomm-1.4.dll.a
 
791
  File /r lib\pangomm-1.4
 
792
  
 
793
  File MSVC\pangomm-vc80-1_4.lib
 
794
  File MSVC\pangomm-vc90-1_4.lib
 
795
  File MSVC\pangomm-vc100-1_4.lib
 
796
  File MSVC\pangomm-vc80-d-1_4.lib
 
797
  File MSVC\pangomm-vc90-d-1_4.lib
 
798
  File MSVC\pangomm-vc100-d-1_4.lib
 
799
 
 
800
  SetOutPath $INSTDIR\lib\pkgconfig
 
801
  File lib\pkgconfig\pangomm-1.4.pc
 
802
  
 
803
SectionEnd
 
804
 
 
805
Section "Documentation" SecPangommDocumentation
 
806
  SectionIn 1
 
807
  SetOverwrite ifnewer
 
808
 
 
809
  SetOutPath $INSTDIR\share\doc
 
810
  File /r share\doc\pangomm-1.4
 
811
 
 
812
  SetOutPath $INSTDIR\share\devhelp\books
 
813
  File /r share\devhelp\books\pangomm-1.4
 
814
 
 
815
SectionEnd
 
816
!endif
 
817
 
 
818
SubSectionEnd
 
819
 
 
820
SubSection "atkmm"
 
821
 
 
822
Section "Runtime" SecAtkmmRuntime
 
823
!ifndef RUNTIME_ONLY
 
824
  SectionIn 1 2 RO
 
825
!else
 
826
  SectionIn RO
 
827
!endif
 
828
  SetOverwrite ifnewer
 
829
 
 
830
  SetOutPath $INSTDIR\bin
 
831
  File ${BINDIR}\libatkmm-1.6-1.dll
 
832
  File MSVC\atkmm-vc80-1_6.dll
 
833
  File MSVC\atkmm-vc90-1_6.dll
 
834
  File MSVC\atkmm-vc100-1_6.dll
 
835
 
 
836
  !ifndef RUNTIME_ONLY
 
837
    File MSVC\atkmm-vc80-d-1_6.dll
 
838
    File MSVC\atkmm-vc90-d-1_6.dll
 
839
    File MSVC\atkmm-vc100-d-1_6.dll
 
840
    File MSVC\atkmm-vc80-d-1_6.pdb
 
841
    File MSVC\atkmm-vc90-d-1_6.pdb
 
842
    File MSVC\atkmm-vc100-d-1_6.pdb
 
843
 
 
844
    SetOutPath $INSTDIR\redist
 
845
    File bin_stripped\libatkmm-1.6-1.dll
 
846
  !endif
 
847
 
 
848
SectionEnd
 
849
 
 
850
!ifndef RUNTIME_ONLY
 
851
Section "Development" SecAtkmmDevelopment
 
852
  SectionIn 1
 
853
  SetOverwrite ifnewer
 
854
 
 
855
  SetOutPath $INSTDIR\include
 
856
  File /r include\atkmm-1.6
 
857
 
 
858
  SetOutPath $INSTDIR\lib
 
859
  File lib\libatkmm-1.6.dll.a
 
860
  File /r lib\atkmm-1.6
 
861
  
 
862
  File MSVC\atkmm-vc80-1_6.lib
 
863
  File MSVC\atkmm-vc90-1_6.lib
 
864
  File MSVC\atkmm-vc100-1_6.lib
 
865
  File MSVC\atkmm-vc80-d-1_6.lib
 
866
  File MSVC\atkmm-vc90-d-1_6.lib
 
867
  File MSVC\atkmm-vc100-d-1_6.lib
 
868
 
 
869
  SetOutPath $INSTDIR\lib\pkgconfig
 
870
  File lib\pkgconfig\atkmm-1.6.pc
 
871
  
 
872
SectionEnd
 
873
 
 
874
Section "Documentation" SecAtkmmDocumentation
 
875
  SectionIn 1
 
876
  SetOverwrite ifnewer
 
877
 
 
878
  SetOutPath $INSTDIR\share\doc
 
879
  File /r share\doc\atkmm-1.6
 
880
 
 
881
  SetOutPath $INSTDIR\share\devhelp\books
 
882
  File /r share\devhelp\books\atkmm-1.6
 
883
 
 
884
SectionEnd
 
885
!endif
 
886
 
 
887
SubSectionEnd
 
888
 
 
889
SubSection "gtkmm"
 
890
 
 
891
Section "Runtime" SecGtkmmRuntime
 
892
!ifndef RUNTIME_ONLY
 
893
  SectionIn 1 2 RO
 
894
!else
 
895
  SectionIn RO
 
896
!endif
 
897
  SetOverwrite ifnewer
 
898
 
 
899
  SetOutPath $INSTDIR\bin
 
900
  File ${BINDIR}\libgdkmm-2.4-1.dll
 
901
  File ${BINDIR}\libgtkmm-2.4-1.dll
 
902
 
 
903
  File MSVC\gdkmm-vc80-2_4.dll
 
904
  File MSVC\gdkmm-vc90-2_4.dll
 
905
  File MSVC\gdkmm-vc100-2_4.dll
 
906
  File MSVC\gtkmm-vc80-2_4.dll
 
907
  File MSVC\gtkmm-vc90-2_4.dll
 
908
  File MSVC\gtkmm-vc100-2_4.dll
 
909
 
 
910
  !ifndef RUNTIME_ONLY
 
911
    File MSVC\gdkmm-vc80-d-2_4.dll
 
912
    File MSVC\gdkmm-vc90-d-2_4.dll
 
913
    File MSVC\gdkmm-vc100-d-2_4.dll
 
914
    File MSVC\gdkmm-vc80-d-2_4.pdb
 
915
    File MSVC\gdkmm-vc90-d-2_4.pdb
 
916
    File MSVC\gdkmm-vc100-d-2_4.pdb
 
917
    File MSVC\gtkmm-vc80-d-2_4.dll
 
918
    File MSVC\gtkmm-vc90-d-2_4.dll
 
919
    File MSVC\gtkmm-vc100-d-2_4.dll
 
920
    File MSVC\gtkmm-vc80-d-2_4.pdb
 
921
    File MSVC\gtkmm-vc90-d-2_4.pdb
 
922
    File MSVC\gtkmm-vc100-d-2_4.pdb
 
923
 
 
924
    SetOutPath $INSTDIR\redist
 
925
    File bin_stripped\libgdkmm-2.4-1.dll
 
926
    File bin_stripped\libgtkmm-2.4-1.dll
 
927
  !endif
 
928
  
 
929
SectionEnd
 
930
 
 
931
!ifndef RUNTIME_ONLY
 
932
Section "Development" SecGtkmmDevelopment
 
933
  SectionIn 1
 
934
  SetOverwrite ifnewer
 
935
 
 
936
  SetOutPath $INSTDIR\include
 
937
  File /r include\gtkmm-2.4
 
938
  File /r include\gdkmm-2.4
 
939
 
 
940
  SetOutPath $INSTDIR\lib
 
941
  File lib\libgdkmm-2.4.dll.a
 
942
  File lib\libgtkmm-2.4.dll.a
 
943
  File /r lib\gtkmm-2.4
 
944
  File /r lib\gdkmm-2.4
 
945
  
 
946
  File MSVC\gdkmm-vc80-2_4.lib
 
947
  File MSVC\gdkmm-vc90-2_4.lib
 
948
  File MSVC\gdkmm-vc100-2_4.lib
 
949
  File MSVC\gdkmm-vc80-d-2_4.lib
 
950
  File MSVC\gdkmm-vc90-d-2_4.lib
 
951
  File MSVC\gdkmm-vc100-d-2_4.lib
 
952
  File MSVC\gtkmm-vc80-2_4.lib
 
953
  File MSVC\gtkmm-vc90-2_4.lib
 
954
  File MSVC\gtkmm-vc100-2_4.lib
 
955
  File MSVC\gtkmm-vc80-d-2_4.lib
 
956
  File MSVC\gtkmm-vc90-d-2_4.lib
 
957
  File MSVC\gtkmm-vc100-d-2_4.lib
 
958
 
 
959
  SetOutPath $INSTDIR\lib\pkgconfig
 
960
  File lib\pkgconfig\gdkmm-2.4.pc
 
961
  File lib\pkgconfig\gtkmm-2.4.pc
 
962
  
 
963
  SetOutPath $INSTDIR\MSVC
 
964
  File MSVC\gtkmm-vc80-2_4.vsprops
 
965
  File MSVC\gtkmm-vc90-2_4.vsprops
 
966
  File MSVC\gtkmm-vc100-2_4.props
 
967
  File MSVC\gtkmm-vc80-d-2_4.vsprops
 
968
  File MSVC\gtkmm-vc90-d-2_4.vsprops
 
969
  File MSVC\gtkmm-vc100-d-2_4.props
 
970
  File MSVC\gtkmm-2.4.vsprops
 
971
  File MSVC\gtkmm-2.4d.vsprops
 
972
 
 
973
SectionEnd
 
974
 
 
975
Section "Demo" SecGtkmmDemo
 
976
  SectionIn 1
 
977
  SetOverwrite ifnewer
 
978
 
 
979
  SetOutPath $INSTDIR\gtkmm-demo
 
980
  File demo\gtkmm-demo.exe
 
981
  File demo\*.cc
 
982
  File demo\*.png
 
983
  File demo\*.jpg
 
984
  File demo\*.gif
 
985
 
 
986
SectionEnd
 
987
 
 
988
Section "Documentation" SecGtkmmDocumentation
 
989
  SectionIn 1
 
990
  SetOverwrite ifnewer
 
991
 
 
992
  SetOutPath $INSTDIR\share\doc
 
993
  File /r share\doc\gtkmm-2.4
 
994
 
 
995
  SetOutPath $INSTDIR\share\devhelp\books
 
996
  File /r share\devhelp\books\gtkmm-2.4
 
997
 
 
998
SectionEnd
 
999
!endif
 
1000
 
 
1001
SubSectionEnd
 
1002
 
 
1003
SubSection "libglademm"
 
1004
 
 
1005
Section "Runtime" SecLibglademmRuntime
 
1006
!ifndef RUNTIME_ONLY
 
1007
  SectionIn 1 2
 
1008
!endif
 
1009
  SetOverwrite ifnewer
 
1010
 
 
1011
  SetOutPath $INSTDIR\bin
 
1012
  File ${BINDIR}\libglademm-2.4-1.dll
 
1013
  File MSVC\glademm-vc80-2_4.dll
 
1014
  File MSVC\glademm-vc90-2_4.dll
 
1015
  File MSVC\glademm-vc100-2_4.dll
 
1016
  !ifndef RUNTIME_ONLY
 
1017
    File MSVC\glademm-vc80-d-2_4.dll
 
1018
    File MSVC\glademm-vc90-d-2_4.dll
 
1019
    File MSVC\glademm-vc100-d-2_4.dll
 
1020
    File MSVC\glademm-vc80-d-2_4.pdb
 
1021
    File MSVC\glademm-vc90-d-2_4.pdb
 
1022
    File MSVC\glademm-vc100-d-2_4.pdb
 
1023
 
 
1024
    SetOutPath $INSTDIR\redist
 
1025
    File bin_stripped\libglademm-2.4-1.dll
 
1026
  !endif
 
1027
  
 
1028
SectionEnd
 
1029
 
 
1030
!ifndef RUNTIME_ONLY
 
1031
Section "Development" SecLibglademmDevelopment
 
1032
  SectionIn 1
 
1033
  SetOverwrite ifnewer
 
1034
 
 
1035
  SetOutPath $INSTDIR\include
 
1036
  File /r include\libglademm-2.4
 
1037
 
 
1038
  SetOutPath $INSTDIR\lib
 
1039
  File lib\libglademm-2.4.dll.a
 
1040
  File /r lib\libglademm-2.4
 
1041
  File MSVC\glademm-vc80-2_4.lib
 
1042
  File MSVC\glademm-vc90-2_4.lib
 
1043
  File MSVC\glademm-vc100-2_4.lib
 
1044
  File MSVC\glademm-vc80-d-2_4.lib
 
1045
  File MSVC\glademm-vc90-d-2_4.lib
 
1046
  File MSVC\glademm-vc100-d-2_4.lib
 
1047
 
 
1048
  SetOutPath $INSTDIR\lib\pkgconfig
 
1049
  File lib\pkgconfig\libglademm-2.4.pc
 
1050
 
 
1051
SectionEnd
 
1052
 
 
1053
Section "Documentation" SecLibglademmDocumentation
 
1054
  SectionIn 1
 
1055
  SetOverwrite ifnewer
 
1056
 
 
1057
  SetOutPath $INSTDIR\share\doc\gnomemm-2.6
 
1058
  File /r share\doc\gnomemm-2.6\libglademm-2.4
 
1059
  
 
1060
  SetOutPath $INSTDIR\share\devhelp\books
 
1061
  File /r share\devhelp\books\libglademm-2.4
 
1062
 
 
1063
SectionEnd
 
1064
!endif
 
1065
 
 
1066
SubSectionEnd
 
1067
 
 
1068
SubSection "libxml++"
 
1069
 
 
1070
Section "Runtime" SecLibxmlRuntime
 
1071
!ifndef RUNTIME_ONLY
 
1072
  SectionIn 1 2
 
1073
!endif
 
1074
  SetOverwrite ifnewer
 
1075
 
 
1076
  SetOutPath $INSTDIR\bin
 
1077
  File ${BINDIR}\libxml++-2.6-2.dll
 
1078
  File MSVC\xml++-vc80-2_6.dll
 
1079
  File MSVC\xml++-vc90-2_6.dll
 
1080
  File MSVC\xml++-vc100-2_6.dll
 
1081
  !ifndef RUNTIME_ONLY
 
1082
    File MSVC\xml++-vc80-d-2_6.dll
 
1083
    File MSVC\xml++-vc90-d-2_6.dll
 
1084
    File MSVC\xml++-vc100-d-2_6.dll
 
1085
    File MSVC\xml++-vc80-d-2_6.pdb
 
1086
    File MSVC\xml++-vc90-d-2_6.pdb
 
1087
    File MSVC\xml++-vc100-d-2_6.pdb
 
1088
 
 
1089
    SetOutPath $INSTDIR\redist
 
1090
    File bin_stripped\libxml++-2.6-2.dll
 
1091
  !endif
 
1092
 
 
1093
SectionEnd
 
1094
 
 
1095
!ifndef RUNTIME_ONLY
 
1096
Section "Development" SecLibxmlDevelopment
 
1097
  SectionIn 1
 
1098
  SetOverwrite ifnewer
 
1099
 
 
1100
  SetOutPath $INSTDIR\include
 
1101
  File /r include\libxml++-2.6
 
1102
 
 
1103
  SetOutPath $INSTDIR\lib
 
1104
  File lib\libxml++-2.6.dll.a
 
1105
  File /r lib\libxml++-2.6
 
1106
  File MSVC\xml++-vc80-2_6.lib
 
1107
  File MSVC\xml++-vc90-2_6.lib
 
1108
  File MSVC\xml++-vc100-2_6.lib
 
1109
  File MSVC\xml++-vc80-d-2_6.lib
 
1110
  File MSVC\xml++-vc90-d-2_6.lib
 
1111
  File MSVC\xml++-vc100-d-2_6.lib
 
1112
 
 
1113
  SetOutPath $INSTDIR\lib\pkgconfig
 
1114
  File lib\pkgconfig\libxml++-2.6.pc
 
1115
 
 
1116
SectionEnd
 
1117
 
 
1118
Section "Documentation" SecLibxmlDocumentation
 
1119
  SectionIn 1
 
1120
  SetOverwrite ifnewer
 
1121
 
 
1122
  SetOutPath $INSTDIR\share\doc
 
1123
  File /r share\doc\libxml++-2.6
 
1124
 
 
1125
SectionEnd
 
1126
!endif
 
1127
 
 
1128
SubSectionEnd
 
1129
 
 
1130
Section -Post SecPost
 
1131
 
 
1132
  Strcmp $ISADMIN "1" 0 +3
 
1133
    IfSilent +2
 
1134
      !insertmacro MUI_INSTALLOPTIONS_READ $CONTEXT "SetContext.ini" "Field 2" "State"
 
1135
 
 
1136
  ; TODO: Check that, if CONTEXT is set on silent install (meaning /ALLUSERS
 
1137
  ; was given on the command line), $ISADMIN is set as well, otherwise we
 
1138
  ; can't install for all users.
 
1139
 
 
1140
  ; Get rid of leftover start menus
 
1141
  StrCmp $CONTEXT "1" 0 +3
 
1142
  RMDir /r "$SMPROGRAMS\gtkmm for Mingw"
 
1143
  SetShellVarContext all
 
1144
 
 
1145
  ; Start Menu
 
1146
  CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
 
1147
 
 
1148
  SetOutPath $INSTDIR\redist
 
1149
  File /oname=README.txt "redist_README.txt"
 
1150
 
 
1151
  SetOutPath $INSTDIR
 
1152
  File "gtkmm.ico"
 
1153
  File "lgpl.txt"
 
1154
  File "gtkmm_win32.txt"
 
1155
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\License.lnk" "$INSTDIR\lgpl.txt"
 
1156
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Read Me.lnk" "$INSTDIR\gtkmm_win32.txt"
 
1157
  
 
1158
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
 
1159
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
 
1160
 
 
1161
  ; Registry + Add/Remove Entry
 
1162
  StrCmp $CONTEXT "1" 0 +11
 
1163
  WriteRegStr HKLM "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}" "Path" "$INSTDIR"
 
1164
  WriteRegStr HKLM "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}" "Version" "${PRODUCT_VERSION}"
 
1165
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "DisplayName" "${PRODUCT_FULLNAME} ${PRODUCT_VERSION_MAJOR}.${PRODUCT_VERSION_MINOR}" ; TODO: separate display name for 32 and 64 bit
 
1166
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "DisplayIcon" "$INSTDIR\gtkmm.ico"
 
1167
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "Publisher" "${PRODUCT_PUBLISHER}"
 
1168
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "UninstallString" "$INSTDIR\${GTKMM_UNINSTALL_EXE}"
 
1169
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "DisplayVersion" "${PRODUCT_VERSION}-${PRODUCT_VERSION_INSTALLER}"
 
1170
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
 
1171
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "NSIS:StartMenuDir" "$ICONS_GROUP"
 
1172
  Goto +10
 
1173
  WriteRegStr HKCU "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}" "Path" "$INSTDIR"
 
1174
  WriteRegStr HKCU "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}" "Version" "${PRODUCT_VERSION}"
 
1175
  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "DisplayName" "${PRODUCT_FULLNAME} ${PRODUCT_VERSION_MAJOR}.${PRODUCT_VERSION_MINOR}"
 
1176
  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "DisplayIcon" "$INSTDIR\gtkmm.ico"
 
1177
  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "Publisher" "${PRODUCT_PUBLISHER}"
 
1178
  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "UninstallString" "$INSTDIR\${GTKMM_UNINSTALL_EXE}"
 
1179
  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "DisplayVersion" "${PRODUCT_VERSION}-${PRODUCT_VERSION_INSTALLER}"
 
1180
  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
 
1181
  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "NSIS:StartMenuDir" "$ICONS_GROUP"
 
1182
 
 
1183
!ifndef RUNTIME_ONLY
 
1184
  IfFileExists "$INSTDIR\share\doc\*.*" "" +2
 
1185
    CreateDirectory "$SMPROGRAMS\$ICONS_GROUP\Documentation"
 
1186
  IfFileExists "$INSTDIR\share\gtk-doc\html\*.*" "" +2
 
1187
    CreateDirectory "$SMPROGRAMS\$ICONS_GROUP\Documentation"
 
1188
 
 
1189
  IfFileExists "$INSTDIR\share\gtk-doc\html\libxml2\index.html" "" +2
 
1190
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\libxml2 Reference Manual.lnk" "$INSTDIR\share\gtk-doc\html\libxml2\index.html"
 
1191
 
 
1192
  IfFileExists "$INSTDIR\share\gtk-doc\html\glib\index.html" "" +2
 
1193
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\glib Reference Manual.lnk" "$INSTDIR\share\gtk-doc\html\glib\index.html"
 
1194
 
 
1195
  IfFileExists "$INSTDIR\share\gtk-doc\html\gobject\index.html" "" +2
 
1196
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\gobject Reference Manual.lnk" "$INSTDIR\share\gtk-doc\html\gobject\index.html"
 
1197
 
 
1198
  IfFileExists "$INSTDIR\share\gtk-doc\html\cairo\index.html" "" +2
 
1199
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\cairo Reference Manual.lnk" "$INSTDIR\share\gtk-doc\html\cairo\index.html"
 
1200
 
 
1201
  IfFileExists "$INSTDIR\share\gtk-doc\html\pango\index.html" "" +2
 
1202
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\pango Reference Manual.lnk" "$INSTDIR\share\gtk-doc\html\pango\index.html"
 
1203
 
 
1204
  IfFileExists "$INSTDIR\share\gtk-doc\html\gdk\index.html" "" +2
 
1205
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\GDK Reference Manual.lnk" "$INSTDIR\share\gtk-doc\html\gdk\index.html"
 
1206
 
 
1207
  IfFileExists "$INSTDIR\share\gtk-doc\html\gdk-pixbuf\index.html" "" +2
 
1208
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\gdk-pixbuf Reference Manual.lnk" "$INSTDIR\share\gtk-doc\html\gdk-pixbuf\index.html"
 
1209
 
 
1210
  IfFileExists "$INSTDIR\share\gtk-doc\html\gtk\index.html" "" +2
 
1211
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\GTK+ Reference Manual.lnk" "$INSTDIR\share\gtk-doc\html\gtk\index.html"
 
1212
 
 
1213
  IfFileExists "$INSTDIR\share\gtk-doc\html\libglade\index.html" "" +2
 
1214
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\libglade Reference Manual.lnk" "$INSTDIR\share\gtk-doc\html\libglade\index.html"
 
1215
 
 
1216
  IfFileExists "$INSTDIR\share\gtk-doc\html\gail-libgail-util\index.html" "" +2
 
1217
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\libgail-util Reference Manual.lnk" "$INSTDIR\share\gtk-doc\html\gail-libgail-util\index.html"
 
1218
 
 
1219
  IfFileExists "$INSTDIR\share\doc\libsigc++-2.0\index.html" "" +2
 
1220
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\libsigc++ Reference Manual.lnk" "$INSTDIR\share\doc\libsigc++-2.0\index.html"
 
1221
 
 
1222
  IfFileExists "$INSTDIR\share\doc\cairomm-1.0\reference\html\index.html" "" +2
 
1223
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\cairomm Reference Manual.lnk" "$INSTDIR\share\doc\cairomm-1.0\reference\html\index.html"
 
1224
 
 
1225
  IfFileExists "$INSTDIR\share\doc\glibmm-2.4\reference\html\index.html" "" +2
 
1226
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\glibmm Reference Manual.lnk" "$INSTDIR\share\doc\glibmm-2.4\reference\html\index.html"
 
1227
 
 
1228
  IfFileExists "$INSTDIR\share\doc\pangomm-1.4\reference\html\index.html" "" +2
 
1229
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\pangomm Reference Manual.lnk" "$INSTDIR\share\doc\pangomm-1.4\reference\html\index.html"
 
1230
 
 
1231
  IfFileExists "$INSTDIR\share\doc\atkmm-1.6\reference\html\index.html" "" +2
 
1232
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\atkmm Reference Manual.lnk" "$INSTDIR\share\doc\atkmm-1.6\reference\html\index.html"
 
1233
 
 
1234
  IfFileExists "$INSTDIR\share\doc\gtkmm-2.4\reference\html\index.html" "" +2
 
1235
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\gtkmm Reference Manual.lnk" "$INSTDIR\share\doc\gtkmm-2.4\reference\html\index.html"
 
1236
 
 
1237
  IfFileExists "$INSTDIR\share\doc\gtkmm-2.4\tutorial\html\index.html" "" +2
 
1238
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\Programming with gtkmm.lnk" "$INSTDIR\share\doc\gtkmm-2.4\tutorial\html\index.html"
 
1239
 
 
1240
  IfFileExists "$INSTDIR\share\doc\gnomemm-2.6\libglademm-2.4\docs\reference\html\index.html" "" +2
 
1241
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\libglademm Reference Manual.lnk" "$INSTDIR\share\doc\gnomemm-2.6\libglademm-2.4\docs\reference\html\index.html"     
 
1242
 
 
1243
  IfFileExists "$INSTDIR\share\doc\libxml++-2.6\reference\html\index.html" "" +2
 
1244
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation\libxml++ Reference Manual.lnk" "$INSTDIR\share\doc\libxml++-2.6\reference\html\index.html"
 
1245
 
 
1246
  IfFileExists "$INSTDIR\gtkmm-demo\gtkmm-demo.exe" "" +11
 
1247
       Push $OUTDIR
 
1248
       SetOutPath "$INSTDIR\gtkmm-demo"
 
1249
       CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Demo.lnk" "$INSTDIR\gtkmm-demo\gtkmm-demo.exe" "" "$INSTDIR\gtkmm.ico"
 
1250
       StrCmp $CONTEXT "1" 0 +4
 
1251
       WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\gtkmm-demo.exe" "" "$INSTDIR\gtkmm-demo\gtkmm-demo.exe"
 
1252
       WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\gtkmm-demo.exe" "Path" "$INSTDIR\bin"
 
1253
       Goto +3
 
1254
       WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\App Paths\gtkmm-demo.exe" "" "$INSTDIR\gtkmm-demo\gtkmm-demo.exe"
 
1255
       WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\App Paths\gtkmm-demo.exe" "Path" "$INSTDIR\bin"
 
1256
       Pop $OUTDIR
 
1257
       
 
1258
!endif  ; RUNTIME_ONLY
 
1259
 
 
1260
  ; GTKMM_BASEPATH environment variable
 
1261
  Push "GTKMM_BASEPATH" ;
 
1262
  Push "$INSTDIR"
 
1263
  Push $CONTEXT
 
1264
  Call WriteEnvStr
 
1265
 
 
1266
  ; Uninstaller
 
1267
  WriteUninstaller "$INSTDIR\${GTKMM_UNINSTALL_EXE}"
 
1268
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\${GTKMM_UNINSTALL_EXE}"
 
1269
 
 
1270
!ifdef RUNTIME_ONLY
 
1271
  ; Set the PATH with gtkmm target directory (if relevant)
 
1272
  IfSilent +2
 
1273
  ; Read a value from an InstallOptions INI file
 
1274
  !insertmacro MUI_INSTALLOPTIONS_READ $CB_PATH_VALUE "PathQuestion.ini" "Field 1" "State"
 
1275
!endif ; RUNTIME_ONLY
 
1276
  StrCmp $CB_PATH_VALUE "1" "" done
 
1277
     Push $CONTEXT
 
1278
     Push "$INSTDIR\bin"
 
1279
     Call AddToPath
 
1280
done:
 
1281
 
 
1282
SectionEnd
 
1283
 
 
1284
Section Uninstall SecUninstall
 
1285
 
 
1286
  ClearErrors
 
1287
  UserInfo::GetName
 
1288
  IfErrors done
 
1289
  Pop $0
 
1290
  UserInfo::GetAccountType
 
1291
  Pop $0
 
1292
  StrCmp $0 "Admin" 0 done
 
1293
  StrCpy $ISADMIN "1"
 
1294
done:
 
1295
 
 
1296
  ClearErrors
 
1297
  ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "DisplayName"
 
1298
  IfErrors continue
 
1299
  StrCpy $CONTEXT "1"
 
1300
  SetShellVarContext all
 
1301
  StrCmp $ISADMIN "1" continue
 
1302
  MessageBox MB_OK|MB_ICONEXCLAMATION "$(MISC_ADMIN_REQUIRED)"
 
1303
  Quit
 
1304
  
 
1305
continue:
 
1306
  StrCmp $CONTEXT "1" 0 +4
 
1307
  ReadRegStr $INSTDIR HKLM "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}" "Path"
 
1308
  ReadRegStr $ICONS_GROUP HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "NSIS:StartMenuDir"
 
1309
  Goto +3
 
1310
  ReadRegStr $INSTDIR HKCU "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}" "Path"
 
1311
  ReadRegStr $ICONS_GROUP HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" "NSIS:StartMenuDir"
 
1312
  
 
1313
  ;Remove shortcut
 
1314
  Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
 
1315
  Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk"
 
1316
  Delete "$SMPROGRAMS\$ICONS_GROUP\License.lnk"
 
1317
  Delete "$SMPROGRAMS\$ICONS_GROUP\Read Me.lnk"
 
1318
 
 
1319
!ifndef RUNTIME_ONLY
 
1320
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\libxml2 Reference Manual.lnk"
 
1321
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\glib Reference Manual.lnk"
 
1322
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\gobject Reference Manual.lnk"
 
1323
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\cairo Reference Manual.lnk"
 
1324
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\pango Reference Manual.lnk"
 
1325
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\GDK Reference Manual.lnk"
 
1326
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\gdk-pixbuf Reference Manual.lnk"
 
1327
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\GTK+ Reference Manual.lnk"
 
1328
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\libglade Reference Manual.lnk"
 
1329
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\libgail-util Reference Manual.lnk"
 
1330
 
 
1331
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\libsigc++ Reference Manual.lnk"
 
1332
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\glibmm Reference Manual.lnk"
 
1333
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\pangomm Reference Manual.lnk"
 
1334
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\atkmm Reference Manual.lnk"
 
1335
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\gtkmm Reference Manual.lnk"
 
1336
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\Programming with gtkmm.lnk"
 
1337
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\libglademm Reference Manual.lnk"
 
1338
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\cairomm Reference Manual.lnk"
 
1339
  Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\libxml++ Reference Manual.lnk"
 
1340
  RMDir "$SMPROGRAMS\$ICONS_GROUP\Documentation"
 
1341
  
 
1342
  Delete "$SMPROGRAMS\$ICONS_GROUP\Demo.lnk"
 
1343
;  Delete "$SMPROGRAMS\$ICONS_GROUP\Gideon.lnk"
 
1344
!endif
 
1345
 
 
1346
  RMDir "$SMPROGRAMS\$ICONS_GROUP"
 
1347
 
 
1348
  SetAutoClose true
 
1349
  
 
1350
  ; Delete language selection
 
1351
  DeleteRegValue HKCU "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}" "Installer Language"
 
1352
  DeleteRegKey /ifempty  HKCU "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}"
 
1353
  DeleteRegKey /ifempty  HKCU "Software\${PRODUCT_PLATFORM_NAME}"
 
1354
  
 
1355
  StrCmp $CONTEXT "1" 0 +8
 
1356
  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}"
 
1357
  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\gtkmm-demo.exe"
 
1358
  DeleteRegKey HKLM "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}"
 
1359
  DeleteRegKey /ifempty  HKLM "Software\${PRODUCT_PLATFORM_NAME}"
 
1360
  ReadRegStr $R0 HKLM "Software\GTK\2.0" "PATH"; ???
 
1361
  Goto +7
 
1362
  DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}"
 
1363
  DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\App Paths\gtkmm-demo.exe"
 
1364
  DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\App Paths\gideon.exe"
 
1365
  DeleteRegKey HKCU "Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION}"
 
1366
  DeleteRegKey /ifempty  HKCU "Software\${PRODUCT_PLATFORM_NAME}"
 
1367
  ReadRegStr $R0 HKCU "Software\GTK\2.0" "PATH"; ???
 
1368
  
 
1369
  ; Remove gtkmm from PATH
 
1370
  StrCmp $R0 $INSTDIR +4
 
1371
     Push $CONTEXT
 
1372
     Push "$INSTDIR\bin"
 
1373
     Call un.RemoveFromPath
 
1374
 
 
1375
  Delete "$INSTDIR\gtkmm.ico"
 
1376
  Delete "$INSTDIR\gtkmm_win32.txt"
 
1377
  Delete "$INSTDIR\lgpl.txt"
 
1378
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
 
1379
 
 
1380
!ifndef RUNTIME_ONLY
 
1381
  ; redist
 
1382
  Delete $INSTDIR\redist\libgcc_s_sjlj-1.dll
 
1383
  Delete $INSTDIR\redist\zlib1.dll
 
1384
  Delete $INSTDIR\redist\intl.dll
 
1385
;  Delete $INSTDIR\redist\iconv.dll
 
1386
;  Delete $INSTDIR\redist\charset.dll
 
1387
 
 
1388
  Delete $INSTDIR\redist\libxml2-2.dll
 
1389
;  Delete $INSTDIR\redist\libjpeg-7.dll
 
1390
  Delete $INSTDIR\redist\libpng14-14.dll
 
1391
;  Delete $INSTDIR\redist\libtiff-3.dll
 
1392
  Delete $INSTDIR\redist\freetype6.dll
 
1393
  Delete $INSTDIR\redist\libexpat-1.dll
 
1394
  Delete $INSTDIR\redist\libfontconfig-1.dll
 
1395
  Delete $INSTDIR\redist\libglib-2.0-0.dll
 
1396
  Delete $INSTDIR\redist\libgobject-2.0-0.dll
 
1397
  Delete $INSTDIR\redist\libgmodule-2.0-0.dll
 
1398
  Delete $INSTDIR\redist\libgthread-2.0-0.dll
 
1399
  Delete $INSTDIR\redist\libgio-2.0-0.dll
 
1400
  Delete $INSTDIR\redist\libcairo-2.dll
 
1401
  Delete $INSTDIR\redist\libatk-1.0-0.dll
 
1402
  Delete $INSTDIR\redist\libpango-1.0-0.dll
 
1403
  Delete $INSTDIR\redist\libpangocairo-1.0-0.dll
 
1404
  Delete $INSTDIR\redist\libpangoft2-1.0-0.dll
 
1405
  Delete $INSTDIR\redist\libpangowin32-1.0-0.dll
 
1406
  Delete $INSTDIR\redist\libgailutil-18.dll
 
1407
  Delete $INSTDIR\redist\libgdk-win32-2.0-0.dll
 
1408
  Delete $INSTDIR\redist\libgdk_pixbuf-2.0-0.dll
 
1409
  Delete $INSTDIR\redist\libgtk-win32-2.0-0.dll
 
1410
  Delete $INSTDIR\redist\libglade-2.0-0.dll
 
1411
  Delete $INSTDIR\redist\gspawn-win32-helper.exe
 
1412
  Delete $INSTDIR\redist\gspawn-win32-helper-console.exe
 
1413
 
 
1414
  Delete $INSTDIR\redist\libsigc-2.0-0.dll
 
1415
  Delete $INSTDIR\redist\libcairomm-1.0-1.dll
 
1416
  Delete $INSTDIR\redist\libglibmm-2.4-1.dll
 
1417
  Delete $INSTDIR\redist\libgiomm-2.4-1.dll
 
1418
  Delete $INSTDIR\redist\libpangomm-1.4-1.dll
 
1419
  Delete $INSTDIR\redist\libatkmm-1.6-1.dll
 
1420
  Delete $INSTDIR\redist\libgdkmm-2.4-1.dll
 
1421
  Delete $INSTDIR\redist\libgtkmm-2.4-1.dll
 
1422
  Delete $INSTDIR\redist\libglademm-2.4-1.dll
 
1423
  Delete $INSTDIR\redist\libxml++-2.6-2.dll
 
1424
  Delete $INSTDIR\redist\README.txt
 
1425
  RMDir $INSTDIR\redist
 
1426
 
 
1427
  ; bin
 
1428
 
 
1429
;  Delete $INSTDIR\bin\iconv.exe
 
1430
  Delete $INSTDIR\bin\pkg-config.exe
 
1431
  Delete $INSTDIR\bin\glib-genmarshal.exe
 
1432
  Delete $INSTDIR\bin\glib-gettextize
 
1433
  Delete $INSTDIR\bin\glib-mkenums
 
1434
  Delete $INSTDIR\bin\gobject-query.exe
 
1435
  Delete $INSTDIR\bin\pango-querymodules.exe
 
1436
  Delete $INSTDIR\bin\gdk-pixbuf-csource.exe
 
1437
  Delete $INSTDIR\bin\gdk-pixbuf-query-loaders.exe
 
1438
  Delete $INSTDIR\bin\gtk-builder-convert
 
1439
  Delete $INSTDIR\bin\gtk-query-immodules-2.0.exe
 
1440
 
 
1441
  ; include
 
1442
  RMDir /r $INSTDIR\include\libxml2
 
1443
  RMDir /r $INSTDIR\include\freetype2
 
1444
  RMDir /r $INSTDIR\include\fontconfig
 
1445
  RMDir /r $INSTDIR\include\libpng14
 
1446
  RMDIR /r $INSTDIR\include\glib-2.0
 
1447
  RMDIR /r $INSTDIR\include\cairo
 
1448
  RMDIR /r $INSTDIR\include\pango-1.0
 
1449
  RMDIR /r $INSTDIR\include\atk-1.0
 
1450
  RMDir /r $INSTDIR\include\gdk-pixbuf-2.0
 
1451
  RMDIR /r $INSTDIR\include\gtk-2.0
 
1452
  RMDIR /r $INSTDIR\include\libglade-2.0
 
1453
  RMDir /r $INSTDIR\include\gail-1.0
 
1454
  Delete $INSTDIR\include\expat.h
 
1455
  Delete $INSTDIR\include\expat_external.h
 
1456
  Delete $INSTDIR\include\ft2build.h
 
1457
;  Delete $INSTDIR\include\iconv.h
 
1458
;  Delete $INSTDIR\include\jconfig.h
 
1459
;  Delete $INSTDIR\include\jerror.h
 
1460
;  Delete $INSTDIR\include\jmorecfg.h
 
1461
;  Delete $INSTDIR\include\jpeglib.h
 
1462
;  Delete $INSTDIR\include\libcharset.h
 
1463
;  Delete $INSTDIR\include\localcharset.h
 
1464
  Delete $INSTDIR\include\libintl.h
 
1465
  Delete $INSTDIR\include\png.h
 
1466
  Delete $INSTDIR\include\pngconf.h
 
1467
;  Delete $INSTDIR\include\tiff.h
 
1468
;  Delete $INSTDIR\include\tiffconf.h
 
1469
;  Delete $INSTDIR\include\tiffio.h
 
1470
;  Delete $INSTDIR\include\tiffvers.h
 
1471
  Delete $INSTDIR\include\zconf.h
 
1472
  Delete $INSTDIR\include\zlib.h
 
1473
 
 
1474
  RMDir /r $INSTDIR\include\sigc++-2.0
 
1475
  RMDir /r $INSTDIR\include\cairomm-1.0
 
1476
  RMDir /r $INSTDIR\include\glibmm-2.4
 
1477
  RMDir /r $INSTDIR\include\giomm-2.4
 
1478
  RMDir /r $INSTDIR\include\pangomm-1.4
 
1479
  RMDir /r $INSTDIR\include\atkmm-1.6
 
1480
  RMDir /r $INSTDIR\include\gdkmm-2.4
 
1481
  RMDir /r $INSTDIR\include\gtkmm-2.4
 
1482
  RMDir /r $INSTDIR\include\libglademm-2.4
 
1483
  RMDir /r $INSTDIR\include\libxml++-2.6
 
1484
 
 
1485
  ; lib
 
1486
 
 
1487
  RMDir /r $INSTDIR\lib\glib-2.0\include
 
1488
  RMDir /r $INSTDIR\lib\gtk-2.0\include
 
1489
  RMDir $INSTDIR\lib\glib-2.0
 
1490
 
 
1491
  RMDir /r $INSTDIR\lib\sigc++-2.0
 
1492
  RMDir /r $INSTDIR\lib\cairomm-1.0
 
1493
  RMDir /r $INSTDIR\lib\glibmm-2.4
 
1494
  RMDir /r $INSTDIR\lib\giomm-2.4
 
1495
  RMDir /r $INSTDIR\lib\atkmm-1.6
 
1496
  RMDir /r $INSTDIR\lib\pangomm-1.4
 
1497
  RMDir /r $INSTDIR\lib\gdkmm-2.4
 
1498
  RMDir /r $INSTDIR\lib\gtkmm-2.4
 
1499
  RMDir /r $INSTDIR\lib\libglademm-2.4
 
1500
  RMDir /r $INSTDIR\lib\libxml++-2.6
 
1501
 
 
1502
  Delete $INSTDIR\lib\libxml2.lib
 
1503
  Delete $INSTDIR\lib\libxml2.dll.a
 
1504
;  Delete $INSTDIR\lib\charset.lib
 
1505
;  Delete $INSTDIR\lib\iconv.lib
 
1506
;  Delete $INSTDIR\lib\libiconv.a
 
1507
  Delete $INSTDIR\lib\libintl.dll.a
 
1508
;  Delete $INSTDIR\lib\libtiff.dll.a
 
1509
  Delete $INSTDIR\lib\libpng14.dll.a
 
1510
  Delete $INSTDIR\lib\libz.dll.a
 
1511
  Delete $INSTDIR\lib\libfreetype.dll.a
 
1512
  Delete $INSTDIR\lib\libexpat.dll.a
 
1513
  Delete $INSTDIR\lib\libfontconfig.dll.a
 
1514
  Delete $INSTDIR\lib\libglib-2.0.dll.a
 
1515
  Delete $INSTDIR\lib\libgobject-2.0.dll.a
 
1516
  Delete $INSTDIR\lib\libgmodule-2.0.dll.a
 
1517
  Delete $INSTDIR\lib\libgthread-2.0.dll.a
 
1518
  Delete $INSTDIR\lib\libgio-2.0.dll.a
 
1519
  Delete $INSTDIR\lib\libcairo.dll.a
 
1520
  Delete $INSTDIR\lib\libpango-1.0.dll.a
 
1521
  Delete $INSTDIR\lib\libpangocairo-1.0.dll.a
 
1522
  Delete $INSTDIR\lib\libpangoft2-1.0.dll.a
 
1523
  Delete $INSTDIR\lib\libpangowin32-1.0.dll.a
 
1524
  Delete $INSTDIR\lib\libatk-1.0.dll.a
 
1525
  Delete $INSTDIR\lib\libgailutil.dll.a
 
1526
  Delete $INSTDIR\lib\libgdk-win32-2.0.dll.a
 
1527
  Delete $INSTDIR\lib\libgdk_pixbuf-2.0.dll.a
 
1528
  Delete $INSTDIR\lib\libgtk-win32-2.0.dll.a
 
1529
  Delete $INSTDIR\lib\libglade-2.0.dll.a
 
1530
 
 
1531
  Delete $INSTDIR\lib\libsigc-*.dll.a
 
1532
  Delete $INSTDIR\lib\libcairomm-*.dll.a
 
1533
  Delete $INSTDIR\lib\libglibmm-*.dll.a
 
1534
  Delete $INSTDIR\lib\libglibmm_generate_extra_defs-*.dll.a
 
1535
  Delete $INSTDIR\lib\libgiomm-*.dll.a
 
1536
  Delete $INSTDIR\lib\libpangomm-*.dll.a
 
1537
  Delete $INSTDIR\lib\libatkmm-*.dll.a
 
1538
  Delete $INSTDIR\lib\libgdkmm-*.dll.a
 
1539
  Delete $INSTDIR\lib\libgtkmm-*.dll.a
 
1540
  Delete $INSTDIR\lib\libglademm-*.dll.a
 
1541
  Delete $INSTDIR\lib\libxml++-*.dll.a
 
1542
 
 
1543
  Delete $INSTDIR\lib\libintl.def
 
1544
  Delete $INSTDIR\lib\intl.lib
 
1545
;  Delete $INSTDIR\lib\libtiff.def
 
1546
;  Delete $INSTDIR\lib\libtiff.lib
 
1547
  Delete $INSTDIR\lib\libpng.def
 
1548
  Delete $INSTDIR\lib\libpng.lib
 
1549
  Delete $INSTDIR\lib\zlib.def
 
1550
  Delete $INSTDIR\lib\zdll.lib
 
1551
  Delete $INSTDIR\lib\libexpat.def
 
1552
  Delete $INSTDIR\lib\expat.lib
 
1553
  Delete $INSTDIR\lib\fontconfig.def
 
1554
  Delete $INSTDIR\lib\fontconfig.lib
 
1555
  Delete $INSTDIR\lib\glib-2.0.def
 
1556
  Delete $INSTDIR\lib\glib-2.0.lib
 
1557
  Delete $INSTDIR\lib\gobject-2.0.def
 
1558
  Delete $INSTDIR\lib\gobject-2.0.lib
 
1559
  Delete $INSTDIR\lib\gmodule-2.0.def
 
1560
  Delete $INSTDIR\lib\gmodule-2.0.lib
 
1561
  Delete $INSTDIR\lib\gthread-2.0.def
 
1562
  Delete $INSTDIR\lib\gthread-2.0.lib
 
1563
  Delete $INSTDIR\lib\gio-2.0.def
 
1564
  Delete $INSTDIR\lib\gio-2.0.lib
 
1565
  Delete $INSTDIR\lib\cairo.def
 
1566
  Delete $INSTDIR\lib\cairo.lib
 
1567
  Delete $INSTDIR\lib\pango-1.0.def
 
1568
  Delete $INSTDIR\lib\pango-1.0.lib
 
1569
  Delete $INSTDIR\lib\pangocairo-1.0.def
 
1570
  Delete $INSTDIR\lib\pangocairo-1.0.lib
 
1571
  Delete $INSTDIR\lib\pangoft2-1.0.def
 
1572
  Delete $INSTDIR\lib\pangoft2-1.0.lib
 
1573
  Delete $INSTDIR\lib\pangowin32-1.0.def
 
1574
  Delete $INSTDIR\lib\pangowin32-1.0.lib
 
1575
  Delete $INSTDIR\lib\atk-1.0.def
 
1576
  Delete $INSTDIR\lib\atk-1.0.lib
 
1577
  Delete $INSTDIR\lib\gailutil.lib
 
1578
  Delete $INSTDIR\lib\gdk-win32-2.0.lib
 
1579
  Delete $INSTDIR\lib\gdk_pixbuf-2.0.lib
 
1580
  Delete $INSTDIR\lib\gtk-win32-2.0.lib
 
1581
  Delete $INSTDIR\lib\glade-2.0.lib
 
1582
 
 
1583
  Delete $INSTDIR\lib\sigc-*.lib
 
1584
  Delete $INSTDIR\lib\cairomm-*.lib
 
1585
  Delete $INSTDIR\lib\glibmm-*.lib
 
1586
  Delete $INSTDIR\lib\giomm-*.lib
 
1587
  Delete $INSTDIR\lib\pangomm-*.lib
 
1588
  Delete $INSTDIR\lib\atkmm-*.lib
 
1589
  Delete $INSTDIR\lib\gdkmm-*.lib
 
1590
  Delete $INSTDIR\lib\gtkmm-*.lib
 
1591
  Delete $INSTDIR\lib\glademm-*.lib
 
1592
  Delete $INSTDIR\lib\xml++-*.lib
 
1593
 
 
1594
  Delete $INSTDIR\lib\pkgconfig\libxml-2.0.pc
 
1595
  Delete $INSTDIR\lib\pkgconfig\libpng.pc
 
1596
  Delete $INSTDIR\lib\pkgconfig\libpng14.pc
 
1597
  Delete $INSTDIR\lib\pkgconfig\freetype2.pc
 
1598
  Delete $INSTDIR\lib\pkgconfig\fontconfig.pc
 
1599
  Delete $INSTDIR\lib\pkgconfig\glib-2.0.pc
 
1600
  Delete $INSTDIR\lib\pkgconfig\gmodule-2.0.pc
 
1601
  Delete $INSTDIR\lib\pkgconfig\gmodule-no-export-2.0.pc
 
1602
  Delete $INSTDIR\lib\pkgconfig\gobject-2.0.pc
 
1603
  Delete $INSTDIR\lib\pkgconfig\gthread-2.0.pc
 
1604
  Delete $INSTDIR\lib\pkgconfig\gio-2.0.pc
 
1605
  Delete $INSTDIR\lib\pkgconfig\cairo.pc
 
1606
  Delete $INSTDIR\lib\pkgconfig\cairo-png.pc
 
1607
  Delete $INSTDIR\lib\pkgconfig\cairo-pdf.pc
 
1608
  Delete $INSTDIR\lib\pkgconfig\cairo-ps.pc
 
1609
  Delete $INSTDIR\lib\pkgconfig\cairo-svg.pc
 
1610
  Delete $INSTDIR\lib\pkgconfig\cairo-win32.pc
 
1611
  Delete $INSTDIR\lib\pkgconfig\cairo-win32-font.pc
 
1612
  Delete $INSTDIR\lib\pkgconfig\pango.pc
 
1613
  Delete $INSTDIR\lib\pkgconfig\pangocairo.pc
 
1614
  Delete $INSTDIR\lib\pkgconfig\pangoft2.pc
 
1615
  Delete $INSTDIR\lib\pkgconfig\pangowin32.pc
 
1616
  Delete $INSTDIR\lib\pkgconfig\atk.pc
 
1617
  Delete $INSTDIR\lib\pkgconfig\gdk-2.0.pc
 
1618
  Delete $INSTDIR\lib\pkgconfig\gdk-pixbuf-2.0.pc
 
1619
  Delete $INSTDIR\lib\pkgconfig\gdk-win32-2.0.pc
 
1620
  Delete $INSTDIR\lib\pkgconfig\gtk+-2.0.pc
 
1621
  Delete $INSTDIR\lib\pkgconfig\gtk+-win32-2.0.pc  
 
1622
  Delete $INSTDIR\lib\pkgconfig\libglade-2.0.pc  
 
1623
  Delete $INSTDIR\lib\pkgconfig\gail.pc
 
1624
 
 
1625
  Delete $INSTDIR\lib\pkgconfig\sigc++-*.pc
 
1626
  Delete $INSTDIR\lib\pkgconfig\cairomm-*.pc
 
1627
  Delete $INSTDIR\lib\pkgconfig\glibmm-*.pc
 
1628
  Delete $INSTDIR\lib\pkgconfig\giomm-*.pc
 
1629
  Delete $INSTDIR\lib\pkgconfig\pangomm-*.pc
 
1630
  Delete $INSTDIR\lib\pkgconfig\atkmm-*.pc
 
1631
  Delete $INSTDIR\lib\pkgconfig\gdkmm-*.pc
 
1632
  Delete $INSTDIR\lib\pkgconfig\gtkmm-*.pc
 
1633
  Delete $INSTDIR\lib\pkgconfig\libglademm-*.pc
 
1634
  Delete $INSTDIR\lib\pkgconfig\libxml++-*.pc
 
1635
  RMDir $INSTDIR\lib\pkgconfig
 
1636
 
 
1637
  ; share
 
1638
 
 
1639
;  RMDir /r $INSTDIR\share\doc\libiconv
 
1640
 
 
1641
  RMDir /r $INSTDIR\share\doc\glib-dev-2.26.0
 
1642
  RMDir /r $INSTDIR\share\doc\pango-dev-1.28.3
 
1643
  RMDir /r $INSTDIR\share\doc\gtk+-dev-2.22.0
 
1644
 
 
1645
  RMDir /r $INSTDIR\share\xml\libglade
 
1646
  RMDir $INSTDIR\share\xml
 
1647
 
 
1648
  RMDir /r $INSTDIR\share\glib-2.0
 
1649
 
 
1650
  Delete $INSTDIR\share\aclocal\libxml.m4
 
1651
  Delete $INSTDIR\share\aclocal\freetype2.m4
 
1652
  Delete $INSTDIR\share\aclocal\glib-2.0.m4
 
1653
  Delete $INSTDIR\share\aclocal\glib-gettext.m4
 
1654
  Delete $INSTDIR\share\aclocal\gtk-2.0.m4
 
1655
  Delete $INSTDIR\share\aclocal\pkg.m4
 
1656
 
 
1657
  RMDir /r $INSTDIR\share\gtk-doc\html\libxml2
 
1658
  RMDir /r $INSTDIR\share\gtk-doc\html\glib
 
1659
  RMDir /r $INSTDIR\share\gtk-doc\html\gobject
 
1660
  RMDir /r $INSTDIR\share\gtk-doc\html\cairo
 
1661
  RMDir /r $INSTDIR\share\gtk-doc\html\pango
 
1662
  RMDir /r $INSTDIR\share\gtk-doc\html\gdk
 
1663
  RMDir /r $INSTDIR\share\gtk-doc\html\gdk-pixbuf
 
1664
  RMDir /r $INSTDIR\share\gtk-doc\html\gtk
 
1665
  RMDir /r $INSTDIR\share\gtk-doc\html\libglade
 
1666
  RMDir /r $INSTDIR\share\gtk-doc\html\gail-libgail-util
 
1667
  RMDir $INSTDIR\share\gtk-doc\html
 
1668
  RMDir $INSTDIR\share\gtk-doc
 
1669
 
 
1670
  RMDir /r $INSTDIR\share\doc\libsigc++-2.0
 
1671
  RMDir /r $INSTDIR\share\doc\cairomm-1.0
 
1672
  RMDir /r $INSTDIR\share\doc\glibmm-2.4
 
1673
  RMDir /r $INSTDIR\share\doc\pangomm-1.4
 
1674
  RMDir /r $INSTDIR\share\doc\atkmm-1.6
 
1675
  RMDir /r $INSTDIR\share\doc\gtkmm-2.4
 
1676
  RMDir /r $INSTDIR\share\doc\gnomemm-2.6\libglademm-2.4
 
1677
  RMDir $INSTDIR\share\doc\gnomemm-2.6
 
1678
  RMDir /r $INSTDIR\share\doc\libxml++-2.6
 
1679
  RMDir $INSTDIR\share\doc
 
1680
  
 
1681
  RMDir /r $INSTDIR\share\devhelp\books\glibmm-2.4
 
1682
  RMDir /r $INSTDIR\share\devhelp\books\atkmm-1.6
 
1683
  RMDir /r $INSTDIR\share\devhelp\books\pangomm-1.4
 
1684
  RMDir /r $INSTDIR\share\devhelp\books\gtkmm-2.4
 
1685
  RMDir /r $INSTDIR\share\devhelp\books\libglademm-2.4
 
1686
  RMDir $INSTDIR\share\devhelp\books
 
1687
  RMDir $INSTDIR\share\devhelp
 
1688
 
 
1689
  Delete $INSTDIR\share\aclocal\glibmm_check_perl.m4
 
1690
  RMDir $INSTDIR\share\aclocal
 
1691
  
 
1692
  Delete $INSTDIR\MSVC\gtkmm-vc80-2_4.vsprops
 
1693
  Delete $INSTDIR\MSVC\gtkmm-vc90-2_4.vsprops
 
1694
  Delete $INSTDIR\MSVC\gtkmm-vc100-2_4.props
 
1695
  Delete $INSTDIR\MSVC\gtkmm-vc80-d-2_4.vsprops
 
1696
  Delete $INSTDIR\MSVC\gtkmm-vc90-d-2_4.vsprops
 
1697
  Delete $INSTDIR\MSVC\gtkmm-vc100-d-2_4.props
 
1698
  Delete $INSTDIR\MSVC\gtkmm-2.4.vsprops
 
1699
  Delete $INSTDIR\MSVC\gtkmm-2.4d.vsprops
 
1700
  RMDir $INSTDIR\MSVC
 
1701
  
 
1702
  ; gtkmm-demo
 
1703
  Delete $INSTDIR\gtkmm-demo\gtkmm-demo.exe
 
1704
  Delete $INSTDIR\gtkmm-demo\*.cc
 
1705
  Delete $INSTDIR\gtkmm-demo\*.png
 
1706
  Delete $INSTDIR\gtkmm-demo\*.jpg
 
1707
  Delete $INSTDIR\gtkmm-demo\*.gif
 
1708
 
 
1709
  RMDir $INSTDIR\gtkmm-demo
 
1710
  
 
1711
  RMDir $INSTDIR\include
 
1712
 
 
1713
!endif
 
1714
 
 
1715
  ; bin
 
1716
 
 
1717
  Delete $INSTDIR\bin\libgcc_s_sjlj-1.dll
 
1718
  Delete $INSTDIR\bin\zlib1.dll
 
1719
  Delete $INSTDIR\bin\intl.dll
 
1720
;  Delete $INSTDIR\bin\iconv.dll
 
1721
;  Delete $INSTDIR\bin\charset.dll
 
1722
 
 
1723
  Delete $INSTDIR\bin\libxml2-2.dll
 
1724
;  Delete $INSTDIR\bin\libjpeg-7.dll
 
1725
  Delete $INSTDIR\bin\libpng14-14.dll
 
1726
;  Delete $INSTDIR\bin\libtiff-3.dll
 
1727
  Delete $INSTDIR\bin\freetype6.dll
 
1728
  Delete $INSTDIR\bin\libexpat-1.dll
 
1729
  Delete $INSTDIR\bin\libfontconfig-1.dll
 
1730
  Delete $INSTDIR\bin\libglib-2.0-0.dll
 
1731
  Delete $INSTDIR\bin\libgobject-2.0-0.dll
 
1732
  Delete $INSTDIR\bin\libgmodule-2.0-0.dll
 
1733
  Delete $INSTDIR\bin\libgthread-2.0-0.dll
 
1734
  Delete $INSTDIR\bin\libgio-2.0-0.dll
 
1735
  Delete $INSTDIR\bin\libcairo-2.dll
 
1736
  Delete $INSTDIR\bin\libpango-1.0-0.dll
 
1737
  Delete $INSTDIR\bin\libpangocairo-1.0-0.dll
 
1738
  Delete $INSTDIR\bin\libpangoft2-1.0-0.dll
 
1739
  Delete $INSTDIR\bin\libpangowin32-1.0-0.dll
 
1740
  Delete $INSTDIR\bin\libatk-1.0-0.dll
 
1741
  Delete $INSTDIR\bin\libgailutil-18.dll
 
1742
  Delete $INSTDIR\bin\libgdk-win32-2.0-0.dll
 
1743
  Delete $INSTDIR\bin\libgdk_pixbuf-2.0-0.dll
 
1744
  Delete $INSTDIR\bin\libgtk-win32-2.0-0.dll
 
1745
  Delete $INSTDIR\bin\libglade-2.0-0.dll
 
1746
  Delete $INSTDIR\bin\gspawn-win32-helper.exe
 
1747
  Delete $INSTDIR\bin\gspawn-win32-helper-console.exe
 
1748
  Delete $INSTDIR\bin\gtk-update-icon-cache.exe
 
1749
  Delete $INSTDIR\bin\gtk-demo.exe
 
1750
 
 
1751
  RMDir /r $INSTDIR\lib\gdk-pixbuf-2.0\2.10.0
 
1752
  RMDir $INSTDIR\lib\gdk-pixbuf-2.0
 
1753
  RMDir /r $INSTDIR\lib\gtk-2.0\2.10.0
 
1754
  RMDir /r $INSTDIR\lib\gtk-2.0\modules
 
1755
  RMDir $INSTDIR\lib\gtk-2.0
 
1756
  RMDir $INSTDIR\lib
 
1757
  
 
1758
  ; etc
 
1759
  RMDir /r $INSTDIR\etc\gtk-2.0
 
1760
  RMDir /r $INSTDIR\etc\pango
 
1761
  RMDir $INSTDIR\etc
 
1762
 
 
1763
  Delete $INSTDIR\bin\libsigc-*.dll
 
1764
  Delete $INSTDIR\bin\libcairomm-*.dll
 
1765
  Delete $INSTDIR\bin\libglibmm-*.dll
 
1766
  Delete $INSTDIR\bin\libgiomm-*.dll
 
1767
  Delete $INSTDIR\bin\libglibmm_generate_extra_defs-*.dll
 
1768
  Delete $INSTDIR\bin\libatkmm-*.dll
 
1769
  Delete $INSTDIR\bin\libpangomm-*.dll
 
1770
  Delete $INSTDIR\bin\libgdkmm-*.dll
 
1771
  Delete $INSTDIR\bin\libgtkmm-*.dll
 
1772
  Delete $INSTDIR\bin\libglademm-*.dll
 
1773
  Delete $INSTDIR\bin\libxml++-*.dll
 
1774
 
 
1775
  Delete $INSTDIR\bin\sigc++-*.dll
 
1776
  Delete $INSTDIR\bin\sigc-*.dll
 
1777
  Delete $INSTDIR\bin\cairomm-*.dll
 
1778
  Delete $INSTDIR\bin\glibmm-*.dll
 
1779
  Delete $INSTDIR\bin\giomm-*.dll
 
1780
  Delete $INSTDIR\bin\atkmm-*.dll
 
1781
  Delete $INSTDIR\bin\pangomm-*.dll
 
1782
  Delete $INSTDIR\bin\gdkmm-*.dll
 
1783
  Delete $INSTDIR\bin\gtkmm-*.dll
 
1784
  Delete $INSTDIR\bin\glademm-*.dll
 
1785
  Delete $INSTDIR\bin\xml++-*.dll
 
1786
  
 
1787
  Delete $INSTDIR\bin\sigc-*.pdb
 
1788
  Delete $INSTDIR\bin\cairomm-*.pdb
 
1789
  Delete $INSTDIR\bin\glibmm-*.pdb
 
1790
  Delete $INSTDIR\bin\giomm-*.pdb
 
1791
  Delete $INSTDIR\bin\atkmm-*.pdb
 
1792
  Delete $INSTDIR\bin\gdkmm-*.pdb
 
1793
  Delete $INSTDIR\bin\gtkmm-*.pdb
 
1794
  Delete $INSTDIR\bin\pangomm-*.pdb
 
1795
  Delete $INSTDIR\bin\glademm-*.pdb
 
1796
  Delete $INSTDIR\bin\xml++-*.pdb
 
1797
  
 
1798
  RMDir $INSTDIR\bin
 
1799
  
 
1800
  ; share (non-development files)
 
1801
  RMDir /r $INSTDIR\share\doc\glib-2.26.0
 
1802
  RMDir /r $INSTDIR\share\doc\cairo_1.10.0-1_win32
 
1803
  RMDir /r $INSTDIR\share\doc\pango-1.28.3
 
1804
  RMDir /r $INSTDIR\share\doc\gtk+-2.22.0
 
1805
  RMDir $INSTDIR\share\doc
 
1806
 
 
1807
  RMdir /r $INSTDIR\share\locale
 
1808
  RMDir /r $INSTDIR\share\themes
 
1809
  RMDir /r $INSTDIR\share\gtk-2.0
 
1810
 
 
1811
  RMDir $INSTDIR\share
 
1812
 
 
1813
  ; GTKMM_BASEPATH environment variable
 
1814
  Push "GTKMM_BASEPATH";
 
1815
  Push $CONTEXT
 
1816
  Call un.DeleteEnvStr
 
1817
  
 
1818
  ; uninstaller
 
1819
  Delete $INSTDIR\${GTKMM_UNINSTALL_EXE}
 
1820
  
 
1821
  ; $INSTDIR
 
1822
  RMDir $INSTDIR
 
1823
 
 
1824
SectionEnd
 
1825
 
 
1826
;--------------------------------
 
1827
; Section Description Macros
 
1828
 
 
1829
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
 
1830
 
 
1831
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGTKRuntime} "GTK+ Runtime Environment"
 
1832
  !insertmacro MUI_DESCRIPTION_TEXT ${SecSigcRuntime} "libsigc++ Runtime Libraries"
 
1833
  !insertmacro MUI_DESCRIPTION_TEXT ${SecCairommRuntime} "cairomm Runtime Libraries"
 
1834
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGlibmmRuntime} "glibmm Runtime Libraries"
 
1835
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPangommRuntime} "pangomm Runtime Libraries"
 
1836
  !insertmacro MUI_DESCRIPTION_TEXT ${SecAtkmmRuntime} "atkmm Runtime Libraries"
 
1837
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkmmRuntime} "gtkmm Runtime Libraries"
 
1838
  !insertmacro MUI_DESCRIPTION_TEXT ${SecLibglademmRuntime} "libglademm Runtime Libraries"
 
1839
  !insertmacro MUI_DESCRIPTION_TEXT ${SecLibxmlRuntime} "libxml++ Runtime Libraries"
 
1840
 
 
1841
!ifndef RUNTIME_ONLY
 
1842
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGTKDevelopment} "GTK+ development headers and import libraries"
 
1843
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGTKDocumentation} "GTK+ Documentation"
 
1844
  !insertmacro MUI_DESCRIPTION_TEXT ${SecSigcDevelopment} "libsigc++ development headers and import libraries"
 
1845
  !insertmacro MUI_DESCRIPTION_TEXT ${SecSigcDocumentation} "libsigc++ Documentation"
 
1846
 
 
1847
  !insertmacro MUI_DESCRIPTION_TEXT ${SecCairommDevelopment} "cairomm development headers and import libraries"
 
1848
  !insertmacro MUI_DESCRIPTION_TEXT ${SecCairommDocumentation} "cairomm Documentation"
 
1849
 
 
1850
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGlibmmDevelopment} "glibmm development headers and import libraries"
 
1851
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGlibmmDocumentation} "glibmm Documentation"
 
1852
 
 
1853
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPangommDevelopment} "pangomm development headers and import libraries"
 
1854
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPangommDocumentation} "pangomm Documentation"
 
1855
  !insertmacro MUI_DESCRIPTION_TEXT ${SecAtkmmDevelopment} "atkmm development headers and import libraries"
 
1856
  !insertmacro MUI_DESCRIPTION_TEXT ${SecAtkmmDocumentation} "atkmm Documentation"
 
1857
 
 
1858
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkmmDevelopment} "gtkmm development headers and import libraries"
 
1859
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkmmDocumentation} "gtkmm Documentation"
 
1860
 
 
1861
  !insertmacro MUI_DESCRIPTION_TEXT ${SecLibglademmDevelopment} "libglademm development headers and import libraries"
 
1862
  !insertmacro MUI_DESCRIPTION_TEXT ${SecLibglademmDocumentation} "libglademm Documentation"
 
1863
 
 
1864
  !insertmacro MUI_DESCRIPTION_TEXT ${SecLibxmlDevelopment} "libxml++ development headers and import libraries"
 
1865
  !insertmacro MUI_DESCRIPTION_TEXT ${SecLibxmlDocumentation} "libxml++ Documentation"
 
1866
  
 
1867
!endif
 
1868
  
 
1869
!insertmacro MUI_FUNCTION_DESCRIPTION_END
 
1870
 
 
1871
;--------------------------------
 
1872
; General Functions
 
1873
 
 
1874
Function EnableGTKInstaller
 
1875
 
 
1876
;  !insertmacro SelectSection ${SecGTKInstaller}
 
1877
 
 
1878
  !insertmacro UnselectSection ${SecGTKRuntime}
 
1879
  !insertmacro UnselectSection ${SecSigcRuntime}
 
1880
  !insertmacro UnselectSection ${SecCairommRuntime}
 
1881
  !insertmacro UnselectSection ${SecGlibmmRuntime}
 
1882
  !insertmacro UnselectSection ${SecAtkmmRuntime}
 
1883
  !insertmacro UnselectSection ${SecPangommRuntime}
 
1884
  !insertmacro UnselectSection ${SecGtkmmRuntime}
 
1885
  !insertmacro UnselectSection ${SecLibglademmRuntime}
 
1886
  !insertmacro UnselectSection ${SecLibxmlRuntime}
 
1887
  
 
1888
!ifndef RUNTIME_ONLY
 
1889
  !insertmacro UnselectSection ${SecGTKDevelopment}
 
1890
  !insertmacro UnselectSection ${SecGTKDocumentation}
 
1891
 
 
1892
  !insertmacro UnselectSection ${SecSigcDevelopment}
 
1893
  !insertmacro UnselectSection ${SecSigcDocumentation}
 
1894
 
 
1895
  !insertmacro UnselectSection ${SecCairommDevelopment}
 
1896
  !insertmacro UnselectSection ${SecCairommDocumentation}
 
1897
 
 
1898
  !insertmacro UnselectSection ${SecGlibmmDevelopment}
 
1899
  !insertmacro UnselectSection ${SecGlibmmDocumentation}
 
1900
 
 
1901
  !insertmacro UnselectSection ${SecPangommDevelopment}
 
1902
  !insertmacro UnselectSection ${SecPangommDocumentation}
 
1903
 
 
1904
  !insertmacro UnselectSection ${SecAtkmmDevelopment}
 
1905
  !insertmacro UnselectSection ${SecAtkmmDocumentation}
 
1906
 
 
1907
  !insertmacro UnselectSection ${SecGtkmmDevelopment}
 
1908
  !insertmacro UnselectSection ${SecGtkmmDemo}
 
1909
  !insertmacro UnselectSection ${SecGtkmmDocumentation}
 
1910
 
 
1911
  !insertmacro UnselectSection ${SecLibglademmDevelopment}
 
1912
  !insertmacro UnselectSection ${SecLibglademmDocumentation}
 
1913
  
 
1914
  !insertmacro UnselectSection ${SecLibxmlDevelopment}
 
1915
  !insertmacro UnselectSection ${SecLibxmlDocumentation}
 
1916
  
 
1917
!endif
 
1918
  
 
1919
  !insertmacro UnselectSection ${SecPost}
 
1920
 
 
1921
FunctionEnd
 
1922
 
 
1923
Function DisableGTKInstaller
 
1924
 
 
1925
;  !insertmacro UnselectSection ${SecGTKInstaller}
 
1926
 
 
1927
  !insertmacro SelectSection ${SecGTKRuntime}
 
1928
  !insertmacro SelectSection ${SecSigcRuntime}
 
1929
  !insertmacro SelectSection ${SecCairommRuntime}
 
1930
  !insertmacro SelectSection ${SecGlibmmRuntime}
 
1931
  !insertmacro SelectSection ${SecPangommRuntime}
 
1932
  !insertmacro SelectSection ${SecAtkmmRuntime}
 
1933
  !insertmacro SelectSection ${SecGtkmmRuntime}
 
1934
  !insertmacro SelectSection ${SecLibglademmRuntime}
 
1935
  !insertmacro SelectSection ${SecLibxmlRuntime}
 
1936
 
 
1937
!ifndef RUNTIME_ONLY
 
1938
  !insertmacro SelectSection ${SecGTKDevelopment}
 
1939
  !insertmacro SelectSection ${SecGTKDocumentation}
 
1940
 
 
1941
  !insertmacro SelectSection ${SecSigcDevelopment}
 
1942
  !insertmacro SelectSection ${SecSigcDocumentation}
 
1943
 
 
1944
  !insertmacro SelectSection ${SecCairommDevelopment}
 
1945
  !insertmacro SelectSection ${SecCairommDocumentation}
 
1946
 
 
1947
  !insertmacro SelectSection ${SecGlibmmDevelopment}
 
1948
  !insertmacro SelectSection ${SecGlibmmDocumentation}
 
1949
  
 
1950
  !insertmacro SelectSection ${SecPangommDevelopment}
 
1951
  !insertmacro SelectSection ${SecPangommDocumentation}
 
1952
 
 
1953
  !insertmacro SelectSection ${SecAtkmmDevelopment}
 
1954
  !insertmacro SelectSection ${SecAtkmmDocumentation}
 
1955
 
 
1956
  !insertmacro SelectSection ${SecGtkmmDevelopment}
 
1957
  !insertmacro SelectSection ${SecGtkmmDemo}
 
1958
  !insertmacro SelectSection ${SecGtkmmDocumentation}
 
1959
 
 
1960
  !insertmacro SelectSection ${SecLibglademmDevelopment}
 
1961
  !insertmacro SelectSection ${SecLibglademmDocumentation}
 
1962
  
 
1963
  !insertmacro SelectSection ${SecLibxmlDevelopment}
 
1964
  !insertmacro SelectSection ${SecLibxmlDocumentation}
 
1965
  
 
1966
!endif
 
1967
  
 
1968
  !insertmacro SelectSection ${SecPost}
 
1969
 
 
1970
FunctionEnd
 
1971
 
 
1972
;--------------------------------
 
1973
; Custom Page Functions
 
1974
 
 
1975
Function CustomPagePathQuestion
 
1976
 
 
1977
  ClearErrors
 
1978
!ifdef RUNTIME_ONLY
 
1979
  !insertmacro MUI_HEADER_TEXT "$(MISC_INSTALL_OPTION)" "$(MISC_ANSWER_SYSTEM)"
 
1980
  !insertmacro MUI_INSTALLOPTIONS_WRITE "PathQuestion.ini" "Field 1" "Text" "$(GTKMM_ADD_PATH)"
 
1981
  !insertmacro MUI_INSTALLOPTIONS_DISPLAY "PathQuestion.ini"
 
1982
!else
 
1983
  ; always set path in development installer
 
1984
  IfSilent +2 0
 
1985
  StrCpy $CB_PATH_VALUE "1"
 
1986
!endif
 
1987
 
 
1988
FunctionEnd
 
1989
 
 
1990
Function CustomPageSetContext
 
1991
 
 
1992
  ClearErrors
 
1993
  UserInfo::GetName
 
1994
  IfErrors continue
 
1995
  Pop $0
 
1996
  UserInfo::GetAccountType
 
1997
  Pop $1
 
1998
  StrCmp $1 "Admin" 0 done
 
1999
continue:
 
2000
  StrCpy $ISADMIN "1"
 
2001
  IfSilent "" +2
 
2002
    Goto done
 
2003
 
 
2004
  !insertmacro MUI_HEADER_TEXT "$(MISC_INSTALL_OPTION)" "$(MISC_UNINSTALL_CONTEXT)"
 
2005
  !insertmacro MUI_INSTALLOPTIONS_WRITE "SetContext.ini" "Field 1" "Text" "$(GTKMM_RIGHTS_INSTALL)"
 
2006
  !insertmacro MUI_INSTALLOPTIONS_WRITE "SetContext.ini" "Field 2" "Text" "$(GTKMM_RIGHTS_ANYONE)"
 
2007
  !insertmacro MUI_INSTALLOPTIONS_WRITE "SetContext.ini" "Field 3" "Text" "$(GTKMM_RIGHTS_CURRENT)"
 
2008
  !insertmacro MUI_INSTALLOPTIONS_DISPLAY "SetContext.ini"
 
2009
done:
 
2010
  
 
2011
FunctionEnd
 
2012
 
 
2013
Function CustomSetTargetDirectory
 
2014
 
 
2015
  IfSilent 0 +2
 
2016
    StrCmp $USE_GTKDIR "1" 0 done
 
2017
  ReadRegStr $R0 HKLM Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION} "Path"
 
2018
  StrCmp $R0 "" "" done
 
2019
  ReadRegStr $R0 HKCU Software\${PRODUCT_PLATFORM_NAME}\${PRODUCT_API_VERSION} "Path"
 
2020
  StrCmp $R0 "" "" done
 
2021
  ReadRegStr $R0 HKLM "Software\GTK\2.0" "Path"
 
2022
  StrCmp $R0 "" "" +3
 
2023
  ReadRegStr $R0 HKCU "Software\GTK\2.0" "Path"
 
2024
  StrCmp $R0 "" done
 
2025
  Push $R0
 
2026
  Pop $INSTDIR
 
2027
done:
 
2028
 
 
2029
FunctionEnd
 
2030
 
 
2031
Function CustomPreviousVersion
 
2032
 
 
2033
  ; Get installer location
 
2034
  ClearErrors
 
2035
  ReadRegStr $R0 HKLM \
 
2036
  "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" \
 
2037
  "UninstallString"
 
2038
  IfErrors 0 +2
 
2039
  ReadRegStr $R0 HKCU \
 
2040
  "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" \
 
2041
  "UninstallString"
 
2042
  StrCmp $R0 "" done
 
2043
 
 
2044
  ; Get current installed version
 
2045
  ClearErrors
 
2046
  ReadRegStr $R1 HKLM \
 
2047
  "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" \
 
2048
  "DisplayVersion"
 
2049
  IfErrors 0 +2
 
2050
  ReadRegStr $R1 HKCU \
 
2051
  "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" \
 
2052
  "DisplayVersion"
 
2053
 
 
2054
  ; Extract package and installer versions
 
2055
  ${StrTok} $R2 $R1 "-" 0 1
 
2056
  ${StrTok} $R3 $R1 "-" 1 1
 
2057
  
 
2058
  ${VersionCheck} $R2 ${PRODUCT_VERSION} "$R4"
 
2059
  StrCmp $R4 "1" newerInstall
 
2060
 
 
2061
  StrCmp $R4 "2" +2
 
2062
  IntCmp $R3 ${PRODUCT_VERSION_INSTALLER} "" "" newerInstall
 
2063
 
 
2064
  IfSilent "" +2
 
2065
    StrCmp $FORCE_UNINSTALL "1" +2 no_remove_uninstaller
 
2066
  MessageBox MB_YESNOCANCEL|MB_ICONEXCLAMATION "$(GTKMM_PREVIOUS_VERSION)" IDNO done IDCANCEL abortInstall
 
2067
 
 
2068
  ;Run the uninstaller
 
2069
  ClearErrors
 
2070
  CopyFiles "$R0" $TEMP
 
2071
  StrCpy $R1 ""
 
2072
  IfSilent 0 +2
 
2073
    StrCpy $R1 "/S"
 
2074
  ExecWait '"$TEMP\${GTKMM_UNINSTALL_EXE}" $R1 _?=$INSTDIR'
 
2075
 
 
2076
  IfErrors no_remove_uninstaller
 
2077
    Delete $R0
 
2078
    RMDir $INSTDIR
 
2079
 
 
2080
  no_remove_uninstaller:
 
2081
    Delete "$TEMP\$R0"
 
2082
    ; Check that the user completed the uninstallation by examining the registry
 
2083
    ReadRegStr $R0 HKLM \
 
2084
    "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" \
 
2085
    "UninstallString"
 
2086
    IfErrors 0 +2
 
2087
    ReadRegStr $R0 HKCU \
 
2088
    "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_PLATFORM_NAME}" \
 
2089
    "UninstallString"
 
2090
    StrCmp $R0 "" done abortInstall
 
2091
    
 
2092
newerInstall:
 
2093
    IfSilent +2
 
2094
      MessageBox MB_OK|MB_ICONEXCLAMATION "$(GTKMM_NEWER)" IDOK ""
 
2095
    Abort
 
2096
 
 
2097
abortInstall:
 
2098
    IfSilent 0
 
2099
      MessageBox MB_OK|MB_ICONEXCLAMATION "$(GTKMM_PREVIOUS_ERROR)"
 
2100
    Abort
 
2101
 
 
2102
done:
 
2103
    BringToFront
 
2104
    
 
2105
FunctionEnd
 
2106
 
 
2107
 
 
2108
;--------------------------------
 
2109
; Callbacks
 
2110
 
 
2111
;Function .onSelChange
 
2112
;
 
2113
;  !insertmacro UnselectSection ${SecGTKInstaller}
 
2114
;
 
2115
;FunctionEnd
 
2116
 
 
2117
Function .onInit
 
2118
 
 
2119
  ; Display the language selection dialog
 
2120
  !insertmacro MUI_LANGDLL_DISPLAY
 
2121
 
 
2122
  ;Extract InstallOptions INI files
 
2123
  !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "NSISLibrary\PathQuestion.ini" "PathQuestion.ini"
 
2124
  !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "NSISLibrary\SetContext.ini" "SetContext.ini"
 
2125
  
 
2126
  ; Get Command line Parameters
 
2127
  Push "ALLUSERS"
 
2128
  call Cmd_GetParameter
 
2129
  Pop $CONTEXT
 
2130
  Push "SET_ENVVARS"
 
2131
  call Cmd_GetParameter
 
2132
  Pop $CB_PATH_VALUE
 
2133
  Push "FORCE_UNINSTALL"
 
2134
  call Cmd_GetParameter
 
2135
  Pop $FORCE_UNINSTALL
 
2136
  Push "USE_GTKDIR"
 
2137
  call Cmd_GetParameter
 
2138
  Pop $USE_GTKDIR
 
2139
  
 
2140
  IfSilent "" +5
 
2141
    StrCpy $ICONS_GROUP "Gtkmm"
 
2142
    Call CustomPreviousVersion
 
2143
    Call CustomSetTargetDirectory
 
2144
    Call CustomPagePathQuestion
 
2145
    Call CustomPageSetContext
 
2146
 
 
2147
FunctionEnd
 
2148
 
 
2149
Function un.onInit
 
2150
 
 
2151
  !insertmacro MUI_UNGETLANGUAGE
 
2152
 
 
2153
FunctionEnd
 
2154