File: pioneers.nsi.in

package info (click to toggle)
pioneers 15.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 12,924 kB
  • sloc: ansic: 38,725; sh: 4,335; makefile: 754; xml: 6
file content (698 lines) | stat: -rw-r--r-- 31,605 bytes parent folder | download | duplicates (2)
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
; Script generated with the aid of the HM NIS Edit Script Wizard.
; Adapted for Pioneers by Roland Clobus <rclobus@bigfoot.com>

; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Pioneers"
!define PRODUCT_VERSION "@VERSION@"
!define PRODUCT_WEB_SITE "http://pio.sourceforge.net"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\pioneers.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"

SetCompressor bzip2

!include "MUI2.nsh"
!include "FileFunc.nsh"

; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"

; Language Selection Dialog Settings
!define MUI_LANGDLL_ALLLANGUAGES
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"

; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE "../COPYING"
; Components page
!insertmacro MUI_PAGE_COMPONENTS
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Start menu page
var ICONS_GROUP
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Pioneers"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN "$INSTDIR\pioneers.exe"
!insertmacro MUI_PAGE_FINISH

; Uninstaller pages
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

; Language files
!insertmacro MUI_LANGUAGE "English" ;first language is the default
!insertmacro MUI_LANGUAGE "Afrikaans"
!insertmacro MUI_LANGUAGE "Czech"
!insertmacro MUI_LANGUAGE "Danish"
!insertmacro MUI_LANGUAGE "Dutch"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "Galician"
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "Hungarian"
!insertmacro MUI_LANGUAGE "Italian"
!insertmacro MUI_LANGUAGE "Japanese"
!insertmacro MUI_LANGUAGE "Portuguese"
!insertmacro MUI_LANGUAGE "Spanish"
!insertmacro MUI_LANGUAGE "Swedish"

;Reserve Files
  
;If you are using solid compression, files that are required before
;the actual installation should be stored first in the data block,
;because this will make your installer start faster.
!insertmacro MUI_RESERVEFILE_LANGDLL


; MUI end ------

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Pioneers-${PRODUCT_VERSION}-setup.exe"
InstallDir "$PROGRAMFILES\Pioneers"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show

;Request application privileges for Windows Vista
RequestExecutionLevel admin

Function .onInit
  !insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd

Section "!Minimal install" SEC01
  SetOutPath "$INSTDIR"
  SetOverwrite ifnewer
 
  File "..\..\..\..\local\pioneers.exe"
  File "..\..\..\..\local\libatk-1.0-0.dll"
  File "..\..\..\..\local\libcairo-2.dll"
  File "..\..\..\..\local\libcairo-gobject-2.dll"
  File "..\..\..\..\local\libcroco-0.6-3.dll"
  File "..\..\..\..\local\libffi-6.dll"
  File "..\..\..\..\local\libfontconfig-1.dll"
  File "..\..\..\..\local\libfreetype-6.dll"
  File "..\..\..\..\local\libgcc_s_dw2-1.dll"
  File "..\..\..\..\local\libgdk-3-0.dll"
  File "..\..\..\..\local\libgdk_pixbuf-2.0-0.dll"
  File "..\..\..\..\local\libgio-2.0-0.dll"
  File "..\..\..\..\local\libglib-2.0-0.dll"
  File "..\..\..\..\local\libgmodule-2.0-0.dll"
  File "..\..\..\..\local\libgobject-2.0-0.dll"
  File "..\..\..\..\local\libgtk-3-0.dll"
  File "..\..\..\..\local\libiconv-2.dll"
  File "..\..\..\..\local\libintl-8.dll"
  File "..\..\..\..\local\liblzma-5.dll"
  File "..\..\..\..\local\libpango-1.0-0.dll"
  File "..\..\..\..\local\libpangocairo-1.0-0.dll"
  File "..\..\..\..\local\libpangoft2-1.0-0.dll"
  File "..\..\..\..\local\libpangowin32-1.0-0.dll"
  File "..\..\..\..\local\libpixbufloader-svg.dll"
  File "..\..\..\..\local\libpixman-1-0.dll"
  File "..\..\..\..\local\libpng15-15.dll"
  File "..\..\..\..\local\librsvg-2-2.dll"
  File "..\..\..\..\local\libssp-0.dll"
  File "..\..\..\..\local\libxml2-2.dll"
  File "..\..\..\..\local\pthreadGC2.dll"
  File "..\..\..\..\local\zlib1.dll"
  File "..\..\..\..\local\gspawn-win32-helper.exe"
  File "..\..\..\..\local\gspawn-win32-helper-console.exe"

  SetOutPath "$INSTDIR\lib\gdk-pixbuf-2.0\2.10.0"
  File "..\..\..\..\local\lib\gdk-pixbuf-2.0\2.10.0\loaders.cache"

  SetOverwrite TRY
; Translations
  SetOutPath "$INSTDIR\locale\af\LC_MESSAGES"
  File "..\..\..\..\local\locale\af\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\cs\LC_MESSAGES"
  File "..\..\..\..\local\locale\cs\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\da\LC_MESSAGES"
  File "..\..\..\..\local\locale\da\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\de\LC_MESSAGES"
  File "..\..\..\..\local\locale\de\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\en_GB\LC_MESSAGES"
  File "..\..\..\..\local\locale\en_GB\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\es\LC_MESSAGES"
  File "..\..\..\..\local\locale\es\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\fr\LC_MESSAGES"
  File "..\..\..\..\local\locale\fr\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\gl\LC_MESSAGES"
  File "..\..\..\..\local\locale\gl\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\hu\LC_MESSAGES"
  File "..\..\..\..\local\locale\hu\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\it\LC_MESSAGES"
  File "..\..\..\..\local\locale\it\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\ja\LC_MESSAGES"
  File "..\..\..\..\local\locale\ja\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\nl\LC_MESSAGES"
  File "..\..\..\..\local\locale\nl\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\pt\LC_MESSAGES"
  File "..\..\..\..\local\locale\pt\LC_MESSAGES\pioneers.mo"
  SetOutPath "$INSTDIR\locale\sv\LC_MESSAGES"
  File "..\..\..\..\local\locale\sv\LC_MESSAGES\pioneers.mo"
; No man pages for Windows native distribution
;  SetOutPath "$INSTDIR\man\man6"
;  File "..\..\..\..\local\man\man6\pioneers-meta-server.6"
;  File "..\..\..\..\local\man\man6\pioneers-server-console.6"
;  File "..\..\..\..\local\man\man6\pioneers-server-gtk.6"
;  File "..\..\..\..\local\man\man6\pioneers.6"
;  File "..\..\..\..\local\man\man6\pioneersai.6"
; Main icon
  SetOutPath "$INSTDIR\pixmaps"
  File "..\..\..\..\local\pixmaps\pioneers.png"
; Main toolbar icons
  SetOutPath "$INSTDIR\pixmaps\pioneers"
  File "..\..\..\..\local\pixmaps\pioneers\bridge.svg"
  File "..\..\..\..\local\pixmaps\pioneers\city.svg"
  File "..\..\..\..\local\pixmaps\pioneers\city_wall.svg"
  File "..\..\..\..\local\pixmaps\pioneers\develop.svg"
  File "..\..\..\..\local\pixmaps\pioneers\dice.svg"
  File "..\..\..\..\local\pixmaps\pioneers\finish.svg"
  File "..\..\..\..\local\pixmaps\pioneers\road.svg"
  File "..\..\..\..\local\pixmaps\pioneers\settlement.svg"
  File "..\..\..\..\local\pixmaps\pioneers\ship.svg"
  File "..\..\..\..\local\pixmaps\pioneers\ship_move.svg"
  File "..\..\..\..\local\pixmaps\pioneers\splash.png"
  File "..\..\..\..\local\pixmaps\pioneers\trade.svg"
  File "..\..\..\..\local\pixmaps\pioneers\brick.png"
  File "..\..\..\..\local\pixmaps\pioneers\grain.png"
  File "..\..\..\..\local\pixmaps\pioneers\ore.png"
  File "..\..\..\..\local\pixmaps\pioneers\wool.png"
  File "..\..\..\..\local\pixmaps\pioneers\lumber.png"
  File "..\..\..\..\local\pixmaps\pioneers\style-ai.svg"
  File "..\..\..\..\local\pixmaps\pioneers\style-human.png"
  File "..\..\..\..\local\pixmaps\pioneers\style-human-1.png"
  File "..\..\..\..\local\pixmaps\pioneers\style-human-2.png"
  File "..\..\..\..\local\pixmaps\pioneers\style-human-3.png"
  File "..\..\..\..\local\pixmaps\pioneers\style-human-4.png"
  File "..\..\..\..\local\pixmaps\pioneers\style-human-5.png"
  File "..\..\..\..\local\pixmaps\pioneers\style-human-6.png"
  File "..\..\..\..\local\pixmaps\pioneers\style-human-7.png"
; Other icons
  SetOutPath "$INSTDIR\share\icons\hicolor"
  File "..\..\..\..\local\share\icons\hicolor\index.theme"
  SetOutPath "$INSTDIR\share\icons\hicolor\scalable\actions"
  File "..\..\..\..\local\share\icons\hicolor\scalable\actions\pioneers-checkmark.svg"
  File "..\..\..\..\local\share\icons\hicolor\scalable\actions\pioneers-cross.svg"
  SetOutPath "$INSTDIR\share\icons\hicolor\24x24\actions"
  File "..\..\..\..\local\share\icons\hicolor\24x24\actions\edit-undo.png"
; GSettings file (for File|Open)
  SetOutPath "$INSTDIR\share\glib-2.0\schemas"
  File "..\..\..\..\local\share\glib-2.0\schemas\gschemas.compiled"

; Themes
  SetOutPath "$INSTDIR\themes"
  SetOutPath "$INSTDIR\themes\ccFlickr"
  File "..\..\..\..\local\themes\ccFlickr\ATTRIB"
  File "..\..\..\..\local\themes\ccFlickr\board.png"
  File "..\..\..\..\local\themes\ccFlickr\brick.png"
  File "..\..\..\..\local\themes\ccFlickr\desert.png"
  File "..\..\..\..\local\themes\ccFlickr\gold.png"
  File "..\..\..\..\local\themes\ccFlickr\grain.png"
  File "..\..\..\..\local\themes\ccFlickr\lumber.png"
  File "..\..\..\..\local\themes\ccFlickr\ore.png"
  File "..\..\..\..\local\themes\ccFlickr\port-brick.png"
  File "..\..\..\..\local\themes\ccFlickr\port-gold.png"
  File "..\..\..\..\local\themes\ccFlickr\port-grain.png"
  File "..\..\..\..\local\themes\ccFlickr\port-lumber.png"
  File "..\..\..\..\local\themes\ccFlickr\port-ore.png"
  File "..\..\..\..\local\themes\ccFlickr\port-wool.png"
  File "..\..\..\..\local\themes\ccFlickr\sea.png"
  File "..\..\..\..\local\themes\ccFlickr\theme.cfg"
  File "..\..\..\..\local\themes\ccFlickr\wool.png"
  SetOutPath "$INSTDIR\themes\Classic"
  File "..\..\..\..\local\themes\Classic\board.png"
  File "..\..\..\..\local\themes\Classic\desert.png"
  File "..\..\..\..\local\themes\Classic\field.png"
  File "..\..\..\..\local\themes\Classic\forest.png"
  File "..\..\..\..\local\themes\Classic\gold.png"
  File "..\..\..\..\local\themes\Classic\hill.png"
  File "..\..\..\..\local\themes\Classic\mountain.png"
  File "..\..\..\..\local\themes\Classic\pasture.png"
  File "..\..\..\..\local\themes\Classic\sea.png"
  File "..\..\..\..\local\themes\Classic\theme.cfg"
  SetOutPath "$INSTDIR\themes\FreeCIV-like"
  File "..\..\..\..\local\themes\FreeCIV-like\board.png"
  File "..\..\..\..\local\themes\FreeCIV-like\desert.png"
  File "..\..\..\..\local\themes\FreeCIV-like\field.png"
  File "..\..\..\..\local\themes\FreeCIV-like\forest.png"
  File "..\..\..\..\local\themes\FreeCIV-like\gold.png"
  File "..\..\..\..\local\themes\FreeCIV-like\hill.png"
  File "..\..\..\..\local\themes\FreeCIV-like\mountain.png"
  File "..\..\..\..\local\themes\FreeCIV-like\pasture.png"
  File "..\..\..\..\local\themes\FreeCIV-like\sea.png"
  File "..\..\..\..\local\themes\FreeCIV-like\theme.cfg"
  SetOutPath "$INSTDIR\themes\Iceland"
  File "..\..\..\..\local\themes\Iceland\board.png"
  File "..\..\..\..\local\themes\Iceland\desert.png"
  File "..\..\..\..\local\themes\Iceland\field_grain.png"
  File "..\..\..\..\local\themes\Iceland\forest_lumber.png"
  File "..\..\..\..\local\themes\Iceland\gold.png"
  File "..\..\..\..\local\themes\Iceland\hill_brick.png"
  File "..\..\..\..\local\themes\Iceland\mountain_ore.png"
  File "..\..\..\..\local\themes\Iceland\pasture_wool.png"
  File "..\..\..\..\local\themes\Iceland\sea.png"
  File "..\..\..\..\local\themes\Iceland\theme.cfg"
  SetOutPath "$INSTDIR\themes\Nouvellia"
  File "..\..\..\..\local\themes\Nouvellia\ATTRIB"
  File "..\..\..\..\local\themes\Nouvellia\board.svg"
  File "..\..\..\..\local\themes\Nouvellia\brick.svg"
  File "..\..\..\..\local\themes\Nouvellia\desert.svg"
  File "..\..\..\..\local\themes\Nouvellia\gold.svg"
  File "..\..\..\..\local\themes\Nouvellia\grain.svg"
  File "..\..\..\..\local\themes\Nouvellia\lumber.svg"
  File "..\..\..\..\local\themes\Nouvellia\port-brick.svg"
  File "..\..\..\..\local\themes\Nouvellia\port-grain.svg"
  File "..\..\..\..\local\themes\Nouvellia\port-lumber.svg"
  File "..\..\..\..\local\themes\Nouvellia\port-ore.svg"
  File "..\..\..\..\local\themes\Nouvellia\port-wool.svg"
  File "..\..\..\..\local\themes\Nouvellia\ore.svg"
  File "..\..\..\..\local\themes\Nouvellia\sea.svg"
  File "..\..\..\..\local\themes\Nouvellia\theme.cfg"
  File "..\..\..\..\local\themes\Nouvellia\wool.svg"
  SetOutPath "$INSTDIR\themes\Tiny"
  File "..\..\..\..\local\themes\Tiny\board.png"
  File "..\..\..\..\local\themes\Tiny\brick-lorindol.png"
  File "..\..\..\..\local\themes\Tiny\brick-port.png"
  File "..\..\..\..\local\themes\Tiny\desert-lorindol.png"
  File "..\..\..\..\local\themes\Tiny\gold-lorindol.png"
  File "..\..\..\..\local\themes\Tiny\grain-lorindol.png"
  File "..\..\..\..\local\themes\Tiny\grain-port.png"
  File "..\..\..\..\local\themes\Tiny\lumber-lorindol.png"
  File "..\..\..\..\local\themes\Tiny\lumber-port.png"
  File "..\..\..\..\local\themes\Tiny\ore-lorindol.png"
  File "..\..\..\..\local\themes\Tiny\ore-port.png"
  File "..\..\..\..\local\themes\Tiny\sea-lorindol.png"
  File "..\..\..\..\local\themes\Tiny\theme.cfg"
  File "..\..\..\..\local\themes\Tiny\wool-lorindol.png"
  File "..\..\..\..\local\themes\Tiny\wool-port.png"
  SetOutPath "$INSTDIR\themes\Wesnoth-like"
  File "..\..\..\..\local\themes\Wesnoth-like\board.png"
  File "..\..\..\..\local\themes\Wesnoth-like\desert.png"
  File "..\..\..\..\local\themes\Wesnoth-like\field.png"
  File "..\..\..\..\local\themes\Wesnoth-like\forest.png"
  File "..\..\..\..\local\themes\Wesnoth-like\gold.png"
  File "..\..\..\..\local\themes\Wesnoth-like\hill.png"
  File "..\..\..\..\local\themes\Wesnoth-like\mountain.png"
  File "..\..\..\..\local\themes\Wesnoth-like\pasture.png"
  File "..\..\..\..\local\themes\Wesnoth-like\sea.png"
  File "..\..\..\..\local\themes\Wesnoth-like\theme.cfg"

; Shortcuts
  SetOutPath "$INSTDIR"
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
  CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Pioneers.lnk" "$INSTDIR\pioneers.exe"
  CreateShortCut "$DESKTOP\Pioneers.lnk" "$INSTDIR\pioneers.exe"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd

Section /o "Additional programs" SEC02
  SetOutPath "$INSTDIR"
  SetOverwrite ifnewer
  File "..\..\..\..\local\pioneersai.exe"
  File "..\..\..\..\local\pioneers-editor.exe"
  File "..\..\..\..\local\pioneers-server-console.exe"
  File "..\..\..\..\local\pioneers-server-gtk.exe"
  SetOutPath "$INSTDIR\pixmaps"
  File "..\..\..\..\local\pixmaps\pioneers-editor.png"
  File "..\..\..\..\local\pixmaps\pioneers-server.png"

  SetOverwrite TRY
  SetOutPath "$INSTDIR\games\pioneers"
; Names for the AI
  File "..\..\..\..\local\games\pioneers\computer_names"
; Games for the editor (and server)
  File "..\..\..\..\local\games\pioneers\5-6-player.game"
  File "..\..\..\..\local\games\pioneers\Another_swimming_pool_in_the_wall.game"
  File "..\..\..\..\local\games\pioneers\archipel_gold.game"
  File "..\..\..\..\local\games\pioneers\canyon.game"
  File "..\..\..\..\local\games\pioneers\coeur.game"
  File "..\..\..\..\local\games\pioneers\conquest+ports.game"
  File "..\..\..\..\local\games\pioneers\conquest.game"
  File "..\..\..\..\local\games\pioneers\crane_island.game"
  File "..\..\..\..\local\games\pioneers\Cube.game"
  File "..\..\..\..\local\games\pioneers\default.game"
  File "..\..\..\..\local\games\pioneers\Evil_square.game"
  File "..\..\..\..\local\games\pioneers\four-islands.game"
  File "..\..\..\..\local\games\pioneers\GuerreDe100ans.game"
  File "..\..\..\..\local\games\pioneers\henjes.game"
  File "..\..\..\..\local\games\pioneers\iles.game"
  File "..\..\..\..\local\games\pioneers\lorindol.game"
  File "..\..\..\..\local\games\pioneers\Mini_another_swimming_pool_in_the_wall.game"
  File "..\..\..\..\local\games\pioneers\north_america.game"
  File "..\..\..\..\local\games\pioneers\pond.game"
  File "..\..\..\..\local\games\pioneers\seafarers-gold.game"
  File "..\..\..\..\local\games\pioneers\seafarers.game"
  File "..\..\..\..\local\games\pioneers\small.game"
  File "..\..\..\..\local\games\pioneers\south_africa.game"
  File "..\..\..\..\local\games\pioneers\square.game"
  File "..\..\..\..\local\games\pioneers\star.game"
  File "..\..\..\..\local\games\pioneers\ubuntuland.game"
  File "..\..\..\..\local\games\pioneers\x.game"
; Shortcuts
  SetOutPath "$INSTDIR"
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
  CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Pioneers Editor.lnk" "$INSTDIR\pioneers-editor.exe"
  CreateShortCut "$DESKTOP\Pioneers Editor.lnk" "$INSTDIR\pioneers-editor.exe"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Pioneers Server.lnk" "$INSTDIR\pioneers-server-gtk.exe"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd

Section -AdditionalIcons
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd

Section -Post
  WriteUninstaller "$INSTDIR\uninst.exe"
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\pioneers.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\pioneers.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
  WriteRegDWORD ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "NoModify" "1"
  WriteRegDWORD ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "NoRepair" "1"
  ; Installed size
  ${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
  IntFmt $0 "0x%08X" $0
  WriteRegDWORD ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "EstimatedSize" "$0"
SectionEnd

; Section descriptions
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Play games of Pioneers"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Install a server, a game editor and a computer player"
!insertmacro MUI_FUNCTION_DESCRIPTION_END


Function un.onUninstSuccess
  HideWindow
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
FunctionEnd

Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
  Abort
FunctionEnd

Section Uninstall
  !insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
  Delete "$INSTDIR\uninst.exe"
  Delete "$INSTDIR\pioneers-server-gtk.exe"
  Delete "$INSTDIR\pioneers-server-console.exe"
  Delete "$INSTDIR\pioneers-editor.exe"
  Delete "$INSTDIR\pioneersai.exe"
  Delete "$INSTDIR\pioneers.exe"
  Delete "$INSTDIR\libatk-1.0-0.dll"
  Delete "$INSTDIR\libcairo-2.dll"
  Delete "$INSTDIR\libcairo-gobject-2.dll"
  Delete "$INSTDIR\libcroco-0.6-3.dll"
  Delete "$INSTDIR\libffi-6.dll"
  Delete "$INSTDIR\libfontconfig-1.dll"
  Delete "$INSTDIR\libfreetype-6.dll"
  Delete "$INSTDIR\libgcc_s_dw2-1.dll"
  Delete "$INSTDIR\libgdk-3-0.dll"
  Delete "$INSTDIR\libgdk_pixbuf-2.0-0.dll"
  Delete "$INSTDIR\libgio-2.0-0.dll"
  Delete "$INSTDIR\libglib-2.0-0.dll"
  Delete "$INSTDIR\libgmodule-2.0-0.dll"
  Delete "$INSTDIR\libgobject-2.0-0.dll"
  Delete "$INSTDIR\libgtk-3-0.dll"
  Delete "$INSTDIR\libiconv-2.dll"
  Delete "$INSTDIR\libintl-8.dll"
  Delete "$INSTDIR\liblzma-5.dll"
  Delete "$INSTDIR\libpango-1.0-0.dll"
  Delete "$INSTDIR\libpangocairo-1.0-0.dll"
  Delete "$INSTDIR\libpangoft2-1.0-0.dll"
  Delete "$INSTDIR\libpangowin32-1.0-0.dll"
  Delete "$INSTDIR\libpixbufloader-svg.dll"
  Delete "$INSTDIR\libpixman-1-0.dll"
  Delete "$INSTDIR\libpng15-15.dll"
  Delete "$INSTDIR\librsvg-2-2.dll"
  Delete "$INSTDIR\libssp-0.dll"
  Delete "$INSTDIR\libxml2-2.dll"
  Delete "$INSTDIR\pthreadGC2.dll"
  Delete "$INSTDIR\zlib1.dll"
  Delete "$INSTDIR\gspawn-win32-helper.exe"
  Delete "$INSTDIR\gspawn-win32-helper-console.exe"
  Delete "$INSTDIR\lib\gdk-pixbuf-2.0\2.10.0\loaders.cache"
  Delete "$INSTDIR\themes\Wesnoth-like\theme.cfg"
  Delete "$INSTDIR\themes\Wesnoth-like\sea.png"
  Delete "$INSTDIR\themes\Wesnoth-like\pasture.png"
  Delete "$INSTDIR\themes\Wesnoth-like\mountain.png"
  Delete "$INSTDIR\themes\Wesnoth-like\hill.png"
  Delete "$INSTDIR\themes\Wesnoth-like\gold.png"
  Delete "$INSTDIR\themes\Wesnoth-like\forest.png"
  Delete "$INSTDIR\themes\Wesnoth-like\field.png"
  Delete "$INSTDIR\themes\Wesnoth-like\desert.png"
  Delete "$INSTDIR\themes\Wesnoth-like\board.png"
  Delete "$INSTDIR\themes\Tiny\wool-port.png"
  Delete "$INSTDIR\themes\Tiny\wool-lorindol.png"
  Delete "$INSTDIR\themes\Tiny\theme.cfg"
  Delete "$INSTDIR\themes\Tiny\sea-lorindol.png"
  Delete "$INSTDIR\themes\Tiny\ore-port.png"
  Delete "$INSTDIR\themes\Tiny\ore-lorindol.png"
  Delete "$INSTDIR\themes\Tiny\lumber-port.png"
  Delete "$INSTDIR\themes\Tiny\lumber-lorindol.png"
  Delete "$INSTDIR\themes\Tiny\grain-port.png"
  Delete "$INSTDIR\themes\Tiny\grain-lorindol.png"
  Delete "$INSTDIR\themes\Tiny\gold-lorindol.png"
  Delete "$INSTDIR\themes\Tiny\desert-lorindol.png"
  Delete "$INSTDIR\themes\Tiny\brick-port.png"
  Delete "$INSTDIR\themes\Tiny\brick-lorindol.png"
  Delete "$INSTDIR\themes\Tiny\board.png"
  Delete "$INSTDIR\themes\Nouvellia\wool.svg"
  Delete "$INSTDIR\themes\Nouvellia\theme.cfg"
  Delete "$INSTDIR\themes\Nouvellia\sea.svg"
  Delete "$INSTDIR\themes\Nouvellia\port-wool.svg"
  Delete "$INSTDIR\themes\Nouvellia\port-ore.svg"
  Delete "$INSTDIR\themes\Nouvellia\port-lumber.svg"
  Delete "$INSTDIR\themes\Nouvellia\port-grain.svg"
  Delete "$INSTDIR\themes\Nouvellia\port-brick.svg"
  Delete "$INSTDIR\themes\Nouvellia\ore.svg"
  Delete "$INSTDIR\themes\Nouvellia\lumber.svg"
  Delete "$INSTDIR\themes\Nouvellia\grain.svg"
  Delete "$INSTDIR\themes\Nouvellia\gold.svg"
  Delete "$INSTDIR\themes\Nouvellia\desert.svg"
  Delete "$INSTDIR\themes\Nouvellia\brick.svg"
  Delete "$INSTDIR\themes\Nouvellia\board.svg"
  Delete "$INSTDIR\themes\Nouvellia\ATTRIB"
  Delete "$INSTDIR\themes\Iceland\theme.cfg"
  Delete "$INSTDIR\themes\Iceland\sea.png"
  Delete "$INSTDIR\themes\Iceland\pasture_wool.png"
  Delete "$INSTDIR\themes\Iceland\mountain_ore.png"
  Delete "$INSTDIR\themes\Iceland\hill_brick.png"
  Delete "$INSTDIR\themes\Iceland\gold.png"
  Delete "$INSTDIR\themes\Iceland\forest_lumber.png"
  Delete "$INSTDIR\themes\Iceland\field_grain.png"
  Delete "$INSTDIR\themes\Iceland\desert.png"
  Delete "$INSTDIR\themes\Iceland\board.png"
  Delete "$INSTDIR\themes\FreeCIV-like\theme.cfg"
  Delete "$INSTDIR\themes\FreeCIV-like\sea.png"
  Delete "$INSTDIR\themes\FreeCIV-like\pasture.png"
  Delete "$INSTDIR\themes\FreeCIV-like\mountain.png"
  Delete "$INSTDIR\themes\FreeCIV-like\hill.png"
  Delete "$INSTDIR\themes\FreeCIV-like\gold.png"
  Delete "$INSTDIR\themes\FreeCIV-like\forest.png"
  Delete "$INSTDIR\themes\FreeCIV-like\field.png"
  Delete "$INSTDIR\themes\FreeCIV-like\desert.png"
  Delete "$INSTDIR\themes\FreeCIV-like\board.png"
  Delete "$INSTDIR\themes\Classic\theme.cfg"
  Delete "$INSTDIR\themes\Classic\sea.png"
  Delete "$INSTDIR\themes\Classic\pasture.png"
  Delete "$INSTDIR\themes\Classic\mountain.png"
  Delete "$INSTDIR\themes\Classic\hill.png"
  Delete "$INSTDIR\themes\Classic\gold.png"
  Delete "$INSTDIR\themes\Classic\forest.png"
  Delete "$INSTDIR\themes\Classic\field.png"
  Delete "$INSTDIR\themes\Classic\desert.png"
  Delete "$INSTDIR\themes\Classic\board.png"
  Delete "$INSTDIR\themes\ccFlickr\wool.png"
  Delete "$INSTDIR\themes\ccFlickr\theme.cfg"
  Delete "$INSTDIR\themes\ccFlickr\sea.png"
  Delete "$INSTDIR\themes\ccFlickr\port-wool.png"
  Delete "$INSTDIR\themes\ccFlickr\port-ore.png"
  Delete "$INSTDIR\themes\ccFlickr\port-lumber.png"
  Delete "$INSTDIR\themes\ccFlickr\port-grain.png"
  Delete "$INSTDIR\themes\ccFlickr\port-gold.png"
  Delete "$INSTDIR\themes\ccFlickr\port-brick.png"
  Delete "$INSTDIR\themes\ccFlickr\ore.png"
  Delete "$INSTDIR\themes\ccFlickr\lumber.png"
  Delete "$INSTDIR\themes\ccFlickr\grain.png"
  Delete "$INSTDIR\themes\ccFlickr\gold.png"
  Delete "$INSTDIR\themes\ccFlickr\desert.png"
  Delete "$INSTDIR\themes\ccFlickr\brick.png"
  Delete "$INSTDIR\themes\ccFlickr\board.png"
  Delete "$INSTDIR\themes\ccFlickr\ATTRIB"
  Delete "$INSTDIR\pixmaps\pioneers\style-human-7.png"
  Delete "$INSTDIR\pixmaps\pioneers\style-human-6.png"
  Delete "$INSTDIR\pixmaps\pioneers\style-human-5.png"
  Delete "$INSTDIR\pixmaps\pioneers\style-human-4.png"
  Delete "$INSTDIR\pixmaps\pioneers\style-human-3.png"
  Delete "$INSTDIR\pixmaps\pioneers\style-human-2.png"
  Delete "$INSTDIR\pixmaps\pioneers\style-human-1.png"
  Delete "$INSTDIR\pixmaps\pioneers\style-human.png"
  Delete "$INSTDIR\pixmaps\pioneers\style-ai.svg"
  Delete "$INSTDIR\pixmaps\pioneers\brick.png"
  Delete "$INSTDIR\pixmaps\pioneers\grain.png"
  Delete "$INSTDIR\pixmaps\pioneers\ore.png"
  Delete "$INSTDIR\pixmaps\pioneers\wool.png"
  Delete "$INSTDIR\pixmaps\pioneers\lumber.png"
  Delete "$INSTDIR\pixmaps\pioneers\trade.svg"
  Delete "$INSTDIR\pixmaps\pioneers\splash.png"
  Delete "$INSTDIR\pixmaps\pioneers\ship_move.svg"
  Delete "$INSTDIR\pixmaps\pioneers\ship.svg"
  Delete "$INSTDIR\pixmaps\pioneers\settlement.svg"
  Delete "$INSTDIR\pixmaps\pioneers\road.svg"
  Delete "$INSTDIR\pixmaps\pioneers\finish.svg"
  Delete "$INSTDIR\pixmaps\pioneers\dice.svg"
  Delete "$INSTDIR\pixmaps\pioneers\develop.svg"
  Delete "$INSTDIR\pixmaps\pioneers\city_wall.svg"
  Delete "$INSTDIR\pixmaps\pioneers\city.svg"
  Delete "$INSTDIR\pixmaps\pioneers\bridge.svg"
  Delete "$INSTDIR\pixmaps\pioneers.png"
  Delete "$INSTDIR\pixmaps\pioneers-server.png"
  Delete "$INSTDIR\pixmaps\pioneers-editor.png"
  Delete "$INSTDIR\share\glib-2.0\schemas\gschemas.compiled"
  Delete "$INSTDIR\share\icons\hicolor\index.theme"
  Delete "$INSTDIR\share\icons\hicolor\24x24\actions\edit-undo.png"
  Delete "$INSTDIR\share\icons\hicolor\scalable\actions\pioneers-cross.svg"
  Delete "$INSTDIR\share\icons\hicolor\scalable\actions\pioneers-checkmark.svg"
;  Delete "$INSTDIR\man\man6\pioneersai.6"
;  Delete "$INSTDIR\man\man6\pioneers.6"
;  Delete "$INSTDIR\man\man6\pioneers-server-gtk.6"
;  Delete "$INSTDIR\man\man6\pioneers-server-console.6"
;  Delete "$INSTDIR\man\man6\pioneers-meta-server.6"
  Delete "$INSTDIR\locale\sv\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\pt\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\nl\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\ja\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\it\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\hu\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\gl\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\fr\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\es\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\en_GB\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\de\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\da\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\cs\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\locale\af\LC_MESSAGES\pioneers.mo"
  Delete "$INSTDIR\games\pioneers\x.game"
  Delete "$INSTDIR\games\pioneers\ubuntuland.game"
  Delete "$INSTDIR\games\pioneers\star.game"
  Delete "$INSTDIR\games\pioneers\square.game"
  Delete "$INSTDIR\games\pioneers\south_africa.game"
  Delete "$INSTDIR\games\pioneers\small.game"
  Delete "$INSTDIR\games\pioneers\seafarers.game"
  Delete "$INSTDIR\games\pioneers\seafarers-gold.game"
  Delete "$INSTDIR\games\pioneers\pond.game"
  Delete "$INSTDIR\games\pioneers\north_america.game"
  Delete "$INSTDIR\games\pioneers\Mini_another_swimming_pool_in_the_wall.game"
  Delete "$INSTDIR\games\pioneers\lorindol.game"
  Delete "$INSTDIR\games\pioneers\iles.game"
  Delete "$INSTDIR\games\pioneers\henjes.game"
  Delete "$INSTDIR\games\pioneers\GuerreDe100ans.game"
  Delete "$INSTDIR\games\pioneers\four-islands.game"
  Delete "$INSTDIR\games\pioneers\Evil_square.game"
  Delete "$INSTDIR\games\pioneers\default.game"
  Delete "$INSTDIR\games\pioneers\Cube.game"
  Delete "$INSTDIR\games\pioneers\crane_island.game"
  Delete "$INSTDIR\games\pioneers\conquest.game"
  Delete "$INSTDIR\games\pioneers\conquest+ports.game"
  Delete "$INSTDIR\games\pioneers\computer_names"
  Delete "$INSTDIR\games\pioneers\coeur.game"
  Delete "$INSTDIR\games\pioneers\canyon.game"
  Delete "$INSTDIR\games\pioneers\archipel_gold.game"
  Delete "$INSTDIR\games\pioneers\Another_swimming_pool_in_the_wall.game"
  Delete "$INSTDIR\games\pioneers\5-6-player.game"

  Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk"
  Delete "$DESKTOP\Pioneers.lnk"
  Delete "$DESKTOP\Pioneers Editor.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\Pioneers.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\Pioneers Editor.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\Pioneers Server.lnk"

  RMDir "$SMPROGRAMS\$ICONS_GROUP"
  RMDir "$INSTDIR\themes\Wesnoth-like"
  RMDir "$INSTDIR\themes\Tiny"
  RMDir "$INSTDIR\themes\Nouvellia"
  RMDir "$INSTDIR\themes\Iceland"
  RMDir "$INSTDIR\themes\FreeCIV-like"
  RMDir "$INSTDIR\themes\Classic"
  RMDir "$INSTDIR\themes\ccFlickr"
  RMDir "$INSTDIR\themes"
  RMDir "$INSTDIR\pixmaps\pioneers"
  RMDir "$INSTDIR\pixmaps"
  RMDir "$INSTDIR\locale\sv\LC_MESSAGES"
  RMDir "$INSTDIR\locale\sv"
  RMDir "$INSTDIR\locale\pt\LC_MESSAGES"
  RMDir "$INSTDIR\locale\pt"
  RMDir "$INSTDIR\locale\nl\LC_MESSAGES"
  RMDir "$INSTDIR\locale\nl"
  RMDir "$INSTDIR\locale\ja\LC_MESSAGES"
  RMDir "$INSTDIR\locale\ja"
  RMDir "$INSTDIR\locale\it\LC_MESSAGES"
  RMDir "$INSTDIR\locale\it"
  RMDir "$INSTDIR\locale\hu\LC_MESSAGES"
  RMDir "$INSTDIR\locale\hu"
  RMDir "$INSTDIR\locale\gl\LC_MESSAGES"
  RMDir "$INSTDIR\locale\gl"
  RMDir "$INSTDIR\locale\fr\LC_MESSAGES"
  RMDir "$INSTDIR\locale\fr"
  RMDir "$INSTDIR\locale\es\LC_MESSAGES"
  RMDir "$INSTDIR\locale\es"
  RMDir "$INSTDIR\locale\en_GB\LC_MESSAGES"
  RMDir "$INSTDIR\locale\en_GB"
  RMDir "$INSTDIR\locale\de\LC_MESSAGES"
  RMDir "$INSTDIR\locale\de"
  RMDir "$INSTDIR\locale\da\LC_MESSAGES"
  RMDir "$INSTDIR\locale\da"
  RMDir "$INSTDIR\locale\cs\LC_MESSAGES"
  RMDir "$INSTDIR\locale\cs"
  RMDir "$INSTDIR\locale\af\LC_MESSAGES"
  RMDir "$INSTDIR\locale\af"
  RMDir "$INSTDIR\locale"
  RMDir "$INSTDIR\lib\gdk-pixbuf-2.0\2.10.0"
  RMDir "$INSTDIR\lib\gdk-pixbuf-2.0"
  RMDir "$INSTDIR\lib"
  RMDir "$INSTDIR\share\glib-2.0\schemas"
  RMDir "$INSTDIR\share\glib-2.0"
  RMDir "$INSTDIR\share\icons\hicolor\scalable\actions"
  RMDir "$INSTDIR\share\icons\hicolor\scalable"
  RMDir "$INSTDIR\share\icons\hicolor\24x24\actions"
  RMDir "$INSTDIR\share\icons\hicolor\24x24"
  RMDir "$INSTDIR\share\icons\hicolor"
  RMDir "$INSTDIR\share\icons"
  RMDir "$INSTDIR\share"
  RMDir "$INSTDIR\games\pioneers"
  RMDir "$INSTDIR\games"
  RMDir "$INSTDIR\games"
  RMDir "$INSTDIR"

  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
  SetAutoClose true
SectionEnd