Added NSIS installer script.
This commit is contained in:
		
							parent
							
								
									e67048bdfd
								
							
						
					
					
						commit
						5b6756d497
					
				
					 6 changed files with 580 additions and 6 deletions
				
			
		|  | @ -1,9 +1,9 @@ | ||||||
| # coding=utf-8 | # coding=utf-8 | ||||||
| emoticons = { | emoticons = { | ||||||
| 	'smile.png': [':)', ':-)', '^_^', '^^'], | 	'smile.png': [':)', ':-)'], | ||||||
| 	'coolglasses.png': ['B-)', '(H)'], | 	'coolglasses.png': ['B-)', '(H)'], | ||||||
| 	'wink.gif': [';)', ';-)'], | 	'wink.gif': [';)', ';-)'], | ||||||
| 	'biggrin.png': [':D', ':-D', ':>', ':->', 'xD'], | 	'biggrin.png': [':D', ':-D'], | ||||||
| 	'unhappy.png': [':(', ':-('], | 	'unhappy.png': [':(', ':-('], | ||||||
| 	'cry.gif': [":'(", ';-(', ';(', ";'-(", ';_;'], | 	'cry.gif': [":'(", ';-(', ';(', ";'-(", ';_;'], | ||||||
| 	'frowning.png': [':/', ':-/', ':S', ':-S'], | 	'frowning.png': [':/', ':-/', ':S', ':-S'], | ||||||
|  |  | ||||||
|  | @ -1,9 +1,9 @@ | ||||||
| # coding=utf-8 | # coding=utf-8 | ||||||
| emoticons = { | emoticons = { | ||||||
| 	'smile.png': [':)', ':-)', '^_^', '^^'], | 	'smile.png': [':)', ':-)'], | ||||||
| 	'coolglasses.png': ['8-)', 'B-)', '(H)'], | 	'coolglasses.png': ['8-)', 'B-)', '(H)'], | ||||||
| 	'wink.png': [';)', ';-)'], | 	'wink.png': [';)', ';-)'], | ||||||
| 	'biggrin.png': [':D', ':-D', ':>', ':->', 'xD'], | 	'biggrin.png': [':D', ':-D'], | ||||||
| 	'unhappy.png': [':(', ':-('], | 	'unhappy.png': [':(', ':-('], | ||||||
| 	'cry.png': [":'(", ';-(', ';(', ";'-(", ';_;'], | 	'cry.png': [":'(", ';-(', ';(', ";'-(", ';_;'], | ||||||
| 	'frowning.png': [':/', ':-/', ':S', ':-S'], | 	'frowning.png': [':/', ':-/', ':S', ':-S'], | ||||||
|  |  | ||||||
|  | @ -1,9 +1,9 @@ | ||||||
| # coding=utf-8 | # coding=utf-8 | ||||||
| emoticons = { | emoticons = { | ||||||
| 	'smile.png': [':)', ':-)', '^_^', '^^'], | 	'smile.png': [':)', ':-)'], | ||||||
| 	'coolglasses.png': ['8-)', 'B-)', '(H)'], | 	'coolglasses.png': ['8-)', 'B-)', '(H)'], | ||||||
| 	'wink.png': [';)', ';-)'], | 	'wink.png': [';)', ';-)'], | ||||||
| 	'biggrin.png': [':D', ':-D', ':>', ':->', 'xD'], | 	'biggrin.png': [':D', ':-D'], | ||||||
| 	'unhappy.png': [':(', ':-('], | 	'unhappy.png': [':(', ':-('], | ||||||
| 	'cry.png': [":'(", ';-(', ';(', ";'-(", ';_;'], | 	'cry.png': [":'(", ';-(', ';(', ";'-(", ';_;'], | ||||||
| 	'frowning.png': [':/', ':-/', ':S', ':-S'], | 	'frowning.png': [':/', ':-/', ':S', ':-S'], | ||||||
|  |  | ||||||
							
								
								
									
										
											BIN
										
									
								
								data/pixmaps/nsis_header.bmp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data/pixmaps/nsis_header.bmp
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 34 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data/pixmaps/nsis_wizard.bmp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data/pixmaps/nsis_wizard.bmp
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 151 KiB | 
							
								
								
									
										574
									
								
								gajim.nsi
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										574
									
								
								gajim.nsi
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,574 @@ | ||||||
|  | !include "MUI2.nsh" | ||||||
|  | 
 | ||||||
|  | Name "Gajim" | ||||||
|  | OutFile "Gajim.exe" | ||||||
|  | SetCompressor /final /solid lzma | ||||||
|  | 
 | ||||||
|  | InstallDir "$PROGRAMFILES\Gajim" | ||||||
|  | InstallDirRegKey HKCU "Software\Gajim" "" | ||||||
|  | RequestExecutionLevel user | ||||||
|  | 
 | ||||||
|  | Var StartMenuFolder | ||||||
|  | 
 | ||||||
|  | !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico" | ||||||
|  | !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico" | ||||||
|  | !define MUI_HEADERIMAGE | ||||||
|  | !define MUI_HEADERIMAGE_BITMAP "data\pixmaps\nsis_header.bmp" | ||||||
|  | !define MUI_WELCOMEFINISHPAGE_BITMAP "data\pixmaps\nsis_wizard.bmp" | ||||||
|  | !define MUI_UNWELCOMEFINISHPAGE_BITMAP "data\pixmaps\nsis_wizard.bmp" | ||||||
|  | ;!define MUI_COMPONENTSPAGE_CHECKBITMAP "${NSISDIR}\Contrib\Graphics\Checks\colorful.bmp" | ||||||
|  | !define MUI_COMPONENTSPAGE_SMALLDESC | ||||||
|  | !define MUI_ABORTWARNING | ||||||
|  | 
 | ||||||
|  | !insertmacro MUI_PAGE_WELCOME | ||||||
|  | !insertmacro MUI_PAGE_LICENSE "COPYING" | ||||||
|  | !insertmacro MUI_PAGE_COMPONENTS | ||||||
|  | !insertmacro MUI_PAGE_DIRECTORY | ||||||
|  | !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" | ||||||
|  | !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Gajim" | ||||||
|  | !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" | ||||||
|  | !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_LANGUAGE "French" | ||||||
|  | !insertmacro MUI_LANGUAGE "German" | ||||||
|  | !insertmacro MUI_LANGUAGE "Italian" | ||||||
|  | !insertmacro MUI_LANGUAGE "Spanish" | ||||||
|  | !insertmacro MUI_LANGUAGE "Russian" | ||||||
|  | !insertmacro MUI_RESERVEFILE_LANGDLL | ||||||
|  | 
 | ||||||
|  | ; English | ||||||
|  | LangString NAME_Emoticons ${LANG_ENGLISH} "Emoticons" | ||||||
|  | LangString NAME_Iconsets ${LANG_ENGLISH} "Iconsets" | ||||||
|  | LangString NAME_Languages ${LANG_ENGLISH} "Languages" | ||||||
|  | LangString NAME_SecLanguagesOther ${LANG_ENGLISH} "Other" | ||||||
|  | LangString NAME_Themes ${LANG_ENGLISH} "Themes" | ||||||
|  | LangString NAME_SecAutostart ${LANG_ENGLISH} "Start Gajim when Windows starts" | ||||||
|  | LangString DESC_SecGajim ${LANG_ENGLISH} "Installs the main Gajim files." | ||||||
|  | LangString DESC_SecGtk ${LANG_ENGLISH} "Installs Gtk+ 2 (necessary to run Gajim)." | ||||||
|  | LangString DESC_SecAutostart ${LANG_ENGLISH} "If set, Gajim will be automatically started when Windows starts." | ||||||
|  | 
 | ||||||
|  | ; French		TODO: TRANSLATE! | ||||||
|  | LangString NAME_Emoticons ${LANG_FRENCH} "Emoticons" | ||||||
|  | LangString NAME_Iconsets ${LANG_FRENCH} "Iconsets" | ||||||
|  | LangString NAME_Languages ${LANG_FRENCH} "Languages" | ||||||
|  | LangString NAME_SecLanguagesOther ${LANG_FRENCH} "Other" | ||||||
|  | LangString NAME_Themes ${LANG_FRENCH} "Themes" | ||||||
|  | LangString NAME_SecAutostart ${LANG_FRENCH} "Start Gajim when Windows starts" | ||||||
|  | LangString DESC_SecGajim ${LANG_FRENCH} "Installs the main Gajim files." | ||||||
|  | LangString DESC_SecGtk ${LANG_FRENCH} "Installs Gtk+ 2 (necessary to run Gajim)." | ||||||
|  | LangString DESC_SecAutostart ${LANG_FRENCH} "If set, Gajim will be automatically started when Windows starts." | ||||||
|  | 
 | ||||||
|  | ; German | ||||||
|  | LangString NAME_Emoticons ${LANG_GERMAN} "Emoticons" | ||||||
|  | LangString NAME_Iconsets ${LANG_GERMAN} "Symbolsets" | ||||||
|  | LangString NAME_Languages ${LANG_GERMAN} "Sprachen" | ||||||
|  | LangString NAME_SecLanguagesOther ${LANG_GERMAN} "Sonstige" | ||||||
|  | LangString NAME_Themes ${LANG_GERMAN} "Designs" | ||||||
|  | LangString NAME_SecAutostart ${LANG_GERMAN} "Gajim mit Windows starten" | ||||||
|  | LangString DESC_SecGajim ${LANG_GERMAN} "Installiert die Hauptdateien von Gajim." | ||||||
|  | LangString DESC_SecGtk ${LANG_GERMAN} "Installert Gtk+ 2 (notwendig um Gajim zu benutzen)." | ||||||
|  | LangString DESC_SecAutostart ${LANG_GERMAN} "Gajim wird automatisch gestartet, sowie Windows startet, wenn dies aktivier wird." | ||||||
|  | 
 | ||||||
|  | ; Italian		TODO: TRANSLATE! | ||||||
|  | LangString NAME_Emoticons ${LANG_ITALIAN} "Emoticons" | ||||||
|  | LangString NAME_Iconsets ${LANG_ITALIAN} "Iconsets" | ||||||
|  | LangString NAME_Languages ${LANG_ITALIAN} "Languages" | ||||||
|  | LangString NAME_SecLanguagesOther ${LANG_ITALIAN} "Other" | ||||||
|  | LangString NAME_Themes ${LANG_ITALIAN} "Themes" | ||||||
|  | LangString NAME_SecAutostart ${LANG_ITALIAN} "Start Gajim when Windows starts" | ||||||
|  | LangString DESC_SecGajim ${LANG_ITALIAN} "Installs the main Gajim files." | ||||||
|  | LangString DESC_SecGtk ${LANG_ITALIAN} "Installs Gtk+ 2 (necessary to run Gajim)." | ||||||
|  | LangString DESC_SecAutostart ${LANG_ITALIAN} "If set, Gajim will be automatically started when Windows starts." | ||||||
|  | 
 | ||||||
|  | ; Spanish		TODO: TRANSLATE! | ||||||
|  | LangString NAME_Emoticons ${LANG_SPANISH} "Emoticons" | ||||||
|  | LangString NAME_Iconsets ${LANG_SPANISH} "Iconsets" | ||||||
|  | LangString NAME_Languages ${LANG_SPANISH} "Languages" | ||||||
|  | LangString NAME_SecLanguagesOther ${LANG_SPANISH} "Other" | ||||||
|  | LangString NAME_Themes ${LANG_THEMES} "Themes" | ||||||
|  | LangString NAME_SecAutostart ${LANG_SPANISH} "Start Gajim when Windows starts" | ||||||
|  | LangString DESC_SecGajim ${LANG_SPANISH} "Installs the main Gajim files." | ||||||
|  | LangString DESC_SecGtk ${LANG_SPANISH} "Installs Gtk+ 2 (necessary to run Gajim)." | ||||||
|  | LangString DESC_SecAutostart ${LANG_SPANISH} "If set, Gajim will be automatically started when Windows starts." | ||||||
|  | 
 | ||||||
|  | ; Russian		TODO: TRANSLATE! | ||||||
|  | LangString NAME_Emoticons ${LANG_RUSSIAN} "Emoticons" | ||||||
|  | LangString NAME_Iconsets ${LANG_RUSSIAN} "Iconsets" | ||||||
|  | LangString NAME_Languages ${LANG_RUSSIAN} "Languages" | ||||||
|  | LangString NAME_SecLanguagesOther ${LANG_RUSSIAN} "Other" | ||||||
|  | LangString NAME_Themes ${LANG_RUSSIAN} "Themes" | ||||||
|  | LangString NAME_SecAutostart ${LANG_RUSSIAN} "Start Gajim when Windows starts" | ||||||
|  | LangString DESC_SecGajim ${LANG_RUSSIAN} "Installs the main Gajim files." | ||||||
|  | LangString DESC_SecGtk ${LANG_RUSSIAN} "Installs Gtk+ 2 (necessary to run Gajim)." | ||||||
|  | LangString DESC_SecAutostart ${LANG_RUSSIAN} "If set, Gajim will be automatically started when Windows starts." | ||||||
|  | 
 | ||||||
|  | Section "Gajim" SecGajim | ||||||
|  | 	SectionIn RO | ||||||
|  | 
 | ||||||
|  | 	SetOutPath "$INSTDIR" | ||||||
|  | 	File "AUTHORS" | ||||||
|  | 	File "COPYING" | ||||||
|  | 	File "THANKS" | ||||||
|  | 	File "THANKS.artists" | ||||||
|  | 
 | ||||||
|  | 	SetOutPath "$INSTDIR\bin" | ||||||
|  | 	File "bin\_cairo.pyd" | ||||||
|  | 	File "bin\_ctypes.pyd" | ||||||
|  | 	File "bin\_gobject.pyd" | ||||||
|  | 	File "bin\_gtk.pyd" | ||||||
|  | 	File "bin\_hashlib.pyd" | ||||||
|  | 	File "bin\_socket.pyd" | ||||||
|  | 	File "bin\_sqlite3.pyd" | ||||||
|  | 	File "bin\_sqlite.pyd" | ||||||
|  | 	File "bin\_ssl.pyd" | ||||||
|  | 	File "bin\_win32sysloader.pyd" | ||||||
|  | 	File "bin\AES.pyd" | ||||||
|  | 	File "bin\atk.pyd" | ||||||
|  | 	File "bin\bz2.pyd" | ||||||
|  | 	File "bin\crypto.pyd" | ||||||
|  | 	File "bin\gajim.exe" | ||||||
|  | 	File "bin\glade.pyd" | ||||||
|  | 	File "bin\history_manager.exe" | ||||||
|  | 	File "bin\libeay32.dll" | ||||||
|  | 	File "bin\libglade-2.0-0.dll" | ||||||
|  | 	File "bin\library.zip" | ||||||
|  | 	File "bin\libxml2.dll" | ||||||
|  | 	File "bin\msvcr71.dll" | ||||||
|  | 	File "bin\pangocairo.pyd" | ||||||
|  | 	File "bin\pango.pyd" | ||||||
|  | 	File "bin\pyexpat.pyd" | ||||||
|  | 	File "bin\python25.dll" | ||||||
|  | 	File "bin\pywintypes25.dll" | ||||||
|  | 	File "bin\rand.pyd" | ||||||
|  | 	File "bin\select.pyd" | ||||||
|  | 	File "bin\SHA256.pyd" | ||||||
|  | 	File "bin\sqlite3.dll" | ||||||
|  | 	File "bin\ssleay32.dll" | ||||||
|  | 	File "bin\SSL.pyd" | ||||||
|  | 	File "bin\unicodedata.pyd" | ||||||
|  | 	File "bin\w9xpopen.exe" | ||||||
|  | 	File "bin\win32api.pyd" | ||||||
|  | 	File "bin\win32file.pyd" | ||||||
|  | 	File "bin\winsound.pyd" | ||||||
|  | 	File "bin\zlib1.dll" | ||||||
|  | 
 | ||||||
|  | 	WriteRegStr HKCU "Software\Gajim" "" $INSTDIR | ||||||
|  | 	WriteUninstaller "$INSTDIR\Uninstall.exe" | ||||||
|  | 
 | ||||||
|  | 	!insertmacro MUI_STARTMENU_WRITE_BEGIN Application | ||||||
|  | 		CreateDirectory "$SMPROGRAMS\$StartMenuFolder" | ||||||
|  | 		CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Gajim.lnk" "$INSTDIR\bin\Gajim.exe" | ||||||
|  | 		CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Change Theme.lnk" "$INSTDIR\bin\gtk\bin\gtkthemeselector.exe" | ||||||
|  | 		CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe" | ||||||
|  | 	!insertmacro MUI_STARTMENU_WRITE_END | ||||||
|  | 
 | ||||||
|  | 	SetOutPath "$INSTDIR\data"	 | ||||||
|  | 	File /r "data\glade" | ||||||
|  | 	File /r "data\other" | ||||||
|  | 	File /r "data\pixmaps" | ||||||
|  | 	File /r "data\sounds" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "Gtk+ 2" SecGtk | ||||||
|  | 	SectionIn RO | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk" | ||||||
|  | 	File /r "bin\gtk\bin" | ||||||
|  | 	File /r "bin\gtk\etc" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines" | ||||||
|  | 	File "bin\gtk\lib\gtk-2.0\2.10.0\engines\libclearlooks.dll" | ||||||
|  | 	File "bin\gtk\lib\gtk-2.0\2.10.0\engines\libpixmap.dll" | ||||||
|  | 	File "bin\gtk\lib\gtk-2.0\2.10.0\engines\libsvg.dll" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0" | ||||||
|  | 	File /r "bin\gtk\lib\gtk-2.0\2.10.0\immodules" | ||||||
|  | 	File /r "bin\gtk\lib\gtk-2.0\2.10.0\loaders" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\lib" | ||||||
|  | 	File /r "bin\gtk\lib\pango" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | SectionGroup $(NAME_Emoticons) | ||||||
|  | 
 | ||||||
|  | Section "animated" SecEmoticonsAnimated | ||||||
|  | 	SetOutPath "$INSTDIR\data\emoticons" | ||||||
|  | 	File /r "data\emoticons\animated" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "static" SecEmoticonsStatic | ||||||
|  | 	SectionIn RO | ||||||
|  | 	SetOutPath "$INSTDIR\data\emoticons" | ||||||
|  | 	File /r "data\emoticons\static" | ||||||
|  | SectioNEnd | ||||||
|  | 
 | ||||||
|  | Section "static-big" SecEmoticonsStaticBig | ||||||
|  | 	SetOutPath "$INSTDIR\data\emoticons" | ||||||
|  | 	File /r "data\emoticons\static-big" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | SectionGroupEnd | ||||||
|  | 
 | ||||||
|  | SectionGroup $(NAME_Iconsets) | ||||||
|  | 
 | ||||||
|  | Section "crystal" SecIconsetsCrystal | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\crystal" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "dcraven" SecIconsetsDcraven | ||||||
|  | 	SectionIn RO | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\dcraven" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "gnome" SecIconsetsGnome | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\gnome" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "goojim" SecIconsetsGoojim | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\goojim" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "gossip" SecIconsetsGossip | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\gossip" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "gota" SecIconsetsGota | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\gota" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "jabberbulb" SecIconsetsJabberbulb | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\jabberbulb" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "nuvola" SecIconsetsNuvola | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\nuvola" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "simplebulb" SecIconsetsSimplebulb | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\simplebulb" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "stellar" SecIconsetsStellar | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\stellar" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "sun" SecIconsetsSun | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\sun" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "transports" SecIconsetsTransports | ||||||
|  | 	SetOutPath "$INSTDIR\data\iconsets" | ||||||
|  | 	File /r "data\iconsets\transports" | ||||||
|  | 	SectionIn Ro | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | SectionGroupEnd | ||||||
|  | 
 | ||||||
|  | SectionGroup $(NAME_Languages) | ||||||
|  | 
 | ||||||
|  | Section "English (UK)" SecLanguagesEnglishUK | ||||||
|  | 	SetOutPath "$INSTDIR\po" | ||||||
|  | 	File /r "po\en_GB" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\locale" | ||||||
|  | 	File /r "bin\gtk\share\locale\en_GB" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "French" SecLanguagesFrench | ||||||
|  | 	SetOutPath "$INSTDIR\po" | ||||||
|  | 	File /r "po\fr" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\locale" | ||||||
|  | 	File /r "bin\gtk\share\locale\fr" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "German" SecLanguagesGerman | ||||||
|  | 	SetOutPath "$INSTDIR\po" | ||||||
|  | 	File /r "po\de" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\locale" | ||||||
|  | 	File /r "bin\gtk\share\locale\de" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "Italian" SecLanguagesItalian | ||||||
|  | 	SetOutPath "$INSTDIR\po" | ||||||
|  | 	File /r "po\it" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\locale" | ||||||
|  | 	File /r "bin\gtk\share\locale\it" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "Spanish" SecLanguagesSpanish | ||||||
|  | 	SetOutPath "$INSTDIR\po" | ||||||
|  | 	File /r "po\es" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\locale" | ||||||
|  | 	File /r "bin\gtk\share\locale\es" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "Russian" SecLanguagesRussian | ||||||
|  | 	SetOutPath "$INSTDIR\po" | ||||||
|  | 	File /r "po\ru" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\locale" | ||||||
|  | 	File /r "bin\gtk\share\locale\ru" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section $(NAME_SecLanguagesOther) SecLanguagesOther | ||||||
|  | 	SetOutPath "$INSTDIR\po" | ||||||
|  | 	File /r "po\be" | ||||||
|  | 	File /r "po\be@latin" | ||||||
|  | 	File /r "po\bg" | ||||||
|  | 	File /r "po\br" | ||||||
|  | 	File /r "po\cs" | ||||||
|  | 	File /r "po\da" | ||||||
|  | 	File /r "po\el" | ||||||
|  | 	File /r "po\eo" | ||||||
|  | 	File /r "po\eu" | ||||||
|  | 	File /r "po\gl" | ||||||
|  | 	File /r "po\hr" | ||||||
|  | 	File /r "po\lt" | ||||||
|  | 	File /r "po\nb" | ||||||
|  | 	File /r "po\nl" | ||||||
|  | 	File /r "po\no" | ||||||
|  | 	File /r "po\pl" | ||||||
|  | 	File /r "po\pt" | ||||||
|  | 	File /r "po\pt_BR" | ||||||
|  | 	File /r "po\sk" | ||||||
|  | 	File /r "po\sr" | ||||||
|  | 	File /r "po\sv" | ||||||
|  | 	File /r "po\sr@Latn" | ||||||
|  | 	File /r "po\zh_CN" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\locale" | ||||||
|  | 	File /r "bin\gtk\share\locale\be" | ||||||
|  | 	File /r "bin\gtk\share\locale\bg" | ||||||
|  | 	File /r "bin\gtk\share\locale\br" | ||||||
|  | 	File /r "bin\gtk\share\locale\cs" | ||||||
|  | 	File /r "bin\gtk\share\locale\el" | ||||||
|  | 	File /r "bin\gtk\share\locale\eo" | ||||||
|  | 	File /r "bin\gtk\share\locale\eu" | ||||||
|  | 	File /r "bin\gtk\share\locale\hr" | ||||||
|  | 	File /r "bin\gtk\share\locale\nb" | ||||||
|  | 	File /r "bin\gtk\share\locale\nl" | ||||||
|  | 	File /r "bin\gtk\share\locale\no" | ||||||
|  | 	File /r "bin\gtk\share\locale\pl" | ||||||
|  | 	File /r "bin\gtk\share\locale\pt" | ||||||
|  | 	File /r "bin\gtk\share\locale\pt_BR" | ||||||
|  | 	File /r "bin\gtk\share\locale\sk" | ||||||
|  | 	File /r "bin\gtk\share\locale\sr" | ||||||
|  | 	File /r "bin\gtk\share\locale\sv" | ||||||
|  | 	File /r "bin\gtk\share\locale\zh_CN" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | SectionGroupEnd | ||||||
|  | 
 | ||||||
|  | SectionGroup $(NAME_Themes) | ||||||
|  | 
 | ||||||
|  | Section "Clearlooks" SecThemesClearlooks | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\themes" | ||||||
|  | 	File /r "bin\gtk\share\themes\Clearlooks" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "Default GTK" SecThemesDefault | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\themes" | ||||||
|  | 	File /r "bin\gtk\share\themes\Default" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "Glossy" SecThemesGlossy | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\themes" | ||||||
|  | 	File /r "bin\gtk\share\themes\Glossy" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "Glossy-js" SecThemesGlossyJs | ||||||
|  | 	SectionIn RO | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\themes" | ||||||
|  | 	File /r "bin\gtk\share\themes\Glossy-js" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "MS-Windows" SecThemesMSWindows | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines" | ||||||
|  | 	File "bin\gtk\lib\gtk-2.0\2.10.0\engines\libwimp.dll" | ||||||
|  | 	SetOutPath "$INSTDIR\bin\gtk\share\themes" | ||||||
|  | 	File /r "bin\gtk\share\themes\MS-Windows" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | SectionGroupEnd | ||||||
|  | 
 | ||||||
|  | Section $(NAME_SecAutostart) SecAutostart | ||||||
|  | 	CreateShortCut "$SMSTARTUP\Gajim.lnk" "$INSTDIR\bin\Gajim.exe" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | Section "Uninstall" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\bin" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\etc" | ||||||
|  | 	Delete "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines\libclearlooks.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines\libpixmap.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines\libsvg.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines\libwimp.dll" | ||||||
|  | 	RMDir "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\engines" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\immodules" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0\loaders" | ||||||
|  | 	RMDir "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0" | ||||||
|  | 	RMDir "$INSTDIR\bin\gtk\lib\gtk-2.0" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\lib\pango" | ||||||
|  | 	RMDir "$INSTDIR\bin\gtk\lib" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\be" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\bg" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\br" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\cs" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\de" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\el" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\en_GB" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\eo" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\es" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\eu" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\fr" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\hr" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\it" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\nb" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\nl" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\no" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\pl" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\pt" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\pt_BR" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\ru" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\sk" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\sr" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\sv" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\locale\zh_CN" | ||||||
|  | 	RMDir "$INSTDIR\bin\gtk\share\locale" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\themes\Clearlooks" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\themes\Default" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\themes\Glossy" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\themes\Glossy-js" | ||||||
|  | 	RMDir /r "$INSTDIR\bin\gtk\share\themes\MS-Windows" | ||||||
|  | 	RMDir "$INSTDIR\bin\gtk\share\themes" | ||||||
|  | 	RMDir "$INSTDIR\bin\gtk\share" | ||||||
|  | 	RMDir "$INSTDIR\bin\gtk" | ||||||
|  | 	Delete "$INSTDIR\bin\_cairo.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\_ctypes.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\_gobject.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\_gtk.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\_hashlib.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\_socket.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\_sqlite3.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\_sqlite.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\_ssl.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\_win32sysloader.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\AES.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\atk.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\bz2.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\crypto.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\gajim.exe" | ||||||
|  | 	Delete "$INSTDIR\bin\glade.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\history_manager.exe" | ||||||
|  | 	Delete "$INSTDIR\bin\libeay32.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\libglade-2.0-0.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\library.zip" | ||||||
|  | 	Delete "$INSTDIR\bin\libxml2.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\msvcr71.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\pangocairo.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\pango.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\pyexpat.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\python25.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\pywintypes25.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\rand.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\select.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\SHA256.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\sqlite3.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\ssleay32.dll" | ||||||
|  | 	Delete "$INSTDIR\bin\SSL.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\unicodedata.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\w9xpopen.exe" | ||||||
|  | 	Delete "$INSTDIR\bin\win32api.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\win32file.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\winsound.pyd" | ||||||
|  | 	Delete "$INSTDIR\bin\zlib1.dll" | ||||||
|  | 	RMDir "$INSTDIR\bin" | ||||||
|  | 	RMDir /r "$INSTDIR\data\glade" | ||||||
|  | 	RMDir /r "$INSTDIR\data\other" | ||||||
|  | 	RMDir /r "$INSTDIR\data\pixmaps" | ||||||
|  | 	RMDir /r "$INSTDIR\data\sounds" | ||||||
|  | 	RMDir /r "$INSTDIR\data\emoticons\animated" | ||||||
|  | 	RMDir /r "$INSTDIR\data\emoticons\static" | ||||||
|  | 	RMDir /r "$INSTDIR\data\emoticons\static-big" | ||||||
|  | 	RMDir "$INSTDIR\data\emoticons" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\crystal" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\dcraven" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\gnome" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\goojim" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\gossip" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\gota" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\jabberbulb" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\nuvola" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\simplebulb" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\stellar" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\sun" | ||||||
|  | 	RMDir /r "$INSTDIR\data\iconsets\transports" | ||||||
|  | 	RMDir "$INSTDIR\data\iconsets" | ||||||
|  | 	RMDir "$INSTDIR\data" | ||||||
|  | 	RMDir /r "$INSTDIR\po\be" | ||||||
|  | 	RMDir /r "$INSTDIR\po\be@latin" | ||||||
|  | 	RMDir /r "$INSTDIR\po\bg" | ||||||
|  | 	RMDir /r "$INSTDIR\po\br" | ||||||
|  | 	RMDir /r "$INSTDIR\po\cs" | ||||||
|  | 	RMDir /r "$INSTDIR\po\da" | ||||||
|  | 	RMDir /r "$INSTDIR\po\de" | ||||||
|  | 	RMDir /r "$INSTDIR\po\el" | ||||||
|  | 	RMDir /r "$INSTDIR\po\en_GB" | ||||||
|  | 	RMDir /r "$INSTDIR\po\eo" | ||||||
|  | 	RMDir /r "$INSTDIR\po\es" | ||||||
|  | 	RMDir /r "$INSTDIR\po\eu" | ||||||
|  | 	RMDir /r "$INSTDIR\po\fr" | ||||||
|  | 	RMDir /r "$INSTDIR\po\gl" | ||||||
|  | 	RMDir /r "$INSTDIR\po\hr" | ||||||
|  | 	RMDir /r "$INSTDIR\po\it" | ||||||
|  | 	RMDir /r "$INSTDIR\po\lt" | ||||||
|  | 	RMDir /r "$INSTDIR\po\nb" | ||||||
|  | 	RMDir /r "$INSTDIR\po\nl" | ||||||
|  | 	RMDir /r "$INSTDIR\po\no" | ||||||
|  | 	RMDir /r "$INSTDIR\po\pl" | ||||||
|  | 	RMDir /r "$INSTDIR\po\pt" | ||||||
|  | 	RMDir /r "$INSTDIR\po\pt_BR" | ||||||
|  | 	RMDir /r "$INSTDIR\po\ru" | ||||||
|  | 	RMDir /r "$INSTDIR\po\sk" | ||||||
|  | 	RMDir /r "$INSTDIR\po\sr" | ||||||
|  | 	RMDir /r "$INSTDIR\po\sr@Latn" | ||||||
|  | 	RMDir /r "$INSTDIR\po\zh_CN" | ||||||
|  | 	RMDir "$INSTDIR\po" | ||||||
|  | 	Delete "$INSTDIR\AUTHORS" | ||||||
|  | 	Delete "$INSTDIR\COPYING" | ||||||
|  | 	Delete "$INSTDIR\THANKS" | ||||||
|  | 	Delete "$INSTDIR\THANKS.artists" | ||||||
|  | 	Delete "$INSTDIR\Uninstall.exe" | ||||||
|  | 	RMDir "$INSTDIR" | ||||||
|  | 
 | ||||||
|  | 	!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder | ||||||
|  | 
 | ||||||
|  | 	Delete "$SMPROGRAMS\$StartMenuFolder\Gajim.lnk" | ||||||
|  | 	Delete "$SMPROGRAMS\$StartMenuFolder\Change Theme.lnk" | ||||||
|  | 	Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" | ||||||
|  | 	RMDir "$SMPROGRAMS\$StartMenuFolder" | ||||||
|  | 	Delete "$SMSTARTUP\Gajim.lnk" | ||||||
|  | 
 | ||||||
|  | 	DeleteRegKey /ifempty HKCU "Software\Gajim" | ||||||
|  | SectionEnd | ||||||
|  | 
 | ||||||
|  | !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN | ||||||
|  | 	!insertmacro MUI_DESCRIPTION_TEXT ${SecGajim} $(DESC_SecGajim) | ||||||
|  | 	!insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} $(DESC_SecGtk) | ||||||
|  | 	!insertmacro MUI_DESCRIPTION_TEXT ${SecAutostart} $(DESC_SecAutostart) | ||||||
|  | !insertmacro MUI_FUNCTION_DESCRIPTION_END | ||||||
|  | 
 | ||||||
|  | Function .onInit | ||||||
|  | 	!insertmacro MUI_LANGDLL_DISPLAY | ||||||
|  | FunctionEnd | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue