5 SetCompressor
/final
/solid lzma
7 !define myAppName
"Gajim"
9 InstallDir "$PROGRAMFILES\Gajim"
10 InstallDirRegKey HKCU "Software\Gajim" ""
11 RequestExecutionLevel admin
15 !define MUI_ICON
"${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico"
16 !define MUI_UNICON
"${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico"
17 !define MUI_HEADERIMAGE
18 !define MUI_HEADERIMAGE_BITMAP
"data\pixmaps\nsis_header.bmp"
19 !define MUI_WELCOMEFINISHPAGE_BITMAP
"data\pixmaps\nsis_wizard.bmp"
20 !define MUI_UNWELCOMEFINISHPAGE_BITMAP
"data\pixmaps\nsis_wizard.bmp"
21 ;!define MUI_COMPONENTSPAGE_CHECKBITMAP "${NSISDIR}\Contrib\Graphics\Checks\colorful.bmp"
22 !define MUI_COMPONENTSPAGE_SMALLDESC
23 !define MUI_ABORTWARNING
25 !insertmacro MUI_PAGE_WELCOME
26 !insertmacro MUI_PAGE_LICENSE
"COPYING"
27 !insertmacro MUI_PAGE_COMPONENTS
28 !insertmacro MUI_PAGE_DIRECTORY
29 !define MUI_STARTMENUPAGE_REGISTRY_ROOT
"HKCU"
30 !define MUI_STARTMENUPAGE_REGISTRY_KEY
"Software\Gajim"
31 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME
"Start Menu Folder"
32 !insertmacro MUI_PAGE_STARTMENU Application
$StartMenuFolder
33 !insertmacro MUI_PAGE_INSTFILES
34 !define MUI_FINISHPAGE_RUN
"$INSTDIR\bin\Gajim.exe"
35 !insertmacro MUI_PAGE_FINISH
37 !insertmacro MUI_UNPAGE_WELCOME
38 !insertmacro MUI_UNPAGE_CONFIRM
39 !insertmacro MUI_UNPAGE_INSTFILES
40 !insertmacro MUI_UNPAGE_FINISH
42 !insertmacro MUI_LANGUAGE
"English"
43 !insertmacro MUI_LANGUAGE
"French"
44 !insertmacro MUI_LANGUAGE
"German"
45 !insertmacro MUI_LANGUAGE
"Italian"
46 !insertmacro MUI_LANGUAGE
"Russian"
47 !insertmacro MUI_RESERVEFILE_LANGDLL
50 LangString NAME_Emoticons
${LANG_ENGLISH} "Emoticons"
51 LangString NAME_Iconsets
${LANG_ENGLISH} "Iconsets"
52 LangString NAME_Languages
${LANG_ENGLISH} "Languages"
53 LangString NAME_SecLanguagesOther
${LANG_ENGLISH} "Other"
54 LangString NAME_Themes
${LANG_ENGLISH} "Themes"
55 LangString NAME_SecDesktopIcon
${LANG_ENGLISH} "Create icon on desktop"
56 LangString NAME_SecAutostart
${LANG_ENGLISH} "Start Gajim when Windows starts"
57 LangString DESC_SecGajim
${LANG_ENGLISH} "Installs the main Gajim files."
58 LangString DESC_SecGtk
${LANG_ENGLISH} "Installs Gtk+ 2 (necessary to run Gajim)."
59 LangString DESC_SecDesktopIcon
${LANG_ENGLISH} "If set, a shortcut for Gajim will be created on the desktop."
60 LangString DESC_SecAutostart
${LANG_ENGLISH} "If set, Gajim will be automatically started when Windows starts."
61 LangString STR_Installed
${LANG_ENGLISH} "Apparently, Gajim is already installed."
62 LangString STR_Uninstall
${LANG_ENGLISH} "Launch Uninstaller"
63 LangString STR_Cancel
${LANG_ENGLISH} "Cancel"
64 LangString STR_Running
${LANG_ENGLISH} "It appears that Gajim is currently running.$\n\
65 Please quit Gajim and restart the uninstaller."
68 LangString NAME_Emoticons
${LANG_FRENCH} "Emoticônes"
69 LangString NAME_Iconsets
${LANG_FRENCH} "Bibliothèque d'icônes"
70 LangString NAME_Languages
${LANG_FRENCH} "Langues"
71 LangString NAME_SecLanguagesOther
${LANG_FRENCH} "Autre"
72 LangString NAME_Themes
${LANG_FRENCH} "Thèmes"
73 LangString NAME_SecDesktopIcon
${LANG_FRENCH} "Créer une icône sur le bureau"
74 LangString NAME_SecAutostart
${LANG_FRENCH} "Lancer Gajim au démarrage de Windows"
75 LangString DESC_SecGajim
${LANG_FRENCH} "Installer les fichiers principaux de Gajim."
76 LangString DESC_SecGtk
${LANG_FRENCH} "Installer Gtk+ 2 (nécessaire à Gajim)."
77 LangString DESC_SecDesktopIcon
${LANG_FRENCH} "Si selectionné, un raccourci pour Gajim sera créé sur le bureau."
78 LangString DESC_SecAutostart
${LANG_FRENCH} "Si activé, Gajim sera automatiquement lancé au démarrage de Windows."
79 LangString STR_Installed
${LANG_FRENCH} "Gajim est apparement déja installé."
80 LangString STR_Uninstall
${LANG_FRENCH} "Lancer la Désinstallation"
81 LangString STR_Cancel
${LANG_FRENCH} "Annuler"
82 LangString STR_Running
${LANG_FRENCH} "Gajim est apparament lancé.$\n\
83 Fermez-le et redémarrez le désinstallateur."
86 LangString NAME_Emoticons
${LANG_GERMAN} "Emoticons"
87 LangString NAME_Iconsets
${LANG_GERMAN} "Symbolsets"
88 LangString NAME_Languages
${LANG_GERMAN} "Sprachen"
89 LangString NAME_SecLanguagesOther
${LANG_GERMAN} "Sonstige"
90 LangString NAME_Themes
${LANG_GERMAN} "Designs"
91 LangString NAME_SecDesktopIcon
${LANG_GERMAN} "Desktop-Icon erstellen"
92 LangString NAME_SecAutostart
${LANG_GERMAN} "Gajim mit Windows starten"
93 LangString DESC_SecGajim
${LANG_GERMAN} "Installiert die Hauptdateien von Gajim."
94 LangString DESC_SecGtk
${LANG_GERMAN} "Installert Gtk+ 2 (notwendig um Gajim zu benutzen)."
95 LangString DESC_SecDesktopIcon
${LANG_GERMAN} "Wenn dies aktiviert wird, wird ein Icon für Gajim auf dem Desktop erstellt."
96 LangString DESC_SecAutostart
${LANG_GERMAN} "Gajim wird automatisch gestartet, sowie Windows startet, wenn dies aktivier wird."
97 LangString STR_Installed
${LANG_GERMAN} "Gajim scheint bereits installiert zu sein."
98 LangString STR_Uninstall
${LANG_GERMAN} "Deinstallations-Programm starten"
99 LangString STR_Cancel
${LANG_GERMAN} "Abbrechen"
100 LangString STR_Running
${LANG_GERMAN} "Es scheint, dass Gajim bereits läuft.$\n\
101 Bitte beenden Sie es und starten Sie den Installer erneut.."
104 LangString NAME_Emoticons
${LANG_ITALIAN} "Emoticons"
105 LangString NAME_Iconsets
${LANG_ITALIAN} "Set di icone"
106 LangString NAME_Languages
${LANG_ITALIAN} "Lingue"
107 LangString NAME_SecLanguagesOther
${LANG_ITALIAN} "Altre"
108 LangString NAME_Themes
${LANG_ITALIAN} "Temi"
109 LangString NAME_SecDesktopIcon
${LANG_ITALIAN} "Crea un'icona sul desktop"
110 LangString NAME_SecAutostart
${LANG_ITALIAN} "Lancia Gajim quando parte Windows"
111 LangString DESC_SecGajim
${LANG_ITALIAN} "Installa i file principali di Gajim."
112 LangString DESC_SecGtk
${LANG_ITALIAN} "Installa Gtk+ 2 (necessario per eseguire Gajim)."
113 LangString DESC_SecDesktopIcon
${LANG_ITALIAN} "Se selezionato, un'icona verrà creata sul desktop."
114 LangString DESC_SecAutostart
${LANG_ITALIAN} "Se selezionato, Gajim sarà eseguito all'avvio di Windows."
115 LangString STR_Installed
${LANG_ITALIAN} "Gajim is apparently already installed."
116 LangString STR_Uninstall
${LANG_ITALIAN} "Launch Uninstall"
117 LangString STR_Cancel
${LANG_ITALIAN} "Cancel"
118 LangString STR_Running
${LANG_ITALIAN} "It appears that Gajim is currently running.$\n\
119 Close it and restart uninstaller."
122 LangString NAME_Emoticons
${LANG_RUSSIAN} "Ñìàéëèêè"
123 LangString NAME_Iconsets
${LANG_RUSSIAN} "Òåìû èêîíîê"
124 LangString NAME_Languages
${LANG_RUSSIAN} "ßçûêè"
125 LangString NAME_SecLanguagesOther
${LANG_RUSSIAN} "Äðóãîå"
126 LangString NAME_Themes
${LANG_RUSSIAN} "Òåìû"
127 LangString NAME_SecDesktopIcon
${LANG_RUSSIAN} "Ñîçäàòü ÿðëûê íà ðàáî÷åì ñòîëå"
128 LangString NAME_SecAutostart
${LANG_RUSSIAN} "Çàïóñêàòü Gajim ïðè çàãðóçêå Windows"
129 LangString DESC_SecGajim
${LANG_RUSSIAN} "Óñòàíîâêà îñíîâíûõ ôàéëîâ Gajim."
130 LangString DESC_SecGtk
${LANG_RUSSIAN} "Óñòàíîâêà Gtk+ 2 (íåîáõîäèìî äëÿ ðàáîòû Gajim)."
131 LangString DESC_SecDesktopIcon
${LANG_RUSSIAN} "Åñëè îòìå÷åíî, íà ðàáî÷åì ñòîëå áóäåò ñîçäàí ÿðëûê Gajim."
132 LangString DESC_SecAutostart
${LANG_RUSSIAN} "Åñëè îòìå÷åíî, Gajim áóäåò àâòîìàòè÷åñêè çàïóñêàòüñÿ ïðè çàãðóçêå Windows."
133 LangString STR_Installed
${LANG_RUSSIAN} "Gajim is apparently already installed."
134 LangString STR_Uninstall
${LANG_RUSSIAN} "Launch Uninstall"
135 LangString STR_Cancel
${LANG_RUSSIAN} "Cancel"
136 LangString STR_Running
${LANG_RUSSIAN} "It appears that Gajim is currently running.$\n\
137 Close it and restart uninstaller."
139 Section "Gajim" SecGajim
142 SetOutPath "$INSTDIR"
146 File "THANKS.artists"
148 SetOutPath "$INSTDIR\bin"
149 File "bin\cairo._cairo.pyd"
150 File "bin\_ctypes.pyd"
151 File "bin\gobject._gobject.pyd"
152 File "bin\gtk._gtk.pyd"
153 File "bin\_hashlib.pyd"
154 File "bin\_socket.pyd"
155 File "bin\_sqlite3.pyd"
157 File "bin\_win32sysloader.pyd"
158 File "bin\Crypto.Cipher.AES.pyd"
161 File "bin\OpenSSL.crypto.pyd"
163 File "bin\gtk.glade.pyd"
164 File "bin\history_manager.exe"
165 File "bin\libeay32.dll"
166 File "bin\libglade-2.0-0.dll"
167 File "bin\library.zip"
168 File "bin\libxml2.dll"
169 File "bin\msvcr71.dll"
170 File "bin\pangocairo.pyd"
172 File "bin\pyexpat.pyd"
173 File "bin\python25.dll"
174 File "bin\pywintypes25.dll"
175 File "bin\OpenSSL.rand.pyd"
176 File "bin\select.pyd"
177 File "bin\sqlite3.dll"
178 File "bin\ssleay32.dll"
179 File "bin\OpenSSL.SSL.pyd"
180 File "bin\unicodedata.pyd"
181 File "bin\w9xpopen.exe"
182 File "bin\win32api.pyd"
183 File "bin\win32file.pyd"
184 File "bin\winsound.pyd"
186 File /r
"bin\docutils"
188 WriteRegStr HKCU "Software\Gajim" "" $INSTDIR
189 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "DisplayName" "Gajim"
190 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "UninstallString" "$INSTDIR\Uninstall.exe"
191 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "DisplayIcon" "$INSTDIR\bin\Gajim.exe"
192 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "DisplayVersion" "0.13.1"
193 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "URLInfoAbout" "http://www.gajim.org/"
194 WriteUninstaller "$INSTDIR\Uninstall.exe"
196 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
197 SetShellVarContext current
198 CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
199 CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Gajim.lnk" "$INSTDIR\bin\Gajim.exe"
200 CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Change Theme.lnk" "$INSTDIR\bin\gtk\bin\gtkthemeselector.exe"
201 SetShellVarContext all
202 CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
203 CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Gajim.lnk" "$INSTDIR\bin\Gajim.exe"
204 CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Change Theme.lnk" "$INSTDIR\bin\gtk\bin\gtkthemeselector.exe"
205 !insertmacro MUI_STARTMENU_WRITE_END
207 SetOutPath "$INSTDIR\data"
210 File /r
"data\activities"
212 File /r
"data\pixmaps"
213 File /r
"data\sounds"
216 Section "Gtk+ 2" SecGtk
218 SetOutPath "$INSTDIR\bin\gtk"
219 File /r
"bin\gtk\bin"
220 File /r
"bin\gtk\etc"
221 SetOutPath "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0"
222 File /r
"bin\gtk\lib\gtk-2.0\2.10.0\loaders"
223 SetOutPath "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines"
224 File "bin\gtk\lib\gtk-2.0\2.10.0\engines\libclearlooks.dll"
225 File "bin\gtk\lib\gtk-2.0\2.10.0\engines\libpixmap.dll"
226 File "bin\gtk\lib\gtk-2.0\2.10.0\engines\libsvg.dll"
227 SetOutPath "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0"
228 SetOutPath "$INSTDIR\bin\gtk\lib"
229 File "bin\gtk\lib\charset.alias"
230 SetOutPath "$INSTDIR\bin\gtk\share"
231 File /r
"bin\gtk\share\gtkthemeselector"
232 File /r
"bin\gtk\share\xml"
235 SectionGroup
$(NAME_Emoticons
)
237 Section "animated" SecEmoticonsAnimated
238 SetOutPath "$INSTDIR\data\emoticons"
239 File /r
"data\emoticons\animated"
242 Section "static" SecEmoticonsStatic
244 SetOutPath "$INSTDIR\data\emoticons"
245 File /r
"data\emoticons\static"
248 Section "static-big" SecEmoticonsStaticBig
249 SetOutPath "$INSTDIR\data\emoticons"
250 File /r
"data\emoticons\static-big"
255 SectionGroup
$(NAME_Iconsets
)
257 Section "dcraven" SecIconsetsDcraven
259 SetOutPath "$INSTDIR\data\iconsets"
260 File /r
"data\iconsets\dcraven"
263 Section "gnome" SecIconsetsGnome
264 SetOutPath "$INSTDIR\data\iconsets"
265 File /r
"data\iconsets\gnome"
268 Section "goojim" SecIconsetsGoojim
269 SetOutPath "$INSTDIR\data\iconsets"
270 File /r
"data\iconsets\goojim"
273 Section "gota" SecIconsetsGota
274 SetOutPath "$INSTDIR\data\iconsets"
275 File /r
"data\iconsets\gota"
278 Section "jabberbulb" SecIconsetsJabberbulb
279 SetOutPath "$INSTDIR\data\iconsets"
280 File /r
"data\iconsets\jabberbulb"
283 Section "sun" SecIconsetsSun
284 SetOutPath "$INSTDIR\data\iconsets"
285 File /r
"data\iconsets\sun"
288 Section "wroop" SecIconsetsWroop
289 SetOutPath "$INSTDIR\data\iconsets"
290 File /r
"data\iconsets\wroop"
293 Section "transports" SecIconsetsTransports
294 SetOutPath "$INSTDIR\data\iconsets"
295 File /r
"data\iconsets\transports"
301 SectionGroup
$(NAME_Languages
)
303 Section "English (UK)" SecLanguagesEnglishUK
304 SetOutPath "$INSTDIR\po"
306 SetOutPath "$INSTDIR\bin\gtk\share\locale"
307 File /r
"bin\gtk\share\locale\en_GB"
310 Section "French" SecLanguagesFrench
311 SetOutPath "$INSTDIR\po"
313 SetOutPath "$INSTDIR\bin\gtk\share\locale"
314 File /r
"bin\gtk\share\locale\fr"
317 Section "German" SecLanguagesGerman
318 SetOutPath "$INSTDIR\po"
320 SetOutPath "$INSTDIR\bin\gtk\share\locale"
321 File /r
"bin\gtk\share\locale\de"
324 Section "Italian" SecLanguagesItalian
325 SetOutPath "$INSTDIR\po"
327 SetOutPath "$INSTDIR\bin\gtk\share\locale"
328 File /r
"bin\gtk\share\locale\it"
331 Section "Spanish" SecLanguagesSpanish
332 SetOutPath "$INSTDIR\po"
334 SetOutPath "$INSTDIR\bin\gtk\share\locale"
335 File /r
"bin\gtk\share\locale\es"
338 Section "Russian" SecLanguagesRussian
339 SetOutPath "$INSTDIR\po"
341 SetOutPath "$INSTDIR\bin\gtk\share\locale"
342 File /r
"bin\gtk\share\locale\ru"
345 Section $(NAME_SecLanguagesOther
) SecLanguagesOther
346 SetOutPath "$INSTDIR\po"
348 File /r
"po\be@latin"
371 SetOutPath "$INSTDIR\bin\gtk\share\locale"
372 File /r
"bin\gtk\share\locale\af"
373 File /r
"bin\gtk\share\locale\am"
374 File /r
"bin\gtk\share\locale\ang"
375 File /r
"bin\gtk\share\locale\ar"
376 File /r
"bin\gtk\share\locale\as"
377 File /r
"bin\gtk\share\locale\az"
378 File /r
"bin\gtk\share\locale\az_IR"
379 File /r
"bin\gtk\share\locale\be"
380 File /r
"bin\gtk\share\locale\be@latin"
381 File /r
"bin\gtk\share\locale\bg"
382 File /r
"bin\gtk\share\locale\bn"
383 File /r
"bin\gtk\share\locale\bn_IN"
384 File /r
"bin\gtk\share\locale\br"
385 File /r
"bin\gtk\share\locale\bs"
386 File /r
"bin\gtk\share\locale\ca"
387 File /r
"bin\gtk\share\locale\ca@valencia"
388 File /r
"bin\gtk\share\locale\cs"
389 File /r
"bin\gtk\share\locale\cy"
390 File /r
"bin\gtk\share\locale\da"
391 File /r
"bin\gtk\share\locale\dz"
392 File /r
"bin\gtk\share\locale\el"
393 File /r
"bin\gtk\share\locale\en_CA"
394 File /r
"bin\gtk\share\locale\eo"
395 File /r
"bin\gtk\share\locale\et"
396 File /r
"bin\gtk\share\locale\eu"
397 File /r
"bin\gtk\share\locale\fa"
398 File /r
"bin\gtk\share\locale\fi"
399 File /r
"bin\gtk\share\locale\ga"
400 File /r
"bin\gtk\share\locale\gl"
401 File /r
"bin\gtk\share\locale\gu"
402 File /r
"bin\gtk\share\locale\he"
403 File /r
"bin\gtk\share\locale\hi"
404 File /r
"bin\gtk\share\locale\hr"
405 File /r
"bin\gtk\share\locale\hu"
406 File /r
"bin\gtk\share\locale\hy"
407 File /r
"bin\gtk\share\locale\ia"
408 File /r
"bin\gtk\share\locale\id"
409 File /r
"bin\gtk\share\locale\io"
410 File /r
"bin\gtk\share\locale\is"
411 File /r
"bin\gtk\share\locale\ja"
412 File /r
"bin\gtk\share\locale\ka"
413 File /r
"bin\gtk\share\locale\kn"
414 File /r
"bin\gtk\share\locale\ko"
415 File /r
"bin\gtk\share\locale\ku"
416 File /r
"bin\gtk\share\locale\li"
417 File /r
"bin\gtk\share\locale\lt"
418 File /r
"bin\gtk\share\locale\lv"
419 File /r
"bin\gtk\share\locale\mai"
420 File /r
"bin\gtk\share\locale\mg"
421 File /r
"bin\gtk\share\locale\mi"
422 File /r
"bin\gtk\share\locale\mk"
423 File /r
"bin\gtk\share\locale\ml"
424 File /r
"bin\gtk\share\locale\mn"
425 File /r
"bin\gtk\share\locale\mr"
426 File /r
"bin\gtk\share\locale\ms"
427 File /r
"bin\gtk\share\locale\nb"
428 File /r
"bin\gtk\share\locale\ne"
429 File /r
"bin\gtk\share\locale\nl"
430 File /r
"bin\gtk\share\locale\nn"
431 File /r
"bin\gtk\share\locale\nso"
432 File /r
"bin\gtk\share\locale\oc"
433 File /r
"bin\gtk\share\locale\or"
434 File /r
"bin\gtk\share\locale\pa"
435 File /r
"bin\gtk\share\locale\pl"
436 File /r
"bin\gtk\share\locale\ps"
437 File /r
"bin\gtk\share\locale\pt"
438 File /r
"bin\gtk\share\locale\pt_BR"
439 File /r
"bin\gtk\share\locale\ro"
440 File /r
"bin\gtk\share\locale\rw"
441 File /r
"bin\gtk\share\locale\si"
442 File /r
"bin\gtk\share\locale\sk"
443 File /r
"bin\gtk\share\locale\sl"
444 File /r
"bin\gtk\share\locale\sq"
445 File /r
"bin\gtk\share\locale\sr"
446 File /r
"bin\gtk\share\locale\sr@ije"
447 File /r
"bin\gtk\share\locale\sr@latin"
448 File /r
"bin\gtk\share\locale\sv"
449 File /r
"bin\gtk\share\locale\ta"
450 File /r
"bin\gtk\share\locale\te"
451 File /r
"bin\gtk\share\locale\th"
452 File /r
"bin\gtk\share\locale\tk"
453 File /r
"bin\gtk\share\locale\tl"
454 File /r
"bin\gtk\share\locale\tr"
455 File /r
"bin\gtk\share\locale\tt"
456 File /r
"bin\gtk\share\locale\ug"
457 File /r
"bin\gtk\share\locale\uk"
458 File /r
"bin\gtk\share\locale\ur"
459 File /r
"bin\gtk\share\locale\uz"
460 File /r
"bin\gtk\share\locale\uz@cyrillic"
461 File /r
"bin\gtk\share\locale\vi"
462 File /r
"bin\gtk\share\locale\wa"
463 File /r
"bin\gtk\share\locale\xh"
464 File /r
"bin\gtk\share\locale\yi"
465 File /r
"bin\gtk\share\locale\zh_CN"
466 File /r
"bin\gtk\share\locale\zh_HK"
467 File /r
"bin\gtk\share\locale\zh_TW"
472 SectionGroup
$(NAME_Themes
)
474 Section "Clearlooks" SecThemesClearlooks
475 SetOutPath "$INSTDIR\bin\gtk\share\themes"
476 File /r
"bin\gtk\share\themes\Clearlooks"
479 Section "Default GTK" SecThemesDefault
480 SetOutPath "$INSTDIR\bin\gtk\share\themes"
481 File /r
"bin\gtk\share\themes\Default"
484 Section "Glossy" SecThemesGlossy
485 SetOutPath "$INSTDIR\bin\gtk\share\themes"
486 File /r
"bin\gtk\share\themes\Glossy"
489 Section "Glossy-js" SecThemesGlossyJs
491 SetOutPath "$INSTDIR\bin\gtk\share\themes"
492 File /r
"bin\gtk\share\themes\Glossy-js"
495 Section "MS-Windows" SecThemesMSWindows
496 SetOutPath "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines"
497 File "bin\gtk\lib\gtk-2.0\2.10.0\engines\libwimp.dll"
498 SetOutPath "$INSTDIR\bin\gtk\share\themes"
499 File /r
"bin\gtk\share\themes\MS-Windows"
504 Section $(NAME_SecDesktopIcon
) SecDesktopIcon
505 SetShellVarContext current
506 SetOutPath "$INSTDIR\bin"
507 CreateShortCut "$DESKTOP\Gajim.lnk" "$INSTDIR\bin\Gajim.exe"
510 Section $(NAME_SecAutostart
) SecAutostart
511 SetShellVarContext current
512 SetOutPath "$INSTDIR\bin"
513 CreateShortCut "$SMSTARTUP\Gajim.lnk" "$INSTDIR\bin\Gajim.exe"
517 RMDir /r
"$INSTDIR\bin\gtk\bin"
518 RMDir /r
"$INSTDIR\bin\gtk\etc"
519 RMDir /r
"$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\loaders"
520 Delete "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines\libclearlooks.dll"
521 Delete "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines\libpixmap.dll"
522 Delete "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines\libsvg.dll"
523 Delete "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines\libwimp.dll"
524 RMDir "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines"
525 RMDir "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0"
526 RMDir "$INSTDIR\bin\gtk\lib\gtk-2.0"
527 Delete "$INSTDIR\bin\gtk\lib\charset.alias"
528 RMDir "$INSTDIR\bin\gtk\lib"
529 RMDir /r
"$INSTDIR\bin\gtk\share\locale\de"
530 RMDir /r
"$INSTDIR\bin\gtk\share\locale\en_GB"
531 RMDir /r
"$INSTDIR\bin\gtk\share\locale\es"
532 RMDir /r
"$INSTDIR\bin\gtk\share\locale\fr"
533 RMDir /r
"$INSTDIR\bin\gtk\share\locale\it"
534 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ru"
535 RMDir /r
"$INSTDIR\bin\gtk\share\locale\af"
536 RMDir /r
"$INSTDIR\bin\gtk\share\locale\am"
537 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ang"
538 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ar"
539 RMDir /r
"$INSTDIR\bin\gtk\share\locale\as"
540 RMDir /r
"$INSTDIR\bin\gtk\share\locale\az"
541 RMDir /r
"$INSTDIR\bin\gtk\share\locale\az_IR"
542 RMDir /r
"$INSTDIR\bin\gtk\share\locale\be"
543 RMDir /r
"$INSTDIR\bin\gtk\share\locale\be@latin"
544 RMDir /r
"$INSTDIR\bin\gtk\share\locale\bg"
545 RMDir /r
"$INSTDIR\bin\gtk\share\locale\bn"
546 RMDir /r
"$INSTDIR\bin\gtk\share\locale\bn_IN"
547 RMDir /r
"$INSTDIR\bin\gtk\share\locale\br"
548 RMDir /r
"$INSTDIR\bin\gtk\share\locale\bs"
549 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ca"
550 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ca@valencia"
551 RMDir /r
"$INSTDIR\bin\gtk\share\locale\cs"
552 RMDir /r
"$INSTDIR\bin\gtk\share\locale\cy"
553 RMDir /r
"$INSTDIR\bin\gtk\share\locale\da"
554 RMDir /r
"$INSTDIR\bin\gtk\share\locale\dz"
555 RMDir /r
"$INSTDIR\bin\gtk\share\locale\el"
556 RMDir /r
"$INSTDIR\bin\gtk\share\locale\en_CA"
557 RMDir /r
"$INSTDIR\bin\gtk\share\locale\eo"
558 RMDir /r
"$INSTDIR\bin\gtk\share\locale\et"
559 RMDir /r
"$INSTDIR\bin\gtk\share\locale\eu"
560 RMDir /r
"$INSTDIR\bin\gtk\share\locale\fa"
561 RMDir /r
"$INSTDIR\bin\gtk\share\locale\fi"
562 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ga"
563 RMDir /r
"$INSTDIR\bin\gtk\share\locale\gl"
564 RMDir /r
"$INSTDIR\bin\gtk\share\locale\gu"
565 RMDir /r
"$INSTDIR\bin\gtk\share\locale\he"
566 RMDir /r
"$INSTDIR\bin\gtk\share\locale\hi"
567 RMDir /r
"$INSTDIR\bin\gtk\share\locale\hr"
568 RMDir /r
"$INSTDIR\bin\gtk\share\locale\hu"
569 RMDir /r
"$INSTDIR\bin\gtk\share\locale\hy"
570 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ia"
571 RMDir /r
"$INSTDIR\bin\gtk\share\locale\id"
572 RMDir /r
"$INSTDIR\bin\gtk\share\locale\io"
573 RMDir /r
"$INSTDIR\bin\gtk\share\locale\is"
574 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ja"
575 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ka"
576 RMDir /r
"$INSTDIR\bin\gtk\share\locale\kn"
577 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ko"
578 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ku"
579 RMDir /r
"$INSTDIR\bin\gtk\share\locale\li"
580 RMDir /r
"$INSTDIR\bin\gtk\share\locale\lt"
581 RMDir /r
"$INSTDIR\bin\gtk\share\locale\lv"
582 RMDir /r
"$INSTDIR\bin\gtk\share\locale\mai"
583 RMDir /r
"$INSTDIR\bin\gtk\share\locale\mg"
584 RMDir /r
"$INSTDIR\bin\gtk\share\locale\mi"
585 RMDir /r
"$INSTDIR\bin\gtk\share\locale\mk"
586 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ml"
587 RMDir /r
"$INSTDIR\bin\gtk\share\locale\mn"
588 RMDir /r
"$INSTDIR\bin\gtk\share\locale\mr"
589 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ms"
590 RMDir /r
"$INSTDIR\bin\gtk\share\locale\nb"
591 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ne"
592 RMDir /r
"$INSTDIR\bin\gtk\share\locale\nl"
593 RMDir /r
"$INSTDIR\bin\gtk\share\locale\nn"
594 RMDir /r
"$INSTDIR\bin\gtk\share\locale\nso"
595 RMDir /r
"$INSTDIR\bin\gtk\share\locale\oc"
596 RMDir /r
"$INSTDIR\bin\gtk\share\locale\or"
597 RMDir /r
"$INSTDIR\bin\gtk\share\locale\pa"
598 RMDir /r
"$INSTDIR\bin\gtk\share\locale\pl"
599 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ps"
600 RMDir /r
"$INSTDIR\bin\gtk\share\locale\pt"
601 RMDir /r
"$INSTDIR\bin\gtk\share\locale\pt_BR"
602 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ro"
603 RMDir /r
"$INSTDIR\bin\gtk\share\locale\rw"
604 RMDir /r
"$INSTDIR\bin\gtk\share\locale\si"
605 RMDir /r
"$INSTDIR\bin\gtk\share\locale\sk"
606 RMDir /r
"$INSTDIR\bin\gtk\share\locale\sl"
607 RMDir /r
"$INSTDIR\bin\gtk\share\locale\sq"
608 RMDir /r
"$INSTDIR\bin\gtk\share\locale\sr"
609 RMDir /r
"$INSTDIR\bin\gtk\share\locale\sr@ije"
610 RMDir /r
"$INSTDIR\bin\gtk\share\locale\sr@latin"
611 RMDir /r
"$INSTDIR\bin\gtk\share\locale\sv"
612 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ta"
613 RMDir /r
"$INSTDIR\bin\gtk\share\locale\te"
614 RMDir /r
"$INSTDIR\bin\gtk\share\locale\th"
615 RMDir /r
"$INSTDIR\bin\gtk\share\locale\tk"
616 RMDir /r
"$INSTDIR\bin\gtk\share\locale\tl"
617 RMDir /r
"$INSTDIR\bin\gtk\share\locale\tr"
618 RMDir /r
"$INSTDIR\bin\gtk\share\locale\tt"
619 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ug"
620 RMDir /r
"$INSTDIR\bin\gtk\share\locale\uk"
621 RMDir /r
"$INSTDIR\bin\gtk\share\locale\ur"
622 RMDir /r
"$INSTDIR\bin\gtk\share\locale\uz"
623 RMDir /r
"$INSTDIR\bin\gtk\share\locale\uz@cyrillic"
624 RMDir /r
"$INSTDIR\bin\gtk\share\locale\vi"
625 RMDir /r
"$INSTDIR\bin\gtk\share\locale\wa"
626 RMDir /r
"$INSTDIR\bin\gtk\share\locale\xh"
627 RMDir /r
"$INSTDIR\bin\gtk\share\locale\yi"
628 RMDir /r
"$INSTDIR\bin\gtk\share\locale\zh_CN"
629 RMDir /r
"$INSTDIR\bin\gtk\share\locale\zh_HK"
630 RMDir /r
"$INSTDIR\bin\gtk\share\locale\zh_TW"
631 RMDir "$INSTDIR\bin\gtk\share\locale"
632 RMDir /r
"$INSTDIR\bin\gtk\share\themes\Clearlooks"
633 RMDir /r
"$INSTDIR\bin\gtk\share\themes\Default"
634 RMDir /r
"$INSTDIR\bin\gtk\share\themes\Glossy"
635 RMDir /r
"$INSTDIR\bin\gtk\share\themes\Glossy-js"
636 RMDir /r
"$INSTDIR\bin\gtk\share\themes\MS-Windows"
637 RMDir "$INSTDIR\bin\gtk\share\themes"
638 RMDir /r
"$INSTDIR\bin\gtk\share\gtkthemeselector"
639 RMDir /r
"$INSTDIR\bin\gtk\share\xml"
640 RMDir "$INSTDIR\bin\gtk\share"
641 RMDir "$INSTDIR\bin\gtk"
642 Delete "$INSTDIR\bin\_ctypes.pyd"
643 Delete "$INSTDIR\bin\_hashlib.pyd"
644 Delete "$INSTDIR\bin\_socket.pyd"
645 Delete "$INSTDIR\bin\_sqlite3.pyd"
646 Delete "$INSTDIR\bin\_sqlite.pyd"
647 Delete "$INSTDIR\bin\_ssl.pyd"
648 Delete "$INSTDIR\bin\_win32sysloader.pyd"
649 Delete "$INSTDIR\bin\atk.pyd"
650 Delete "$INSTDIR\bin\bz2.pyd"
651 Delete "$INSTDIR\bin\cairo._cairo.pyd"
652 Delete "$INSTDIR\bin\Crypto.Cipher.AES.pyd"
653 Delete "$INSTDIR\bin\gajim.exe"
654 Delete "$INSTDIR\bin\gobject._gobject.pyd"
655 Delete "$INSTDIR\bin\gtk._gtk.pyd"
656 Delete "$INSTDIR\bin\gtk.glade.pyd"
657 Delete "$INSTDIR\bin\history_manager.exe"
658 Delete "$INSTDIR\bin\libeay32.dll"
659 Delete "$INSTDIR\bin\libglade-2.0-0.dll"
660 Delete "$INSTDIR\bin\library.zip"
661 Delete "$INSTDIR\bin\libxml2.dll"
662 Delete "$INSTDIR\bin\msvcr71.dll"
663 Delete "$INSTDIR\bin\OpenSSL.crypto.pyd"
664 Delete "$INSTDIR\bin\OpenSSL.rand.pyd"
665 Delete "$INSTDIR\bin\OpenSSL.SSL.pyd"
666 Delete "$INSTDIR\bin\pangocairo.pyd"
667 Delete "$INSTDIR\bin\pango.pyd"
668 Delete "$INSTDIR\bin\pyexpat.pyd"
669 Delete "$INSTDIR\bin\python25.dll"
670 Delete "$INSTDIR\bin\pywintypes25.dll"
671 Delete "$INSTDIR\bin\select.pyd"
672 Delete "$INSTDIR\bin\sqlite3.dll"
673 Delete "$INSTDIR\bin\ssleay32.dll"
674 Delete "$INSTDIR\bin\unicodedata.pyd"
675 Delete "$INSTDIR\bin\w9xpopen.exe"
676 Delete "$INSTDIR\bin\win32api.pyd"
677 Delete "$INSTDIR\bin\win32file.pyd"
678 Delete "$INSTDIR\bin\winsound.pyd"
679 Delete "$INSTDIR\bin\zlib1.dll"
680 RMDir /r
"$INSTDIR\bin\docutils"
682 RMDir /r
"$INSTDIR\data\glade"
683 RMDir /r
"$INSTDIR\data\moods"
684 RMDir /r
"$INSTDIR\data\activities"
685 RMDir /r
"$INSTDIR\data\other"
686 RMDir /r
"$INSTDIR\data\pixmaps"
687 RMDir /r
"$INSTDIR\data\sounds"
688 RMDir /r
"$INSTDIR\data\emoticons\animated"
689 RMDir /r
"$INSTDIR\data\emoticons\static"
690 RMDir /r
"$INSTDIR\data\emoticons\static-big"
691 RMDir "$INSTDIR\data\emoticons"
692 RMDir /r
"$INSTDIR\data\iconsets\dcraven"
693 RMDir /r
"$INSTDIR\data\iconsets\gnome"
694 RMDir /r
"$INSTDIR\data\iconsets\goojim"
695 RMDir /r
"$INSTDIR\data\iconsets\gota"
696 RMDir /r
"$INSTDIR\data\iconsets\jabberbulb"
697 RMDir /r
"$INSTDIR\data\iconsets\sun"
698 RMDir /r
"$INSTDIR\data\iconsets\wroop"
699 RMDir /r
"$INSTDIR\data\iconsets\transports"
700 RMDir "$INSTDIR\data\iconsets"
701 RMDir "$INSTDIR\data"
702 RMDir /r
"$INSTDIR\po\be"
703 RMDir /r
"$INSTDIR\po\be@latin"
704 RMDir /r
"$INSTDIR\po\bg"
705 RMDir /r
"$INSTDIR\po\br"
706 RMDir /r
"$INSTDIR\po\cs"
707 RMDir /r
"$INSTDIR\po\da"
708 RMDir /r
"$INSTDIR\po\de"
709 RMDir /r
"$INSTDIR\po\el"
710 RMDir /r
"$INSTDIR\po\en_GB"
711 RMDir /r
"$INSTDIR\po\eo"
712 RMDir /r
"$INSTDIR\po\es"
713 RMDir /r
"$INSTDIR\po\eu"
714 RMDir /r
"$INSTDIR\po\fr"
715 RMDir /r
"$INSTDIR\po\gl"
716 RMDir /r
"$INSTDIR\po\hr"
717 RMDir /r
"$INSTDIR\po\it"
718 RMDir /r
"$INSTDIR\po\lt"
719 RMDir /r
"$INSTDIR\po\nb"
720 RMDir /r
"$INSTDIR\po\nl"
721 RMDir /r
"$INSTDIR\po\no"
722 RMDir /r
"$INSTDIR\po\pl"
723 RMDir /r
"$INSTDIR\po\pt"
724 RMDir /r
"$INSTDIR\po\pt_BR"
725 RMDir /r
"$INSTDIR\po\ru"
726 RMDir /r
"$INSTDIR\po\sk"
727 RMDir /r
"$INSTDIR\po\sr"
728 RMDir /r
"$INSTDIR\po\sr@Latn"
729 RMDir /r
"$INSTDIR\po\sv"
730 RMDir /r
"$INSTDIR\po\uk"
731 RMDir /r
"$INSTDIR\po\zh_CN"
733 Delete "$INSTDIR\AUTHORS"
734 Delete "$INSTDIR\COPYING"
735 Delete "$INSTDIR\THANKS"
736 Delete "$INSTDIR\THANKS.artists"
737 Delete "$INSTDIR\Uninstall.exe"
740 !insertmacro MUI_STARTMENU_GETFOLDER Application
$StartMenuFolder
742 SetShellVarContext current
743 Delete "$SMPROGRAMS\$StartMenuFolder\Gajim.lnk"
744 Delete "$SMPROGRAMS\$StartMenuFolder\Change Theme.lnk"
745 RMDir "$SMPROGRAMS\$StartMenuFolder"
746 Delete "$DESKTOP\Gajim.lnk"
747 Delete "$SMSTARTUP\Gajim.lnk"
748 SetShellVarContext all
749 Delete "$SMPROGRAMS\$StartMenuFolder\Gajim.lnk"
750 Delete "$SMPROGRAMS\$StartMenuFolder\Change Theme.lnk"
751 RMDir "$SMPROGRAMS\$StartMenuFolder"
753 DeleteRegKey /ifempty
HKCU "Software\Gajim"
754 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim"
757 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
758 !insertmacro MUI_DESCRIPTION_TEXT
${SecGajim} $(DESC_SecGajim
)
759 !insertmacro MUI_DESCRIPTION_TEXT
${SecGtk} $(DESC_SecGtk
)
760 !insertmacro MUI_DESCRIPTION_TEXT
${SecDesktopIcon} $(DESC_SecDesktopIcon
)
761 !insertmacro MUI_DESCRIPTION_TEXT
${SecAutostart} $(DESC_SecAutostart
)
762 !insertmacro MUI_FUNCTION_DESCRIPTION_END
765 ; Check that Gajim is not running before uninstalling
766 FindWindow $0 "gdkWindowToplevel" "Gajim"
768 MessageBox MB_ICONSTOP|
MB_OK $(STR_Running
)
775 ; Check if already running
776 ; If so don't open another but bring to front
777 System::Call "kernel32::CreateMutexA(i 0, i 0, t '$(^Name)') i .r0 ?e"
782 FindWindow $1 '#32770' '' 0 $1
784 System::Call "user32::ShowWindow(i r1,i 9) i." ; If minimized then maximize
785 System::Call "user32::SetForegroundWindow(i r1) i." ; Bring to front
789 ; Check to see if old install (inno setup) is already installed
790 ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gajim_is1" "UninstallString"
791 ; remove first and last " char
795 IfFileExists $1 +1 NotInstalled
796 messagebox::show MB_DEFBUTTON4|
MB_TOPMOST "Gajim" \
799 $(STR_Uninstall
) $(STR_Cancel
)
802 ExecWait '$R0 _?=$INSTDIR' $R2
806 ; Check to see if new installer (NSIS)already installed
807 ReadRegStr $R3 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gajim" "UninstallString"
808 IfFileExists $R3 +1 ReallyNotInstalled
810 messagebox::show MB_DEFBUTTON4|
MB_TOPMOST "Gajim" \
813 $(STR_Uninstall
) $(STR_Cancel
)
816 ExecWait '$R3 _?=$INSTDIR' $R5
817 StrCmp $R5 0 ReallyNotInstalled
Quit
822 !insertmacro MUI_LANGDLL_DISPLAY