blob: fabd6c314f558e1802f0eedc33df36d9001bb815 (
plain)
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
|
!include "MUI2.nsh"
;!include "FileAssociation.nsh"
;!include "ProtocolAssociation.nsh"
!include "x64.nsh"
;--------------------------------
; The name of the installer
Name "Transmission Remote GTK"
; The file to write
!ifndef REV
OutFile "transmission-remote-gtk-1.0-installer.exe"
!else
OutFile "transmission-remote-gtk-${REV}-installer.exe"
!endif
; The default installation directory
!define ProgramFilesDir "Transmission Remote GTK"
RequestExecutionLevel admin
;--------------------------------
XPStyle on
Var StartMenuFolder
!define MUI_ICON "transmission_large.ico"
!define MUI_UNICON "transmission_large.ico"
!define MUI_HEADERIMAGE
;!define MUI_HEADERIMAGE_BITMAP "logo.bmp"
;!define MUI_WELCOMEFINISHPAGE_BITMAP "nsis_wizard.bmp"
;!define MUI_UNWELCOMEFINISHPAGE_BITMAP "nsis_wizard.bmp"
;!define MUI_COMPONENTSPAGE_CHECKBITMAP "${NSISDIR}\Contrib\Graphics\Checks\colorful.bmp"
!define MUI_COMPONENTSPAGE_SMALLDESC
!define MUI_ABORTWARNING
;!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README.txt"
;!define MUI_FINISHPAGE_SHOWREADME_TEXT "Show ReadMe"
;!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
; Pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "..\COPYING"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
;--------------------------------
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_RESERVEFILE_LANGDLL
; English
LangString NAME_SecTransmissionRemoteGTK ${LANG_ENGLISH} "Transmission Remote GTK (required)"
LangString DESC_SecTransmissionRemoteGTK ${LANG_ENGLISH} "The application."
LangString NAME_SecGlibGtkEtc ${LANG_ENGLISH} "Glib, GTK, and other dependencies (recommended)."
LangString DESC_SecGlibGtkEtc ${LANG_ENGLISH} "If unset, you'll need to install these yourself."
LangString NAME_SecDesktopIcon ${LANG_ENGLISH} "Create icon on desktop"
LangString DESC_SecDesktopIcon ${LANG_ENGLISH} "If set, a shortcut for Transmission Remote will be created on the desktop."
;LangString NAME_SecFiletypeAssociations ${LANG_ENGLISH} "Register Filetype Associations"
;LangString DESC_SecFiletypeAssociations ${LANG_ENGLISH} "Register Associations to Transmission Remote"
;LangString NAME_SecRegiterTorrent ${LANG_ENGLISH} "Register .torrent"
;LangString DESC_SecRegiterTorrent ${LANG_ENGLISH} "Register .torrent to Transmission Remote"
;LangString NAME_SecRegiterMagnet ${LANG_ENGLISH} "Register Magnet URI"
;LangString DESC_SecRegiterMagnet ${LANG_ENGLISH} "Register Magnet URI to Transmission Remote"
;LangString DESC_SecGeoIPDatabase ${LANG_ENGLISH} "GeoIP database"
;LangString NAME_SecLanguages ${LANG_ENGLISH} "Languages"
;LangString DESC_SecLanguages ${LANG_ENGLISH} "Languages for Transmission Remote"
;--------------------------------
; The stuff to install
Section $(NAME_SecTransmissionRemoteGTK) SecTransmissionRemoteGTK
SectionIn RO
SetOutPath $INSTDIR
File /oname=README.TXT "..\README"
File /oname=COPYING.TXT "..\COPYING"
File /oname=ChangeLog.TXT "..\ChangeLog"
File /oname=AUTHORS.TXT "..\AUTHORS"
; Set output path to the installation directory.
SetOutPath $INSTDIR\bin
; Put file there
File ".libs\transmission-remote-gtk.exe"
SetOutPath $INSTDIR\etc\gtk-2.0
File "..\..\gtk-2.24-win32-bin\etc\gtk-2.0\gtkrc"
SetOutPath $INSTDIR\share\themes\MS-Windows\gtk-2.0
File "..\..\gtk-2.24-win32-bin\share\themes\MS-Windows\gtk-2.0\gtkrc"
SetOutPath $INSTDIR\share\locale\uk\LC_MESSAGES
File "C:\MinGW\msys\1.0\lib\locale\uk\LC_MESSAGES\transmission-remote-gtk.mo"
SetOutPath $INSTDIR\share\locale\ru\LC_MESSAGES
File "C:\MinGW\msys\1.0\lib\locale\ru\LC_MESSAGES\transmission-remote-gtk.mo"
SetOutPath $INSTDIR\share\locale\pl\LC_MESSAGES
File "C:\MinGW\msys\1.0\lib\locale\pl\LC_MESSAGES\transmission-remote-gtk.mo"
SetOutPath $INSTDIR\share\locale\ko\LC_MESSAGES
File "C:\MinGW\msys\1.0\lib\locale\ko\LC_MESSAGES\transmission-remote-gtk.mo"
SetOutPath $INSTDIR\share\locale\es\LC_MESSAGES
File "C:\MinGW\msys\1.0\lib\locale\es\LC_MESSAGES\transmission-remote-gtk.mo"
SetOutPath $INSTDIR\share\locale\de\LC_MESSAGES
File "C:\MinGW\msys\1.0\lib\locale\de\LC_MESSAGES\transmission-remote-gtk.mo"
SetOutPath $INSTDIR\share\icons\hicolor\scalable\apps
File "C:\MinGW\msys\1.0\share\icons\hicolor\scalable\apps\transmission-remote-gtk.svg"
SetOutPath $INSTDIR\share\icons\hicolor\48x48\apps
File "C:\MinGW\msys\1.0\share\icons\hicolor\48x48\apps\transmission-remote-gtk.png"
SetOutPath $INSTDIR\share\icons\hicolor\32x32\apps
File "C:\MinGW\msys\1.0\share\icons\hicolor\32x32\apps\transmission-remote-gtk.png"
SetOutPath $INSTDIR\share\icons\hicolor\24x24\apps
File "C:\MinGW\msys\1.0\share\icons\hicolor\24x24\apps\transmission-remote-gtk.png"
SetOutPath $INSTDIR\share\icons\hicolor\22x22\apps
File "C:\MinGW\msys\1.0\share\icons\hicolor\22x22\apps\transmission-remote-gtk.png"
SetOutPath $INSTDIR\share\icons\hicolor\16x16\apps
File "C:\MinGW\msys\1.0\share\icons\hicolor\16x16\apps\transmission-remote-gtk.png"
!ifndef PORTABLE
; Write the installation path into the registry
WriteRegStr HKLM "SOFTWARE\TransmissionRemoteGTK" "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TransmissionRemoteGTK" "DisplayName" "Transmission Remote GTK"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TransmissionRemoteGTK" "Publisher" "Alan Fitton"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TransmissionRemoteGTK" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TransmissionRemoteGTK" "DisplayIcon" "$INSTDIR\bin\transmission-remote-gtk.exe,0"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TransmissionRemoteGTK" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TransmissionRemoteGTK" "NoRepair" 1
WriteUninstaller "uninstall.exe"
!endif
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
SetShellVarContext current
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Transmission Remote GTK.lnk" "$INSTDIR\bin\transmission-remote-gtk.exe" "" "$INSTDIR\bin\transmission-remote-gtk.exe" 0
!ifndef PORTABLE
SetShellVarContext all
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Transmission Remote GTK.lnk" "$INSTDIR\bin\transmission-remote-gtk.exe" "" "$INSTDIR\bin\transmission-remote-gtk.exe" 0
!endif
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section $(NAME_SecGlibGtkEtc) SecGlibGtkEtc
SetOutPath $INSTDIR\bin
File "..\..\gtk-2.24-win32-bin\bin\freetype6.dll"
File "..\..\gtk-2.24-win32-bin\bin\intl.dll"
File "..\..\gtk-2.24-win32-bin\bin\libatk-1.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libcairo-2.dll"
File "..\..\gtk-2.24-win32-bin\bin\libcurl-4.dll"
File "..\..\gtk-2.24-win32-bin\bin\libexpat-1.dll"
File "..\..\gtk-2.24-win32-bin\bin\libfontconfig-1.dll"
File "..\..\gtk-2.24-win32-bin\bin\libgdk-win32-2.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libgdk_pixbuf-2.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libgio-2.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libglib-2.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libgmodule-2.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libgobject-2.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libgthread-2.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libgtk-win32-2.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libjson-glib-1.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libpango-1.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libpangocairo-1.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libpangoft2-1.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libpangowin32-1.0-0.dll"
File "..\..\gtk-2.24-win32-bin\bin\libpng14-14.dll"
File "..\..\gtk-2.24-win32-bin\bin\zlib1.dll"
File "..\..\gtk-2.24-win32-bin\bin\libintl-8.dll"
File "..\..\gtk-2.24-win32-bin\bin\libiconv-2.dll"
File "..\..\gtk-2.24-win32-bin\bin\gspawn-win32-helper-console.exe"
File "..\..\gtk-2.24-win32-bin\bin\gspawn-win32-helper.exe"
File "c:\MinGW\msys\1.0\bin\libproxy.dll"
File "c:\MinGW\msys\1.0\bin\libmodman.dll"
File "c:\MinGW\msys\1.0\bin\libstdc++-6.dll"
File "c:\MinGW\msys\1.0\bin\libgcc_s_sjlj-1.dll"
SetOutPath $INSTDIR\lib\gtk-2.0\2.10.0\engines
File "..\..\gtk-2.24-win32-bin\lib\gtk-2.0\2.10.0\engines\libpixmap.dll"
File "..\..\gtk-2.24-win32-bin\lib\gtk-2.0\2.10.0\engines\libwimp.dll"
SetOutPath $INSTDIR\lib\gtk-2.0\modules
File "..\..\gtk-2.24-win32-bin\lib\gtk-2.0\modules\libgail.dll"
SetOutPath $INSTDIR\share\locale\uk\LC_MESSAGES
File "..\..\gtk-2.24-win32-bin\share\locale\uk\LC_MESSAGES\libiconv.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\uk\LC_MESSAGES\gtk20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\uk\LC_MESSAGES\gtk20-properties.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\uk\LC_MESSAGES\glib20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\uk\LC_MESSAGES\gettext-tools.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\uk\LC_MESSAGES\gettext-runtime.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\uk\LC_MESSAGES\gdk-pixbuf.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\uk\LC_MESSAGES\atk10.mo"
SetOutPath $INSTDIR\share\locale\ru\LC_MESSAGES
File "..\..\gtk-2.24-win32-bin\share\locale\ru\LC_MESSAGES\libiconv.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ru\LC_MESSAGES\gtk20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ru\LC_MESSAGES\gtk20-properties.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ru\LC_MESSAGES\glib20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ru\LC_MESSAGES\gettext-tools.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ru\LC_MESSAGES\gettext-runtime.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ru\LC_MESSAGES\gdk-pixbuf.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ru\LC_MESSAGES\atk10.mo"
SetOutPath $INSTDIR\share\locale\pl\LC_MESSAGES
File "..\..\gtk-2.24-win32-bin\share\locale\pl\LC_MESSAGES\libiconv.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\pl\LC_MESSAGES\gtk20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\pl\LC_MESSAGES\gtk20-properties.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\pl\LC_MESSAGES\glib20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\pl\LC_MESSAGES\gettext-tools.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\pl\LC_MESSAGES\gettext-runtime.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\pl\LC_MESSAGES\gdk-pixbuf.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\pl\LC_MESSAGES\atk10.mo"
SetOutPath $INSTDIR\share\locale\ko\LC_MESSAGES
File "..\..\gtk-2.24-win32-bin\share\locale\ko\LC_MESSAGES\gtk20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ko\LC_MESSAGES\gtk20-properties.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ko\LC_MESSAGES\glib20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ko\LC_MESSAGES\gettext-tools.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ko\LC_MESSAGES\gettext-runtime.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ko\LC_MESSAGES\gdk-pixbuf.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\ko\LC_MESSAGES\atk10.mo"
SetOutPath $INSTDIR\share\locale\es\LC_MESSAGES
File "..\..\gtk-2.24-win32-bin\share\locale\es\LC_MESSAGES\libiconv.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\es\LC_MESSAGES\gtk20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\es\LC_MESSAGES\gtk20-properties.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\es\LC_MESSAGES\glib20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\es\LC_MESSAGES\gettext-tools.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\es\LC_MESSAGES\gettext-runtime.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\es\LC_MESSAGES\gdk-pixbuf.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\es\LC_MESSAGES\atk10.mo"
SetOutPath $INSTDIR\share\locale\de\LC_MESSAGES
File "..\..\gtk-2.24-win32-bin\share\locale\de\LC_MESSAGES\libiconv.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\de\LC_MESSAGES\gtk20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\de\LC_MESSAGES\gtk20-properties.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\de\LC_MESSAGES\glib20.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\de\LC_MESSAGES\gettext-tools.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\de\LC_MESSAGES\gettext-runtime.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\de\LC_MESSAGES\gdk-pixbuf.mo"
File "..\..\gtk-2.24-win32-bin\share\locale\de\LC_MESSAGES\atk10.mo"
SetOutPath $INSTDIR\share\icons\hicolor
File "..\..\gtk-2.24-win32-bin\share\icons\hicolor\index.theme"
File "..\..\gtk-2.24-win32-bin\share\icons\hicolor\icon-theme.cache"
SectionEnd
; Optional section (can be disabled by the user)
Section /o $(NAME_SecDesktopIcon) SecDesktopIcon
SetShellVarContext current
SetOutPath "$INSTDIR\bin"
CreateShortCut "$DESKTOP\Transmission Remote GTK.lnk" "$INSTDIR\bin\transmission-remote-gtk.exe" "" "$INSTDIR\bin\transmission-remote-gtk.exe" 0
SectionEnd
;Section "GeoIP Database" SecGeoIPDatabase
; SetOutPath "$INSTDIR"
; File "GeoIP.dat"
;SectionEnd
;!ifndef PORTABLE
;SubSection $(NAME_SecFiletypeAssociations) SecFiletypeAssociations
; Section $(NAME_SecRegiterTorrent) SecRegiterTorrent
; ${registerExtension} "$INSTDIR\Transmission Remote.exe" ".torrent" "Transmission Remote Torrent"
; SectionEnd
; Section $(NAME_SecRegiterMagnet) SecRegiterMagnet
; ${registerProtocol} "$INSTDIR\Transmission Remote.exe" "magnet" "Magnet URI"
; SectionEnd
;SubSectionEnd
;!endif
; Translation
;SectionGroup $(NAME_SecLanguages) SecLanguages
; Section /o "Brazilian Portuguese" SecLanguagesBrazilianPortuguese
; CreateDirectory "$INSTDIR\pt-BR"
; SetOutPath "$INSTDIR\pt-BR"
; File "TransmissionClientNew\bin\Release\pt-BR\Transmission Remote.resources.dll"
; SectionEnd
; Section /o "Chinese" SecLanguagesChinese
; CreateDirectory "$INSTDIR\zh-CN"
; SetOutPath "$INSTDIR\zh-CN"
; File "TransmissionClientNew\bin\Release\zh-CN\Transmission Remote.resources.dll"
; SectionEnd
;SectionGroupEnd
;--------------------------------
; Uninstaller
Section "Uninstall"
;!ifndef PORTABLE
; Unregister File Association
; ${unregisterExtension} ".torrent" "Transmission Remote Torrent"
; ${unregisterProtocol} "magnet" "Magnet URI"
;!endif
; Remove files and uninstaller
Delete "$INSTDIR\COPYING.txt"
Delete "$INSTDIR\README.txt"
Delete "$INSTDIR\uninstall.exe"
Delete "$INSTDIR\bin\transmission-remote-gtk.exe"
Delete "$INSTDIR\bin\freetype6.dll"
Delete "$INSTDIR\bin\intl.dll"
Delete "$INSTDIR\bin\libatk-1.0-0.dll"
Delete "$INSTDIR\bin\libcairo-2.dll"
Delete "$INSTDIR\bin\libcurl-4.dll"
Delete "$INSTDIR\bin\libexpat-1.dll"
Delete "$INSTDIR\bin\libfontconfig-1.dll"
Delete "$INSTDIR\bin\libgdk-win32-2.0-0.dll"
Delete "$INSTDIR\bin\libgdk_pixbuf-2.0-0.dll"
Delete "$INSTDIR\bin\libgio-2.0-0.dll"
Delete "$INSTDIR\bin\libglib-2.0-0.dll"
Delete "$INSTDIR\bin\libgmodule-2.0-0.dll"
Delete "$INSTDIR\bin\libgobject-2.0-0.dll"
Delete "$INSTDIR\bin\libgthread-2.0-0.dll"
Delete "$INSTDIR\bin\libgtk-win32-2.0-0.dll"
Delete "$INSTDIR\bin\libjson-glib-1.0-0.dll"
Delete "$INSTDIR\bin\libpango-1.0-0.dll"
Delete "$INSTDIR\bin\libpangocairo-1.0-0.dll"
Delete "$INSTDIR\bin\libpangoft2-1.0-0.dll"
Delete "$INSTDIR\bin\libpangowin32-1.0-0.dll"
Delete "$INSTDIR\bin\libpng14-14.dll"
Delete "$INSTDIR\bin\libintl-8.dll"
Delete "$INSTDIR\bin\libiconv-2.dll"
Delete "$INSTDIR\bin\zlib1.dll"
Delete "$INSTDIR\bin\libproxy.dll"
Delete "$INSTDIR\bin\libmodman.dll"
Delete "$INSTDIR\bin\libstdc++-6.dll"
Delete "$INSTDIR\bin\libgcc_s_sjlj-1.dll"
Delete "$INSTDIR\bin\gspawn-win32-helper-console.exe"
Delete "$INSTDIR\bin\gspawn-win32-helper.exe"
Delete "$INSTDIR\lib\gtk-2.0\2.10.0\engines\libpixmap.dll"
Delete "$INSTDIR\lib\gtk-2.0\2.10.0\engines\libwimp.dll"
Delete "$INSTDIR\lib\gtk-2.0\modules\libgail.dll"
Delete "$INSTDIR\etc\gtk-2.0\gtkrc"
Delete "$INSTDIR\share\icons\hicolor\16x16\apps\transmission-remote-gtk.png"
Delete "$INSTDIR\share\icons\hicolor\22x22\apps\transmission-remote-gtk.png"
Delete "$INSTDIR\share\icons\hicolor\24x24\apps\transmission-remote-gtk.png"
Delete "$INSTDIR\share\icons\hicolor\32x32\apps\transmission-remote-gtk.png"
Delete "$INSTDIR\share\icons\hicolor\48x48\apps\transmission-remote-gtk.png"
Delete "$INSTDIR\share\icons\hicolor\icon-theme.cache"
Delete "$INSTDIR\share\icons\hicolor\index.theme"
Delete "$INSTDIR\share\icons\hicolor\scalable\apps\transmission-remote-gtk.svg"
Delete "$INSTDIR\share\locale\de\LC_MESSAGES\atk10.mo"
Delete "$INSTDIR\share\locale\de\LC_MESSAGES\gdk-pixbuf.mo"
Delete "$INSTDIR\share\locale\de\LC_MESSAGES\gettext-runtime.mo"
Delete "$INSTDIR\share\locale\de\LC_MESSAGES\gettext-tools.mo"
Delete "$INSTDIR\share\locale\de\LC_MESSAGES\glib20.mo"
Delete "$INSTDIR\share\locale\de\LC_MESSAGES\gtk20-properties.mo"
Delete "$INSTDIR\share\locale\de\LC_MESSAGES\gtk20.mo"
Delete "$INSTDIR\share\locale\de\LC_MESSAGES\libiconv.mo"
Delete "$INSTDIR\share\locale\de\LC_MESSAGES\transmission-remote-gtk.mo"
Delete "$INSTDIR\share\locale\es\LC_MESSAGES\atk10.mo"
Delete "$INSTDIR\share\locale\es\LC_MESSAGES\gdk-pixbuf.mo"
Delete "$INSTDIR\share\locale\es\LC_MESSAGES\gettext-runtime.mo"
Delete "$INSTDIR\share\locale\es\LC_MESSAGES\gettext-tools.mo"
Delete "$INSTDIR\share\locale\es\LC_MESSAGES\glib20.mo"
Delete "$INSTDIR\share\locale\es\LC_MESSAGES\gtk20-properties.mo"
Delete "$INSTDIR\share\locale\es\LC_MESSAGES\gtk20.mo"
Delete "$INSTDIR\share\locale\es\LC_MESSAGES\libiconv.mo"
Delete "$INSTDIR\share\locale\es\LC_MESSAGES\transmission-remote-gtk.mo"
Delete "$INSTDIR\share\locale\ko\LC_MESSAGES\atk10.mo"
Delete "$INSTDIR\share\locale\ko\LC_MESSAGES\gdk-pixbuf.mo"
Delete "$INSTDIR\share\locale\ko\LC_MESSAGES\gettext-runtime.mo"
Delete "$INSTDIR\share\locale\ko\LC_MESSAGES\gettext-tools.mo"
Delete "$INSTDIR\share\locale\ko\LC_MESSAGES\glib20.mo"
Delete "$INSTDIR\share\locale\ko\LC_MESSAGES\gtk20-properties.mo"
Delete "$INSTDIR\share\locale\ko\LC_MESSAGES\gtk20.mo"
Delete "$INSTDIR\share\locale\ko\LC_MESSAGES\transmission-remote-gtk.mo"
Delete "$INSTDIR\share\locale\pl\LC_MESSAGES\atk10.mo"
Delete "$INSTDIR\share\locale\pl\LC_MESSAGES\gdk-pixbuf.mo"
Delete "$INSTDIR\share\locale\pl\LC_MESSAGES\gettext-runtime.mo"
Delete "$INSTDIR\share\locale\pl\LC_MESSAGES\gettext-tools.mo"
Delete "$INSTDIR\share\locale\pl\LC_MESSAGES\glib20.mo"
Delete "$INSTDIR\share\locale\pl\LC_MESSAGES\gtk20-properties.mo"
Delete "$INSTDIR\share\locale\pl\LC_MESSAGES\gtk20.mo"
Delete "$INSTDIR\share\locale\pl\LC_MESSAGES\libiconv.mo"
Delete "$INSTDIR\share\locale\pl\LC_MESSAGES\transmission-remote-gtk.mo"
Delete "$INSTDIR\share\locale\ru\LC_MESSAGES\atk10.mo"
Delete "$INSTDIR\share\locale\ru\LC_MESSAGES\gdk-pixbuf.mo"
Delete "$INSTDIR\share\locale\ru\LC_MESSAGES\gettext-runtime.mo"
Delete "$INSTDIR\share\locale\ru\LC_MESSAGES\gettext-tools.mo"
Delete "$INSTDIR\share\locale\ru\LC_MESSAGES\glib20.mo"
Delete "$INSTDIR\share\locale\ru\LC_MESSAGES\gtk20-properties.mo"
Delete "$INSTDIR\share\locale\ru\LC_MESSAGES\gtk20.mo"
Delete "$INSTDIR\share\locale\ru\LC_MESSAGES\libiconv.mo"
Delete "$INSTDIR\share\locale\ru\LC_MESSAGES\transmission-remote-gtk.mo"
Delete "$INSTDIR\share\locale\uk\LC_MESSAGES\atk10.mo"
Delete "$INSTDIR\share\locale\uk\LC_MESSAGES\gdk-pixbuf.mo"
Delete "$INSTDIR\share\locale\uk\LC_MESSAGES\gettext-runtime.mo"
Delete "$INSTDIR\share\locale\uk\LC_MESSAGES\gettext-tools.mo"
Delete "$INSTDIR\share\locale\uk\LC_MESSAGES\glib20.mo"
Delete "$INSTDIR\share\locale\uk\LC_MESSAGES\gtk20-properties.mo"
Delete "$INSTDIR\share\locale\uk\LC_MESSAGES\gtk20.mo"
Delete "$INSTDIR\share\locale\uk\LC_MESSAGES\libiconv.mo"
Delete "$INSTDIR\share\locale\uk\LC_MESSAGES\transmission-remote-gtk.mo"
Delete "$INSTDIR\share\themes\MS-Windows\gtk-2.0\gtkrc"
Delete "$INSTDIR\share\perl5\5.8\Locale\Script.pod"
Delete "$INSTDIR\share\perl5\5.8\Locale\Script.pm"
Delete "$INSTDIR\share\perl5\5.8\Locale\Maketext\TPJ13.pod"
Delete "$INSTDIR\share\perl5\5.8\Locale\Maketext\GutsLoader.pm"
Delete "$INSTDIR\share\perl5\5.8\Locale\Maketext\Guts.pm"
Delete "$INSTDIR\share\perl5\5.8\Locale\Maketext.pod"
Delete "$INSTDIR\share\perl5\5.8\Locale\Maketext.pm"
Delete "$INSTDIR\share\perl5\5.8\Locale\Language.pod"
Delete "$INSTDIR\share\perl5\5.8\Locale\Language.pm"
Delete "$INSTDIR\share\perl5\5.8\Locale\Currency.pod"
Delete "$INSTDIR\share\perl5\5.8\Locale\Currency.pm"
Delete "$INSTDIR\share\perl5\5.8\Locale\Country.pod"
Delete "$INSTDIR\share\perl5\5.8\Locale\Country.pm"
Delete "$INSTDIR\share\perl5\5.8\Locale\Constants.pod"
Delete "$INSTDIR\share\perl5\5.8\Locale\Constants.pm"
; Remove shortcuts, if any
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
SetShellVarContext current
Delete "$SMPROGRAMS\$StartMenuFolder\*.*"
RMDir "$SMPROGRAMS\$StartMenuFolder"
!ifndef PORTABLE
SetShellVarContext all
Delete "$SMPROGRAMS\$StartMenuFolder\*.*"
RMDir "$SMPROGRAMS\$StartMenuFolder"
!endif
; Remove directories used
RMDir "$INSTDIR\share\themes\MS-Windows\gtk-2.0"
RMDir "$INSTDIR\share\themes\MS-Windows"
RMDir "$INSTDIR\share\themes"
RMDir "$INSTDIR\share\locale\uk\LC_MESSAGES"
RMDir "$INSTDIR\share\locale\uk"
RMDir "$INSTDIR\share\locale\ru\LC_MESSAGES"
RMDir "$INSTDIR\share\locale\ru"
RMDir "$INSTDIR\share\locale\pl\LC_MESSAGES"
RMDir "$INSTDIR\share\locale\pl"
RMDir "$INSTDIR\share\locale\ko\LC_MESSAGES"
RMDir "$INSTDIR\share\locale\ko"
RMDir "$INSTDIR\share\locale\es\LC_MESSAGES"
RMDir "$INSTDIR\share\locale\es"
RMDir "$INSTDIR\share\locale\de\LC_MESSAGES"
RMDir "$INSTDIR\share\locale\de"
RMDir "$INSTDIR\share\locale"
RMDir "$INSTDIR\share\icons\hicolor\scalable\apps"
RMDir "$INSTDIR\share\icons\hicolor\scalable"
RMDir "$INSTDIR\share\icons\hicolor\48x48\apps"
RMDir "$INSTDIR\share\icons\hicolor\48x48"
RMDir "$INSTDIR\share\icons\hicolor\32x32\apps"
RMDir "$INSTDIR\share\icons\hicolor\32x32"
RMDir "$INSTDIR\share\icons\hicolor\24x24\apps"
RMDir "$INSTDIR\share\icons\hicolor\24x24"
RMDir "$INSTDIR\share\icons\hicolor\22x22\apps"
RMDir "$INSTDIR\share\icons\hicolor\22x22"
RMDir "$INSTDIR\share\icons\hicolor\16x16\apps"
RMDir "$INSTDIR\share\icons\hicolor\16x16"
RMDir "$INSTDIR\share\icons\hicolor"
RMDir "$INSTDIR\share\icons"
RMDir "$INSTDIR\share\perl5\5.8\Locale\Maketext"
RMDir "$INSTDIR\share\perl5\5.8\Locale"
RMDir "$INSTDIR\share\perl5\5.8"
RMDir "$INSTDIR\share\perl5"
RMDir "$INSTDIR\share"
RMDir "$INSTDIR\etc\gtk-2.0"
RMDir "$INSTDIR\etc"
RMDir "$INSTDIR\lib\gtk-2.0\modules"
RMDir "$INSTDIR\lib\gtk-2.0\2.10.0\engines"
RMDir "$INSTDIR\lib\gtk-2.0\2.10.0"
RMDir "$INSTDIR\lib\gtk-2.0"
RMDir "$INSTDIR\lib"
RMDir "$INSTDIR\bin"
RMDir "$INSTDIR"
DeleteRegKey /ifempty HKCU "SOFTWARE\TransmissionRemoteGTK"
!ifndef PORTABLE
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TransmissionRemoteGTK"
!endif
SectionEnd
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecTransmissionRemoteGTK} $(DESC_SecTransmissionRemoteGTK)
!insertmacro MUI_DESCRIPTION_TEXT ${SecGlibGtkEtc} $(DESC_SecGlibGtkEtc)
!insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopIcon} $(DESC_SecDesktopIcon)
; !insertmacro MUI_DESCRIPTION_TEXT ${SecFiletypeAssociations} $(DESC_SecFiletypeAssociations)
; !insertmacro MUI_DESCRIPTION_TEXT ${SecGeoIPDatabase} $(DESC_SecGeoIPDatabase)
; !insertmacro MUI_DESCRIPTION_TEXT ${SecLanguages} $(DESC_SecLanguages)
; !insertmacro MUI_DESCRIPTION_TEXT ${SecRegiterTorrent} $(DESC_SecRegiterTorrent)
; !insertmacro MUI_DESCRIPTION_TEXT ${SecRegiterMagnet} $(DESC_SecRegiterMagnet)
!insertmacro MUI_FUNCTION_DESCRIPTION_END
Function .onInit
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "Transmission Remote GTK") ?e'
Pop $R0
StrCmp $R0 0 +3
MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running."
Abort
!insertmacro MUI_LANGDLL_DISPLAY
!ifdef PORTABLE
StrCpy $INSTDIR "\${ProgramFilesDir}"
!else
${If} ${RunningX64}
StrCpy $INSTDIR "$PROGRAMFILES64\${ProgramFilesDir}"
${Else}
StrCpy $INSTDIR "$PROGRAMFILES\${ProgramFilesDir}"
${Endif}
!endif
FunctionEnd
|