# HG changeset patch
# Node ID b49b9f25afc1
# Parent  d00bcebf0f90
diff --git a/pidgin/win32/nsis/available.lst b/pidgin/win32/nsis/available.lst
deleted file mode 100644
--- a/pidgin/win32/nsis/available.lst
+++ /dev/null
@@ -1,100 +0,0 @@
-#This file is from ftp://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/available.lst
-af,ZA,af_ZA,Afrikaans (South Africa),af_ZA.zip
-ak,GH,ak_GH,Akan (Ghana),ak_GH.zip
-sq,AL,sq_AL,Albanian (Albania),sq_AL.zip
-bg,BG,bg_BG,Bulgarian (Bulgaria),bg_BG.zip
-ca,ES,ca_ES,Catalan (Spain),ca_ES.zip
-cop,EG,cop_EG,Coptic (Egypt),cop_EG.zip
-hr,HR,hr_HR,Croatian (Croatia),hr_HR.zip
-cs,CZ,cs_CZ,Czech (Czech Republic),cs_CZ.zip
-da,DK,da_DK,Danish (Denmark),da_DK.zip
-nl,NL,nl_NL,Dutch (Netherlands),nl_NL.zip
-nl,NL,nl_med,Dutch Medical (Netherlands),nl_med.zip
-en,AU,en_AU,English (Australia),en_AU.zip
-en,CA,en_CA,English (Canada),en_CA.zip
-en,NZ,en_NZ,English (New Zealand),en_NZ.zip
-en,ZA,en_ZA,English (South Africa),en_ZA.zip
-en,GB,en_GB,English (United Kingdom),en_GB.zip
-en,US,en_US,English (United States),en_US.zip
-eo,ANY,eo_l3,Esperanto,eo.zip
-et,EE,et_EE,Estonian (Estonia),et_EE.zip
-fo,FO,fo_FO,Faroese (Faroe Islands),fo_FO.zip
-fr,FR,fr_FR-classique,Français Classique,fr_FR-classique_1-3-2.zip
-fr,FR,fr_FR-1990,Français Réforme 1990,fr_FR-1990_1-3-2.zip
-fr,FR,fr_FR,Français Réforme 1990 & Classique,fr_FR_1-3-2.zip
-fy,NL,fy_NL,Frisian (Netherlands),fy_NL.zip
-gl,ES,gl_ES,Galician (Spain),gl_ES.zip
-gsc,FR,gsc_FR,Gascon (France),gsc_FR.zip
-de,AT,de_AT,German (Austria Extension),de_AT.zip
-de,AT,de_AT_frami,German (Austria) neu 08/2006 (frami),de_AT_frami.zip
-de,DE,de_DE,German (Germany),de_DE.zip
-de,DE,de_DE_frami,German (Germany) neu 08/2006 (frami),de_DE_frami.zip
-de,CH,de_CH,German (Switzerland),de_CH.zip
-de,CT,de_CH_frami,German (Switzerland) neu 08/2006 (frami),de_CH_frami.zip
-el,GR,el_GR,Greek (Greece),el_GR.zip
-gu,IN,gu_IN,Gujarati (India),gu_IN.zip
-he,IL,he_IL,Hebrew (Israel),he_IL.zip
-hil,PH,hil_PH,Hiligaynon (Philippines),hil_PH.zip
-hu,HU,hu_HU,Hungarian (Hungary),hu_HU.zip
-hu,HU,hu_HU_comb,Hungarian (Hungary) collected compounds,hu_HU_comb.zip
-id,ID,id_ID,Indonesian (Indonesia),id_ID.zip
-ga,IE,ga_IE,Irish (Ireland),ga_IE.zip
-it,IT,it_IT,Italian (Italy),it_IT.zip
-sw,KE,sw_KE,Kiswahili (Africa),sw_KE.zip
-ku,TR,ku_TR,Kurdish (Turkey),ku_TR.zip
-it,IT,la,Latin,la.zip
-lv,LV,lv_LV,Latvian (Latvia),lv_LV.zip
-lt,LT,lt_LT,Lithuanian (Lithuania),lt_LT.zip
-mk,MK,mk_MK,Macedonian (Macedonia),mk_MK.zip
-ms,MY,ms_MY,Malay (Malaysia),ms_MY.zip
-mi,NZ,mi_NZ,Maori (New Zealand),mi_NZ.zip
-mr,IN,mr_IN,Marathi (India),mr_IN.zip
-mos,BF,mos_BF,Moore,ms_BF.zip
-nr,ZA,nr_ZA,Ndebele (South Africa),nr_ZA.zip
-ne,NP,ne_NP,Nepali (Nepal),ne_NP.zip
-ns,ZA,ns_ZA,Northern Sotho (South Africa),ns_ZA.zip
-nb,NO,nb_NO,Norwegian Bokmaal (Norway),nb_NO.zip
-nn,NO,nn_NO,Norwegian Nynorsk (Norway),nn_NO.zip
-oc,FR,oc_FR,Occitan (Languedoc),oc_FR.zip
-pl,PL,pl_PL,Polish (Poland),pl_PL.zip
-pt,BR,pt_BR,Portuguese (Brazil),pt_BR.zip
-pt,PT,pt_PT,Portuguese (Portugal),pt_PT.zip
-ro,RO,ro_RO,Romanian (Romania),ro_RO.zip
-ru,RU,ru_RU,Russian (Russia),ru_RU.zip
-ru,RU,ru_RU_ye,Russian_ye (Russia),ru_RU_ye.zip
-ru,RU,ru_RU_yo,Russian_yo (Russia),ru_RU_yo.zip
-gd,GB,gd_GB,Scots Gaelic (Scotland),gd_GB.zip
-tn,ZA,tn_ZA,Setswana (Africa),tn_ZA.zip
-sk,SK,sk_SK,Slovak (Slovakia),sk_SK.zip
-sl,SI,sl_SI,Slovenian (Slovenia),sl_SI.zip
-st,ZA,st_ZA,Southern Sotho (South Africa),st_ZA.zip
-es,AR,es_AR,Spanish (Argentina),es_AR.zip
-es,BZ,es_HN,Spanish (Belize),es_HN.zip
-es,BO,es_BO,Spanish (Bolivia),es_BO.zip
-es,CL,es_CL,Spanish (Chile),es_CL.zip
-es,CO,es_CO,Spanish (Colombia),es_CO.zip
-es,CR,es_CR,Spanish (Costa Rica),es_CR.zip
-es,CU,es_CU,Spanish (Cuba),es_CU.zip
-es,DO,es_DO,Spanish (Dominican Republic),es_DO.zip
-es,EC,es_EC,Spanish (Ecuador),es_EC.zip
-es,SV,es_SV,Spanish (El Salvador),es_SV.zip
-es,GT,es_GT,Spanish (Guatemala),es_GT.zip
-es,MX,es_MX,Spanish (Mexico),es_MX.zip
-es,NI,es_NI,Spanish (Nicaragua),es_NI.zip
-es,PA,es_PA,Spanish (Panama),es_PA.zip
-es,PY,es_PY,Spanish (Paraguay),es_PY.zip
-es,PE,es_PE,Spanish (Peru),es_PE.zip
-es,PR,es_PR,Spanish (Puerto Rico),es_PR.zip
-es,ES,es_ES,Spanish (Spain),es_ES.zip
-es,UY,es_UY,Spanish (Uruguay),es_UY.zip
-es,VE,es_VE,Spanish (Venezuela),es_VE.zip
-ss,ZA,ss_ZA,Swati (South Africa),ss_ZA.zip
-sv,SE,sv_SE,Swedish (Sweden),sv_SE.zip
-ts,ZA,ts_ZA,Tsonga (South Africa),ts_ZA.zip
-uk,UA,uk_UA,Ukrainian (Ukraine),uk_UA.zip
-ur,PK,ur_PK,Urdu,ur_PK.zip
-ve,ZA,ve_ZA,Venda (South Africa),ve_ZA.zip
-vi,VN,vi_VN,Vietnamese (Viet-Nam),vi_VN.zip
-cy,GB,cy_GB,Welsh (Wales),cy_GB.zip
-xh,ZA,xh_ZA,Xhosa (South Africa),xh_ZA.zip
-zu,ZA,zu_ZA,Zulu (South Africa),zu_ZA.zip
diff --git a/pidgin/win32/nsis/create_nsis_translations.pl b/pidgin/win32/nsis/create_nsis_translations.pl
deleted file mode 100644
--- a/pidgin/win32/nsis/create_nsis_translations.pl
+++ /dev/null
@@ -1,401 +0,0 @@
-#!/usr/bin/perl
-#
-# create_nsis_translations.pl
-#
-# Copyright (C) 2000-2009 Bruno Coudoin
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, see <https://www.gnu.org/licenses/>.
-#
-
-use strict;
-
-sub usage {
-    print 'create_nsis_translations.pl translations installer tmp_dir
-  translations
-     This is an input file that contains all the
-     translated strings. If must be formatted as a GNU/Linux
-     desktop file and contains multiple strings entry.
-     For example you must have:
-     toBe=To be or not to be
-     toBe[fr]=Etre ou ne pas etre
-
-  installer
-     This is your nsis installer source file. You must include
-     in it the marker @INSERT_TRANSLATIONS@ before you use any
-     translation string.
-     After that you can use the variable $(toBe) in your file.
-
-  tmp_dir
-     This is a directory in which temporary files needed for
-     the translation system.
-     It will be created if non existent.
-     You can remove it once you have created your installer.
-';
-}
-
-my $translations;
-if (! $ARGV[0] || ! -f $ARGV[0])
-{
-    usage();
-}
-else
-{
-    $translations = $ARGV[0];
-}
-
-shift;
-my $installer;
-if (! $ARGV[0] || ! -f $ARGV[0])
-{
-    usage();
-}
-else
-{
-    $installer = $ARGV[0];
-}
-
-shift;
-my $tmp_dir;
-if (! $ARGV[0] )
-{
-    usage();
-}
-else
-{
-    $tmp_dir = $ARGV[0];
-
-    if ( ! -d $tmp_dir )
-    {
-	mkdir $tmp_dir or die "ERROR: '$tmp_dir' $!\n";
-    }
-}
-
-print "Processing translation file '$translations'\n";
-print "          NSIS source file  '$installer'\n";
-print "                Working dir '$tmp_dir'\n";
-
-# Commented out locales that are not available in nsis
-# Map value is ["NSISFilename", "Encoding", "LCID"]
-my %localeNames = (
-  "af" =>	["Afrikaans", "WINDOWS-1252", "1078"],
-#  "am" =>	["Amharic", "UTF-8"],
-  "ar" =>	["Arabic", "WINDOWS-1256", "1025"],
-  "be" =>	["Belarusian", "WINDOWS-1251", "1059"],
-  "bg" =>	["Bulgarian", "WINDOWS-1251", "1026"],
-  "bs" =>	["Bosnian", "WINDOWS-1250", "5146"],
-  "br" =>	["Breton", "WINDOWS-1252", "1150"],
-  "ca" =>	["Catalan", "WINDOWS-1252", "1027"],
-  "cs" =>	["Czech", "WINDOWS-1250", "1029"],
-  "cy" =>	["Welsh", "WINDOWS-1252", "1160"],
-  "da" =>	["Danish", "WINDOWS-1252", "1030"],
-  "de" =>	["German", "WINDOWS-1252", "1031"],
-#  "dz" =>	["Dzongkha", "UTF-8"],
-  "el" =>	["Greek", "WINDOWS-1253", "1032"],
-  "en" =>	["English", "WINDOWS-1252", "1033"],
-  "eo" =>	["Esperanto", "WINDOWS-1252", "9998"],
-  "es" =>	["Spanish", "WINDOWS-1252", "1034"],
-  "et" =>	["Estonian", "WINDOWS-1257", "1061"],
-  "eu" =>	["Basque", "WINDOWS-1252", "1069"],
-#Some values in the farsi translation can't be represented in what iconv thinks is WINDOWS-1256, so we disable it
-#  "fa" =>	["Farsi", "WINDOWS-1256", "1065"],
-  "fi" =>	["Finnish", "WINDOWS-1252", "1035"],
-  "fr" =>	["French", "WINDOWS-1252", "1036"],
-  "ga" =>	["Irish", "WINDOWS-1252", "2108"],
-  "gl" =>	["Galician", "WINDOWS-1252", "1110"],
-#  "gu" =>	["Gujarati", "UTF-8"],
-  "he" =>	["Hebrew", "WINDOWS-1255", "1037"],
-#  "hi" =>	["Hindi", "UTF-8"],
-  "hr" =>	["Croatian", "WINDOWS-1250", "1050"],
-  "hu" =>	["Hungarian", "WINDOWS-1250", "1038"],
-  "id" =>	["Indonesian", "WINDOWS-1252", "1057"],
-  "is" =>	["Icelandic", "WINDOWS-1252", "15"], #This should be 1039!
-  "it" =>	["Italian", "WINDOWS-1252", "1040"],
-  "ja" =>	["Japanese", "CP932", "1041"],
-#  "ka" =>	["Georgian", "UTF-8"],
-  "ko" =>	["Korean", "CP949", "1042"],
-  "ku" =>	["Kurdish", "WINDOWS-1254", "9999"],
-  "lb" =>	["Luxembourgish", "WINDOWS-1252", "4103"],
-  "lt" =>	["Lithuanian", "WINDOWS-1257", "1063"],
-  "lv" =>	["Latvian", "WINDOWS-1257", "1062"],
-  "mk" =>	["Macedonian", "WINDOWS-1251", "1071"],
-#  "ml" =>	["Malayalam", "UTF-8"],
-#  "mr" =>	["Marathi", "UTF-8"],
-  "mn" =>	["Mongolian", "WINDOWS-1251", "1104"],
-  "ms" =>	["Malay", "WINDOWS-1252", "1086"],
-  "nb" =>	["Norwegian", "WINDOWS-1252", "1044"],
-#  "ne" =>	["Nepal", "UTF-8"],
-  "nl" =>	["Dutch", "WINDOWS-1252", "1043"],
-  "nn" =>	["NorwegianNynorsk", "WINDOWS-1252", "2068"],
-#  "oc" =>	["Occitan", "WINDOWS-1252"],
-#  "pa" =>	["Punjabi", "UTF-8"],
-  "pl" =>	["Polish", "WINDOWS-1250", "1045"],
-  "pt" =>	["Portuguese", "WINDOWS-1252", "2070"],
-  "pt_BR" =>	["PortugueseBR", "WINDOWS-1252", "1046"],
-  "ro" =>	["Romanian", "WINDOWS-1250", "1048"],
-  "ru" =>	["Russian", "WINDOWS-1251", "1049"],
-#  "rw" =>	["Kinyarwanda", "UTF-8"],
-  "sk" =>	["Slovak", "WINDOWS-1250", "1051"],
-  "sl" =>	["Slovenian", "WINDOWS-1250", "1060"],
-#  "so" =>	["Somali", "UTF-8"],
-  "sq" =>	["Albanian", "WINDOWS-1252", "1052"],
-  "sr" =>	["Serbian", "WINDOWS-1251", "3098"],
-  "sr\@latin" =>	["SerbianLatin", "WINDOWS-1250", "2074"],
-  "sv" =>	["Swedish", "WINDOWS-1252", "1053"],
-#  "ta" =>	["Tamil", "UTF-8"],
-  "th" =>	["Thai", "WINDOWS-874", "1054"],
-  "tr" =>	["Turkish", "WINDOWS-1254", "1055"],
-  "uk" =>	["Ukrainian", "WINDOWS-1251", "1058"],
-  "uz" =>	["Uzbek", "WINDOWS-1252", "1091"],
-#  "ur" =>	["Urdu", "UTF-8"],
-#  "vi" =>	["Vietnamese", "WINDOWS-1258"],
-#  "wa" =>	["Walloon", "WINDOWS-1252"],
-  "zh_CN" =>	["SimpChinese", "WINDOWS-936", "2052"],
-  "zh_TW" =>	["TradChinese", "CP950", "1028"],
-);
-
-my @localeKeys = keys(%localeNames);
-
-# Create the holder for the results
-# %result{"locale"}{"stringname"} = result line
-print "Parsing nsis_translations.desktop\n";
-my %result;
-
-# Create a hash of the keys to translate
-open (MYFILE, $translations);
-while (<MYFILE>) {
-    chomp $_;
-    if ($_ =~ /^Encoding=UTF-8/ || $_ =~ /^\s*$/ || $_ =~ /^\[Desktop Entry\]/ || $_ =~ /^#/)
-    {
-        next;
-    }
-    elsif ($_ =~ /^(\w+)=(.*)/)
-    {
-        my $key = $1;
-        my $lang = "en";
-        my $value = $2;
-        $value =~ s/["]/\$\\"/g;
-        $result{"$lang"}{"$key"} = "!define $key \"$value\"\n";
-    }
-    elsif ($_ =~ /^(\w+)\[([\w@]+)\]=(.*)/)
-    {
-        my $key = $1;
-        my $lang = $2;
-        my $value = $3;
-        $value =~ s/["]/\$\\"/g;
-        $result{"$lang"}{"$key"} = "!define $key \"$value\"\n";
-    }
-    else
-    {
-        print "Found unrecognized line: '$_'\n";
-    }
-}
-close (MYFILE);
-
-# Lets insert the default languages
-# in the installer file which means replacing:
-#   @INSERTMACRO_MUI_LANGUAGE@
-# By the list of locales:
-#   !insertmacro MUI_LANGUAGE "French"
-
-my $muiLanguages;
-$muiLanguages = '
-  ;; English goes first because its the default. The rest are
-  ;; in alphabetical order (at least the strings actually displayed
-  ;; will be).
-  !insertmacro MUI_LANGUAGE "English"
-';
-
-# The specific GCompris translation for the installer
-# replacing:
-#   @GCOMPRIS_MACRO_INCLUDE_LANGFILE@
-# By the list of locales:
-#   !insertmacro GCOMPRIS_MACRO_INCLUDE_LANGFILE "ALBANIAN" "${GCOMPRIS_NSIS_INCLUDE_PATH}\translations\albanian.nsh"
-
-my $gcomprisLanguages;
-
-$gcomprisLanguages .= '
-;--------------------------------
-;Translations
-  !define GCOMPRIS_DEFAULT_LANGFILE "${GCOMPRIS_NSIS_INCLUDE_PATH}\\translations\\en.nsh"
-;;
-;; Windows GCompris NSIS installer language macros
-;;
-
-!macro GCOMPRIS_MACRO_DEFAULT_STRING LABEL VALUE
-  !ifndef "${LABEL}"
-    !define "${LABEL}" "${VALUE}"
-    !ifdef INSERT_DEFAULT
-      !warning "${LANG} lang file missing ${LABEL}, using default..."
-    !endif
-  !endif
-!macroend
-
-!macro GCOMPRIS_MACRO_LANGSTRING_INSERT LABEL LANG
-  LangString "${LABEL}" "${LANG_${LANG}}" "${${LABEL}}"
-  !undef "${LABEL}"
-!macroend
-
-!macro GCOMPRIS_MACRO_LANGUAGEFILE_BEGIN LANG
-  !define CUR_LANG "${LANG}"
-!macroend
-';
-
-
-# GCOMPRIS_MACRO_LANGUAGEFILE_END
-$gcomprisLanguages .= '
-!macro GCOMPRIS_MACRO_LANGUAGEFILE_END
-  !define INSERT_DEFAULT
-  !include "${GCOMPRIS_DEFAULT_LANGFILE}"
-  !undef INSERT_DEFAULT
-
-  ; String labels should match those from the default language file.
-';
-
-my $text_en = $result{"en"};
-foreach my $keyEn (keys(%$text_en)) {
-    $gcomprisLanguages .= "  !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT $keyEn \${CUR_LANG}";
-    $gcomprisLanguages .= "\n";
-}
-
-$gcomprisLanguages .= '
-  !undef CUR_LANG
-!macroend
-';
-
-$gcomprisLanguages .= '
-!macro GCOMPRIS_MACRO_INCLUDE_LANGFILE LANG FILE
-  !insertmacro GCOMPRIS_MACRO_LANGUAGEFILE_BEGIN "${LANG}"
-  !include "${FILE}"
-  !insertmacro GCOMPRIS_MACRO_LANGUAGEFILE_END
-!macroend
-';
-
-#
-# Create each nsh translation file
-#
-
-print "Creating the nsh default file\n";
-open (DESC, ">$tmp_dir/en.nsh");
-print DESC ";; Auto generated file by create_nsis_translations.pl\n";
-foreach my $keyEn (keys(%$text_en)) {
-    my $line = $result{'en'}{$keyEn};
-    $line =~ s/!define /!insertmacro GCOMPRIS_MACRO_DEFAULT_STRING /;
-    print DESC $line;
-}
-close DESC;
-
-$gcomprisLanguages .= "  !insertmacro GCOMPRIS_MACRO_INCLUDE_LANGFILE".
-    " \"ENGLISH\"".
-   " \"\${GCOMPRIS_NSIS_INCLUDE_PATH}\\translations\\en.nsh\"\n";
-
-my $selectTranslationFunction = '
-!macro SELECT_TRANSLATION_SECTION LANG_NAME LANG_CODE
-  StrCmp "$LANGUAGE" "${LANG_${LANG_NAME}}" 0 end_${LANG_CODE}
-  !insertmacro SelectSection ${SecLang_${LANG_CODE}}
-  Goto done
-  end_${LANG_CODE}:
-!macroend
-; Convert the current $LANGUAGE to a language code that we can use for translation mo selection
-; If there\'s a better way to do this, I\'d love to know it
-!macro SELECT_TRANSLATION_FUNCTION
-';
-
-#
-# Two pass are needed:
-# - create the utf8 file
-# - transform it to the proper windows locale
-#
-print "Creating the nsh locale files\n";
-foreach my $lang (@localeKeys) {
-    if ( $lang eq "en" ) { next; }
-    open (DESC, ">$tmp_dir/$lang.nsh.utf8");
-    print DESC ";; Auto generated file by create_nsis_translations.pl\n";
-    print DESC ";; Code Page: $localeNames{$lang}[1]\n";
-
-    my $text_locale = $result{"$lang"};
-    my $total_key_count = 0;
-    my $found_key_count = 0;
-    foreach my $keyEn (keys(%$text_en)) {
-	my $found = 0;
-	$total_key_count++;
-	foreach my $keyLocale (keys(%$text_locale)) {
-	    # Fine, we found a translation
-	    if ( $keyLocale eq $keyEn )
-	    {
-		print DESC "$result{$lang}{$keyLocale}";
-		$found = 1;
-		$found_key_count++;
-		last;
-	    }
-	}
-	# English keys are the reference.
-	# If not found they are inserted
-	#if ( ! $found )
-	#{
-	#    print DESC "$result{'en'}{$keyEn}";
-	#}
-    }
-    close DESC;
-
-    # If we have at least 50% of the keys found, include the language
-    if (($found_key_count * 1.0 / $total_key_count) >= 0.5) {
-        $muiLanguages .= "  !insertmacro MUI_LANGUAGE \"$localeNames{$lang}[0]\"\n";
-        $gcomprisLanguages .= "  !insertmacro GCOMPRIS_MACRO_INCLUDE_LANGFILE".
-            " \"". uc($localeNames{$lang}[0]) . "\"".
-            " \"\${GCOMPRIS_NSIS_INCLUDE_PATH}\\translations\\$lang.nsh\"\n";
-        $selectTranslationFunction .= "  !insertmacro SELECT_TRANSLATION_SECTION".
-            " \"" . uc($localeNames{$lang}[0]) . "\" \"$lang\"\n";
-    } else {
-        print "Ignoring language $lang because it is less than 50% translated ($found_key_count of $total_key_count).\n";
-        next;
-    }
-
-
-    # iconv conversion
-    system("iconv -f UTF-8 -t $localeNames{$lang}[1] $tmp_dir/$lang.nsh.utf8 > $tmp_dir/$lang.nsh");
-    if ($? ne 0)
-    {
-	die("ERROR: Failed to run: iconv -f UTF-8 -t $localeNames{$lang}[1] $lang.nsh.utf8 > $lang.nsh\n");
-    }
-    #`rm $tmp_dir/$lang.nsh.utf8`;
-
-}
-
-$selectTranslationFunction .= '
-done:
-!macroend
-';
-
-# We have all the data, let's replace it
-my $gcomprisInstaller;
-open (MYFILE, $installer);
-while (<MYFILE>) {
-    if ($_ =~ /\@INSERT_TRANSLATIONS\@/)
-    {
-	print "Processing \@INSERT_TRANSLATIONS\@\n";
-	$gcomprisInstaller .= $muiLanguages;
-	$gcomprisInstaller .= $gcomprisLanguages;
-	$gcomprisInstaller .= $selectTranslationFunction;
-    }
-    else
-    {
-	$gcomprisInstaller .= "$_";
-    }
-}
-close (MYFILE);
-
-# Rewrite the file with the replaced data
-open (MYFILE, ">$installer");
-print MYFILE "$gcomprisInstaller";
-close (MYFILE);
diff --git a/pidgin/win32/nsis/generate_gtk_zip.sh b/pidgin/win32/nsis/generate_gtk_zip.sh
deleted file mode 100755
--- a/pidgin/win32/nsis/generate_gtk_zip.sh
+++ /dev/null
@@ -1,483 +0,0 @@
-#!/bin/bash
-# Script to generate zip file for GTK+ runtime to be included in Pidgin installer
-
-PIDGIN_BASE=`pwd`
-PIDGIN_BASE="$PIDGIN_BASE/../../.."
-GPG_SIGN=$1
-
-if [ ! -e $PIDGIN_BASE/ChangeLog ]; then
-	echo "Pidgin base directory not found"
-	exit 1
-fi
-
-if [ ! -e $PIDGIN_BASE/VERSION ]; then
-	cd ../../..
-	make -f Makefile.mingw VERSION
-	cd - > /dev/null
-fi
-
-STAGE_DIR=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis/gtk_runtime_stage`
-#Subdirectory of $STAGE_DIR
-INSTALL_DIR=Gtk
-SRC_INSTALL_DIR=src_install
-CONTENTS_FILE=$INSTALL_DIR/CONTENTS
-PIDGIN_VERSION=$( < $PIDGIN_BASE/VERSION )
-
-#This needs to be changed every time there is any sort of change.
-BUNDLE_VERSION=2.24.18.0
-BUNDLE_SHA1SUM="5957b0bf3f5e520863cf8ba64db7592383e9dd42"
-ZIP_FILE="$PIDGIN_BASE/pidgin/win32/nsis/gtk-runtime-$BUNDLE_VERSION.zip"
-SRC_ZIP_FILE="$PIDGIN_BASE/pidgin/win32/nsis/gtk-runtime-$BUNDLE_VERSION-src.zip"
-#BUNDLE_URL="https://pidgin.im/win32/download_redir.php?version=$PIDGIN_VERSION&gtk_version=$BUNDLE_VERSION&dl_pkg=gtk"
-BUNDLE_URL="https://pidgin.im/~twasilczyk/win32/gtk-runtime-$BUNDLE_VERSION.zip"
-
-if [ "x`uname`" == "xLinux" ]; then
-	is_win32="no"
-else
-	is_win32="yes"
-fi
-
-function download() {
-	if [ -e "$2" ]; then
-		echo "File exists"
-		exit 1
-	fi
-	failed=0
-	wget -t 5 "$1" -O "$2" -o "wget.log" --retry-connrefused --waitretry=5 \
-		|| failed=1
-	if [ $failed != 0 ] ; then
-		if [ "$3" != "quiet" ] ; then
-			echo "Download failed"
-			cat "wget.log"
-		fi
-		rm "wget.log"
-		rm -f "$2"
-		return 1
-	fi
-	rm "wget.log"
-	return 0
-}
-
-#Download the existing file (so that we distribute the exact same file for all releases with the same bundle version)
-FILE="$ZIP_FILE"
-if [ ! -e "$FILE" ]; then
-	echo "Downloading the existing file"
-	download "$BUNDLE_URL" "$FILE" "quiet"
-fi
-if [ -e "$FILE" ]; then
-	CHECK_SHA1SUM=`sha1sum $FILE`
-	CHECK_SHA1SUM=${CHECK_SHA1SUM%%\ *}
-else
-	CHECK_SHA1SUM=
-fi
-if [ "$CHECK_SHA1SUM" != "$BUNDLE_SHA1SUM" ]; then
-	if [ "x$CHECK_SHA1SUM" != "x" ]; then
-		echo "sha1sum ($CHECK_SHA1SUM) for $FILE doesn't match expected value of $BUNDLE_SHA1SUM"
-	fi
-	# Allow "devel" versions to build their own bundles if the download doesn't succeed
-	if [[ "$PIDGIN_VERSION" == *"devel" ]]; then
-		echo "Continuing GTK+ Bundle creation for development version of Pidgin"
-	else
-		echo "Couldn't download GTK+ Bundle"
-		exit 1
-	fi
-else
-	echo "GTK+ Bundle is up to date"
-	exit 0
-fi
-
-# origin: http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_12.3/noarch/
-DOWNLOAD_HOST="https://pidgin.im/~twasilczyk/win32/runtime-deps/"
-
-ALL=""
-#Format for packages is "binary_url name version binary_validation src_url src_validation"
-#TODO: Fix packages SRC handling
-
-ARC_ATK="${DOWNLOAD_HOST}mingw32-atk-2.8.0-1.5.noarch.rpm ATK 2.8.0-1.5 sha1sum:0c682eadc299963aaa5d7998d655e46ead7d7515"
-ALL+="ARC_ATK "
-
-ARC_CAIRO2="${DOWNLOAD_HOST}mingw32-libcairo2-1.10.2-8.12.noarch.rpm Cairo 1.10.2-8.12 sha1sum:e33c58603678a8ba113bffe282bec810bd70172e"
-ALL+="ARC_CAIRO2 "
-
-ARC_DBUS="${DOWNLOAD_HOST}mingw32-dbus-1-1.8.0-1.19.noarch.rpm D-Bus 1.8.0-1.19 sha1sum:c951d935f58212abb70ba5edf1794390f8434832"
-ALL+="ARC_DBUS "
-
-ARC_DBUS_GLIB="${DOWNLOAD_HOST}mingw32-dbus-1-glib-0.100.2-1.2.noarch.rpm dbus-glib 0.100.2-1.2 sha1sum:72d27c0c01ce3e94e4dddc653c6ac0544c28362f"
-ALL+="ARC_DBUS_GLIB "
-
-ARC_ENCHANT="${DOWNLOAD_HOST}mingw32-enchant-1.6.0-3.9.noarch.rpm Enchant 1.6.0-3.9 sha1sum:a8569c8dcc77f69d065320388fca822ef5bf1fe5"
-ALL+="ARC_ENCHANT "
-
-ARC_FONTCONFIG="${DOWNLOAD_HOST}mingw32-fontconfig-2.10.92-1.2.noarch.rpm fontconfig 2.10.92-1.2 sha1sum:d8da351f5d4d9816f02ac5287dd7887c711902ed"
-ALL+="ARC_FONTCONFIG "
-
-ARC_FREETYPE="${DOWNLOAD_HOST}mingw32-freetype-2.4.12-3.10.noarch.rpm freetype 2.4.12-3.10 sha1sum:d0c8fc8ba3785f5445a429ae7b6a3fce6d1f0333"
-ALL+="ARC_FREETYPE "
-
-ARC_GDK_PIXBUF="${DOWNLOAD_HOST}mingw32-gdk-pixbuf-2.28.0-1.2.noarch.rpm gdk-pixbuf 2.28.0-1.2 sha1sum:8673e06c3a838e47a093043bf86bb62ea3627fe0"
-ALL+="ARC_GDK_PIXBUF "
-
-ARC_GEOCLUE="${DOWNLOAD_HOST}mingw32-libgeoclue-0.12.99-1.10.noarch.rpm Geoclue 0.12.99-1.10 sha1sum:84410ca9a6d2fac46217c51e22ebbc5ac3cae040"
-ALL+="ARC_GEOCLUE "
-
-ARC_GLIB="${DOWNLOAD_HOST}mingw32-glib2-2.38.0-1.4.noarch.rpm Glib 2.38.0-1.4 sha1sum:e71d8c2f105548e752df4a0b6ba5958ab4826707"
-ALL+="ARC_GLIB "
-
-ARC_GNUTLS="${DOWNLOAD_HOST}mingw32-libgnutls-3.1.22-1.3.noarch.rpm GnuTLS 3.1.22-1.3 sha1sum:e744435362f4124210a7b70d75f154b7ac0bf1fd"
-ALL+="ARC_GNUTLS "
-
-ARC_GNUTLS_GCRYPT="${DOWNLOAD_HOST}mingw32-libgcrypt-1.6.0-2.4.noarch.rpm libgcrypt 1.6.0-2.4 sha1sum:1d6ce973a866d93dc083888b19d64a7891ff224f"
-ALL+="ARC_GNUTLS_GCRYPT "
-
-ARC_GNUTLS_GPGERR="${DOWNLOAD_HOST}mingw32-libgpg-error-1.12-2.5.noarch.rpm gpg-error 1.12-2.5 sha1sum:af3a21a58fce483196e882ab1bf801203535f46e"
-ALL+="ARC_GNUTLS_GPGERR "
-
-ARC_GTK2="${DOWNLOAD_HOST}mingw32-gtk2-2.24.18-3.4.noarch.rpm GTK+ 2.24.18-3.4 sha1sum:31bc7f8aa2222517a3ec614924a07432983dc20d"
-ALL+="ARC_GTK2 "
-
-ARC_LIBFFI="${DOWNLOAD_HOST}mingw32-libffi-3.0.13-2.2.noarch.rpm libffi 3.0.13-2.2 sha1sum:0751dddb44eba3f553534c0a2a8ed438ed84a793"
-ALL+="ARC_LIBFFI "
-
-ARC_LIBGADU="${DOWNLOAD_HOST}mingw32-libgadu-1.12.0rc3-6.1.noarch.rpm libgadu 1.12.0rc3-6.1 sha1sum:ec2f3ccbc850c29bb26318a46ccba4db39b0a328"
-ALL+="ARC_LIBGADU "
-
-ARC_LIBGCC="${DOWNLOAD_HOST}mingw32-libgcc-4.8.2-3.7.noarch.rpm libgcc 4.8.2-3.7 sha1sum:91ab8f6881ce1004dda5279920742f78743e897b"
-ALL+="ARC_LIBGCC "
-
-ARC_LIBGMP="${DOWNLOAD_HOST}mingw32-libgmp-5.0.5-2.2.noarch.rpm libgmp 5.0.5-2.2 sha1sum:30c8c403d4d2dead7674e567d83c8c069b603e49"
-ALL+="ARC_LIBGMP "
-
-ARC_LIBGNURX="${DOWNLOAD_HOST}mingw32-libgnurx-2.5-4.6.noarch.rpm libgnurx 2.5-4.6 sha1sum:51571e6b1e5e9fb865c110cae04c582ff3c44cb7"
-ALL+="ARC_LIBGNURX "
-
-ARC_LIBHB="${DOWNLOAD_HOST}mingw32-libharfbuzz-0.9.19-3.5.noarch.rpm libharfbuzz 0.9.19-3.5 sha1sum:a31cd8ed4a7a8b75cf7b1252706f79b19e612d68"
-ALL+="ARC_LIBHB "
-
-ARC_LIBHOGWEED="${DOWNLOAD_HOST}mingw32-libhogweed-2.7-2.2.noarch.rpm libhogweed 2.7-2.2 sha1sum:c22ea84a8a5037be6021f9494b8252861dee63b5"
-ALL+="ARC_LIBHOGWEED "
-
-ARC_LIBJASPER="${DOWNLOAD_HOST}mingw32-libjasper-1.900.1-6.6.noarch.rpm JasPer 1.900.1-6.6 sha1sum:1a0f0072e0b0f73bd8d4e26aed93baa10d77e504"
-ALL+="ARC_LIBJASPER "
-
-ARC_LIBICU="${DOWNLOAD_HOST}mingw32-libicu-51.1-2.3.noarch.rpm ICU 51.1-2.3 sha1sum:c259c9d7f9f58934ebb49ecc80b15b7492e5a245"
-ALL+="ARC_LIBICU "
-
-ARC_LIBIDN="${DOWNLOAD_HOST}mingw32-libidn-1.22-3.8.noarch.rpm libidn 1.22-3.8 sha1sum:2052ea6fc2e789b2c252f621a7134ea4286cf5cc"
-ALL+="ARC_LIBIDN "
-
-ARC_LIBINTL="${DOWNLOAD_HOST}mingw32-libintl-0.18.1.1-15.11.noarch.rpm libintl 0.18.1.1-15.11 sha1sum:29812544f7362dde1378f71feb31fed4f9cb640e"
-ALL+="ARC_LIBINTL "
-
-ARC_LIBJPEG="${DOWNLOAD_HOST}mingw32-libjpeg-8d-3.6.noarch.rpm libjpeg 8d-3.6 sha1sum:db85723377243045388a5d3c873262cd83ffa7e2"
-ALL+="ARC_LIBJPEG "
-
-ARC_LIBJSON="${DOWNLOAD_HOST}mingw32-libjson-glib-0.14.2-2.1.noarch.rpm json-glib 0.14.2-2.1 sha1sum:366bf545855ced7fdfefc57b75ef7bbb5ebc249b"
-ALL+="ARC_LIBJSON "
-
-ARC_LIBLZMA="${DOWNLOAD_HOST}mingw32-liblzma-5.0.4-1.6.noarch.rpm liblzma 5.0.4-1.6 sha1sum:67bad5204ae09d163f799adec3286fff297e3bc8"
-ALL+="ARC_LIBLZMA "
-
-ARC_LIBNETTLE="${DOWNLOAD_HOST}mingw32-libnettle-2.7-2.2.noarch.rpm libnettle 2.7-2.2 sha1sum:45337e6ccb46c0752d2761b6c48a20e97dd09195"
-ALL+="ARC_LIBNETTLE "
-
-ARC_LIBP11="${DOWNLOAD_HOST}mingw32-libp11-kit0-0.20.1-4.3.noarch.rpm libp11 0.20.1-4.3 sha1sum:ee5b7a3e16b29f26ee1c275d8228ba0bb6a27190"
-ALL+="ARC_LIBP11 "
-
-ARC_LIBPNG="${DOWNLOAD_HOST}mingw32-libpng-1.5.17-2.11.noarch.rpm libpng 1.5.17-2.11 sha1sum:ff2c29197b5529d2cdc936f7b2b61af5c1175d29"
-ALL+="ARC_LIBPNG "
-
-ARC_LIBSILC="${DOWNLOAD_HOST}mingw32-libsilc-1.1.10-2.1.noarch.rpm libsilc 1.1.10-2.1 sha1sum:b7690eac1a91caf2b02b058483a3768705a6f3df"
-ALL+="ARC_LIBSILC "
-
-ARC_LIBSILCCL="${DOWNLOAD_HOST}mingw32-libsilcclient-1.1.10-2.1.noarch.rpm libsilcclient 1.1.10-2.1 sha1sum:88b84ff4c43643ce4b8ec1eb345e73c139cc164a"
-ALL+="ARC_LIBSILCCL "
-
-ARC_LIBSOUP="${DOWNLOAD_HOST}mingw32-libsoup-2.42.2-1.1.noarch.rpm libsoup 2.42.2-1.1 sha1sum:f0af29ceb420daaa549dd5dc470fbd62bc732252"
-ALL+="ARC_LIBSOUP "
-
-ARC_LIBSSP="${DOWNLOAD_HOST}mingw32-libssp-4.8.2-3.7.noarch.rpm LibSSP 4.8.2-3.7 sha1sum:bc42038985d5c75dd3b1511849db2c9f80dbbd7e"
-ALL+="ARC_LIBSSP "
-
-ARC_LIBSTDCPP="${DOWNLOAD_HOST}mingw32-libstdc++-4.8.2-3.7.noarch.rpm libstdc++ 4.8.2-3.7 sha1sum:1f9779c16afb0bbfab6dc79389cf6f6198292062"
-ALL+="ARC_LIBSTDCPP "
-
-ARC_LIBTASN="${DOWNLOAD_HOST}mingw32-libtasn1-3.3-3.2.noarch.rpm libtasn 3.3-3.2 sha1sum:3d5bb0df8eb7ed5e3f05b5378d3d61dbbbdbbd3f"
-ALL+="ARC_LIBTASN "
-
-ARC_LIBTIFF="${DOWNLOAD_HOST}mingw32-libtiff-4.0.2-1.6.noarch.rpm libtiff 4.0.2-1.6 sha1sum:3a082540386748ead608d388ce55a0c1dd28715d"
-ALL+="ARC_LIBTIFF "
-
-ARC_LIBXML="${DOWNLOAD_HOST}mingw32-libxml2-2.9.0-2.1.noarch.rpm libxml 2.9.0-2.1 sha1sum:de73090544effcd167f94fcfe8e2d1f005adbea7"
-ALL+="ARC_LIBXML "
-
-ARC_LIBXSLT="${DOWNLOAD_HOST}mingw32-libxslt-1.1.28-1.2.noarch.rpm libxslt 1.1.28-1.2 sha1sum:6ee150c6271edded95f92285f59d02c2896e459e"
-ALL+="ARC_LIBXSLT "
-
-ARC_MEANW="${DOWNLOAD_HOST}mingw32-meanwhile-1.0.2-3.2.noarch.rpm Meanwhile 1.0.2-3.2 sha1sum:6b0fd8d94205d80eba37ea3e3f19ded7a1297473"
-ALL+="ARC_MEANW "
-
-ARC_MOZNSS="${DOWNLOAD_HOST}mingw32-mozilla-nss-3.14.5-3.9.noarch.rpm NSS 3.14.5-3.9 sha1sum:434bcb5073bae6d16ab248280b2b033507d20453"
-ALL+="ARC_MOZNSS "
-
-ARC_MOZNSPR="${DOWNLOAD_HOST}mingw32-mozilla-nspr-4.10.2-2.8.noarch.rpm NSPR 4.10.2-2.8 sha1sum:ca61d4453042725e4f700a4b51859dc5f58110c4"
-ALL+="ARC_MOZNSPR "
-
-ARC_NCURSES="${DOWNLOAD_HOST}mingw32-ncurses-5.9-20140422.1.noarch.rpm ncurses 5.9-20140422.1 sha1sum:4873c22e5f67d0bc72bbb89b71a3967bce6067e0"
-ALL+="ARC_NCURSES "
-
-ARC_PANGO="${DOWNLOAD_HOST}mingw32-pango-1.34.0-2.3.noarch.rpm Pango 1.34.0-2.3 sha1sum:65b55b73c4f5c8107fdf48ef2e4f5c351189cd4f"
-ALL+="ARC_PANGO "
-
-ARC_PIXMAN="${DOWNLOAD_HOST}mingw32-pixman-0.30.0-3.10.noarch.rpm pixman 0.30.0-3.10 sha1sum:ed63261f29c356a58276435df013376e688a3a6b"
-ALL+="ARC_PIXMAN "
-
-ARC_PROTOBUFC="${DOWNLOAD_HOST}mingw32-protobuf-c-0.15-6.1.noarch.rpm protobuf-c 0.15-6.1 sha1sum:b58ef0aca3c99d956479ec1510e3ca62d79a443f"
-ALL+="ARC_PROTOBUFC "
-
-ARC_PTHREADS="${DOWNLOAD_HOST}mingw32-pthreads-2.8.0-14.6.noarch.rpm pthreads 2.8.0-14.6 sha1sum:e948ae221f82bbcb4fbfd991638e4170c150fe9f"
-ALL+="ARC_PTHREADS "
-
-ARC_SQLITE="${DOWNLOAD_HOST}mingw32-libsqlite3-0-3.8.4.1-1.4.noarch.rpm SQLite 3.8.4.1-1.4 sha1sum:1c42db1a48f616d824c3ae8e0a8eb0693ddac88f"
-ALL+="ARC_SQLITE "
-
-ARC_VV_FARST="${DOWNLOAD_HOST}mingw32-farstream-0.1.2-5.3.noarch.rpm farstream 0.1.2-5.3 sha1sum:0334213ece2f339cba38aff9290ef07238763c5c"
-ALL+="ARC_VV_FARST "
-
-ARC_VV_GST="${DOWNLOAD_HOST}mingw32-gstreamer-0.10.36-6.3.noarch.rpm GStreamer 0.10.36-6.3 sha1sum:3fd80dfc05c64f277d787c60799638701e0f058e"
-ALL+="ARC_VV_GST "
-
-ARC_VV_GST_LIB="${DOWNLOAD_HOST}mingw32-libgstreamer-0.10.36-6.3.noarch.rpm GStreamer-libgstreamer 0.10.36-6.3 sha1sum:eef44d1ff93f0c2ddffdbaecc65f08a5617b4724"
-ALL+="ARC_VV_GST_LIB "
-
-ARC_VV_GST_INT="${DOWNLOAD_HOST}mingw32-libgstinterfaces-0.10.36-5.4.noarch.rpm GStreamer-interfaces 0.10.36-5.4 sha1sum:d974b38c1da02191103c253e27a15ec7f160000f"
-ALL+="ARC_VV_GST_INT "
-
-ARC_VV_GST_PLBAD="${DOWNLOAD_HOST}mingw32-gst-plugins-bad-0.10.23-5.4.noarch.rpm GStreamer-plugins-bad 0.10.23-5.4 sha1sum:d2754a1358edab0c06b4038123274025f58af6ef"
-ALL+="ARC_VV_GST_PLBAD "
-
-ARC_VV_GST_PLBASE="${DOWNLOAD_HOST}mingw32-gst-plugins-base-0.10.36-5.4.noarch.rpm GStreamer-plugins-base 0.10.36-5.4 sha1sum:9e642d5a1e71dfeaa5b38b7ebf0ade4442ee763b"
-ALL+="ARC_VV_GST_PLBASE "
-
-ARC_VV_GST_PLGOOD="${DOWNLOAD_HOST}mingw32-gst-plugins-good-0.10.31-5.4.noarch.rpm GStreamer-plugins-good 0.10.31-5.4 sha1sum:3e0daa815e4d51749fc6d2e9353245d09ee9854d"
-ALL+="ARC_VV_GST_PLGOOD "
-
-ARC_VV_LIBNICE="${DOWNLOAD_HOST}mingw32-libnice-0.1.4-5.3.noarch.rpm libnice 0.1.4-5.3 sha1sum:abbabaa03d81202f2d78adca2b833d1072dfecf0"
-ALL+="ARC_VV_LIBNICE "
-
-ARC_VV_LIBOGG="${DOWNLOAD_HOST}mingw32-libogg-1.3.0-1.8.noarch.rpm libogg 1.3.0-1.8 sha1sum:1978cbd5148630fc95d4a6b1c5024f76f519fcd4"
-ALL+="ARC_VV_LIBOGG "
-
-ARC_VV_LIBTHEORA="${DOWNLOAD_HOST}mingw32-libtheora-1.1.1-5.8.noarch.rpm libtheora 1.1.1-5.8 sha1sum:9809978e4e7c0a620dd735218bb1bd317fe32149"
-ALL+="ARC_VV_LIBTHEORA "
-
-ARC_VV_LIBVORBIS="${DOWNLOAD_HOST}mingw32-libvorbis-1.3.3-1.8.noarch.rpm libvorbis 1.3.3-1.8 sha1sum:c9efd698ed62c26cf62442dafc2d9d2dcbcd651c"
-ALL+="ARC_VV_LIBVORBIS "
-
-ARC_ZLIB="${DOWNLOAD_HOST}mingw32-zlib-1.2.8-2.6.noarch.rpm zlib 1.2.8-2.6 sha1sum:bb75b2a341309eb75daacb93d43d6c072c71923c"
-ALL+="ARC_ZLIB "
-
-mkdir -p $STAGE_DIR
-mkdir -p $STAGE_DIR/src
-cd $STAGE_DIR
-
-rm -rf $INSTALL_DIR
-mkdir $INSTALL_DIR
-
-rm -rf $SRC_INSTALL_DIR
-mkdir $SRC_INSTALL_DIR
-
-#new CONTENTS file
-echo Bundle Version $BUNDLE_VERSION > $CONTENTS_FILE
-
-if [ $is_win32 = "yes" ]; then
-CPIO_URL="https://pidgin.im/~twasilczyk/win32/devel-deps/cpio/bsdcpio-3.0.3-1.4.tar.gz"
-CPIO_SHA1SUM="0460c7a52f8c93d3c4822d6d1aaf9410f21bd4da"
-CPIO_DIR="bsdcpio"
-FILE="bsdcpio.tar.gz"
-if [ ! -e "$FILE" ]; then
-	echo "Downloading bsdcpio"
-	download "$CPIO_URL" "$FILE" || exit 1
-fi
-CHECK_SHA1SUM=`sha1sum $FILE`
-CHECK_SHA1SUM=${CHECK_SHA1SUM%%\ *}
-if [ "$CHECK_SHA1SUM" != "$CPIO_SHA1SUM" ]; then
-	echo "sha1sum ($CHECK_SHA1SUM) for $FILE doesn't match expected value of $CPIO_SHA1SUM"
-	rm $FILE
-	exit 1
-fi
-rm -rf "$CPIO_DIR"
-mkdir "$CPIO_DIR"
-tar xf "$FILE" --strip-components=1 --directory="$CPIO_DIR" || exit 1
-BSDCPIO=bsdcpio/bsdcpio.exe
-else
-BSDCPIO=`which bsdcpio`
-fi
-
-function rpm_install {
-	PKG_NAME=${NAME%%\ *}
-	if [ "$PKG_NAME" = "GStreamer-plugins-bad" ]; then
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstdirectdrawsink.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstdirectsoundsrc.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstliveadder.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstrtpmux.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstwinks.dll $INSTALL_DIR/lib/gstreamer-0.10/
-	elif [ "$PKG_NAME" = "GStreamer-plugins-good" ]; then
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstalaw.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstdirectsoundsink.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstlevel.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstmulaw.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstrtp.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstrtpmanager.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstrtsp.dll $INSTALL_DIR/lib/gstreamer-0.10/
-		cp $MINGW_DIR/lib/gstreamer-0.10/libgstwavparse.dll $INSTALL_DIR/lib/gstreamer-0.10/
-	else
-		cp -rf $MINGW_DIR/* $INSTALL_DIR
-	fi
-}
-
-function validate_file {
-	VALIDATION=$1
-	FILE=$2
-	VALIDATION_TYPE=${VALIDATION%%:*}
-	VALIDATION_VALUE=${VALIDATION##*:}
-	if [ $VALIDATION_TYPE == 'sha1sum' -o $VALIDATION_TYPE == 'sha256sum' ]; then
-		CHECK_SUM=`$VALIDATION_TYPE "$FILE"`
-		CHECK_SUM=${CHECK_SUM%%\ *}
-		if [ "$CHECK_SUM" != "$VALIDATION_VALUE" ]; then
-			echo "$VALIDATION_TYPE ($CHECK_SUM) for $FILE doesn't match expected value of $VALIDATION_VALUE"
-			exit 1
-		fi
-	elif [ $VALIDATION_TYPE == 'gpg' ]; then
-		if [ ! -e "$FILE.asc" ]; then
-			echo Downloading GPG key for $NAME
-			download "$URL.asc" "$FILE.asc" || exit 1
-		fi
-		#Use our own keyring to avoid adding stuff to the main keyring
-		#This doesn't use $GPG_SIGN because we don't this validation to be bypassed when people are skipping signing output
-		GPG_BASE="gpg -q --keyring $STAGE_DIR/$VALIDATION_VALUE-keyring.gpg"
-		if [[ ! -e "$STAGE_DIR/$VALIDATION_VALUE-keyring.gpg" \
-				|| `$GPG_BASE --list-keys "$VALIDATION_VALUE" > /dev/null && echo -n "0"` -ne 0 ]]; then
-			touch "$STAGE_DIR/$VALIDATION_VALUE-keyring.gpg"
-			$GPG_BASE --no-default-keyring --keyserver pgp.mit.edu --recv-key "$VALIDATION_VALUE" || exit 1
-		fi
-		$GPG_BASE --verify "$FILE.asc" || (echo "$FILE failed signature verification"; exit 1) || exit 1
-	else
-		echo "Unrecognized validation type of $VALIDATION_TYPE"
-		exit 1
-	fi
-}
-
-function download_and_validate {
-	PREFIX=$1
-	URLS=$2
-	VALIDATIONS=$3
-	EXTRACT=$4
-	OLD_IFS=$IFS
-	IFS='|'
-	URL_SPLIT=($URLS)
-	VALIDATION_SPLIT=($VALIDATIONS)
-	IFS=$OLD_IFS
-
-	if [ ${#URL_SPLIT[@]} -ne ${#VALIDATION_SPLIT[@]} ]; then
-		echo "URL and validation counts don't match for $VAL"
-		exit 1
-	fi
-
-	if [ "x$PREFIX" != "x" ]; then
-		mkdir -p "$PREFIX"
-	fi
-
-	LEN=${#URL_SPLIT[@]}
-	for (( i = 0; i < ${LEN}; i++ )); do
-		URL=${URL_SPLIT[$i]}
-		VALIDATION=${VALIDATION_SPLIT[$i]}
-		FILE=${PREFIX}$(basename $URL)
-		if [ ! -e "$FILE" ]; then
-			echo Downloading $FILE for $NAME ...
-			download "$URL" "$FILE" || exit 1
-		else
-			echo "Extracting $NAME"
-		fi
-		validate_file "$VALIDATION" "$FILE"
-		EXTENSION=${FILE##*.}
-		#This is an OpenSuSE build service RPM
-		if [ $EXTRACT == "1" ]; then
-			if [ $EXTENSION == 'rpm' ]; then
-				rm -rf $MINGW_DIR_TOP
-				$BSDCPIO --quiet -f etc/fonts/conf.d -di < $FILE || exit 1
-				rpm_install
-				rm -rf $MINGW_DIR_TOP
-			else
-				unzip -q "$FILE" -d "$INSTALL_DIR" || exit 1
-			fi
-		else
-			mkdir -p "$SRC_INSTALL_DIR/$PREFIX"
-			cp "$FILE" "$SRC_INSTALL_DIR/$FILE"
-		fi
-	done
-}
-
-function process_package {
-	SPLIT=($1)
-	URL=${SPLIT[0]}
-	NAME="${SPLIT[1]} ${SPLIT[2]}"
-	VALIDATION=${SPLIT[3]}
-	download_and_validate "" "$URL" "$VALIDATION" "1"
-
-#	SRC_URL=${SPLIT[4]}
-#	SRC_VALIDATION=${SPLIT[5]}
-#	download_and_validate "src/$NAME/" "$SRC_URL" "$SRC_VALIDATION" "0"
-
-	echo "$NAME" >> $CONTENTS_FILE
-}
-
-MINGW_DIR="usr/i686-w64-mingw32/sys-root/mingw"
-MINGW_DIR_TOP="usr"
-
-echo "Downloading and extracting components..."
-for VAL in $ALL
-do
-	VAR=${!VAL}
-	SPLIT=($VAR)
-#	if [ ${#SPLIT[@]} -lt 6 ]; then
-	if [ ${#SPLIT[@]} -lt 4 ]; then
-		echo "$VAL has only ${#SPLIT[@]} attributes"
-		exit 1
-	fi
-	process_package "$VAR"
-done
-
-rm -rf $CPIO_DIR
-
-#mv "${STAGE_DIR}/${INSTALL_DIR}/share/tcl8.5" "${STAGE_DIR}/${INSTALL_DIR}/lib/"
-rm "${STAGE_DIR}/${INSTALL_DIR}/lib/gstreamer-0.10/libfsmsnconference.dll"
-rm "${STAGE_DIR}/${INSTALL_DIR}/lib/gstreamer-0.10/libgstgnomevfs.dll"
-
-echo "All components ready"
-
-#Default GTK+ Theme to MS-Windows (already set)
-#echo gtk-theme-name = \"MS-Windows\" > $INSTALL_DIR/etc/gtk-2.0/gtkrc
-
-#Blow away translations that we don't have in Pidgin (temporarily not included)
-#for LOCALE_DIR in $INSTALL_DIR/share/locale/*
-#do
-#	LOCALE=$(basename $LOCALE_DIR)
-#	if [ ! -e $PIDGIN_BASE/po/$LOCALE.po ]; then
-#		echo Removing $LOCALE translation as it is missing from Pidgin
-#		rm -r $LOCALE_DIR
-#	fi
-#done
-
-#Generate zip file to be included in installer
-rm -f $ZIP_FILE
-zip -9 -r $ZIP_FILE Gtk
-
-if [ "`$GPG_SIGN -K 2> /dev/null`" != "" ]; then
-	($GPG_SIGN -ab $ZIP_FILE && $GPG_SIGN --verify $ZIP_FILE.asc) || exit 1
-	(cd $SRC_INSTALL_DIR/src && zip -9 -r $SRC_ZIP_FILE *)
-	($GPG_SIGN -ab $SRC_ZIP_FILE && $GPG_SIGN --verify $SRC_ZIP_FILE.asc) || exit 1
-else
-	echo "Warning: cannot sign generated bundle"
-fi
-
-exit 0
diff --git a/pidgin/win32/nsis/nsis_translations.desktop.in b/pidgin/win32/nsis/nsis_translations.desktop.in
deleted file mode 100644
--- a/pidgin/win32/nsis/nsis_translations.desktop.in
+++ /dev/null
@@ -1,62 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-
-_INSTALLERISRUNNING=The installer is already running.
-_PIDGINISRUNNING=An instance of Pidgin is currently running.  Please exit Pidgin and try again.
-
-# "Next >" appears on a button on the License Page of the Installer
-_PIDGINLICENSEBUTTON=Next >
-# $(^Name) is the current Version name (e.g. Pidgin 2.7.0).  $_CLICK will become a translated version of "Click Next to continue."  DO NOT translate the CLICK in $_CLICK.  It will break the installer.
-_PIDGINLICENSEBOTTOMTEXT=$(^Name) is released under the GNU General Public License (GPL). The license is provided here for information purposes only. $_CLICK
-
-#Installer Subsection Text
-_PIDGINSECTIONTITLE=Pidgin Instant Messaging Client (required)
-#Installer Subsection Text
-_GTKSECTIONTITLE=GTK Runtime (required if not present)
-#Installer Subsection Text
-_PIDGINSHORTCUTSSECTIONTITLE=Shortcuts
-#Installer Subsection Text
-_PIDGINDESKTOPSHORTCUTSECTIONTITLE=Desktop
-#Installer Subsection Text
-_PIDGINSTARTMENUSHORTCUTSECTIONTITLE=Start Menu
-#Installer Subsection Text
-_TRANSLATIONSSECTIONTITLE=Localizations
-#Installer Subsection Detailed Description
-_PIDGINSECTIONDESCRIPTION=Core Pidgin files and dlls
-#Installer Subsection Detailed Description
-_PIDGINSHORTCUTSSECTIONDESCRIPTION=Shortcuts for starting Pidgin
-#Installer Subsection Detailed Description
-_PIDGINDESKTOPSHORTCUTDESC=Create a shortcut to Pidgin on the Desktop
-#Installer Subsection Detailed Description
-_PIDGINSTARTMENUSHORTCUTDESC=Create a Start Menu entry for Pidgin
-#Installer Subsection Detailed Description
-_GTKSECTIONDESCRIPTION=A multi-platform GUI toolkit, used by Pidgin
-#Installer Subsection Text
-_DEBUGSYMBOLSSECTIONTITLE=Debug Symbols (for reporting crashes)
-
-# Text displayed on Installer Finish Page
-_PIDGINFINISHVISITWEBSITE=Visit the Pidgin Web Page
-
-_PIDGINPROMPTCONTINUEWITHOUTUNINSTALL=Unable to uninstall the currently installed version of Pidgin. The new version will be installed without removing the currently installed version.
-
-_PIDGINPROMPTFORCENOGTK=Pidgin requires a compatible GTK Runtime (which does not appear to be installed).$\rAre you sure you want to skip installing the GTK Runtime?
-
-#Installer Subsection Text
-_URIHANDLERSSECTIONTITLE=URI Handlers
-
-#Installer Subsection Text
-_PIDGINSPELLCHECKSECTIONTITLE=Spellchecking Support
-# $R3 will display the URL that the Dictionary failed to download from
-_PIDGINSPELLCHECKERROR=Error Installing Spellchecking ($R3).$\rIf retrying fails, manual installation instructions are at: https://developer.pidgin.im/wiki/Installing%20Pidgin#manual_win32_spellcheck_installation
-#Installer Subsection Detailed Description
-_PIDGINSPELLCHECKSECTIONDESCRIPTION=Support for Spellchecking.  (Internet connection required for installation)
-
-# $R2 will display the URL that the Debug Symbols failed to download from
-_PIDGINDEBUGSYMBOLSERROR=Error Installing Debug Symbols ($R2).$\rIf retrying fails, you may need to use the 'Offline Installer' from https://pidgin.im/download/windows/ .
-
-# $R2 will display the URL that the GTK Runtime failed to download from
-_PIDGINGTKDOWNLOADERROR=Error Downloading the GTK Runtime ($R2).$\rThis is required for Pidgin to function; if retrying fails, you may need to use the 'Offline Installer' from https://pidgin.im/download/windows/ .
-
-_PIDGINUNINSTALLERROR1=The uninstaller could not find registry entries for Pidgin.$\rIt is likely that another user installed this application.
-_PIDGINUNINSTALLERROR2=You do not have permission to uninstall this application.
-
diff --git a/pidgin/win32/nsis/pidgin-installer.nsi b/pidgin/win32/nsis/pidgin-installer.nsi
deleted file mode 100644
--- a/pidgin/win32/nsis/pidgin-installer.nsi
+++ /dev/null
@@ -1,1306 +0,0 @@
-; Installer script for win32 Pidgin
-; Original Author: Herman Bloggs <hermanator12002@yahoo.com>
-; Updated By: Daniel Atallah <daniel_atallah@yahoo.com>
-
-; NOTE: this .NSI script is intended for NSIS 2.27+
-;
-
-;--------------------------------
-;Global Variables
-Var name
-Var STARTUP_RUN_KEY
-Var CURRENT_GTK_STATE
-Var WARNED_GTK_STATE
-
-;--------------------------------
-;Configuration
-
-;The name var is set in .onInit
-Name $name
-
-!ifdef OFFLINE_INSTALLER
-OutFile "pidgin-${PIDGIN_VERSION}-offline.exe"
-!else
-OutFile "pidgin-${PIDGIN_VERSION}.exe"
-!endif
-
-SetCompressor /SOLID lzma
-ShowInstDetails show
-ShowUninstDetails show
-SetDateSave on
-RequestExecutionLevel highest
-
-; $name and $INSTDIR are set in .onInit function..
-
-!include "MUI.nsh"
-!include "Sections.nsh"
-!include "LogicLib.nsh"
-!include "Memento.nsh"
-
-!include "FileFunc.nsh"
-!insertmacro GetParameters
-!insertmacro GetOptions
-!insertmacro GetParent
-
-!include "WordFunc.nsh"
-!insertmacro VersionCompare
-!insertmacro WordFind
-!insertmacro un.WordFind
-
-!include "TextFunc.nsh"
-
-;--------------------------------
-;Defines
-
-!define PIDGIN_NSIS_INCLUDE_PATH		"."
-
-; Remove these and the stuff that uses them at some point
-!define OLD_GAIM_REG_KEY			"SOFTWARE\gaim"
-!define OLD_GAIM_UNINSTALL_KEY			"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim"
-!define OLD_GAIM_UNINST_EXE			"gaim-uninst.exe"
-
-!define PIDGIN_REG_KEY				"SOFTWARE\pidgin"
-!define PIDGIN_UNINSTALL_KEY			"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Pidgin"
-
-!define HKLM_APP_PATHS_KEY			"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\pidgin.exe"
-!define STARTUP_RUN_KEY				"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
-!define PIDGIN_UNINST_EXE			"pidgin-uninst.exe"
-
-!define GTK_MIN_VERSION				"2.14.0"
-
-!define DOWNLOADER_URL				"https://pidgin.im/win32/download_redir.php?version=${PIDGIN_VERSION}"
-
-!define MEMENTO_REGISTRY_ROOT			HKLM
-!define MEMENTO_REGISTRY_KEY			"${PIDGIN_UNINSTALL_KEY}"
-
-;--------------------------------
-;Version resource
-VIProductVersion "${PIDGIN_PRODUCT_VERSION}"
-VIAddVersionKey "ProductName" "Pidgin"
-VIAddVersionKey "FileVersion" "${PIDGIN_VERSION}"
-VIAddVersionKey "ProductVersion" "${PIDGIN_VERSION}"
-VIAddVersionKey "LegalCopyright" ""
-!ifdef OFFLINE_INSTALLER
-VIAddVersionKey "FileDescription" "Pidgin Installer (Offline)"
-!else
-VIAddVersionKey "FileDescription" "Pidgin Installer"
-!endif
-
-;--------------------------------
-;Reserve files used in .onInit
-;for faster start-up
-ReserveFile "${NSISDIR}\Plugins\unicode\System.dll"
-ReserveFile "${NSISDIR}\Plugins\unicode\UserInfo.dll"
-!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
-!insertmacro MUI_RESERVEFILE_LANGDLL
-
-;--------------------------------
-;Modern UI Configuration
-
-  !define MUI_ICON				".\pixmaps\pidgin-install.ico"
-  !define MUI_UNICON				".\pixmaps\pidgin-install.ico"
-  !define MUI_WELCOMEFINISHPAGE_BITMAP		".\pixmaps\pidgin-intro.bmp"
-  !define MUI_HEADERIMAGE
-  !define MUI_HEADERIMAGE_BITMAP		".\pixmaps\pidgin-header.bmp"
-
-  ; Alter License section
-  !define MUI_LICENSEPAGE_BUTTON		$(PIDGINLICENSEBUTTON)
-  !define MUI_LICENSEPAGE_TEXT_BOTTOM		$(PIDGINLICENSEBOTTOMTEXT)
-
-  !define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
-  !define MUI_LANGDLL_REGISTRY_KEY ${PIDGIN_REG_KEY}
-  !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
-
-  !define MUI_COMPONENTSPAGE_SMALLDESC
-  !define MUI_ABORTWARNING
-
-  ;Finish Page config
-  !define MUI_FINISHPAGE_NOAUTOCLOSE
-  ;!define MUI_FINISHPAGE_RUN			"$INSTDIR\pidgin.exe"
-  ;!define MUI_FINISHPAGE_RUN_NOTCHECKED
-  !define MUI_FINISHPAGE_LINK			$(PIDGINFINISHVISITWEBSITE)
-  !define MUI_FINISHPAGE_LINK_LOCATION		"https://pidgin.im"
-
-;--------------------------------
-;Pages
-
-  !define MUI_PAGE_CUSTOMFUNCTION_PRE		preWelcomePage
-  !insertmacro MUI_PAGE_WELCOME
-  !insertmacro MUI_PAGE_LICENSE			"../../../COPYING"
-  !insertmacro MUI_PAGE_COMPONENTS
-
-  ; Pidgin install dir page
-  !insertmacro MUI_PAGE_DIRECTORY
-
-  !insertmacro MUI_PAGE_INSTFILES
-  !insertmacro MUI_PAGE_FINISH
-
-  !insertmacro MUI_UNPAGE_WELCOME
-  !insertmacro MUI_UNPAGE_CONFIRM
-  !insertmacro MUI_UNPAGE_INSTFILES
-  !insertmacro MUI_UNPAGE_FINISH
-
-;--------------------------------
-;Languages
-
-  !include "${PIDGIN_NSIS_INCLUDE_PATH}\langmacros.nsh"
-
-;--------------------------------
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;; Start Install Sections ;;
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
-;--------------------------------
-;Uninstall any old version of Pidgin (or Gaim)
-
-Section -SecUninstallOldPidgin
-  ; Check install rights..
-  Call CheckUserInstallRights
-  Pop $R0
-
-  ;First try to uninstall Pidgin
-  StrCpy $R4 ${PIDGIN_REG_KEY}
-  StrCpy $R5 ${PIDGIN_UNINSTALL_KEY}
-  StrCpy $R6 ${PIDGIN_UNINST_EXE}
-  StrCpy $R7 "Pidgin"
-
-  start_comparison:
-  ;If pidgin is currently set to run on startup,
-  ;  save the section of the Registry where the setting is before uninstalling,
-  ;  so we can put it back after installing the new version
-  ClearErrors
-  ReadRegStr $STARTUP_RUN_KEY HKCU "${STARTUP_RUN_KEY}" $R7
-  IfErrors +3
-  StrCpy $STARTUP_RUN_KEY "HKCU"
-  Goto +5
-  ClearErrors
-  ReadRegStr $STARTUP_RUN_KEY HKLM "${STARTUP_RUN_KEY}" $R7
-  IfErrors +2
-  StrCpy $STARTUP_RUN_KEY "HKLM"
-
-  StrCmp $R0 "HKLM" compare_hklm
-  StrCmp $R0 "HKCU" compare_hkcu done
-
-  compare_hkcu:
-      ReadRegStr $R1 HKCU $R4 ""
-      ReadRegStr $R2 HKCU $R4 "Version"
-      ReadRegStr $R3 HKCU "$R5" "UninstallString"
-      Goto try_uninstall
-
-  compare_hklm:
-      ReadRegStr $R1 HKLM $R4 ""
-      ReadRegStr $R2 HKLM $R4 "Version"
-      ReadRegStr $R3 HKLM "$R5" "UninstallString"
-
-  ; If a previous version exists, remove it
-  try_uninstall:
-    StrCmp $R1 "" no_version_found
-      ; Version key started with 0.60a3. Prior versions can't be
-      ; automatically uninstalled.
-      StrCmp $R2 "" uninstall_problem
-        ; Check if we have uninstall string..
-        IfFileExists $R3 0 uninstall_problem
-          ; Have uninstall string, go ahead and uninstall.
-          SetOverwrite on
-          ; Need to copy uninstaller outside of the install dir
-          ClearErrors
-          CopyFiles /SILENT $R3 "$TEMP\$R6"
-          SetOverwrite off
-          IfErrors uninstall_problem
-            ; Ready to uninstall..
-            ClearErrors
-            ExecWait '"$TEMP\$R6" /S /UPGRADE=1 _?=$R1'
-            IfErrors exec_error
-              Delete "$TEMP\$R6"
-            Goto done
-
-            exec_error:
-              Delete "$TEMP\$R6"
-              Goto uninstall_problem
-
-        no_version_found:
-          ;We've already tried to fallback to an old gaim instance
-          StrCmp $R7 "Gaim" done
-          ; If we couldn't uninstall Pidgin, try to uninstall Gaim
-          StrCpy $STARTUP_RUN_KEY "NONE"
-          StrCpy $R4 ${OLD_GAIM_REG_KEY}
-          StrCpy $R5 ${OLD_GAIM_UNINSTALL_KEY}
-          StrCpy $R6 ${OLD_GAIM_UNINST_EXE}
-          StrCpy $R7 "Gaim"
-          Goto start_comparison
-
-        uninstall_problem:
-          ; We can't uninstall.  Either the user must manually uninstall or we ignore and reinstall over it.
-          MessageBox MB_OKCANCEL $(PIDGINPROMPTCONTINUEWITHOUTUNINSTALL) /SD IDOK IDOK done
-          Quit
-  done:
-SectionEnd
-
-
-;--------------------------------
-;GTK Runtime Install Section
-
-Section $(GTKSECTIONTITLE) SecGtk
-
-  InitPluginsDir
-  StrCpy $R1 "$PLUGINSDIR\gtk.zip"
-!ifdef OFFLINE_INSTALLER
-
-  SetOutPath $PLUGINSDIR
-  File /oname=gtk.zip ".\gtk-runtime-${GTK_INSTALL_VERSION}.zip"
-
-!else
-
-  ; We need to download the GTK runtime
-  retry:
-  StrCpy $R2 "${DOWNLOADER_URL}&gtk_version=${GTK_INSTALL_VERSION}&dl_pkg=gtk"
-  DetailPrint "Downloading GTK Runtime ... ($R2)"
-  inetc::get /TIMEOUT=10000 "$R2" "$R1"
-  Pop $R0
-  StrCmp $R0 "OK" 0 prompt_retry
-
-  Push "${GTK_SHA1SUM}"
-  Push "$R1" ; Filename
-  Call CheckSHA1Sum
-  Pop $R0
-
-  StrCmp "$R0" "0" extract
-    prompt_retry:
-    MessageBox MB_RETRYCANCEL "$(PIDGINGTKDOWNLOADERROR)" /SD IDCANCEL IDRETRY retry IDCANCEL done
-
-  extract:
-!endif
-
-  ;Delete the old Gtk directory
-  RMDir /r "$INSTDIR\Gtk"
-
-  SetOutPath "$INSTDIR"
-  nsisunz::UnzipToLog $R1 "$INSTDIR"
-  Pop $R0
-  StrCmp $R0 "success" +2
-    DetailPrint "$R0" ;print error message to log
-
-!ifndef OFFLINE_INSTALLER
-  done:
-!endif
-SectionEnd ; end of GTK section
-
-;--------------------------------
-;Pidgin Install Section
-
-Section $(PIDGINSECTIONTITLE) SecPidgin
-  SectionIn 1 RO
-
-  ; Check install rights..
-  Call CheckUserInstallRights
-  Pop $R0
-
-  StrCmp $R0 "NONE" pidgin_install_files
-  StrCmp $R0 "HKLM" pidgin_hklm pidgin_hkcu
-
-  pidgin_hklm:
-    WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "" "$INSTDIR\pidgin.exe"
-    WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$INSTDIR\Gtk\bin"
-    WriteRegStr HKLM ${PIDGIN_REG_KEY} "" "$INSTDIR"
-    WriteRegStr HKLM ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}"
-    WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\pidgin.exe"
-    WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayName" "Pidgin"
-    WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayVersion" "${PIDGIN_VERSION}"
-    WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "HelpLink" "https://developer.pidgin.im/wiki/Using Pidgin"
-    WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoModify" 1
-    WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1
-    WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${PIDGIN_UNINST_EXE}"
-    ; Sets scope of the desktop and Start Menu entries for all users.
-    SetShellVarContext "all"
-    Goto pidgin_install_files
-
-  pidgin_hkcu:
-    WriteRegStr HKCU ${PIDGIN_REG_KEY} "" "$INSTDIR"
-    WriteRegStr HKCU ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}"
-    WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\pidgin.exe"
-    WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayName" "Pidgin"
-    WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayVersion" "${PIDGIN_VERSION}"
-    WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "HelpLink" "https://developer.pidgin.im/wiki/Using Pidgin"
-    WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoModify" 1
-    WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1
-    WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${PIDGIN_UNINST_EXE}"
-    Goto pidgin_install_files
-
-  pidgin_install_files:
-    SetOutPath "$INSTDIR"
-    ; Pidgin files
-    SetOverwrite on
-
-    File /r /x locale /x Gtk ..\..\..\${PIDGIN_INSTALL_DIR}\*.*
-
-    SetOutPath "$INSTDIR"
-
-    ; If we don't have install rights we're done
-    StrCmp $R0 "NONE" done
-    SetOverwrite off
-
-    ; write out uninstaller
-    SetOverwrite on
-    WriteUninstaller "$INSTDIR\${PIDGIN_UNINST_EXE}"
-    SetOverwrite off
-
-    ; If we previously had pidgin set up to run on startup, make it do so again
-    StrCmp $STARTUP_RUN_KEY "HKCU" +1 +2
-    WriteRegStr HKCU "${STARTUP_RUN_KEY}" "Pidgin" "$INSTDIR\pidgin.exe"
-    StrCmp $STARTUP_RUN_KEY "HKLM" +1 +2
-    WriteRegStr HKLM "${STARTUP_RUN_KEY}" "Pidgin" "$INSTDIR\pidgin.exe"
-
-  done:
-SectionEnd ; end of default Pidgin section
-
-;--------------------------------
-;Shortcuts
-
-SectionGroup /e $(PIDGINSHORTCUTSSECTIONTITLE) SecShortcuts
-  Section /o $(PIDGINDESKTOPSHORTCUTSECTIONTITLE) SecDesktopShortcut
-    SetOverwrite on
-    CreateShortCut "$DESKTOP\Pidgin.lnk" "$INSTDIR\pidgin.exe"
-    SetOverwrite off
-  SectionEnd
-  Section $(PIDGINSTARTMENUSHORTCUTSECTIONTITLE) SecStartMenuShortcut
-    SetOverwrite on
-    CreateShortCut "$SMPROGRAMS\Pidgin.lnk" "$INSTDIR\pidgin.exe"
-    SetOverwrite off
-  SectionEnd
-SectionGroupEnd
-
-;--------------------------------
-;URI Handling
-
-!macro URI_SECTION proto
-  Section /o "${proto}:" SecURI_${proto}
-    Push "${proto}"
-    Call RegisterURIHandler
-  SectionEnd
-!macroend
-SectionGroup /e $(URIHANDLERSSECTIONTITLE) SecURIHandlers
-  !insertmacro URI_SECTION "aim"
-  !insertmacro URI_SECTION "xmpp"
-SectionGroupEnd
-
-;--------------------------------
-;Translations
-
-!macro LANG_SECTION lang
-  ${MementoUnselectedSection} "${lang}" SecLang_${lang}
-    SetOutPath "$INSTDIR\locale\${lang}\LC_MESSAGES"
-    File "..\..\..\${PIDGIN_INSTALL_DIR}\locale\${lang}\LC_MESSAGES\*.mo"
-    SetOutPath "$INSTDIR"
-  ${MementoSectionEnd}
-!macroend
-SectionGroup $(TRANSLATIONSSECTIONTITLE) SecTranslations
-  # pidgin-translations is generated based on the contents of the locale directory
-  !include "pidgin-translations.nsh"
-SectionGroupEnd
-${MementoSectionDone}
-
-;--------------------------------
-;Spell Checking
-
-!macro SPELLCHECK_SECTION lang lang_name lang_file
-  Section /o "${lang_name}" SecSpell_${lang}
-    Push ${lang_file}
-    Push ${lang}
-    Call InstallDict
-  SectionEnd
-!macroend
-SectionGroup $(PIDGINSPELLCHECKSECTIONTITLE) SecSpellCheck
-  !include "pidgin-spellcheck.nsh"
-SectionGroupEnd
-
-Section /o $(DEBUGSYMBOLSSECTIONTITLE) SecDebugSymbols
-  
-  InitPluginsDir
-  StrCpy $R1 "$PLUGINSDIR\dbgsym.zip"
-!ifdef OFFLINE_INSTALLER
-
-  SetOutPath $PLUGINSDIR
-  File /oname=dbgsym.zip "..\..\..\pidgin-${PIDGIN_VERSION}-dbgsym.zip"
-
-!else
-
-  ; We need to download the debug symbols
-  retry:
-  StrCpy $R2 "${DOWNLOADER_URL}&dl_pkg=dbgsym"
-  DetailPrint "Downloading Debug Symbols... ($R2)"
-  NSISdl::download /TIMEOUT=10000 "$R2" "$R1"
-  Pop $R0
-  StrCmp $R0 "cancel" done
-  StrCmp $R0 "success" 0 prompt_retry
-
-  Push "${DEBUG_SYMBOLS_SHA1SUM}"
-  Push "$R1" ; Filename
-  Call CheckSHA1Sum
-  Pop $R0
-
-  StrCmp "$R0" "0" extract
-    prompt_retry:
-    MessageBox MB_RETRYCANCEL "$(PIDGINDEBUGSYMBOLSERROR)" /SD IDCANCEL IDRETRY retry IDCANCEL done
-
-  extract:
-!endif
-
-  SetOutPath "$INSTDIR"
-  nsisunz::UnzipToLog $R1 "$INSTDIR"
-  Pop $R0
-  StrCmp $R0 "success" +2
-    DetailPrint "$R0" ;print error message to log
-
-!ifndef OFFLINE_INSTALLER
-  done:
-!endif
-SectionEnd
-
-;--------------------------------
-;Uninstaller Section
-
-
-Section Uninstall
-  Call un.CheckUserInstallRights
-  Pop $R0
-  StrCmp $R0 "NONE" no_rights
-  StrCmp $R0 "HKCU" try_hkcu try_hklm
-
-  try_hkcu:
-    ReadRegStr $R0 HKCU ${PIDGIN_REG_KEY} ""
-    StrCmp $R0 $INSTDIR 0 cant_uninstall
-      ; HKCU install path matches our INSTDIR so uninstall
-      DeleteRegKey HKCU ${PIDGIN_REG_KEY}
-      DeleteRegKey HKCU "${PIDGIN_UNINSTALL_KEY}"
-      Goto cont_uninstall
-
-  try_hklm:
-    ReadRegStr $R0 HKLM ${PIDGIN_REG_KEY} ""
-    StrCmp $R0 $INSTDIR 0 try_hkcu
-      ; HKLM install path matches our INSTDIR so uninstall
-      DeleteRegKey HKLM ${PIDGIN_REG_KEY}
-      DeleteRegKey HKLM "${PIDGIN_UNINSTALL_KEY}"
-      DeleteRegKey HKLM "${HKLM_APP_PATHS_KEY}"
-      ; Sets start menu and desktop scope to all users..
-      SetShellVarContext "all"
-
-  cont_uninstall:
-    ; The WinPrefs plugin may have left this behind..
-    DeleteRegValue HKCU "${STARTUP_RUN_KEY}" "Pidgin"
-    DeleteRegValue HKLM "${STARTUP_RUN_KEY}" "Pidgin"
-    ; Remove Language preference info
-    DeleteRegValue HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}"
-
-    ; Remove any URI handlers
-    ; I can't think of an easy way to maintain a list in a single place
-    Push "aim"
-    Call un.UnregisterURIHandler
-    Push "xmpp"
-    Call un.UnregisterURIHandler
-
-    ; Some of these aren't shipped anymore. Delete them anyway.
-    Delete "$INSTDIR\ca-certs\AddTrust_External_Root.pem"
-    Delete "$INSTDIR\ca-certs\America_Online_Root_Certification_Authority_1.pem"
-    Delete "$INSTDIR\ca-certs\AOL_Member_CA.pem"
-    Delete "$INSTDIR\ca-certs\Baltimore_CyberTrust_Root.pem"
-    Delete "$INSTDIR\ca-certs\CAcert_Class3.pem"
-    Delete "$INSTDIR\ca-certs\CAcert_Root.pem"
-    Delete "$INSTDIR\ca-certs\Deutsche_Telekom_Root_CA_2.pem"
-    Delete "$INSTDIR\ca-certs\DigiCertHighAssuranceCA-3.pem"
-    Delete "$INSTDIR\ca-certs\DigiCertHighAssuranceEVRootCA.pem"
-    Delete "$INSTDIR\ca-certs\Entrust.net_Secure_Server_CA.pem"
-    Delete "$INSTDIR\ca-certs\Equifax_Secure_CA.pem"
-    Delete "$INSTDIR\ca-certs\Equifax_Secure_Global_eBusiness_CA-1.pem"
-    Delete "$INSTDIR\ca-certs\Go_Daddy_Class_2_CA.pem"
-    Delete "$INSTDIR\ca-certs\GTE_CyberTrust_Global_Root.pem"
-    Delete "$INSTDIR\ca-certs\Microsoft_Internet_Authority.pem"
-    Delete "$INSTDIR\ca-certs\Microsoft_Internet_Authority_2010.pem"
-    Delete "$INSTDIR\ca-certs\Microsoft_Secure_Server_Authority.pem"
-    Delete "$INSTDIR\ca-certs\Microsoft_Secure_Server_Authority_2010.pem"
-    Delete "$INSTDIR\ca-certs\StartCom_Certification_Authority.pem"
-    Delete "$INSTDIR\ca-certs\StartCom_Free_SSL_CA.pem"
-    Delete "$INSTDIR\ca-certs\Thawte_Premium_Server_CA.pem"
-    Delete "$INSTDIR\ca-certs\Thawte_Primary_Root_CA.pem"
-    Delete "$INSTDIR\ca-certs\ValiCert_Class_2_VA.pem"
-    Delete "$INSTDIR\ca-certs\VeriSign_Class3_Extended_Validation_CA.pem"
-    Delete "$INSTDIR\ca-certs\Verisign_Class3_Primary_CA.pem"
-    Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Primary_CA-G2.pem"
-    Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Primary_CA-G5.pem"
-    Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Primary_CA-G5-2.pem"
-    Delete "$INSTDIR\ca-certs\VeriSign_International_Server_Class_3_CA.pem"
-    Delete "$INSTDIR\ca-certs\Verisign_RSA_Secure_Server_CA.pem"
-    Delete "$INSTDIR\ca-certs\mozilla.pem"
-    RMDir "$INSTDIR\ca-certs"
-    RMDir /r "$INSTDIR\locale"
-    RMDir /r "$INSTDIR\pixmaps"
-	RMDir /r "$INSTDIR\theme"
-    Delete "$INSTDIR\plugins\autoaccept.dll"
-    Delete "$INSTDIR\plugins\buddynote.dll"
-    Delete "$INSTDIR\plugins\convcolors.dll"
-    Delete "$INSTDIR\plugins\extplacement.dll"
-    Delete "$INSTDIR\plugins\gtkbuddynote.dll"
-    Delete "$INSTDIR\plugins\history.dll"
-	Delete "$INSTDIR\plugins\internalkeyring.dll"
-	Delete "$INSTDIR\plugins\wincred.dll"
-    Delete "$INSTDIR\plugins\iconaway.dll"
-    Delete "$INSTDIR\plugins\idle.dll"
-    Delete "$INSTDIR\plugins\joinpart.dll"
-    Delete "$INSTDIR\plugins\libbonjour.dll"
-    Delete "$INSTDIR\plugins\libgg.dll"
-    Delete "$INSTDIR\plugins\libirc.dll"
-    Delete "$INSTDIR\plugins\libnapster.dll"
-    Delete "$INSTDIR\plugins\libnovell.dll"
-    Delete "$INSTDIR\plugins\liboscar.dll"
-    Delete "$INSTDIR\plugins\libsametime.dll"
-    Delete "$INSTDIR\plugins\libsilc.dll"
-    Delete "$INSTDIR\plugins\libsimple.dll"
-    Delete "$INSTDIR\plugins\libtoc.dll"
-    Delete "$INSTDIR\plugins\libxmpp.dll"
-    Delete "$INSTDIR\plugins\log_reader.dll"
-    Delete "$INSTDIR\plugins\markerline.dll"
-    Delete "$INSTDIR\plugins\newline.dll"
-    Delete "$INSTDIR\plugins\notify.dll"
-    Delete "$INSTDIR\plugins\offlinemsg.dll"
-    Delete "$INSTDIR\plugins\pidginrc.dll"
-    Delete "$INSTDIR\plugins\psychic.dll"
-    Delete "$INSTDIR\plugins\relnot.dll"
-    Delete "$INSTDIR\plugins\sendbutton.dll"
-    Delete "$INSTDIR\plugins\spellchk.dll"
-    Delete "$INSTDIR\plugins\statenotify.dll"
-    Delete "$INSTDIR\plugins\ticker.dll"
-    Delete "$INSTDIR\plugins\timestamp.dll"
-    Delete "$INSTDIR\plugins\timestamp_format.dll"
-    Delete "$INSTDIR\plugins\win2ktrans.dll"
-    Delete "$INSTDIR\plugins\winprefs.dll"
-    Delete "$INSTDIR\plugins\xmppconsole.dll"
-    Delete "$INSTDIR\plugins\xmppdisco.dll"
-    RMDir "$INSTDIR\plugins"
-    Delete "$INSTDIR\sasl2\libanonymous-3.dll"
-    Delete "$INSTDIR\sasl2\libcrammd5-3.dll"
-    Delete "$INSTDIR\sasl2\libdigestmd5-3.dll"
-    Delete "$INSTDIR\sasl2\libplain-3.dll"
-    RMDir "$INSTDIR\sasl2"
-    Delete "$INSTDIR\sounds\purple\alert.wav"
-    Delete "$INSTDIR\sounds\purple\login.wav"
-    Delete "$INSTDIR\sounds\purple\logout.wav"
-    Delete "$INSTDIR\sounds\purple\receive.wav"
-    Delete "$INSTDIR\sounds\purple\send.wav"
-    RMDir "$INSTDIR\sounds\purple"
-    RMDir "$INSTDIR\sounds"
-    Delete "$INSTDIR\spellcheck\libenchant.dll"
-    Delete "$INSTDIR\spellcheck\lib\enchant\libenchant_aspell.dll"
-    Delete "$INSTDIR\spellcheck\lib\enchant\libenchant_ispell.dll"
-    Delete "$INSTDIR\spellcheck\lib\enchant\libenchant_myspell.dll"
-    RMDir "$INSTDIR\spellcheck\lib\enchant"
-    RMDir "$INSTDIR\spellcheck\lib"
-    RMDir "$INSTDIR\spellcheck"
-    Delete "$INSTDIR\freebl3.dll"
-    Delete "$INSTDIR\libnspr4.dll"
-    Delete "$INSTDIR\libmeanwhile-1.dll"
-    Delete "$INSTDIR\libplc4.dll"
-    Delete "$INSTDIR\libplds4.dll"
-    Delete "$INSTDIR\libpurple.dll"
-    Delete "$INSTDIR\libsasl2-3.dll"
-    Delete "$INSTDIR\libsilc-1-1-4.dll"
-    Delete "$INSTDIR\libsilcclient-1-1-4.dll"
-    Delete "$INSTDIR\libssp-0.dll"
-    Delete "$INSTDIR\libxml2-2.dll"
-    Delete "$INSTDIR\nss3.dll"
-    Delete "$INSTDIR\nssutil3.dll"
-    Delete "$INSTDIR\pidgin.dll"
-    Delete "$INSTDIR\pidgin.exe"
-    Delete "$INSTDIR\smime3.dll"
-    Delete "$INSTDIR\softokn3.dll"
-    Delete "$INSTDIR\sqlite3.dll"
-    Delete "$INSTDIR\ssl3.dll"
-    Delete "$INSTDIR\${PIDGIN_UNINST_EXE}"
-    Delete "$INSTDIR\exchndl.dll"
-    Delete "$INSTDIR\install.log"
-
-    ; Remove the debug symbols
-    RMDir /r "$INSTDIR\pidgin-${PIDGIN_VERSION}-dbgsym"
-
-    ; Remove the local GTK copy (if we're not just upgrading)
-    ${GetParameters} $R0
-    ClearErrors
-    ${GetOptions} "$R0" "/UPGRADE=" $R1
-    IfErrors +2
-    StrCmp $R1 "1" upgrade_done
-    RMDir /r "$INSTDIR\Gtk"
-    ; Remove the downloaded spellcheck dictionaries (if we're not just upgrading)
-    RMDir /r "$INSTDIR\spellcheck"
-    upgrade_done:
-
-    ;Try to remove Pidgin install dir (only if empty)
-    RMDir "$INSTDIR"
-
-    ; Shortcuts..
-    Delete "$DESKTOP\Pidgin.lnk"
-    Delete "$SMPROGRAMS\Pidgin.lnk"
-
-    Goto done
-
-  cant_uninstall:
-    MessageBox MB_OK $(PIDGINUNINSTALLERROR1) /SD IDOK
-    Quit
-
-  no_rights:
-    MessageBox MB_OK $(PIDGINUNINSTALLERROR2) /SD IDOK
-    Quit
-
-  done:
-SectionEnd ; end of uninstall section
-
-;--------------------------------
-;Descriptions
-!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
-  !insertmacro MUI_DESCRIPTION_TEXT ${SecPidgin} \
-        $(PIDGINSECTIONDESCRIPTION)
-  !insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} \
-        $(GTKSECTIONDESCRIPTION)
-
-  !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} \
-        $(PIDGINSHORTCUTSSECTIONDESCRIPTION)
-  !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} \
-        $(PIDGINDESKTOPSHORTCUTDESC)
-  !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} \
-        $(PIDGINSTARTMENUSHORTCUTDESC)
-
-  !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheck} \
-        $(PIDGINSPELLCHECKSECTIONDESCRIPTION)
-
-!insertmacro MUI_FUNCTION_DESCRIPTION_END
-
-;--------------------------------
-;Functions
-
-; Default the URI handler checkboxes if Pidgin is the current handler or if there is no handler
-Function SelectURIHandlerSelections
-  Push $R0
-  Push $R1
-  Push $R2
-  Push $R3
-
-  ; Start with the first URI handler
-  IntOp $R0 ${SecURIHandlers} + 1
-
-  start:
-  ; If it is the end of the section group, stop
-  SectionGetFlags $R0 $R1
-  IntOp $R2 $R1 & ${SF_SECGRPEND}
-  IntCmp $R2 ${SF_SECGRPEND} done
-
-  SectionGetText $R0 $R2
-  ;Strip the trailing ':'
-  StrLen $R3 $R2
-  IntOp $R3 $R3 - 1
-  StrCpy $R2 $R2 $R3
-
-  ClearErrors
-  ReadRegStr $R3 HKCR "$R2" ""
-  IfErrors default_on ;there is no current handler
-
-  Push $R2
-  Call CheckIfPidginIsCurrentURIHandler
-  Pop $R3
-
-  ; If Pidgin isn't the current handler, we don't steal it automatically
-  IntCmp $R3 0 end_loop
-
-  ;We default the URI handler checkbox on
-  default_on:
-  IntOp $R1 $R1 | ${SF_SELECTED} ; Select
-  SectionSetFlags $R0 $R1
-
-  end_loop:
-  IntOp $R0 $R0 + 1 ;Advance to the next section
-  Goto start
-
-  done:
-  Pop $R3
-  Pop $R2
-  Pop $R1
-  Pop $R0
-FunctionEnd ;SelectURIHandlerSections
-
-; Check if Pidgin is the current handler
-; Returns a boolean on the stack
-!macro CheckIfPidginIsCurrentURIHandlerMacro UN
-Function ${UN}CheckIfPidginIsCurrentURIHandler
-  Exch $R0
-  ClearErrors
-
-  ReadRegStr $R0 HKCR "$R0\shell\Open\command" ""
-  IfErrors 0 +3
-    IntOp $R0 0 + 0
-    Goto done
-
-  !ifdef __UNINSTALL__
-  ${un.WordFind} "$R0" "pidgin.exe" "E+1{" $R0
-  !else
-  ${WordFind} "$R0" "pidgin.exe" "E+1{" $R0
-  !endif
-  IntOp $R0 0 + 1
-  IfErrors 0 +2
-    IntOp $R0 0 + 0
-
-  done:
-  Exch $R0
-FunctionEnd
-!macroend
-!insertmacro CheckIfPidginIsCurrentURIHandlerMacro ""
-!insertmacro CheckIfPidginIsCurrentURIHandlerMacro "un."
-
-; If Pidgin is the current URI handler for the specified protocol, remove it.
-Function un.UnregisterURIHandler
-  Exch $R0
-  Push $R1
-
-  Push $R0
-  Call un.CheckIfPidginIsCurrentURIHandler
-  Pop $R1
-
-  ; If Pidgin isn't the current handler, leave it as-is
-  IntCmp $R1 0 done
-
-  ;Unregister the URI handler
-  DetailPrint "Unregistering $R0 URI Handler"
-  DeleteRegKey HKCR "$R0"
-
-  done:
-  Pop $R1
-  Pop $R0
-FunctionEnd
-
-Function RegisterURIHandler
-  Exch $R0
-  DetailPrint "Registering $R0 URI Handler"
-  DeleteRegKey HKCR "$R0"
-  WriteRegStr HKCR "$R0" "" "URL:$R0"
-  WriteRegStr HKCR "$R0" "URL Protocol" ""
-  WriteRegStr HKCR "$R0\DefaultIcon" "" "$INSTDIR\pidgin.exe"
-  WriteRegStr HKCR "$R0\shell" "" ""
-  WriteRegStr HKCR "$R0\shell\Open" "" ""
-  WriteRegStr HKCR "$R0\shell\Open\command" "" "$INSTDIR\pidgin.exe --protocolhandler=%1"
-  Pop $R0
-FunctionEnd
-
-
-!macro CheckUserInstallRightsMacro UN
-Function ${UN}CheckUserInstallRights
-  Push $0
-  Push $1
-  ClearErrors
-  UserInfo::GetName
-  IfErrors Win9x
-  Pop $0
-  UserInfo::GetAccountType
-  Pop $1
-
-  StrCmp $1 "Admin" 0 +3
-    StrCpy $1 "HKLM"
-    Goto done
-  StrCmp $1 "Power" 0 +3
-    StrCpy $1 "HKLM"
-    Goto done
-  StrCmp $1 "User" 0 +3
-    StrCpy $1 "HKCU"
-    Goto done
-  StrCmp $1 "Guest" 0 +3
-    StrCpy $1 "NONE"
-    Goto done
-  ; Unknown error
-  StrCpy $1 "NONE"
-  Goto done
-
-  Win9x:
-    StrCpy $1 "HKLM"
-
-  done:
-    Exch $1
-    Exch
-    Pop $0
-FunctionEnd
-!macroend
-!insertmacro CheckUserInstallRightsMacro ""
-!insertmacro CheckUserInstallRightsMacro "un."
-
-;
-; Usage:
-;   Push $0 ; Path string
-;   Call VerifyDir
-;   Pop $0 ; 0 - Bad path  1 - Good path
-;
-Function VerifyDir
-  Exch $0
-  Push $1
-  Push $2
-  Loop:
-    IfFileExists $0 dir_exists
-    StrCpy $1 $0 ; save last
-    ${GetParent} $0 $0
-    StrLen $2 $0
-    ; IfFileExists "C:" on xp returns true and on win2k returns false
-    ; So we're done in such a case..
-    IntCmp $2 2 loop_done
-    ; GetParent of "C:" returns ""
-    IntCmp $2 0 loop_done
-    Goto Loop
-
-  loop_done:
-    StrCpy $1 "$0\GaImFooB"
-    ; Check if we can create dir on this drive..
-    ClearErrors
-    CreateDirectory $1
-    IfErrors DirBad DirGood
-
-  dir_exists:
-    ClearErrors
-    FileOpen $1 "$0\pidginfoo.bar" w
-    IfErrors PathBad PathGood
-
-    DirGood:
-      RMDir $1
-      Goto PathGood1
-
-    DirBad:
-      RMDir $1
-      Goto PathBad1
-
-    PathBad:
-      FileClose $1
-      Delete "$0\pidginfoo.bar"
-      PathBad1:
-      StrCpy $0 "0"
-      Push $0
-      Goto done
-
-    PathGood:
-      FileClose $1
-      Delete "$0\pidginfoo.bar"
-      PathGood1:
-      StrCpy $0 "1"
-      Push $0
-
-  done:
-  Exch 3 ; The top of the stack contains the output variable
-  Pop $0
-  Pop $2
-  Pop $1
-FunctionEnd
-
-Function .onVerifyInstDir
-  Push $0
-  Push $INSTDIR
-  Call VerifyDir
-  Pop $0
-  StrCmp $0 "0" 0 dir_good
-  Pop $0
-  Abort
-
-  dir_good:
-  Pop $0
-FunctionEnd
-
-;
-; Usage:
-; Call DoWeNeedGtk
-; First Pop:
-;   0 - We have the correct version
-;   1 - We have an old version that should work, prompt user for optional upgrade
-;   2 - We have an old version that needs to be upgraded
-;   3 - We don't have GTK at all
-;
-Function DoWeNeedGtk
-  Push $0
-  Push $1
-
-  IfFileExists "$INSTDIR\Gtk\CONTENTS" +3
-  Push "3"
-  Goto done
-
-  ClearErrors
-  ${ConfigRead} "$INSTDIR\Gtk\CONTENTS" "Bundle Version " $0
-  IfErrors 0 +3
-  Push "3"
-  Goto done
-
-  ${VersionCompare} ${GTK_INSTALL_VERSION} $0 $1
-  IntCmp $1 1 +3
-  Push "0" ; Have a good version
-  Goto done
-
-  ${VersionCompare} ${GTK_MIN_VERSION} $0 $1
-  IntCmp $1 1 +3
-  Push "1" ; Optional Upgrade
-  Goto done
-  Push "2" ; Mandatory Upgrade
-  Goto done
-
-  done:
-  ; The item on the stack is what we want to return
-  Exch
-  Pop $1
-  Exch
-  Pop $0
-FunctionEnd
-
-
-!macro RunCheckMacro UN
-Function ${UN}RunCheck
-  Push $R0
-  Push $R1
-
-  IntOp $R1 0 + 0
-  retry_runcheck:
-  ; Close the Handle (needed if we're retrying)
-  IntCmp $R1 0 +2
-    System::Call 'kernel32::CloseHandle(i $R1) i .R1'
-  System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_is_running") i .R1 ?e'
-  Pop $R0
-  IntCmp $R0 0 +3 ;This could check for ERROR_ALREADY_EXISTS(183), but lets just assume
-    MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(PIDGINISRUNNING) /SD IDCANCEL IDRETRY retry_runcheck
-    Abort
-
-  ; Close the Handle (If we don't do this, the uninstaller called from within will fail)
-  ; This is not optimal because there is a (small) window of time when a new process could start
-  System::Call 'kernel32::CloseHandle(i $R1) i .R1'
-
-  Pop $R1
-  Pop $R0
-FunctionEnd
-!macroend
-!insertmacro RunCheckMacro ""
-!insertmacro RunCheckMacro "un."
-
-Function .onInit
-  Push $R0
-  Push $R1
-  Push $R2
-  Push $R3 ; This is only used for the Parameters throughout the function
-
-  ${GetParameters} $R3
-
-  IntOp $R1 0 + 0
-  retry_runcheck:
-  ; Close the Handle (needed if we're retrying)
-  IntCmp $R1 0 +2
-    System::Call 'kernel32::CloseHandle(i $R1) i .R1'
-  System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_installer_running") i .R1 ?e'
-  Pop $R0
-  IntCmp $R0 0 +3 ;This could check for ERROR_ALREADY_EXISTS(183), but lets just assume
-    MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(INSTALLERISRUNNING) /SD IDCANCEL IDRETRY retry_runcheck
-    Abort
-
-  ; Allow installer to run even if pidgin is running via "/NOPIDGINRUNCHECK=1"
-  ; This is useful for testing
-  ClearErrors
-  ${GetOptions} "$R3" "/NOPIDGINRUNCHECK=" $R1
-  IfErrors 0 +2
-  Call RunCheck
-
-  StrCpy $name "Pidgin ${PIDGIN_VERSION}"
-
-  ;Try to copy the old Gaim installer Lang Reg. key
-  ;(remove it after we're done to prevent this being done more than once)
-  ClearErrors
-  ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}"
-  IfErrors 0 +5
-  ClearErrors
-  ReadRegStr $R0 HKCU "${OLD_GAIM_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}"
-  IfErrors +3
-  DeleteRegValue HKCU "${OLD_GAIM_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}"
-  WriteRegStr HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" "$R0"
-
-  ${MementoSectionRestore}
-
-  ;Preselect the URI handlers as appropriate
-  Call SelectURIHandlerSelections
-
-  ;Preselect the "shortcuts" checkboxes according to the previous installation
-  ClearErrors
-  ;Make sure that there was a previous installation
-  ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}"
-  IfErrors done_preselecting_shortcuts
-    ;Does the Desktop shortcut exist?
-    GetFileTime "$DESKTOP\Pidgin.lnk" $R0 $R0
-    IfErrors +1 +5
-    ClearErrors
-    SetShellVarContext "all"
-    GetFileTime "$DESKTOP\Pidgin.lnk" $R0 $R0
-    IfErrors preselect_startmenu_shortcut ;Desktop Shortcut if off by default
-    !insertmacro SelectSection ${SecDesktopShortcut}
-  preselect_startmenu_shortcut:
-    ;Reset ShellVarContext because we may have changed it
-    SetShellVarContext "current"
-    ClearErrors
-    ;Does the StartMenu shortcut exist?
-    GetFileTime "$SMPROGRAMS\Pidgin.lnk" $R0 $R0
-    IfErrors +1 done_preselecting_shortcuts ;StartMenu Shortcut is on by default
-    ClearErrors
-    SetShellVarContext "all"
-    GetFileTime "$SMPROGRAMS\Pidgin.lnk" $R0 $R0
-    IfErrors +1 done_preselecting_shortcuts ;StartMenu Shortcut is on by default
-    !insertmacro UnselectSection ${SecStartMenuShortcut}
-  done_preselecting_shortcuts:
-  ;Reset ShellVarContext because we may have changed it
-  SetShellVarContext "current"
-
-  ClearErrors
-  ${GetOptions} "$R3" "/L=" $R1
-  IfErrors +3
-  StrCpy $LANGUAGE $R1
-  Goto skip_lang
-
-  ; Select Language
-    ; Display Language selection dialog
-    !define MUI_LANGDLL_ALWAYSSHOW
-    !insertmacro MUI_LANGDLL_DISPLAY
-    skip_lang:
-
-  ClearErrors
-  ${GetOptions} "$R3" "/DS=" $R1
-  IfErrors +8
-  SectionGetFlags ${SecDesktopShortcut} $R2
-  StrCmp "1" $R1 0 +2
-  IntOp $R2 $R2 | ${SF_SELECTED}
-  StrCmp "0" $R1 0 +3
-  IntOp $R1 ${SF_SELECTED} ~
-  IntOp $R2 $R2 & $R1
-  SectionSetFlags ${SecDesktopShortcut} $R2
-
-  ClearErrors
-  ${GetOptions} "$R3" "/SMS=" $R1
-  IfErrors +8
-  SectionGetFlags ${SecStartMenuShortcut} $R2
-  StrCmp "1" $R1 0 +2
-  IntOp $R2 $R2 | ${SF_SELECTED}
-  StrCmp "0" $R1 0 +3
-  IntOp $R1 ${SF_SELECTED} ~
-  IntOp $R2 $R2 & $R1
-  SectionSetFlags ${SecStartMenuShortcut} $R2
-
-  ; If install path was set on the command, use it.
-  StrCmp $INSTDIR "" 0 instdir_done
-
-  ;  If pidgin or gaim is currently installed, we should default to where it is currently installed
-  ClearErrors
-  ReadRegStr $INSTDIR HKCU "${PIDGIN_REG_KEY}" ""
-  IfErrors +2
-  StrCmp $INSTDIR "" 0 instdir_done
-  ClearErrors
-  ReadRegStr $INSTDIR HKLM "${PIDGIN_REG_KEY}" ""
-  IfErrors +2
-  StrCmp $INSTDIR "" 0 instdir_done
-
-  Call CheckUserInstallRights
-  Pop $R0
-
-  StrCmp $R0 "HKLM" 0 user_dir
-    StrCpy $INSTDIR "$PROGRAMFILES\Pidgin"
-    Goto instdir_done
-  user_dir:
-    Push $SMPROGRAMS
-    ${GetParent} $SMPROGRAMS $R2
-    ${GetParent} $R2 $R2
-    StrCpy $INSTDIR "$R2\Pidgin"
-
-  instdir_done:
-;LogSet on
-
-  ; Try to select a translation and a dictionary for the currently selected Language
-  Call SelectTranslationForCurrentLanguage
-
-  ;Mark the dictionaries that are already installed as readonly
-  Call SelectAndDisableInstalledDictionaries
-
-  Pop $R3
-  Pop $R2
-  Pop $R1
-  Pop $R0
-FunctionEnd
-
-Function .onInstSuccess
-
-  ${MementoSectionSave}
-
-FunctionEnd
-
-
-Function un.onInit
-
-  Call un.RunCheck
-  StrCpy $name "Pidgin ${PIDGIN_VERSION}"
-;LogSet on
-
-  ; Get stored language preference
-  !insertmacro MUI_UNGETLANGUAGE
-
-FunctionEnd
-
-; Page enter and exit functions..
-
-Function preWelcomePage
-  Push $R0
-  Push $R1
-
-!ifdef OFFLINE_INSTALLER
-    !insertmacro SelectSection ${SecDebugSymbols}
-!endif
-
-  Call DoWeNeedGtk
-  Pop $CURRENT_GTK_STATE
-  StrCpy $WARNED_GTK_STATE "0"
-  IntCmp $CURRENT_GTK_STATE 1 done gtk_not_mandatory
-    ; Make the GTK Section RO if it is required. (it is required only if you have an existing version that is too old)
-    StrCmp $CURRENT_GTK_STATE "2" 0 done
-    !insertmacro SetSectionFlag ${SecGtk} ${SF_RO}
-    Goto done
-  gtk_not_mandatory:
-    ; Don't select the GTK section if we already have this version or newer installed
-    !insertmacro UnselectSection ${SecGtk}
-
-  done:
-  Pop $R1
-  Pop $R0
-FunctionEnd
-
-; If the GTK Section has been unselected and there isn't a compatible GTK already, confirm
-Function .onSelChange
-  Push $R0
-
-  SectionGetFlags ${SecGtk} $R0
-  IntOp $R0 $R0 & ${SF_SELECTED}
-  ; If the Gtk Section is currently selected, reset the "Warned" flag
-  StrCmp $R0 "${SF_SELECTED}" 0 +3
-  StrCpy $WARNED_GTK_STATE "0"
-  Goto done
-
-  ; If we've already warned the user, don't warn them again
-  StrCmp $WARNED_GTK_STATE "1" done
-  IntCmp $CURRENT_GTK_STATE 1 done done 0
-  StrCpy $WARNED_GTK_STATE "1"
-  MessageBox MB_YESNO $(PIDGINPROMPTFORCENOGTK) /SD IDNO IDYES done
-  !insertmacro SelectSection ${SecGtk}
-
-  done:
-  Pop $R0
-FunctionEnd
-
-Function SelectTranslationForCurrentLanguage
-!insertmacro SELECT_TRANSLATION_FUNCTION
-FunctionEnd
-
-; SpellChecker Related Functions
-;-------------------------------
-
-; Select and Disable any Sections that have currently installed dictionaries
-!macro CHECK_SPELLCHECK_SECTION lang
-  ;Advance to the next (correct) section index
-  IntOp $R0 $R0 + 1
-  IfFileExists "$INSTDIR\spellcheck\share\enchant\myspell\${lang}.dic" 0 done_${lang}
-  SectionGetFlags $R0 $R1
-  IntOp $R1 $R1 | ${SF_RO} ; Mark Readonly
-  IntOp $R1 $R1 | ${SF_SELECTED} ; Select
-  SectionSetFlags $R0 $R1
-  done_${lang}:
-!macroend
-Function SelectAndDisableInstalledDictionaries
-  Push $R0
-  Push $R1
-
-  !insertmacro SetSectionFlag ${SecSpellCheck} ${SF_RO}
-  !insertmacro UnselectSection ${SecSpellCheck}
-
-  IntOp $R0 ${SecSpellCheck} + 0
-  !include "pidgin-spellcheck-preselect.nsh"
-
-  Pop $R1
-  Pop $R0
-FunctionEnd
-
-Function InstallDict
-  Push $R0
-  Exch
-  Pop $R0 ;This is the language code
-  Push $R1
-  Exch 2
-  Pop $R1 ;This is the language file
-  Push $R2
-  Push $R3
-  Push $R4
-
-  ClearErrors
-  IfFileExists "$INSTDIR\spellcheck\share\enchant\myspell\$R0.dic" installed
-
-  InitPluginsDir
-
-  ; We need to download and install dictionary
-  StrCpy $R2 "$PLUGINSDIR\$R1"
-  StrCpy $R3 "${DOWNLOADER_URL}&dl_pkg=oo_dict&lang=$R1&lang_file=$R1"
-  DetailPrint "Downloading the $R0 Dictionary... ($R3)"
-  retry:
-  NSISdl::download /TIMEOUT=10000 "$R3" "$R2"
-  Pop $R4
-  StrCmp $R4 "cancel" done
-  StrCmp $R4 "success" +3
-    MessageBox MB_RETRYCANCEL "$(PIDGINSPELLCHECKERROR)" /SD IDCANCEL IDRETRY retry IDCANCEL done
-    Goto done
-  SetOutPath "$INSTDIR\spellcheck\share\enchant\myspell"
-  nsisunz::UnzipToLog "$R2" "$OUTDIR"
-  SetOutPath "$INSTDIR"
-  Pop $R3
-  StrCmp $R3 "success" installed
-    DetailPrint "$R3" ;print error message to log
-    Goto done
-
-  installed: ;The dictionary is currently installed, no error message
-    DetailPrint "$R0 Dictionary is installed"
-
-  done:
-  Pop $R4
-  Pop $R3
-  Pop $R2
-  Pop $R0
-  Exch $R1
-FunctionEnd
-
-!ifndef OFFLINE_INSTALLER
-; Input Stack: Filename, SHA1sum
-; Output Return Code: 0=Match; 1=FileSum error; 2=Mismatch
-Function CheckSHA1Sum
-  Push $R0
-  Exch
-  Pop $R0 ;Filename
-  Push $R2
-  Exch 2
-  Pop $R2 ;SHA1sum
-  Push $R1
-
-  SHA1Plugin::FileSum "$R0"
-  Pop $R1
-  Pop $R0
-
-  StrCmp "$R1" "0" +4
-    DetailPrint "SHA1Sum calculation error: $R0"
-    IntOp $R1 0 + 1
-    Goto done
-
-  ; Compare the SHA1Sums
-  StrCmp $R2 $R0 +4
-    DetailPrint "SHA1Sum mismatch... Expected $R2; got $R0"
-    IntOp $R1 0 + 2
-    Goto done
-
-  IntOp $R1 0 + 0
-
-  done:
-  Exch $R1 ;$R1 has the return code
-  Exch
-  Pop $R2
-  Exch
-  Pop $R0
-FunctionEnd
-!endif
-
diff --git a/pidgin/win32/nsis/pidgin-plugin.nsh b/pidgin/win32/nsis/pidgin-plugin.nsh
deleted file mode 100644
--- a/pidgin/win32/nsis/pidgin-plugin.nsh
+++ /dev/null
@@ -1,181 +0,0 @@
-;;
-;; Windows Pidgin NSIS installer plugin helper utilities
-;; Copyright 2005, Daniel Atallah <daniel_atallah@yahoo.com>
-;;
-;; Include in plugin installer scripts using:
-;;   !addincludedir "${PATH_TO_PIDGIN_SRC}\pidgin\win32\nsis"
-;;   !include "pidgin-plugin.nsh"
-;;
-
-!define PIDGIN_REG_KEY              "SOFTWARE\pidgin"
-
-!define PIDGIN_VERSION_OK           0
-!define PIDGIN_VERSION_INCOMPATIBLE 1
-!define PIDGIN_VERSION_UNDEFINED    2
-
-; Extract the Pidgin Version from the registry
-; This will set the Error flag if unable to determine the value
-; Pop the value of the stack after calling this to get the value (unless Error Flag is set)
-Function GetPidginVersion
-  Push $R0
-
-  ; Read the pidgin version
-  ClearErrors
-  ReadRegStr $R0 HKLM ${PIDGIN_REG_KEY} "Version"
-  IfErrors +1 GetPidginVersion_found
-  ; fall back to the HKCU registry key
-  ReadRegStr $R0 HKCU ${PIDGIN_REG_KEY} "Version"
-  IfErrors GetPidginVersion_done ; Keep the error flag set
-
-  GetPidginVersion_found:
-  Push $R0 ; Push the value onto the stack
-  Exch
-
-  GetPidginVersion_done:
-  ; restore $R0
-  Pop $R0
-FunctionEnd
-
-; Check that the currently installed Pidgin version is compatible
-; with the plugin version we are installing
-; Push the Plugin's Pidgin Version onto the Stack before calling
-; After calling, the top of the Stack will contain the result of the check:
-;   PIDGIN_VERSION_OK - If the installed Pidgin version is compatible w/ the version specified
-;   PIDGIN_VERSION_INCOMPATIBLE - If the installed Pidgin version isn't compatible w/ the version specified
-;   PIDGIN_VERSION_UNDEFINED - If the installed Pidgin version can't be determined 
-Function CheckPidginVersion
-  ; Save the Variable values that we will use in the stack
-  Push $R4
-  Exch
-  Pop $R4 ; Get the plugin's Pidgin Version
-  Push $R0
-  Push $R1
-  Push $R2
-
-  ; Read the pidgin version
-  Call GetPidginVersion
-  IfErrors checkPidginVersion_noPidginInstallFound
-  Pop $R0
-
-  ;If they are exactly the same, we don't need to look at anything else
-  StrCmp $R0 $R4 checkPidginVersion_VersionOK 
-
-  ; Versions are in the form of X.Y.Z
-  ; If X is different or plugin's Y > pidgin's Y, then we shouldn't install
-
-  ;Check the Major Version
-  Push $R0
-  Push 0
-  Call GetVersionComponent
-  IfErrors checkPidginVersion_noPidginInstallFound ;We couldn't extract 'X' from the installed pidgin version
-  Pop $R2
-  Push $R4
-  Push 0
-  Call GetVersionComponent
-  IfErrors checkPidginVersion_BadVersion ; this isn't a valid version, so don't bother even checking
-  Pop $R1
-  ;Check that both versions' X is the same
-  StrCmp $R1 $R2 +1 checkPidginVersion_BadVersion
-
-  ;Check the Minor Version
-  Push $R0
-  Push 1
-  Call GetVersionComponent
-  IfErrors checkPidginVersion_noPidginInstallFound ;We couldn't extract 'Y' from the installed pidgin version
-  Pop $R2
-  Push $R4
-  Push 1
-  Call GetVersionComponent
-  IfErrors checkPidginVersion_BadVersion ; this isn't a valid version, so don't bother even checking
-  Pop $R1
-  ;Check that plugin's Y <= pidgin's Y
-  IntCmp $R1 $R2 checkPidginVersion_VersionOK checkPidginVersion_VersionOK checkPidginVersion_BadVersion
-
-  checkPidginVersion_BadVersion:
-    Push ${PIDGIN_VERSION_INCOMPATIBLE}
-    goto checkPidginVersion_done
-  checkPidginVersion_noPidginInstallFound:
-    Push ${PIDGIN_VERSION_UNDEFINED}
-    goto checkPidginVersion_done
-  checkPidginVersion_VersionOK:
-    Push ${PIDGIN_VERSION_OK}
-
-  checkPidginVersion_done:
-  ; Restore the Variables that we used
-  Exch
-  Pop $R2
-  Exch
-  Pop $R1
-  Exch
-  Pop $R0
-  Exch
-  Pop $R4
-FunctionEnd
-
-; Extract the part of a string prior to "." (or the whole string if there is no ".")
-; If no "." was found, the ErrorFlag will be set
-; Before this is called, Push ${VERSION_STRING} must be called, and then Push 0 for Major, 1 for Minor, etc
-; Pop should be called after to retrieve the new value
-Function GetVersionComponent
-  ClearErrors
-
-  ; Save the Variable values that we will use in the stack
-  Push $1
-  Exch
-  Pop $1 ;The version component which we want to extract (0, 1, 2)
-  Exch
-  Push $0
-  Exch
-  Pop $0 ;The string from which to extract the version component
-
-  Push $2
-  Push $3
-  Push $4
-  Push $5
-  Push $6
-  Push $7
-
-  StrCpy $2 "0" ;Initialize our string index counter
-  StrCpy $7 "0" ;Index of last "."
-  StrCpy $3 "0" ;Initialize our version index counter
-
-  startGetVersionComponentLoop:
-    ;avoid infinite loop (if we have gotten the whole initial string, exit the loop and set the error flag)
-    StrCmp $6 $0 GetVersionComponentSetErrorFlag
-    IntOp $2 $2 + 1
-    StrCpy $6 $0 $2 ;Update the infinite loop preventing string
-    ;Determine the correct substring (only the current index component)
-    IntOp $5 $2 - $7
-    StrCpy $4 $0 $5 $7 ;Append the current character in $0 to $4
-    StrCpy $5 $0 1 $2 ;store the next character in $5
-
-    ;if the next character is ".", $4 will contain the version component prior to "."
-    StrCmp $5 "." +1 startGetVersionComponentLoop
-    StrCmp $3 $1 doneGetVersionComponent ;If it is the version component we're looking for, stop
-    IntOp $3 $3 + 1 ;Increment the version index counter
-    IntOp $2 $2 + 1 ;Increment the version string index to "." (so it will be skipped)
-    StrCpy $7 $2 ;Keep track of the index of the last "."
-    StrCpy $6 $0 $2 ;Update the infinite loop preventing string
-    goto startGetVersionComponentLoop
-
-  GetVersionComponentSetErrorFlag:
-    SetErrors
-
-  doneGetVersionComponent:
-  ; Restore the Variables that we used
-  Pop $7
-  Pop $6
-  Pop $5
-  Push $4 ;This is the value we're returning
-  Exch
-  Pop $4
-  Exch
-  Pop $3
-  Exch
-  Pop $2
-  Exch
-  Pop $0
-  Exch
-  Pop $1
-FunctionEnd
-
diff --git a/pidgin/win32/nsis/pixmaps/pidgin-header.bmp b/pidgin/win32/nsis/pixmaps/pidgin-header.bmp
deleted file mode 100644
index 1d5a657f7f2ab4c65f87f33c1de93d5d298c9ec3..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/pidgin/win32/nsis/pixmaps/pidgin-install.ico b/pidgin/win32/nsis/pixmaps/pidgin-install.ico
deleted file mode 100644
index 82ceaff0cd0894de9f9568c69c6a9019485bc253..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/pidgin/win32/nsis/pixmaps/pidgin-intro.bmp b/pidgin/win32/nsis/pixmaps/pidgin-intro.bmp
deleted file mode 100644
index 49f4e2a4ce9893c43624b4a075a79731ca4067fc..0000000000000000000000000000000000000000
GIT binary patch
