2008-07-11 17:03:42 +00:00
!include " MUI2.nsh "
Name " Gajim "
OutFile " Gajim.exe "
SetCompressor /final /solid lzma
2008-11-10 16:18:15 +00:00
!define myAppName " Gajim "
2008-07-11 17:03:42 +00:00
InstallDir " $PROGRAMFILES \Gajim "
InstallDirRegKey HKCU " Software\Gajim " " "
2008-07-13 16:02:36 +00:00
RequestExecutionLevel admin
2008-07-11 17:03:42 +00:00
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 $StartMenu Folder
!insertmacro MUI_PAGE_INSTFILES
2016-07-07 22:41:35 +02:00
!define MUI_FINISHPAGE_RUN " $INSTDIR \build\Gajim.exe "
2008-07-11 17:03:42 +00:00
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
2013-03-31 15:17:10 +02:00
;Show all languages, despite user's codepage
!define MUI_LANGDLL_ALLLANGUAGES
2008-07-11 17:03:42 +00:00
!insertmacro MUI_LANGUAGE " English "
!insertmacro MUI_LANGUAGE " French "
!insertmacro MUI_LANGUAGE " German "
!insertmacro MUI_LANGUAGE " Italian "
!insertmacro MUI_LANGUAGE " Russian "
2013-03-31 15:17:10 +02:00
!insertmacro MUI_LANGUAGE " Hebrew "
2008-07-11 17:03:42 +00:00
!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 "
2008-10-05 15:01:36 +00:00
LangString NAME_SecDesktopIcon ${LANG_ENGLISH} " Create icon on desktop "
2008-07-11 17:03:42 +00:00
LangString NAME_SecAutostart ${LANG_ENGLISH} " Start Gajim when Windows starts "
LangString DESC_SecGajim ${LANG_ENGLISH} " Installs the main Gajim files. "
2008-10-05 15:01:36 +00:00
LangString DESC_SecDesktopIcon ${LANG_ENGLISH} " If set, a shortcut for Gajim will be created on the desktop. "
2008-07-11 17:03:42 +00:00
LangString DESC_SecAutostart ${LANG_ENGLISH} " If set, Gajim will be automatically started when Windows starts. "
2013-03-31 15:17:10 +02:00
LangString STR_Installed ${LANG_ENGLISH} " Apparently, Gajim is already installed. Uninstall it? "
2008-11-08 22:41:55 +00:00
LangString STR_Running ${LANG_ENGLISH} " It appears that Gajim is currently running.$\n\
2008-11-08 22:47:57 +00:00
Please quit Gajim and restart the uninstaller."
2008-07-11 17:03:42 +00:00
2008-10-05 23:33:56 +00:00
; French
2008-10-07 10:38:18 +00:00
LangString NAME_Emoticons ${LANG_FRENCH} " Emotic<EFBFBD> nes "
LangString NAME_Iconsets ${LANG_FRENCH} " Biblioth<EFBFBD> que d'ic<69> nes "
2008-07-13 16:02:36 +00:00
LangString NAME_Languages ${LANG_FRENCH} " Langues "
LangString NAME_SecLanguagesOther ${LANG_FRENCH} " Autre "
2008-10-07 10:38:18 +00:00
LangString NAME_Themes ${LANG_FRENCH} " Th<EFBFBD> mes "
LangString NAME_SecDesktopIcon ${LANG_FRENCH} " Cr<EFBFBD> er une ic<69> ne sur le bureau "
LangString NAME_SecAutostart ${LANG_FRENCH} " Lancer Gajim au d<> marrage de Windows "
2008-07-13 16:02:36 +00:00
LangString DESC_SecGajim ${LANG_FRENCH} " Installer les fichiers principaux de Gajim. "
2008-10-07 10:38:18 +00:00
LangString DESC_SecDesktopIcon ${LANG_FRENCH} " Si selectionn<6E> , un raccourci pour Gajim sera cr<63> <72> sur le bureau. "
LangString DESC_SecAutostart ${LANG_FRENCH} " Si activ<69> , Gajim sera automatiquement lanc<6E> au d<> marrage de Windows. "
2013-03-31 15:17:10 +02:00
LangString STR_Installed ${LANG_FRENCH} " Gajim est apparement d<> j<EFBFBD> install<6C> . Lancer la d<> sinstallation ? "
2008-11-10 16:18:15 +00:00
LangString STR_Running ${LANG_FRENCH} " Gajim est apparament lanc<6E> .$\n\
Fermez- le et red<EFBFBD> marrez le d<EFBFBD> sinstallateur."
2008-07-11 17:03:42 +00:00
; 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 "
2008-10-05 16:00:41 +00:00
LangString NAME_SecDesktopIcon ${LANG_GERMAN} " Desktop-Icon erstellen "
2008-07-11 17:03:42 +00:00
LangString NAME_SecAutostart ${LANG_GERMAN} " Gajim mit Windows starten "
LangString DESC_SecGajim ${LANG_GERMAN} " Installiert die Hauptdateien von Gajim. "
2008-10-07 10:38:18 +00:00
LangString DESC_SecDesktopIcon ${LANG_GERMAN} " Wenn dies aktiviert wird, wird ein Icon f<> r Gajim auf dem Desktop erstellt. "
2008-07-11 17:03:42 +00:00
LangString DESC_SecAutostart ${LANG_GERMAN} " Gajim wird automatisch gestartet, sowie Windows startet, wenn dies aktivier wird. "
2013-03-31 15:17:10 +02:00
LangString STR_Installed ${LANG_GERMAN} " Gajim is apparently already installed. Uninstall it? "
2008-11-08 22:47:57 +00:00
LangString STR_Running ${LANG_GERMAN} " Es scheint, dass Gajim bereits l<> uft.$\n\
Bitte beenden Sie es und starten Sie den Installer erneut.."
2008-07-11 17:03:42 +00:00
2008-10-07 10:38:18 +00:00
; Italian
2008-07-11 17:03:42 +00:00
LangString NAME_Emoticons ${LANG_ITALIAN} " Emoticons "
2008-10-07 10:38:18 +00:00
LangString NAME_Iconsets ${LANG_ITALIAN} " Set di icone "
LangString NAME_Languages ${LANG_ITALIAN} " Lingue "
LangString NAME_SecLanguagesOther ${LANG_ITALIAN} " Altre "
LangString NAME_Themes ${LANG_ITALIAN} " Temi "
LangString NAME_SecDesktopIcon ${LANG_ITALIAN} " Crea un'icona sul desktop "
LangString NAME_SecAutostart ${LANG_ITALIAN} " Lancia Gajim quando parte Windows "
LangString DESC_SecGajim ${LANG_ITALIAN} " Installa i file principali di Gajim. "
LangString DESC_SecDesktopIcon ${LANG_ITALIAN} " Se selezionato, un'icona verr<72> creata sul desktop. "
LangString DESC_SecAutostart ${LANG_ITALIAN} " Se selezionato, Gajim sar<61> eseguito all'avvio di Windows. "
2013-03-31 15:17:10 +02:00
LangString STR_Installed ${LANG_ITALIAN} " Gajim is apparently already installed. Uninstall it? "
2008-11-08 22:41:55 +00:00
LangString STR_Running ${LANG_ITALIAN} " It appears that Gajim is currently running.$\n\
Close it and restart uninstaller."
2008-07-11 17:03:42 +00:00
2008-10-06 09:00:00 +00:00
; Russian
2008-10-07 14:01:41 +00:00
LangString NAME_Emoticons ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_Iconsets ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_Languages ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_SecLanguagesOther ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_Themes ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_SecDesktopIcon ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_SecAutostart ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Gajim <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Windows"
LangString DESC_SecGajim ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Gajim."
LangString DESC_SecDesktopIcon ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> Gajim."
LangString DESC_SecAutostart ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , Gajim <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Windows."
2013-03-31 15:17:10 +02:00
LangString STR_Installed ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , Gajim <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ?"
LangString STR_Running ${LANG_RUSSIAN} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , Gajim <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .$\n<> <6E> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ."
; Hebrew
LangString NAME_Emoticons ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_Iconsets ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_Languages ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_SecLanguagesOther ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_Themes ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> "
LangString NAME_SecDesktopIcon ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString NAME_SecAutostart ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> Gajim <20> <> <EFBFBD> <EFBFBD> Windows <20> <> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString DESC_SecGajim ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> Gajim <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ."
LangString DESC_SecDesktopIcon ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> Gajim <20> <> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ."
LangString DESC_SecAutostart ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , Gajim <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> Windows <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ."
LangString STR_Installed ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> , Gajim <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> ?"
LangString STR_Running ${LANG_HEBREW} " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Gajim <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> .$\n\
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Gajim <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ."
2008-07-11 17:03:42 +00:00
Section " Gajim " SecGajim
SectionIn RO
SetOutPath " $INSTDIR "
File " AUTHORS "
File " COPYING "
File " THANKS "
File " THANKS.artists "
2016-07-07 22:41:35 +02:00
File /r " build "
SetOutPath " $INSTDIR \build "
2016-08-07 16:13:58 +02:00
; File "msvcr100.dll"
2008-07-11 17:03:42 +00:00
WriteRegStr HKCU " Software\Gajim " " " $INSTDIR
2008-07-16 16:34:07 +00:00
WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim " " DisplayName " " Gajim "
WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim " " UninstallString " " $INSTDIR \Uninstall.exe "
2016-07-07 22:41:35 +02:00
WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim " " DisplayIcon " " $INSTDIR \build\Gajim.exe "
WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim " " DisplayVersion " " 0.16.4 "
2008-07-16 16:34:07 +00:00
WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim " " URLInfoAbout " " http://www.gajim.org/ "
2008-07-11 17:03:42 +00:00
WriteUninstaller " $INSTDIR \Uninstall.exe "
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
2008-07-13 17:09:04 +00:00
SetShellVarContext current
CreateDirectory " $SMPROGRAMS \$StartMenuFolder "
2016-07-07 22:41:35 +02:00
CreateShortCut " $SMPROGRAMS \$StartMenuFolder\Gajim.lnk " " $INSTDIR \build\Gajim.exe "
2008-07-13 17:09:04 +00:00
SetShellVarContext all
2008-07-11 17:03:42 +00:00
CreateDirectory " $SMPROGRAMS \$StartMenuFolder "
2016-07-07 22:41:35 +02:00
CreateShortCut " $SMPROGRAMS \$StartMenuFolder\Gajim.lnk " " $INSTDIR \build\Gajim.exe "
2008-07-11 17:03:42 +00:00
!insertmacro MUI_STARTMENU_WRITE_END
SetOutPath " $INSTDIR \data "
2010-01-22 19:57:59 +01:00
File /r " data\gui "
2008-07-23 00:45:04 +00:00
File /r " data\moods "
2008-07-29 02:34:29 +00:00
File /r " data\activities "
2008-07-11 17:03:42 +00:00
File /r " data\other "
File /r " data\pixmaps "
File /r " data\sounds "
2010-10-26 17:28:08 +02:00
SetOutPath " $INSTDIR \icons "
File /r " icons\hicolor "
2008-07-11 17:03:42 +00:00
SectionEnd
2011-08-27 13:49:11 +02:00
Section " Plugins " SecPlugins
SetOutPath " $INSTDIR \plugins "
File /r " plugins\plugin_installer "
SectionEnd
2008-07-11 17:03:42 +00:00
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 " 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 " 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 " sun " SecIconsetsSun
SetOutPath " $INSTDIR \data\iconsets "
File /r " data\iconsets\sun "
SectionEnd
2009-11-03 19:59:39 +01:00
Section " wroop " SecIconsetsWroop
2009-11-01 09:43:31 +01:00
SetOutPath " $INSTDIR \data\iconsets "
File /r " data\iconsets\wroop "
SectionEnd
2008-07-11 17:03:42 +00:00
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 "
SectionEnd
2010-12-06 23:33:42 +01:00
Section " French " SecLanguagesFrench
SetOutPath " $INSTDIR \po "
File /r " po\fr "
SectionEnd
Section " German " SecLanguagesGerman
SetOutPath " $INSTDIR \po "
File /r " po\de "
SectionEnd
Section " Italian " SecLanguagesItalian
SetOutPath " $INSTDIR \po "
File /r " po\it "
SectionEnd
Section " Spanish " SecLanguagesSpanish
SetOutPath " $INSTDIR \po "
File /r " po\es "
SectionEnd
Section " Russian " SecLanguagesRussian
SetOutPath " $INSTDIR \po "
File /r " po\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 "
2013-03-31 15:17:10 +02:00
File /r " po\he "
2010-12-06 23:33:42 +01:00
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\sr@Latn "
File /r " po\sv "
File /r " po\uk "
File /r " po\zh_CN "
2008-07-11 17:03:42 +00:00
SectionEnd
SectionGroupEnd
2008-10-05 15:01:36 +00:00
Section $ ( NAME_SecDesktopIcon) SecDesktopIcon
SetShellVarContext current
2016-07-07 22:41:35 +02:00
SetOutPath " $INSTDIR \build "
CreateShortCut " $DESKTOP \Gajim.lnk " " $INSTDIR \build\Gajim.exe "
2008-10-05 15:01:36 +00:00
SectionEnd
2008-07-11 17:03:42 +00:00
Section $ ( NAME_SecAutostart) SecAutostart
2008-07-13 17:09:04 +00:00
SetShellVarContext current
2016-07-07 22:41:35 +02:00
SetOutPath " $INSTDIR \build "
CreateShortCut " $SMSTARTUP \Gajim.lnk " " $INSTDIR \build\Gajim.exe "
2008-07-11 17:03:42 +00:00
SectionEnd
Section " Uninstall "
2013-12-16 13:18:39 +01:00
RMDir " $INSTDIR \bin\win32com "
2016-07-07 22:41:35 +02:00
RMDir /r " $INSTDIR \build "
2010-01-22 19:57:59 +01:00
RMDir /r " $INSTDIR \data\gui "
2008-07-23 00:45:04 +00:00
RMDir /r " $INSTDIR \data\moods "
2008-07-29 02:34:29 +00:00
RMDir /r " $INSTDIR \data\activities "
2008-07-11 17:03:42 +00:00
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\dcraven "
RMDir /r " $INSTDIR \data\iconsets\gnome "
RMDir /r " $INSTDIR \data\iconsets\goojim "
RMDir /r " $INSTDIR \data\iconsets\gota "
RMDir /r " $INSTDIR \data\iconsets\jabberbulb "
RMDir /r " $INSTDIR \data\iconsets\sun "
2009-11-01 09:43:31 +01:00
RMDir /r " $INSTDIR \data\iconsets\wroop "
2008-07-11 17:03:42 +00:00
RMDir /r " $INSTDIR \data\iconsets\transports "
RMDir " $INSTDIR \data\iconsets "
RMDir " $INSTDIR \data "
2011-08-27 13:49:11 +02:00
RMDir /r " $INSTDIR \plugins\plugin_installer "
RMDir " $INSTDIR \plugins "
2010-10-26 17:28:08 +02:00
RMDir /r " $INSTDIR \icons\hicolor "
RMDir " $INSTDIR \icons "
2016-07-07 22:41:35 +02:00
RMDir /r " $INSTDIR \po "
2008-07-11 17:03:42 +00:00
Delete " $INSTDIR \AUTHORS "
Delete " $INSTDIR \COPYING "
Delete " $INSTDIR \THANKS "
Delete " $INSTDIR \THANKS.artists "
Delete " $INSTDIR \Uninstall.exe "
RMDir " $INSTDIR "
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenu Folder
2008-07-16 16:47:08 +00:00
SetShellVarContext current
2008-07-11 17:03:42 +00:00
Delete " $SMPROGRAMS \$StartMenuFolder\Gajim.lnk "
Delete " $SMPROGRAMS \$StartMenuFolder\Change Theme.lnk "
RMDir " $SMPROGRAMS \$StartMenuFolder "
2008-10-05 15:54:43 +00:00
Delete " $DESKTOP \Gajim.lnk "
2008-07-11 17:03:42 +00:00
Delete " $SMSTARTUP \Gajim.lnk "
2008-07-16 16:47:08 +00:00
SetShellVarContext all
Delete " $SMPROGRAMS \$StartMenuFolder\Gajim.lnk "
Delete " $SMPROGRAMS \$StartMenuFolder\Change Theme.lnk "
RMDir " $SMPROGRAMS \$StartMenuFolder "
2008-07-11 17:03:42 +00:00
DeleteRegKey /ifempty HKCU " Software\Gajim "
2008-07-16 16:47:08 +00:00
DeleteRegKey HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\Gajim "
2008-07-11 17:03:42 +00:00
SectionEnd
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecGajim} $ ( DESC_SecGajim)
2008-10-05 15:01:36 +00:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopIcon} $ ( DESC_SecDesktopIcon)
2008-07-11 17:03:42 +00:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecAutostart} $ ( DESC_SecAutostart)
!insertmacro MUI_FUNCTION_DESCRIPTION_END
2008-11-08 22:41:55 +00:00
Function un.onInit
; Check that Gajim is not running before uninstalling
FindWindow $0 " gdkWindowToplevel " " Gajim "
StrCmp $0 0 Remove
2008-11-10 16:18:15 +00:00
MessageBox MB_ICONSTOP | MB_OK $ ( STR_Running)
2008-11-08 22:41:55 +00:00
Quit
Remove :
FunctionEnd
2008-07-11 17:03:42 +00:00
Function .onInit
2008-11-08 22:41:55 +00:00
BringToFront
; Check if already running
; If so don't open another but bring to front
System :: Call " kernel32::CreateMutexA(i 0, i 0, t '$(^Name)') i .r0 ?e "
Pop $0
StrCmp $0 0 launch
StrLen $0 " $(^Name) "
IntOp $0 $0 + 1
2008-11-10 16:18:15 +00:00
FindWindow $1 '#32770' '' 0 $1
IntCmp $1 0 + 3
System :: Call " user32::ShowWindow(i r1,i 9) i. " ; If minimized then maximize
System :: Call " user32::SetForegroundWindow(i r1) i. " ; Bring to front
Abort
2008-11-08 22:41:55 +00:00
launch :
; Check to see if old install (inno setup) is already installed
ReadRegStr $R0 HKLM " SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gajim_is1 " " UninstallString "
; remove first and last " char
StrLen $0 $R0
IntOp $0 $0 - 2
strcpy $1 $R0 $0 1
IfFileExists $1 + 1 NotInstalled
2013-03-31 15:17:10 +02:00
MessageBox MB_YESNO | MB_DEFBUTTON2 | MB_TOPMOST $ ( STR_Installed) IDNO Quit
2008-11-08 22:41:55 +00:00
StrCmp $R1 2 Quit + 1
ExecWait '$R0 _?=$INSTDIR' $R2
StrCmp $R2 0 + 1 Quit
NotInstalled :
; Check to see if new installer (NSIS)already installed
ReadRegStr $R3 HKLM " SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gajim " " UninstallString "
IfFileExists $R3 + 1 ReallyNotInstalled
2013-03-31 15:17:10 +02:00
MessageBox MB_YESNO | MB_DEFBUTTON2 | MB_TOPMOST $ ( STR_Installed) IDNO Quit
2008-11-08 22:41:55 +00:00
StrCmp $R4 2 Quit + 1
ExecWait '$R3 _?=$INSTDIR' $R5
StrCmp $R5 0 ReallyNotInstalled Quit
Quit :
Quit
ReallyNotInstalled :
2008-07-11 17:03:42 +00:00
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd