annotate pidgin/win32/nsis/pidgin-installer.nsi @ 29153:592d382e1bf4

Norwegian nynorsk win32 installer translation from Yngve Spjeld Landro
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 08 Dec 2009 04:52:50 +0000
parents d537567d051f
children c38f6e6bf4ce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1 ; Installer script for win32 Pidgin
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
2 ; Original Author: Herman Bloggs <hermanator12002@yahoo.com>
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
3 ; Updated By: Daniel Atallah <daniel_atallah@yahoo.com>
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
4
27470
77976350b32d Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 27218
diff changeset
5 ; NOTE: this .NSI script is intended for NSIS 2.27+
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
6 ;
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
7
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
8 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
9 ;Global Variables
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
10 Var name
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
11 Var GTK_FOLDER
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
12 Var ISSILENT
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
13 Var STARTUP_RUN_KEY
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
14 Var SPELLCHECK_SEL
28450
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
15 Var LANGUAGE_SET
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
16
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
17 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
18 ;Configuration
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
19
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
20 ;The name var is set in .onInit
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
21 Name $name
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
22
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
23 !ifdef WITH_GTK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
24 OutFile "pidgin-${PIDGIN_VERSION}.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
25 !else
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
26 !ifdef DEBUG
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
27 OutFile "pidgin-${PIDGIN_VERSION}-debug.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
28 !else
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
29 OutFile "pidgin-${PIDGIN_VERSION}-no-gtk.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
30 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
31 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
32
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
33 SetCompressor /SOLID lzma
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
34 ShowInstDetails show
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
35 ShowUninstDetails show
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
36 SetDateSave on
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
37
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
38 ; $name and $INSTDIR are set in .onInit function..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
39
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
40 !include "MUI.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
41 !include "Sections.nsh"
17464
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
42 !include "WinVer.nsh"
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
43 !include "LogicLib.nsh"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
44
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
45 !include "FileFunc.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
46 !insertmacro GetParameters
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
47 !insertmacro GetOptions
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
48 !insertmacro GetParent
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
49
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
50 !include "WordFunc.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
51 !insertmacro VersionCompare
15796
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
52 !insertmacro WordFind
22775
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
53 !insertmacro un.WordFind
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
54
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
55 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
56 ;Defines
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
57
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
58 !define PIDGIN_NSIS_INCLUDE_PATH "."
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
59 !define PIDGIN_INSTALLER_DEPS "..\..\..\..\win32-dev\pidgin-inst-deps"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
60
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
61 ; Remove these and the stuff that uses them at some point
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
62 !define OLD_GAIM_REG_KEY "SOFTWARE\gaim"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
63 !define OLD_GAIM_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
64 !define OLD_GAIM_UNINST_EXE "gaim-uninst.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
65
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
66 !define PIDGIN_REG_KEY "SOFTWARE\pidgin"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
67 !define PIDGIN_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Pidgin"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
68
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
69 !define HKLM_APP_PATHS_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\pidgin.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
70 !define STARTUP_RUN_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
71 !define PIDGIN_UNINST_EXE "pidgin-uninst.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
72
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
73 !define GTK_MIN_VERSION "2.6.10"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
74 !define GTK_REG_KEY "SOFTWARE\GTK\2.0"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
75 !define PERL_REG_KEY "SOFTWARE\Perl"
23648
ab5b9acebde3 Update the Perl plugin loader to work with Perl 5.10.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23633
diff changeset
76 !define PERL_DLL "perl510.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
77 !define GTK_DEFAULT_INSTALL_PATH "$COMMONFILES\GTK\2.0"
28450
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
78 !define GTK_RUNTIME_INSTALLER "..\..\..\..\gtk_installer\gtk-runtime-${GTK_INSTALL_VERSION}*.exe"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
79
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
80 !define ASPELL_REG_KEY "SOFTWARE\Aspell"
16243
502b69976fe1 Remove GTK+ theme selection from installer. The next GTK+ runtime installer will contain a theme selector utility.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16209
diff changeset
81 !define DOWNLOADER_URL "http://pidgin.im/win32/download_redir.php"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
82
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
83 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
84 ;Version resource
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
85 VIProductVersion "${PIDGIN_PRODUCT_VERSION}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
86 VIAddVersionKey "ProductName" "Pidgin"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
87 VIAddVersionKey "FileVersion" "${PIDGIN_VERSION}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
88 VIAddVersionKey "ProductVersion" "${PIDGIN_VERSION}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
89 VIAddVersionKey "LegalCopyright" ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
90 !ifdef WITH_GTK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
91 VIAddVersionKey "FileDescription" "Pidgin Installer (w/ GTK+ Installer)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
92 !else
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
93 !ifdef DEBUG
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
94 VIAddVersionKey "FileDescription" "Pidgin Installer (Debug Version)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
95 !else
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
96 VIAddVersionKey "FileDescription" "Pidgin Installer (w/o GTK+ Installer)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
97 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
98 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
99
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
100 ;--------------------------------
17464
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
101 ;Reserve files used in .onInit
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
102 ;for faster start-up
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
103 ReserveFile "${NSISDIR}\Plugins\System.dll"
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
104 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
105 !insertmacro MUI_RESERVEFILE_LANGDLL
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
106
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
107 ;--------------------------------
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
108 ;Modern UI Configuration
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
109
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
110 !define MUI_ICON ".\pixmaps\pidgin-install.ico"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
111 !define MUI_UNICON ".\pixmaps\pidgin-install.ico"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
112 !define MUI_WELCOMEFINISHPAGE_BITMAP ".\pixmaps\pidgin-intro.bmp"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
113 !define MUI_HEADERIMAGE
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
114 !define MUI_HEADERIMAGE_BITMAP ".\pixmaps\pidgin-header.bmp"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
115
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
116 ; Alter License section
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
117 !define MUI_LICENSEPAGE_BUTTON $(PIDGIN_LICENSE_BUTTON)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
118 !define MUI_LICENSEPAGE_TEXT_BOTTOM $(PIDGIN_LICENSE_BOTTOM_TEXT)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
119
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
120 !define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
121 !define MUI_LANGDLL_REGISTRY_KEY ${PIDGIN_REG_KEY}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
122 !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
123
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
124 !define MUI_COMPONENTSPAGE_SMALLDESC
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
125 !define MUI_ABORTWARNING
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
126
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
127 ;Finish Page config
16784
9b74ac7ea9c7 Don't automatically proceed to the installer's "Finished" page - allow the log to be reviewed and make the user choose to move on. (Fixes #456).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16783
diff changeset
128 !define MUI_FINISHPAGE_NOAUTOCLOSE
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
129 !define MUI_FINISHPAGE_RUN "$INSTDIR\pidgin.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
130 !define MUI_FINISHPAGE_RUN_NOTCHECKED
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
131 !define MUI_FINISHPAGE_LINK $(PIDGIN_FINISH_VISIT_WEB_SITE)
17884
234ab2c9ed36 Fix win32 installer finishpage URL. (this is fixed in the 2.0.2 installer too)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17864
diff changeset
132 !define MUI_FINISHPAGE_LINK_LOCATION "http://pidgin.im"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
133
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
134 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
135 ;Pages
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
136
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
137 !define MUI_PAGE_CUSTOMFUNCTION_PRE preWelcomePage
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
138 !insertmacro MUI_PAGE_WELCOME
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
139 !insertmacro MUI_PAGE_LICENSE "../../../COPYING"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
140 !insertmacro MUI_PAGE_COMPONENTS
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
141
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
142 !ifdef WITH_GTK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
143 ; GTK+ install dir page
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
144 !define MUI_PAGE_CUSTOMFUNCTION_PRE preGtkDirPage
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
145 !define MUI_PAGE_CUSTOMFUNCTION_LEAVE postGtkDirPage
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
146 !define MUI_DIRECTORYPAGE_VARIABLE $GTK_FOLDER
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
147 !insertmacro MUI_PAGE_DIRECTORY
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
148 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
149
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
150 ; Pidgin install dir page
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
151 !insertmacro MUI_PAGE_DIRECTORY
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
152
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
153 !insertmacro MUI_PAGE_INSTFILES
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
154 !insertmacro MUI_PAGE_FINISH
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
155
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
156 !insertmacro MUI_UNPAGE_WELCOME
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
157 !insertmacro MUI_UNPAGE_CONFIRM
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
158 !insertmacro MUI_UNPAGE_INSTFILES
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
159 !insertmacro MUI_UNPAGE_FINISH
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
160
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
161 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
162 ;Languages
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
163
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
164 ;; English goes first because its the default. The rest are
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
165 ;; in alphabetical order (at least the strings actually displayed
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
166 ;; will be).
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
167
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
168 !insertmacro MUI_LANGUAGE "English"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
169
16713
9b7ed8da299d Add the Afrikaans translation from Friedel Wolff to the win32 installer (while humming 'De La Rey') now that NSIS 2.26 has been released and inclues an Afrikaans translation.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16542
diff changeset
170 !insertmacro MUI_LANGUAGE "Afrikaans"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
171 !insertmacro MUI_LANGUAGE "Albanian"
20274
d9e391c08e08 Enable the new Arabic windows installer translation.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19984
diff changeset
172 !insertmacro MUI_LANGUAGE "Arabic"
19984
3023e0ba2fa6 Add Basque translation to win32 installer from Mikel Pascual Aldabaldetreku. Fixes #2880.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19673
diff changeset
173 !insertmacro MUI_LANGUAGE "Basque"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
174 !insertmacro MUI_LANGUAGE "Bulgarian"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
175 !insertmacro MUI_LANGUAGE "Catalan"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
176 !insertmacro MUI_LANGUAGE "Czech"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
177 !insertmacro MUI_LANGUAGE "Danish"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
178 !insertmacro MUI_LANGUAGE "SimpChinese"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
179 !insertmacro MUI_LANGUAGE "TradChinese"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
180 !insertmacro MUI_LANGUAGE "German"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
181 !insertmacro MUI_LANGUAGE "Spanish"
19304
9e9f3442764c New Persian win32 installer translation from Elnaz Sarbar. Fixes 2273.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 18463
diff changeset
182 !insertmacro MUI_LANGUAGE "Farsi"
9e9f3442764c New Persian win32 installer translation from Elnaz Sarbar. Fixes 2273.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 18463
diff changeset
183 !insertmacro MUI_LANGUAGE "Finnish"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
184 !insertmacro MUI_LANGUAGE "French"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
185 !insertmacro MUI_LANGUAGE "Hebrew"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
186 !insertmacro MUI_LANGUAGE "Italian"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
187 !insertmacro MUI_LANGUAGE "Japanese"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
188 !insertmacro MUI_LANGUAGE "Korean"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
189 !insertmacro MUI_LANGUAGE "Kurdish"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
190 !insertmacro MUI_LANGUAGE "Lithuanian"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
191 !insertmacro MUI_LANGUAGE "Hungarian"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
192 !insertmacro MUI_LANGUAGE "Dutch"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
193 !insertmacro MUI_LANGUAGE "Norwegian"
29153
592d382e1bf4 Norwegian nynorsk win32 installer translation from Yngve Spjeld Landro
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28970
diff changeset
194 !insertmacro MUI_LANGUAGE "NorwegianNynorsk"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
195 !insertmacro MUI_LANGUAGE "Polish"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
196 !insertmacro MUI_LANGUAGE "PortugueseBR"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
197 !insertmacro MUI_LANGUAGE "Portuguese"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
198 !insertmacro MUI_LANGUAGE "Romanian"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
199 !insertmacro MUI_LANGUAGE "Russian"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
200 !insertmacro MUI_LANGUAGE "Serbian"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
201 !insertmacro MUI_LANGUAGE "Slovak"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
202 !insertmacro MUI_LANGUAGE "Slovenian"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
203 !insertmacro MUI_LANGUAGE "Swedish"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
204
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
205 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
206 ;Translations
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
207
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
208 !define PIDGIN_DEFAULT_LANGFILE "${PIDGIN_NSIS_INCLUDE_PATH}\translations\english.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
209
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
210 !include "${PIDGIN_NSIS_INCLUDE_PATH}\langmacros.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
211
16713
9b7ed8da299d Add the Afrikaans translation from Friedel Wolff to the win32 installer (while humming 'De La Rey') now that NSIS 2.26 has been released and inclues an Afrikaans translation.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16542
diff changeset
212 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "AFRIKAANS" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\afrikaans.nsh"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
213 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ALBANIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\albanian.nsh"
20274
d9e391c08e08 Enable the new Arabic windows installer translation.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19984
diff changeset
214 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ARABIC" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\arabic.nsh"
19984
3023e0ba2fa6 Add Basque translation to win32 installer from Mikel Pascual Aldabaldetreku. Fixes #2880.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19673
diff changeset
215 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "BASQUE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\basque.nsh"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
216 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "BULGARIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\bulgarian.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
217 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "CATALAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\catalan.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
218 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "CZECH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\czech.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
219 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "DANISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\danish.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
220 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "DUTCH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\dutch.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
221 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ENGLISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\english.nsh"
19304
9e9f3442764c New Persian win32 installer translation from Elnaz Sarbar. Fixes 2273.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 18463
diff changeset
222 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "FARSI" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\persian.nsh"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
223 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "FINNISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\finnish.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
224 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "FRENCH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\french.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
225 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "GERMAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\german.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
226 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "HEBREW" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\hebrew.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
227 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "HUNGARIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\hungarian.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
228 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ITALIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\italian.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
229 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "JAPANESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\japanese.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
230 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "KOREAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\korean.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
231 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "KURDISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\kurdish.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
232 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "LITHUANIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\lithuanian.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
233 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "NORWEGIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\norwegian.nsh"
29153
592d382e1bf4 Norwegian nynorsk win32 installer translation from Yngve Spjeld Landro
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28970
diff changeset
234 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "NORWEGIANNYNORSK" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\norwegian_nynorsk.nsh"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
235 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "POLISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\polish.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
236 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "PORTUGUESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\portuguese.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
237 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "PORTUGUESEBR" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\portuguese-br.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
238 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ROMANIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\romanian.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
239 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "RUSSIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\russian.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
240 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SERBIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\serbian-latin.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
241 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SIMPCHINESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\simp-chinese.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
242 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SLOVAK" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\slovak.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
243 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SLOVENIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\slovenian.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
244 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SPANISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\spanish.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
245 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SWEDISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\swedish.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
246 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "TRADCHINESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\trad-chinese.nsh"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
247
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
248 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
249 ;Reserve Files
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
250 ; Only need this if using bzip2 compression
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
251
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
252 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
253 !insertmacro MUI_RESERVEFILE_LANGDLL
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
254 ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
255
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
256
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
257 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
258 ;; Start Install Sections ;;
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
259 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
260
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
261 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
262 ;Uninstall any old version of Pidgin (or Gaim)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
263
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
264 Section -SecUninstallOldPidgin
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
265 ; Check install rights..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
266 Call CheckUserInstallRights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
267 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
268
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
269 ;First try to uninstall Pidgin
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
270 StrCpy $R4 ${PIDGIN_REG_KEY}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
271 StrCpy $R5 ${PIDGIN_UNINSTALL_KEY}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
272 StrCpy $R6 ${PIDGIN_UNINST_EXE}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
273 StrCpy $R7 "Pidgin"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
274
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
275 start_comparison:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
276 ;If pidgin is currently set to run on startup,
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
277 ; save the section of the Registry where the setting is before uninstalling,
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
278 ; so we can put it back after installing the new version
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
279 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
280 ReadRegStr $STARTUP_RUN_KEY HKCU "${STARTUP_RUN_KEY}" $R7
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
281 IfErrors +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
282 StrCpy $STARTUP_RUN_KEY "HKCU"
16783
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16773
diff changeset
283 Goto +5
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
284 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
285 ReadRegStr $STARTUP_RUN_KEY HKLM "${STARTUP_RUN_KEY}" $R7
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
286 IfErrors +2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
287 StrCpy $STARTUP_RUN_KEY "HKLM"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
288
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
289 StrCmp $R0 "HKLM" compare_hklm
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
290 StrCmp $R0 "HKCU" compare_hkcu done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
291
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
292 compare_hkcu:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
293 ReadRegStr $R1 HKCU $R4 ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
294 ReadRegStr $R2 HKCU $R4 "Version"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
295 ReadRegStr $R3 HKCU "$R5" "UninstallString"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
296 Goto try_uninstall
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
297
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
298 compare_hklm:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
299 ReadRegStr $R1 HKLM $R4 ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
300 ReadRegStr $R2 HKLM $R4 "Version"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
301 ReadRegStr $R3 HKLM "$R5" "UninstallString"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
302
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
303 ; If a previous version exists, remove it
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
304 try_uninstall:
16783
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16773
diff changeset
305 StrCmp $R1 "" no_version_found
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
306 ; Version key started with 0.60a3. Prior versions can't be
16773
ef86cf8789ea Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16713
diff changeset
307 ; automatically uninstalled.
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
308 StrCmp $R2 "" uninstall_problem
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
309 ; Check if we have uninstall string..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
310 IfFileExists $R3 0 uninstall_problem
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
311 ; Have uninstall string, go ahead and uninstall.
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
312 SetOverwrite on
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
313 ; Need to copy uninstaller outside of the install dir
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
314 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
315 CopyFiles /SILENT $R3 "$TEMP\$R6"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
316 SetOverwrite off
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
317 IfErrors uninstall_problem
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
318 ; Ready to uninstall..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
319 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
320 ExecWait '"$TEMP\$R6" /S _?=$R1'
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
321 IfErrors exec_error
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
322 Delete "$TEMP\$R6"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
323 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
324
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
325 exec_error:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
326 Delete "$TEMP\$R6"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
327 Goto uninstall_problem
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
328
16783
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16773
diff changeset
329 no_version_found:
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16773
diff changeset
330 ;We've already tried to fallback to an old gaim instance
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16773
diff changeset
331 StrCmp $R7 "Gaim" done
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
332 ; If we couldn't uninstall Pidgin, try to uninstall Gaim
16783
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16773
diff changeset
333 StrCpy $STARTUP_RUN_KEY "NONE"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
334 StrCpy $R4 ${OLD_GAIM_REG_KEY}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
335 StrCpy $R5 ${OLD_GAIM_UNINSTALL_KEY}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
336 StrCpy $R6 ${OLD_GAIM_UNINST_EXE}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
337 StrCpy $R7 "Gaim"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
338 Goto start_comparison
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
339
16783
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16773
diff changeset
340 uninstall_problem:
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
341 ; We can't uninstall. Either the user must manually uninstall or we ignore and reinstall over it.
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
342 MessageBox MB_OKCANCEL $(PIDGIN_PROMPT_CONTINUE_WITHOUT_UNINSTALL) /SD IDOK IDOK done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
343 Quit
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
344 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
345 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
346
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
347
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
348 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
349 ;GTK+ Runtime Install Section
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
350
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
351 !ifdef WITH_GTK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
352 Section $(GTK_SECTION_TITLE) SecGtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
353
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
354 Call CheckUserInstallRights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
355 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
356
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
357 SetOutPath $TEMP
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
358 SetOverwrite on
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
359 File /oname=gtk-runtime.exe ${GTK_RUNTIME_INSTALLER}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
360 SetOverwrite off
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
361
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
362 Call DoWeNeedGtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
363 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
364 Pop $R6
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
365
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
366 StrCmp $R0 "0" have_gtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
367 StrCmp $R0 "1" upgrade_gtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
368 StrCmp $R0 "2" upgrade_gtk
16773
ef86cf8789ea Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16713
diff changeset
369 ;StrCmp $R0 "3" no_gtk no_gtk
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
370
17884
234ab2c9ed36 Fix win32 installer finishpage URL. (this is fixed in the 2.0.2 installer too)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17864
diff changeset
371 ;no_gtk:
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
372 StrCmp $R1 "NONE" gtk_no_install_rights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
373 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
374 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT /D=$GTK_FOLDER'
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
375 IfErrors gtk_install_error done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
376
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
377 upgrade_gtk:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
378 StrCpy $GTK_FOLDER $R6
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
379 StrCmp $R0 "2" +2 ; Upgrade isn't optional
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
380 MessageBox MB_YESNO $(GTK_UPGRADE_PROMPT) /SD IDYES IDNO done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
381 ClearErrors
23662
f5e614bc6606 Fix the win32 installer not to cause messageboxes in the gtk installer when
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23648
diff changeset
382 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT /D=$GTK_FOLDER'
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
383 IfErrors gtk_install_error done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
384
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
385 gtk_install_error:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
386 Delete "$TEMP\gtk-runtime.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
387 MessageBox MB_OK $(GTK_INSTALL_ERROR) /SD IDOK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
388 Quit
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
389
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
390 have_gtk:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
391 StrCpy $GTK_FOLDER $R6
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
392 StrCmp $R1 "NONE" done ; If we have no rights, we can't re-install
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
393 ; Even if we have a sufficient version of GTK+, we give user choice to re-install.
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
394 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
395 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT'
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
396 IfErrors gtk_install_error
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
397 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
398
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
399 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
400 ; end got_install rights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
401
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
402 gtk_no_install_rights:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
403 ; Install GTK+ to Pidgin install dir
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
404 StrCpy $GTK_FOLDER $INSTDIR
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
405 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
406 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT /D=$GTK_FOLDER'
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
407 IfErrors gtk_install_error
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
408 SetOverwrite on
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
409 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
410 CopyFiles /FILESONLY "$GTK_FOLDER\bin\*.dll" $GTK_FOLDER
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
411 SetOverwrite off
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
412 IfErrors gtk_install_error
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
413 Delete "$GTK_FOLDER\bin\*.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
414 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
415 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
416 ; end gtk_no_install_rights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
417
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
418 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
419 Delete "$TEMP\gtk-runtime.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
420 SectionEnd ; end of GTK+ section
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
421 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
422
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
423 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
424 ;Pidgin Install Section
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
425
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
426 Section $(PIDGIN_SECTION_TITLE) SecPidgin
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
427 SectionIn 1 RO
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
428
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
429 ; Check install rights..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
430 Call CheckUserInstallRights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
431 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
432
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
433 ; Get GTK+ lib dir if we have it..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
434
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
435 StrCmp $R0 "NONE" pidgin_none
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
436 StrCmp $R0 "HKLM" pidgin_hklm pidgin_hkcu
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
437
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
438 pidgin_hklm:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
439 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
440 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "" "$INSTDIR\pidgin.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
441 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R1\bin"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
442 WriteRegStr HKLM ${PIDGIN_REG_KEY} "" "$INSTDIR"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
443 WriteRegStr HKLM ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}"
17853
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17772
diff changeset
444 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayName" "Pidgin"
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17772
diff changeset
445 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayVersion" "${PIDGIN_VERSION}"
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17772
diff changeset
446 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "HelpLink" "http://developer.pidgin.im/wiki/Using Pidgin"
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17772
diff changeset
447 WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoModify" 1
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17772
diff changeset
448 WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
449 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${PIDGIN_UNINST_EXE}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
450 ; Sets scope of the desktop and Start Menu entries for all users.
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
451 SetShellVarContext "all"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
452 Goto pidgin_install_files
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
453
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
454 pidgin_hkcu:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
455 ReadRegStr $R1 HKCU ${GTK_REG_KEY} "Path"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
456 StrCmp $R1 "" 0 +2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
457 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
458
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
459 WriteRegStr HKCU ${PIDGIN_REG_KEY} "" "$INSTDIR"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
460 WriteRegStr HKCU ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}"
17853
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17772
diff changeset
461 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayName" "Pidgin"
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17772
diff changeset
462 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayVersion" "${PIDGIN_VERSION}"
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17772
diff changeset
463 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "HelpLink" "http://developer.pidgin.im/wiki/Using Pidgin"
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17772
diff changeset
464 WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoModify" 1
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17772
diff changeset
465 WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
466 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${PIDGIN_UNINST_EXE}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
467 Goto pidgin_install_files
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
468
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
469 pidgin_none:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
470 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
471
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
472 pidgin_install_files:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
473 SetOutPath "$INSTDIR"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
474 ; Pidgin files
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
475 SetOverwrite on
16248
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
476
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
477 ;Delete old liboscar and libjabber since they tend to be problematic
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
478 Delete "$INSTDIR\plugins\liboscar.dll"
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
479 Delete "$INSTDIR\plugins\libjabber.dll"
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
480
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
481 File /r ..\..\..\${PIDGIN_INSTALL_DIR}\*.*
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
482 !ifdef DEBUG
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
483 File "${PIDGIN_INSTALLER_DEPS}\exchndl.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
484 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
485
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
486 ; Install shfolder.dll if need be..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
487 SearchPath $R4 "shfolder.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
488 StrCmp $R4 "" 0 got_shfolder
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
489 SetOutPath "$SYSDIR"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
490 File "${PIDGIN_INSTALLER_DEPS}\shfolder.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
491 SetOutPath "$INSTDIR"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
492 got_shfolder:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
493
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
494 ; Check if Perl is installed, if so add it to the AppPaths
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
495 ReadRegStr $R2 HKLM ${PERL_REG_KEY} ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
496 StrCmp $R2 "" 0 perl_exists
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
497 ReadRegStr $R2 HKCU ${PERL_REG_KEY} ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
498 StrCmp $R2 "" perl_done perl_exists
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
499
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
500 perl_exists:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
501 IfFileExists "$R2\bin\${PERL_DLL}" 0 perl_done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
502 StrCmp $R0 "HKLM" 0 perl_done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
503 ReadRegStr $R3 HKLM "${HKLM_APP_PATHS_KEY}" "Path"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
504 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R3;$R2\bin"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
505
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
506 perl_done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
507
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
508 ; If this is under NT4, delete the SILC support stuff
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
509 ; there is a bug that will prevent any account from connecting
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
510 ; See https://lists.silcnet.org/pipermail/silc-devel/2005-January/001588.html
23632
1452c89e7f05 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23049
diff changeset
511 ; Also, remove the GSSAPI SASL plugin and associated files as they aren't
1452c89e7f05 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23049
diff changeset
512 ; compatible with NT4.
17464
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
513 ${If} ${IsNT}
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
514 ${AndIf} ${IsWinNT4}
23632
1452c89e7f05 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23049
diff changeset
515 ;SILC
17464
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
516 Delete "$INSTDIR\plugins\libsilc.dll"
19523
9683da821d15 Upgrade the win32 build to use version 1.1.2 of the SILC toolkit.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19504
diff changeset
517 Delete "$INSTDIR\libsilcclient-1-1-2.dll"
9683da821d15 Upgrade the win32 build to use version 1.1.2 of the SILC toolkit.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19504
diff changeset
518 Delete "$INSTDIR\libsilc-1-1-2.dll"
23632
1452c89e7f05 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23049
diff changeset
519 ;GSSAPI
1452c89e7f05 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23049
diff changeset
520 Delete "$INSTDIR\sasl2\saslGSSAPI.dll"
17464
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
521 ${EndIf}
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
522
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
523 SetOutPath "$INSTDIR"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
524
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
525 ; If we don't have install rights we're done
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
526 StrCmp $R0 "NONE" done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
527 SetOverwrite off
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
528
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
529 ; write out uninstaller
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
530 SetOverwrite on
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
531 WriteUninstaller "$INSTDIR\${PIDGIN_UNINST_EXE}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
532 SetOverwrite off
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
533
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
534 ; If we previously had pidgin set up to run on startup, make it do so again
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
535 StrCmp $STARTUP_RUN_KEY "HKCU" +1 +2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
536 WriteRegStr HKCU "${STARTUP_RUN_KEY}" "Pidgin" "$INSTDIR\pidgin.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
537 StrCmp $STARTUP_RUN_KEY "HKLM" +1 +2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
538 WriteRegStr HKLM "${STARTUP_RUN_KEY}" "Pidgin" "$INSTDIR\pidgin.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
539
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
540 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
541 SectionEnd ; end of default Pidgin section
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
542
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
543 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
544 ;Shortcuts
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
545
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
546 SectionGroup /e $(PIDGIN_SHORTCUTS_SECTION_TITLE) SecShortcuts
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
547 Section /o $(PIDGIN_DESKTOP_SHORTCUT_SECTION_TITLE) SecDesktopShortcut
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
548 SetOverwrite on
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
549 CreateShortCut "$DESKTOP\Pidgin.lnk" "$INSTDIR\pidgin.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
550 SetOverwrite off
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
551 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
552 Section $(PIDGIN_STARTMENU_SHORTCUT_SECTION_TITLE) SecStartMenuShortcut
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
553 SetOverwrite on
17246
6d940df6c095 Don't put the Pidgin startmenu entry in a subdirectory. This violates the MS guidelines and (more importantly) it is pointless and annoying. Fixes #1188
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16785
diff changeset
554 CreateShortCut "$SMPROGRAMS\Pidgin.lnk" "$INSTDIR\pidgin.exe"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
555 SetOverwrite off
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
556 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
557 SectionGroupEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
558
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
559 ;--------------------------------
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
560 ;URI Handling
22775
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
561
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
562 !macro URI_SECTION proto
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
563 Section /o "${proto}:" SecURI_${proto}
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
564 Push "${proto}"
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
565 Call RegisterURIHandler
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
566 SectionEnd
22775
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
567 !macroend
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
568 SectionGroup /e $(URI_HANDLERS_SECTION_TITLE) SecURIHandlers
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
569 !insertmacro URI_SECTION "aim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
570 !insertmacro URI_SECTION "msnim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
571 !insertmacro URI_SECTION "myim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
572 !insertmacro URI_SECTION "ymsgr"
28203
da22b6d0151e Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <paul@darkrain42.org>
parents: 28091
diff changeset
573 !insertmacro URI_SECTION "xmpp"
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
574 SectionGroupEnd
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
575
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
576 ;--------------------------------
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
577 ;Spell Checking
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
578
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
579 SectionGroup /e $(PIDGIN_SPELLCHECK_SECTION_TITLE) SecSpellCheck
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
580 Section /o $(PIDGIN_SPELLCHECK_BRETON) SecSpellCheckBreton
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
581 Push ${SecSpellCheckBreton}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
582 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
583 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
584 Section /o $(PIDGIN_SPELLCHECK_CATALAN) SecSpellCheckCatalan
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
585 Push ${SecSpellCheckCatalan}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
586 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
587 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
588 Section /o $(PIDGIN_SPELLCHECK_CZECH) SecSpellCheckCzech
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
589 Push ${SecSpellCheckCzech}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
590 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
591 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
592 Section /o $(PIDGIN_SPELLCHECK_WELSH) SecSpellCheckWelsh
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
593 Push ${SecSpellCheckWelsh}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
594 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
595 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
596 Section /o $(PIDGIN_SPELLCHECK_DANISH) SecSpellCheckDanish
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
597 Push ${SecSpellCheckDanish}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
598 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
599 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
600 Section /o $(PIDGIN_SPELLCHECK_GERMAN) SecSpellCheckGerman
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
601 Push ${SecSpellCheckGerman}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
602 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
603 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
604 Section /o $(PIDGIN_SPELLCHECK_GREEK) SecSpellCheckGreek
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
605 Push ${SecSpellCheckGreek}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
606 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
607 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
608 Section /o $(PIDGIN_SPELLCHECK_ENGLISH) SecSpellCheckEnglish
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
609 Push ${SecSpellCheckEnglish}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
610 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
611 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
612 Section /o $(PIDGIN_SPELLCHECK_ESPERANTO) SecSpellCheckEsperanto
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
613 Push ${SecSpellCheckEsperanto}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
614 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
615 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
616 Section /o $(PIDGIN_SPELLCHECK_SPANISH) SecSpellCheckSpanish
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
617 Push ${SecSpellCheckSpanish}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
618 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
619 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
620 Section /o $(PIDGIN_SPELLCHECK_FAROESE) SecSpellCheckFaroese
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
621 Push ${SecSpellCheckFaroese}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
622 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
623 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
624 Section /o $(PIDGIN_SPELLCHECK_FRENCH) SecSpellCheckFrench
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
625 Push ${SecSpellCheckFrench}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
626 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
627 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
628 Section /o $(PIDGIN_SPELLCHECK_ITALIAN) SecSpellCheckItalian
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
629 Push ${SecSpellCheckItalian}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
630 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
631 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
632 Section /o $(PIDGIN_SPELLCHECK_DUTCH) SecSpellCheckDutch
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
633 Push ${SecSpellCheckDutch}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
634 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
635 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
636 Section /o $(PIDGIN_SPELLCHECK_NORWEGIAN) SecSpellCheckNorwegian
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
637 Push ${SecSpellCheckNorwegian}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
638 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
639 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
640 Section /o $(PIDGIN_SPELLCHECK_POLISH) SecSpellCheckPolish
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
641 Push ${SecSpellCheckPolish}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
642 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
643 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
644 Section /o $(PIDGIN_SPELLCHECK_PORTUGUESE) SecSpellCheckPortuguese
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
645 Push ${SecSpellCheckPortuguese}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
646 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
647 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
648 Section /o $(PIDGIN_SPELLCHECK_ROMANIAN) SecSpellCheckRomanian
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
649 Push ${SecSpellCheckRomanian}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
650 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
651 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
652 Section /o $(PIDGIN_SPELLCHECK_RUSSIAN) SecSpellCheckRussian
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
653 Push ${SecSpellCheckRussian}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
654 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
655 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
656 Section /o $(PIDGIN_SPELLCHECK_SLOVAK) SecSpellCheckSlovak
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
657 Push ${SecSpellCheckSlovak}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
658 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
659 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
660 Section /o $(PIDGIN_SPELLCHECK_SWEDISH) SecSpellCheckSwedish
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
661 Push ${SecSpellCheckSwedish}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
662 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
663 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
664 Section /o $(PIDGIN_SPELLCHECK_UKRAINIAN) SecSpellCheckUkrainian
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
665 Push ${SecSpellCheckUkrainian}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
666 Call InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
667 SectionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
668 SectionGroupEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
669
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
670 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
671 ;Uninstaller Section
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
672
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
673
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
674 Section Uninstall
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
675 Call un.CheckUserInstallRights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
676 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
677 StrCmp $R0 "NONE" no_rights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
678 StrCmp $R0 "HKCU" try_hkcu try_hklm
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
679
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
680 try_hkcu:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
681 ReadRegStr $R0 HKCU ${PIDGIN_REG_KEY} ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
682 StrCmp $R0 $INSTDIR 0 cant_uninstall
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
683 ; HKCU install path matches our INSTDIR so uninstall
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
684 DeleteRegKey HKCU ${PIDGIN_REG_KEY}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
685 DeleteRegKey HKCU "${PIDGIN_UNINSTALL_KEY}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
686 Goto cont_uninstall
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
687
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
688 try_hklm:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
689 ReadRegStr $R0 HKLM ${PIDGIN_REG_KEY} ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
690 StrCmp $R0 $INSTDIR 0 try_hkcu
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
691 ; HKLM install path matches our INSTDIR so uninstall
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
692 DeleteRegKey HKLM ${PIDGIN_REG_KEY}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
693 DeleteRegKey HKLM "${PIDGIN_UNINSTALL_KEY}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
694 DeleteRegKey HKLM "${HKLM_APP_PATHS_KEY}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
695 ; Sets start menu and desktop scope to all users..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
696 SetShellVarContext "all"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
697
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
698 cont_uninstall:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
699 ; The WinPrefs plugin may have left this behind..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
700 DeleteRegValue HKCU "${STARTUP_RUN_KEY}" "Pidgin"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
701 DeleteRegValue HKLM "${STARTUP_RUN_KEY}" "Pidgin"
22775
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
702 ; Remove Language preference info
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
703 DeleteRegValue HKCU "${PIDGIN_REG_KEY}" "Installer Language"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
704
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
705 ; Remove any URI handlers
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
706 ; I can't think of an easy way to maintain a list in a single place
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
707 Push "aim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
708 Call un.UnregisterURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
709 Push "msnim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
710 Call un.UnregisterURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
711 Push "myim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
712 Call un.UnregisterURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
713 Push "ymsgr"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
714 Call un.UnregisterURIHandler
28203
da22b6d0151e Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <paul@darkrain42.org>
parents: 28091
diff changeset
715 Push "xmpp"
da22b6d0151e Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <paul@darkrain42.org>
parents: 28091
diff changeset
716 Call un.UnregisterURIHandler
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
717
25164
f59cfb686b02 Add a second chain of SSL certificates now necessary for OSCAR SSL
Paul Aurich <paul@darkrain42.org>
parents: 25046
diff changeset
718 Delete "$INSTDIR\ca-certs\America_Online_Root_Certification_Authority_1.pem"
f59cfb686b02 Add a second chain of SSL certificates now necessary for OSCAR SSL
Paul Aurich <paul@darkrain42.org>
parents: 25046
diff changeset
719 Delete "$INSTDIR\ca-certs\AOL_Member_CA.pem"
23633
3ec514b98728 Uninstall the CAcert certs in the win32 uninstaller.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23632
diff changeset
720 Delete "$INSTDIR\ca-certs\CAcert_Class3.pem"
3ec514b98728 Uninstall the CAcert certs in the win32 uninstaller.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23632
diff changeset
721 Delete "$INSTDIR\ca-certs\CAcert_Root.pem"
28695
c5280f5677b5 Add the Entrust.net Secure Server CA (taken from Debian's set). Closes #10247.
Paul Aurich <paul@darkrain42.org>
parents: 28647
diff changeset
722 Delete "$INSTDIR\ca-certs\Entrust.net_Secure_Server_CA.pem"
19504
d5ecaf5bce93 Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19453
diff changeset
723 Delete "$INSTDIR\ca-certs\Equifax_Secure_CA.pem"
27651
307f346eefa2 Add the twitter.com CA cert. Fixes 9264.
Paul Aurich <paul@darkrain42.org>
parents: 27646
diff changeset
724 Delete "$INSTDIR\ca-certs\Equifax_Secure_Global_eBusiness_CA-1.pem"
19545
0084f7fba421 Add mingw makefile to the dist. Update uninstaller for new certs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19523
diff changeset
725 Delete "$INSTDIR\ca-certs\GTE_CyberTrust_Global_Root.pem"
24804
7be4d472761a Delete MSN cert when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23982
diff changeset
726 Delete "$INSTDIR\ca-certs\Microsoft_Internet_Authority.pem"
21123
7df0b9734d1f Delete Microsoft_Secure_Server_Authority.pem when uninstalling on win32
Stu Tomlinson <stu@nosnilmot.com>
parents: 20274
diff changeset
727 Delete "$INSTDIR\ca-certs\Microsoft_Secure_Server_Authority.pem"
27047
e22fa2cc6c46 Add the StartCom root that the XMPP ICA will start using this year.
Paul Aurich <paul@darkrain42.org>
parents: 25873
diff changeset
728 Delete "$INSTDIR\ca-certs\StartCom_Certification_Authority.pem"
21927
a464f202e6c4 Add the StartCom Free SSL Certificate Authority certificate (as used by
Stu Tomlinson <stu@nosnilmot.com>
parents: 21852
diff changeset
729 Delete "$INSTDIR\ca-certs\StartCom_Free_SSL_CA.pem"
28091
Paul Aurich <paul@darkrain42.org>
parents: 28090
diff changeset
730 Delete "$INSTDIR\ca-certs\Thawte_Premium_Server_CA.pem"
Paul Aurich <paul@darkrain42.org>
parents: 28090
diff changeset
731 Delete "$INSTDIR\ca-certs\VeriSign_Class3_Extended_Validation_CA.pem"
19545
0084f7fba421 Add mingw makefile to the dist. Update uninstaller for new certs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19523
diff changeset
732 Delete "$INSTDIR\ca-certs\Verisign_Class3_Primary_CA.pem"
23924
c1697251c9fe Update win32 installer for cert changes.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23668
diff changeset
733 Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem"
28091
Paul Aurich <paul@darkrain42.org>
parents: 28090
diff changeset
734 Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5_2.pem"
25020
0ba3da7724ff Add new cert to the Windows uninstaller per datallah's request
Paul Aurich <paul@darkrain42.org>
parents: 24804
diff changeset
735 Delete "$INSTDIR\ca-certs\VeriSign_International_Server_Class_3_CA.pem"
19504
d5ecaf5bce93 Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19453
diff changeset
736 Delete "$INSTDIR\ca-certs\Verisign_RSA_Secure_Server_CA.pem"
d5ecaf5bce93 Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19453
diff changeset
737 RMDir "$INSTDIR\ca-certs"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
738 RMDir /r "$INSTDIR\locale"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
739 RMDir /r "$INSTDIR\pixmaps"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
740 Delete "$INSTDIR\plugins\autoaccept.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
741 Delete "$INSTDIR\plugins\buddynote.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
742 Delete "$INSTDIR\plugins\convcolors.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
743 Delete "$INSTDIR\plugins\extplacement.dll"
19673
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
744 Delete "$INSTDIR\plugins\gtkbuddynote.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
745 Delete "$INSTDIR\plugins\history.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
746 Delete "$INSTDIR\plugins\iconaway.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
747 Delete "$INSTDIR\plugins\idle.dll"
17864
dc195d5646e9 Build and distribute the joinpart plugin on win32.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17853
diff changeset
748 Delete "$INSTDIR\plugins\joinpart.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
749 Delete "$INSTDIR\plugins\libaim.dll"
17745
6731e5fe3673 Add the bonjour prpl to the win32 uninstaller.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17464
diff changeset
750 Delete "$INSTDIR\plugins\libbonjour.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
751 Delete "$INSTDIR\plugins\libgg.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
752 Delete "$INSTDIR\plugins\libicq.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
753 Delete "$INSTDIR\plugins\libirc.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
754 Delete "$INSTDIR\plugins\libmsn.dll"
28970
d537567d051f Add mxit to uninstall list
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28695
diff changeset
755 Delete "$INSTDIR\plugins\libmxit.dll"
19453
52a67d7b82ac Add MySpaceIM to the Windows build, though I can't verify this works
Kevin Stange <kevin@simguy.net>
parents: 19438
diff changeset
756 Delete "$INSTDIR\plugins\libmyspace.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
757 Delete "$INSTDIR\plugins\libnapster.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
758 Delete "$INSTDIR\plugins\libnovell.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
759 Delete "$INSTDIR\plugins\libqq.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
760 Delete "$INSTDIR\plugins\libsametime.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
761 Delete "$INSTDIR\plugins\libsilc.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
762 Delete "$INSTDIR\plugins\libsimple.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
763 Delete "$INSTDIR\plugins\libtoc.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
764 Delete "$INSTDIR\plugins\libyahoo.dll"
27470
77976350b32d Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 27218
diff changeset
765 Delete "$INSTDIR\plugins\libyahoojp.dll"
16248
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
766 Delete "$INSTDIR\plugins\libxmpp.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
767 Delete "$INSTDIR\plugins\log_reader.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
768 Delete "$INSTDIR\plugins\markerline.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
769 Delete "$INSTDIR\plugins\newline.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
770 Delete "$INSTDIR\plugins\notify.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
771 Delete "$INSTDIR\plugins\offlinemsg.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
772 Delete "$INSTDIR\plugins\perl.dll"
19673
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
773 Delete "$INSTDIR\plugins\pidginrc.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
774 Delete "$INSTDIR\plugins\psychic.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
775 Delete "$INSTDIR\plugins\relnot.dll"
23027
2565ccc4898c applied changes from ae9d7912dfb7c1627441484bfe471dd4d370d346
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22775
diff changeset
776 Delete "$INSTDIR\plugins\sendbutton.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
777 Delete "$INSTDIR\plugins\spellchk.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
778 Delete "$INSTDIR\plugins\ssl-nss.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
779 Delete "$INSTDIR\plugins\ssl.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
780 Delete "$INSTDIR\plugins\statenotify.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
781 Delete "$INSTDIR\plugins\tcl.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
782 Delete "$INSTDIR\plugins\ticker.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
783 Delete "$INSTDIR\plugins\timestamp.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
784 Delete "$INSTDIR\plugins\timestamp_format.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
785 Delete "$INSTDIR\plugins\win2ktrans.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
786 Delete "$INSTDIR\plugins\winprefs.dll"
23928
18f6ff443104 Build the XMPP Console plugin by default on windows too.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23924
diff changeset
787 Delete "$INSTDIR\plugins\xmppconsole.dll"
27218
f97cc05bf3b7 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <paul@darkrain42.org>
parents: 27047
diff changeset
788 Delete "$INSTDIR\plugins\xmppdisco.dll"
27489
b74fa3d29cda Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <pidgin@unreliablesource.net>
parents: 27470
diff changeset
789 RMDir /r "$INSTDIR\plugins\perl"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
790 RMDir "$INSTDIR\plugins"
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
791 RMDir /r "$INSTDIR\sasl2"
19673
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
792 Delete "$INSTDIR\sounds\purple\alert.wav"
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
793 Delete "$INSTDIR\sounds\purple\login.wav"
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
794 Delete "$INSTDIR\sounds\purple\logout.wav"
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
795 Delete "$INSTDIR\sounds\purple\receive.wav"
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
796 Delete "$INSTDIR\sounds\purple\send.wav"
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
797 RMDir "$INSTDIR\sounds\purple"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
798 RMDir "$INSTDIR\sounds"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
799 Delete "$INSTDIR\freebl3.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
800 Delete "$INSTDIR\idletrack.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
801 Delete "$INSTDIR\libgtkspell.dll"
16248
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
802 Delete "$INSTDIR\libjabber.dll"
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
803 Delete "$INSTDIR\libmeanwhile-1.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
804 Delete "$INSTDIR\liboscar.dll"
15754
dc6081d167cf More installer stuff.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15752
diff changeset
805 Delete "$INSTDIR\libpurple.dll"
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
806 Delete "$INSTDIR\libsasl.dll"
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
807 Delete "$INSTDIR\libsilc-1-1-2.dll"
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
808 Delete "$INSTDIR\libsilcclient-1-1-2.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
809 Delete "$INSTDIR\libxml2.dll"
27470
77976350b32d Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 27218
diff changeset
810 Delete "$INSTDIR\libymsg.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
811 Delete "$INSTDIR\nspr4.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
812 Delete "$INSTDIR\nss3.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
813 Delete "$INSTDIR\nssckbi.dll"
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
814 Delete "$INSTDIR\pidgin.dll"
15754
dc6081d167cf More installer stuff.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15752
diff changeset
815 Delete "$INSTDIR\pidgin.exe"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
816 Delete "$INSTDIR\plc4.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
817 Delete "$INSTDIR\plds4.dll"
19504
d5ecaf5bce93 Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19453
diff changeset
818 Delete "$INSTDIR\smime3.dll"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
819 Delete "$INSTDIR\softokn3.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
820 Delete "$INSTDIR\ssl3.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
821 Delete "$INSTDIR\${PIDGIN_UNINST_EXE}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
822 !ifdef DEBUG
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
823 Delete "$INSTDIR\exchndl.dll"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
824 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
825 Delete "$INSTDIR\install.log"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
826
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
827 ;Try to remove Pidgin install dir (only if empty)
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
828 RMDir "$INSTDIR"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
829
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
830 ; Shortcuts..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
831 Delete "$DESKTOP\Pidgin.lnk"
25873
21a90a4c76d6 Backport 1ae2b55502a0afd8f28918fc4726683c52e998e9 (#8985 - Remove Start Menu shortcut when unistalling)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25164
diff changeset
832 Delete "$SMPROGRAMS\Pidgin.lnk"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
833
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
834 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
835
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
836 cant_uninstall:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
837 MessageBox MB_OK $(un.PIDGIN_UNINSTALL_ERROR_1) /SD IDOK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
838 Quit
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
839
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
840 no_rights:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
841 MessageBox MB_OK $(un.PIDGIN_UNINSTALL_ERROR_2) /SD IDOK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
842 Quit
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
843
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
844 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
845 SectionEnd ; end of uninstall section
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
846
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
847 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
848 ;Descriptions
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
849 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
850 !insertmacro MUI_DESCRIPTION_TEXT ${SecPidgin} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
851 $(PIDGIN_SECTION_DESCRIPTION)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
852 !ifdef WITH_GTK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
853 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
854 $(GTK_SECTION_DESCRIPTION)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
855 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
856
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
857 !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
858 $(PIDGIN_SHORTCUTS_SECTION_DESCRIPTION)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
859 !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
860 $(PIDGIN_DESKTOP_SHORTCUT_DESC)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
861 !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
862 $(PIDGIN_STARTMENU_SHORTCUT_DESC)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
863
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
864 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheck} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
865 $(PIDGIN_SPELLCHECK_SECTION_DESCRIPTION)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
866 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckBreton} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
867 "$(PIDGIN_SPELLCHECK_BRETON) (862kb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
868 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckCatalan} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
869 "$(PIDGIN_SPELLCHECK_CATALAN) (3.9Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
870 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckCzech} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
871 "$(PIDGIN_SPELLCHECK_CZECH) (17Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
872 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckWelsh} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
873 "$(PIDGIN_SPELLCHECK_WELSH) (4.2Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
874 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckDanish} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
875 "$(PIDGIN_SPELLCHECK_DANISH) (6.9Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
876 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckGerman} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
877 "$(PIDGIN_SPELLCHECK_GERMAN) (5.4Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
878 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckGreek} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
879 "$(PIDGIN_SPELLCHECK_GREEK) (7.1Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
880 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckEnglish} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
881 "$(PIDGIN_SPELLCHECK_ENGLISH) (2.3Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
882 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckEsperanto} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
883 "$(PIDGIN_SPELLCHECK_ESPERANTO) (5.7Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
884 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSpanish} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
885 "$(PIDGIN_SPELLCHECK_SPANISH) (7.0Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
886 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckFaroese} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
887 "$(PIDGIN_SPELLCHECK_FAROESE) (913kb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
888 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckFrench} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
889 "$(PIDGIN_SPELLCHECK_FRENCH) (9.3Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
890 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckItalian} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
891 "$(PIDGIN_SPELLCHECK_ITALIAN) (770kb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
892 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckDutch} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
893 "$(PIDGIN_SPELLCHECK_DUTCH) (3.7Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
894 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckNorwegian} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
895 "$(PIDGIN_SPELLCHECK_NORWEGIAN) (3.2Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
896 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckPolish} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
897 "$(PIDGIN_SPELLCHECK_POLISH) (9.3Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
898 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckPortuguese} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
899 "$(PIDGIN_SPELLCHECK_PORTUGUESE) (5.5Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
900 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckRomanian} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
901 "$(PIDGIN_SPELLCHECK_ROMANIAN) (906kb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
902 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckRussian} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
903 "$(PIDGIN_SPELLCHECK_RUSSIAN) (11Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
904 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSlovak} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
905 "$(PIDGIN_SPELLCHECK_SLOVAK) (8.0Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
906 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSwedish} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
907 "$(PIDGIN_SPELLCHECK_SWEDISH) (2.2Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
908 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckUkrainian} \
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
909 "$(PIDGIN_SPELLCHECK_UKRAINIAN) (12Mb)"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
910 !insertmacro MUI_FUNCTION_DESCRIPTION_END
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
911
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
912 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
913 ;Functions
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
914
15796
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
915 ; Default the URI handler checkboxes if Pidgin is the current handler or if there is no handler
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
916 Function SelectURIHandlerSelections
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
917 Push $R0
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
918 Push $R1
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
919 Push $R2
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
920 Push $R3
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
921
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
922 ; Start with the first URI handler
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
923 IntOp $R0 ${SecURIHandlers} + 1
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
924
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
925 start:
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
926 ; If it is the end of the section group, stop
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
927 SectionGetFlags $R0 $R1
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
928 IntOp $R2 $R1 & ${SF_SECGRPEND}
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
929 IntCmp $R2 ${SF_SECGRPEND} done
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
930
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
931 SectionGetText $R0 $R2
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
932 ;Strip the trailing ':'
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
933 StrLen $R3 $R2
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
934 IntOp $R3 $R3 - 1
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
935 StrCpy $R2 $R2 $R3
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
936
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
937 ClearErrors
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
938 ReadRegStr $R3 HKCR "$R2" ""
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
939 IfErrors default_on ;there is no current handler
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
940
22775
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
941 Push $R2
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
942 Call CheckIfPidginIsCurrentURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
943 Pop $R3
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
944
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
945 ; If Pidgin isn't the current handler, we don't steal it automatically
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
946 IntCmp $R3 0 end_loop
15796
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
947
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
948 ;We default the URI handler checkbox on
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
949 default_on:
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
950 IntOp $R1 $R1 | ${SF_SELECTED} ; Select
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
951 SectionSetFlags $R0 $R1
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
952
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
953 end_loop:
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
954 IntOp $R0 $R0 + 1 ;Advance to the next section
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
955 Goto start
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
956
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
957 done:
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
958 Pop $R3
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
959 Pop $R2
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
960 Pop $R1
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
961 Pop $R0
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
962 FunctionEnd ;SelectURIHandlerSections
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
963
22775
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
964 ; Check if Pidgin is the current handler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
965 ; Returns a boolean on the stack
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
966 !macro CheckIfPidginIsCurrentURIHandlerMacro UN
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
967 Function ${UN}CheckIfPidginIsCurrentURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
968 Exch $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
969 ClearErrors
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
970
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
971 ReadRegStr $R0 HKCR "$R0\shell\Open\command" ""
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
972 IfErrors 0 +3
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
973 IntOp $R0 0 + 0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
974 Goto done
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
975
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
976 !ifdef __UNINSTALL__
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
977 ${un.WordFind} "$R0" "pidgin.exe" "E+1{" $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
978 !else
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
979 ${WordFind} "$R0" "pidgin.exe" "E+1{" $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
980 !endif
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
981 IntOp $R0 0 + 1
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
982 IfErrors 0 +2
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
983 IntOp $R0 0 + 0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
984
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
985 done:
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
986 Exch $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
987 FunctionEnd
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
988 !macroend
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
989 !insertmacro CheckIfPidginIsCurrentURIHandlerMacro ""
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
990 !insertmacro CheckIfPidginIsCurrentURIHandlerMacro "un."
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
991
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
992 ; If Pidgin is the current URI handler for the specified protocol, remove it.
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
993 Function un.UnregisterURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
994 Exch $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
995 Push $R1
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
996
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
997 Push $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
998 Call un.CheckIfPidginIsCurrentURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
999 Pop $R1
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1000
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1001 ; If Pidgin isn't the current handler, leave it as-is
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1002 IntCmp $R1 0 done
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1003
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1004 ;Unregister the URI handler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1005 DetailPrint "Unregistering $R0 URI Handler"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1006 DeleteRegKey HKCR "$R0"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1007
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1008 done:
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1009 Pop $R1
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1010 Pop $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1011 FunctionEnd
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
1012
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
1013 Function RegisterURIHandler
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
1014 Exch $R0
22775
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1015 DetailPrint "Registering $R0 URI Handler"
15796
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1016 DeleteRegKey HKCR "$R0"
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1017 WriteRegStr HKCR "$R0" "" "URL:$R0"
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1018 WriteRegStr HKCR "$R0" "URL Protocol" ""
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1019 WriteRegStr HKCR "$R0\DefaultIcon" "" "$INSTDIR\pidgin.exe"
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1020 WriteRegStr HKCR "$R0\shell" "" ""
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1021 WriteRegStr HKCR "$R0\shell\Open" "" ""
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1022 WriteRegStr HKCR "$R0\shell\Open\command" "" "$INSTDIR\pidgin.exe --protocolhandler=%1"
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
1023 Pop $R0
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
1024 FunctionEnd
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
1025
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
1026
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1027 !macro CheckUserInstallRightsMacro UN
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1028 Function ${UN}CheckUserInstallRights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1029 Push $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1030 Push $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1031 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1032 UserInfo::GetName
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1033 IfErrors Win9x
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1034 Pop $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1035 UserInfo::GetAccountType
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1036 Pop $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1037
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1038 StrCmp $1 "Admin" 0 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1039 StrCpy $1 "HKLM"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1040 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1041 StrCmp $1 "Power" 0 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1042 StrCpy $1 "HKLM"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1043 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1044 StrCmp $1 "User" 0 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1045 StrCpy $1 "HKCU"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1046 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1047 StrCmp $1 "Guest" 0 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1048 StrCpy $1 "NONE"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1049 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1050 ; Unknown error
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1051 StrCpy $1 "NONE"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1052 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1053
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1054 Win9x:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1055 StrCpy $1 "HKLM"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1056
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1057 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1058 Exch $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1059 Exch
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1060 Pop $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1061 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1062 !macroend
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1063 !insertmacro CheckUserInstallRightsMacro ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1064 !insertmacro CheckUserInstallRightsMacro "un."
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1065
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1066 ;
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1067 ; Usage:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1068 ; Push $0 ; Path string
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1069 ; Call VerifyDir
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1070 ; Pop $0 ; 0 - Bad path 1 - Good path
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1071 ;
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1072 Function VerifyDir
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1073 Exch $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1074 Push $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1075 Push $2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1076 Loop:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1077 IfFileExists $0 dir_exists
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1078 StrCpy $1 $0 ; save last
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1079 ${GetParent} $0 $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1080 StrLen $2 $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1081 ; IfFileExists "C:" on xp returns true and on win2k returns false
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1082 ; So we're done in such a case..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1083 IntCmp $2 2 loop_done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1084 ; GetParent of "C:" returns ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1085 IntCmp $2 0 loop_done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1086 Goto Loop
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1087
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1088 loop_done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1089 StrCpy $1 "$0\GaImFooB"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1090 ; Check if we can create dir on this drive..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1091 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1092 CreateDirectory $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1093 IfErrors DirBad DirGood
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1094
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1095 dir_exists:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1096 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1097 FileOpen $1 "$0\pidginfoo.bar" w
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1098 IfErrors PathBad PathGood
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1099
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1100 DirGood:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1101 RMDir $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1102 Goto PathGood1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1103
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1104 DirBad:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1105 RMDir $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1106 Goto PathBad1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1107
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1108 PathBad:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1109 FileClose $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1110 Delete "$0\pidginfoo.bar"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1111 PathBad1:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1112 StrCpy $0 "0"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1113 Push $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1114 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1115
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1116 PathGood:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1117 FileClose $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1118 Delete "$0\pidginfoo.bar"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1119 PathGood1:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1120 StrCpy $0 "1"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1121 Push $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1122
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1123 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1124 Exch 3 ; The top of the stack contains the output variable
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1125 Pop $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1126 Pop $2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1127 Pop $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1128 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1129
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1130 Function .onVerifyInstDir
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1131 Push $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1132 Push $INSTDIR
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1133 Call VerifyDir
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1134 Pop $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1135 StrCmp $0 "0" 0 dir_good
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1136 Pop $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1137 Abort
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1138
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1139 dir_good:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1140 Pop $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1141 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1142
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1143 ;
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1144 ; Usage:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1145 ; Call DoWeNeedGtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1146 ; First Pop:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1147 ; 0 - We have the correct version
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1148 ; Second Pop: Key where Version was found
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1149 ; 1 - We have an old version that should work, prompt user for optional upgrade
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1150 ; Second Pop: HKLM or HKCU depending on where GTK was found.
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1151 ; 2 - We have an old version that needs to be upgraded
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1152 ; Second Pop: HKLM or HKCU depending on where GTK was found.
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1153 ; 3 - We don't have Gtk+ at all
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1154 ; Second Pop: "NONE, HKLM or HKCU" depending on our rights..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1155 ;
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1156 Function DoWeNeedGtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1157 ; Logic should be:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1158 ; - Check what user rights we have (HKLM or HKCU)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1159 ; - If HKLM rights..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1160 ; - Only check HKLM key for GTK+
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1161 ; - If installed to HKLM, check it and return.
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1162 ; - If HKCU rights..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1163 ; - First check HKCU key for GTK+
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1164 ; - if good or bad exists stop and ret.
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1165 ; - If no hkcu gtk+ install, check HKLM
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1166 ; - If HKLM ver exists but old, return as if no ver exits.
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1167 ; - If no rights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1168 ; - Check HKLM
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1169 Push $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1170 Push $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1171 Push $2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1172 Push $3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1173
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1174 Call CheckUserInstallRights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1175 Pop $1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1176 StrCmp $1 "HKLM" check_hklm
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1177 StrCmp $1 "HKCU" check_hkcu check_hklm
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1178 check_hkcu:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1179 ReadRegStr $0 HKCU ${GTK_REG_KEY} "Version"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1180 StrCpy $2 "HKCU"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1181 StrCmp $0 "" check_hklm have_gtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1182
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1183 check_hklm:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1184 ReadRegStr $0 HKLM ${GTK_REG_KEY} "Version"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1185 StrCpy $2 "HKLM"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1186 StrCmp $0 "" no_gtk have_gtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1187
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1188 have_gtk:
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
1189 ; GTK+ is already installed; check version.
21150
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1190 ; Change this to not even run the GTK installer if this version is already installed.
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1191 ${VersionCompare} ${GTK_INSTALL_VERSION} $0 $3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1192 IntCmp $3 1 +1 good_version good_version
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1193 ${VersionCompare} ${GTK_MIN_VERSION} $0 $3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1194
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1195 ; Bad version. If hklm ver and we have hkcu or no rights.. return no gtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1196 StrCmp $1 "NONE" no_gtk ; if no rights.. can't upgrade
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1197 StrCmp $1 "HKCU" 0 +2 ; if HKLM can upgrade..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1198 StrCmp $2 "HKLM" no_gtk ; have hkcu rights.. if found hklm ver can't upgrade..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1199 Push $2
16542
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1200 IntCmp $3 1 +3
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1201 Push "1" ; Optional Upgrade
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1202 Goto done
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1203 Push "2" ; Mandatory Upgrade
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1204 Goto done
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1205
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1206 good_version:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1207 StrCmp $2 "HKLM" have_hklm_gtk have_hkcu_gtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1208 have_hkcu_gtk:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1209 ; Have HKCU version
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1210 ReadRegStr $0 HKCU ${GTK_REG_KEY} "Path"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1211 Goto good_version_cont
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1212
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1213 have_hklm_gtk:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1214 ReadRegStr $0 HKLM ${GTK_REG_KEY} "Path"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1215 Goto good_version_cont
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1216
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1217 good_version_cont:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1218 Push $0 ; The path to existing GTK+
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1219 Push "0"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1220 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1221
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1222 no_gtk:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1223 Push $1 ; our rights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1224 Push "3"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1225 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1226
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1227 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1228 ; The top two items on the stack are what we want to return
15795
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15756
diff changeset
1229 Exch 4
16542
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1230 Pop $1
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1231 Exch 4
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1232 Pop $0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1233 Pop $3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1234 Pop $2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1235 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1236
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1237
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1238 !macro RunCheckMacro UN
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1239 Function ${UN}RunCheck
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1240 Push $R0
21852
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1241 Push $R1
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1242
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1243 IntOp $R1 0 + 0
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1244 retry_runcheck:
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1245 ; Close the Handle (needed if we're retrying)
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1246 IntCmp $R1 0 +2
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1247 System::Call 'kernel32::CloseHandle(i $R1) i .R1'
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1248 System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_is_running") i .R1 ?e'
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1249 Pop $R0
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1250 IntCmp $R0 0 +3 ;This could check for ERROR_ALREADY_EXISTS(183), but lets just assume
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1251 MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(PIDGIN_IS_RUNNING) /SD IDCANCEL IDRETRY retry_runcheck
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1252 Abort
21852
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1253
22109
dfa337b45aec Don't keep a handle to the "pidgin_is_running" mutex in the installer - this causes the uninstaller to fail. There probably is a better solution, but this works for now.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22051
diff changeset
1254 ; Close the Handle (If we don't do this, the uninstaller called from within will fail)
dfa337b45aec Don't keep a handle to the "pidgin_is_running" mutex in the installer - this causes the uninstaller to fail. There probably is a better solution, but this works for now.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22051
diff changeset
1255 ; This is not optimal because there is a (small) window of time when a new process could start
dfa337b45aec Don't keep a handle to the "pidgin_is_running" mutex in the installer - this causes the uninstaller to fail. There probably is a better solution, but this works for now.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22051
diff changeset
1256 System::Call 'kernel32::CloseHandle(i $R1) i .R1'
dfa337b45aec Don't keep a handle to the "pidgin_is_running" mutex in the installer - this causes the uninstaller to fail. There probably is a better solution, but this works for now.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22051
diff changeset
1257
21852
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1258 Pop $R1
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1259 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1260 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1261 !macroend
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1262 !insertmacro RunCheckMacro ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1263 !insertmacro RunCheckMacro "un."
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1264
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1265 Function .onInit
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1266 Push $R0
21150
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1267 Push $R1
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1268 Push $R2
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1269 Push $R3 ; This is only used for the Parameters throughout the function
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1270
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1271 ${GetParameters} $R3
21852
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1272
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1273 IntOp $R1 0 + 0
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1274 retry_runcheck:
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1275 ; Close the Handle (needed if we're retrying)
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1276 IntCmp $R1 0 +2
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1277 System::Call 'kernel32::CloseHandle(i $R1) i .R1'
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1278 System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_installer_running") i .R1 ?e'
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1279 Pop $R0
21852
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1280 IntCmp $R0 0 +3 ;This could check for ERROR_ALREADY_EXISTS(183), but lets just assume
c8e37362179a Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21150
diff changeset
1281 MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(INSTALLER_IS_RUNNING) /SD IDCANCEL IDRETRY retry_runcheck
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1282 Abort
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1283
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1284 ; Allow installer to run even if pidgin is running via "/NOPIDGINRUNCHECK=1"
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1285 ; This is useful for testing
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1286 ClearErrors
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1287 ${GetOptions} "$R3" "/NOPIDGINRUNCHECK=" $R1
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1288 IfErrors 0 +2
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1289 Call RunCheck
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1290
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1291 StrCpy $name "Pidgin ${PIDGIN_VERSION}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1292 StrCpy $SPELLCHECK_SEL ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1293
15756
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15754
diff changeset
1294 ;Try to copy the old Gaim installer Lang Reg. key
22775
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1295 ;(remove it after we're done to prevent this being done more than once)
15756
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15754
diff changeset
1296 ClearErrors
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15754
diff changeset
1297 ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "Installer Language"
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15754
diff changeset
1298 IfErrors 0 +5
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15754
diff changeset
1299 ClearErrors
22775
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1300 ReadRegStr $R0 HKCU "${OLD_GAIM_REG_KEY}" "Installer Language"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1301 IfErrors +3
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1302 DeleteRegValue HKCU "${OLD_GAIM_REG_KEY}" "Installer Language"
15756
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15754
diff changeset
1303 WriteRegStr HKCU "${PIDGIN_REG_KEY}" "Installer Language" "$R0"
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15754
diff changeset
1304
16773
ef86cf8789ea Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16713
diff changeset
1305 !insertmacro SetSectionFlag ${SecSpellCheck} ${SF_RO}
ef86cf8789ea Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16713
diff changeset
1306 !insertmacro UnselectSection ${SecSpellCheck}
ef86cf8789ea Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16713
diff changeset
1307
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1308 ;Mark the dictionaries that are already installed as readonly
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1309 Call SelectAndDisableInstalledDictionaries
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1310
15796
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1311 ;Preselect the URI handlers as appropriate
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1312 Call SelectURIHandlerSelections
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1313
18463
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1314 ;Preselect the "shortcuts" checkboxes according to the previous installation
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1315 ClearErrors
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1316 ;Make sure that there was a previous installation
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1317 ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "Installer Language"
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1318 IfErrors done_preselecting_shortcuts
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1319 ;Does the Desktop shortcut exist?
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1320 GetFileTime "$DESKTOP\Pidgin.lnk" $R0 $R0
19304
9e9f3442764c New Persian win32 installer translation from Elnaz Sarbar. Fixes 2273.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 18463
diff changeset
1321 IfErrors +1 +5
18463
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1322 ClearErrors
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1323 SetShellVarContext "all"
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1324 GetFileTime "$DESKTOP\Pidgin.lnk" $R0 $R0
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1325 IfErrors preselect_startmenu_shortcut ;Desktop Shortcut if off by default
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1326 !insertmacro SelectSection ${SecDesktopShortcut}
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1327 preselect_startmenu_shortcut:
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1328 ;Reset ShellVarContext because we may have changed it
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1329 SetShellVarContext "current"
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1330 ClearErrors
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1331 ;Does the StartMenu shortcut exist?
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1332 GetFileTime "$SMPROGRAMS\Pidgin.lnk" $R0 $R0
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1333 IfErrors +1 done_preselecting_shortcuts ;StartMenu Shortcut is on by default
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1334 ClearErrors
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1335 SetShellVarContext "all"
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1336 GetFileTime "$SMPROGRAMS\Pidgin.lnk" $R0 $R0
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1337 IfErrors +1 done_preselecting_shortcuts ;StartMenu Shortcut is on by default
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1338 !insertmacro UnselectSection ${SecStartMenuShortcut}
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1339 done_preselecting_shortcuts:
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1340 ;Reset ShellVarContext because we may have changed it
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1341 SetShellVarContext "current"
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1342
23662
f5e614bc6606 Fix the win32 installer not to cause messageboxes in the gtk installer when
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23648
diff changeset
1343 StrCpy $ISSILENT "/S"
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1344 ; GTK installer has two silent states - one with Message boxes, one without
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1345 ; If pidgin installer was run silently, we want to supress gtk installer msg boxes.
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1346 IfSilent 0 +2
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1347 StrCpy $ISSILENT "/NOUI"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1348
28450
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1349 StrCpy $LANGUAGE_SET "0"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1350 ClearErrors
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1351 ${GetOptions} "$R3" "/L=" $R1
28647
23615d141245 Fix a silly regression that I introduced in f1167f906624ca218b6fd2a39b10be205ca99892 where the win32 installer language selection would no longer work correctly. Fixes #10243.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28450
diff changeset
1352 IfErrors +4
21150
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1353 StrCpy $LANGUAGE $R1
28450
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1354 StrCpy $LANGUAGE_SET "1"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1355 Goto skip_lang
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1356
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1357 ; Select Language
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1358 ; Display Language selection dialog
28647
23615d141245 Fix a silly regression that I introduced in f1167f906624ca218b6fd2a39b10be205ca99892 where the win32 installer language selection would no longer work correctly. Fixes #10243.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28450
diff changeset
1359 !define MUI_LANGDLL_ALWAYSSHOW
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1360 !insertmacro MUI_LANGDLL_DISPLAY
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1361 skip_lang:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1362
21150
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1363 ClearErrors
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1364 ${GetOptions} "$R3" "/DS=" $R1
22051
92eeb7f5b3c9 Fix an issue where the Start Menu shortcut wasn't selected by default when not installed. Fixes #4489.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21927
diff changeset
1365 IfErrors +8
21150
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1366 SectionGetFlags ${SecDesktopShortcut} $R2
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1367 StrCmp "1" $R1 0 +2
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1368 IntOp $R2 $R2 | ${SF_SELECTED}
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1369 StrCmp "0" $R1 0 +3
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1370 IntOp $R1 ${SF_SELECTED} ~
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1371 IntOp $R2 $R2 & $R1
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1372 SectionSetFlags ${SecDesktopShortcut} $R2
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1373
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1374 ClearErrors
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1375 ${GetOptions} "$R3" "/SMS=" $R1
22051
92eeb7f5b3c9 Fix an issue where the Start Menu shortcut wasn't selected by default when not installed. Fixes #4489.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21927
diff changeset
1376 IfErrors +8
21150
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1377 SectionGetFlags ${SecStartMenuShortcut} $R2
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1378 StrCmp "1" $R1 0 +2
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1379 IntOp $R2 $R2 | ${SF_SELECTED}
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1380 StrCmp "0" $R1 0 +3
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1381 IntOp $R1 ${SF_SELECTED} ~
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1382 IntOp $R2 $R2 & $R1
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1383 SectionSetFlags ${SecStartMenuShortcut} $R2
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1384
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1385 ; If install path was set on the command, use it.
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1386 StrCmp $INSTDIR "" 0 instdir_done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1387
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1388 ; If pidgin or gaim is currently installed, we should default to where it is currently installed
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1389 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1390 ReadRegStr $INSTDIR HKCU "${PIDGIN_REG_KEY}" ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1391 IfErrors +2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1392 StrCmp $INSTDIR "" 0 instdir_done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1393 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1394 ReadRegStr $INSTDIR HKLM "${PIDGIN_REG_KEY}" ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1395 IfErrors +2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1396 StrCmp $INSTDIR "" 0 instdir_done
15796
1dee9065e336 Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15795
diff changeset
1397
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1398 Call CheckUserInstallRights
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1399 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1400
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1401 StrCmp $R0 "HKLM" 0 user_dir
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1402 StrCpy $INSTDIR "$PROGRAMFILES\Pidgin"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1403 Goto instdir_done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1404 user_dir:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1405 Push $SMPROGRAMS
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1406 ${GetParent} $SMPROGRAMS $R2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1407 ${GetParent} $R2 $R2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1408 StrCpy $INSTDIR "$R2\Pidgin"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1409
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1410 instdir_done:
16542
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1411 ;LogSet on
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1412 Pop $R3
21150
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1413 Pop $R2
476586ae4aff Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 21125
diff changeset
1414 Pop $R1
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1415 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1416 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1417
28450
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1418 Function .onInstSuccess
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1419 ; NSIS doesn't appear to save the language when in Silent Mode, so we do so manually
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1420 IfSilent 0 done
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1421
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1422 StrCmp $LANGUAGE_SET "0" done
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1423
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1424 WriteRegStr "${MUI_LANGDLL_REGISTRY_ROOT}" "${MUI_LANGDLL_REGISTRY_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" $LANGUAGE
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1425
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1426 done:
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1427 FunctionEnd
1b534812157d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28203
diff changeset
1428
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1429 Function un.onInit
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1430 Call un.RunCheck
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1431 StrCpy $name "Pidgin ${PIDGIN_VERSION}"
22775
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1432 ;LogSet on
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1433
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1434 ; Get stored language preference
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1435 !insertmacro MUI_UNGETLANGUAGE
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1436
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1437 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1438
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1439 ; Page enter and exit functions..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1440
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1441 Function preWelcomePage
16542
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1442 Push $R0
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1443
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1444 !ifndef WITH_GTK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1445 ; If this installer dosn't have GTK, check whether we need it.
18463
18a81722d6d4 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17884
diff changeset
1446 ; We do this here and not in .onInit because language change in
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1447 ; .onInit doesn't take effect until it is finished.
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1448 Call DoWeNeedGtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1449 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1450 Pop $GTK_FOLDER
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1451
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1452 IntCmp $R0 1 done done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1453 MessageBox MB_OK $(GTK_INSTALLER_NEEDED) /SD IDOK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1454 Quit
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1455
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1456 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1457
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1458 !else
16542
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1459 Push $R1
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1460 Push $R2
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1461
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1462 Call DoWeNeedGtk
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1463 Pop $R0
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1464 Pop $R2
23982
f6b47af95252 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23981
diff changeset
1465 IntCmp $R0 1 gtk_selection_done gtk_not_mandatory
f6b47af95252 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23981
diff changeset
1466 ; Make the GTK+ Section RO if it is required.
16542
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1467 !insertmacro SetSectionFlag ${SecGtk} ${SF_RO}
23982
f6b47af95252 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23981
diff changeset
1468 Goto gtk_selection_done
16542
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1469 gtk_not_mandatory:
23982
f6b47af95252 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23981
diff changeset
1470 ; Don't select the GTK+ section if we already have this version or newer installed
f6b47af95252 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23981
diff changeset
1471 !insertmacro UnselectSection ${SecGtk}
f6b47af95252 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23981
diff changeset
1472 gtk_selection_done:
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1473
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1474 ; If on Win95/98/ME warn them that the GTK+ version wont work
17464
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
1475 ${Unless} ${IsNT}
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1476 !insertmacro UnselectSection ${SecGtk}
16542
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1477 !insertmacro SetSectionFlag ${SecGtk} ${SF_RO}
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1478 MessageBox MB_OK $(GTK_WINDOWS_INCOMPATIBLE) /SD IDOK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1479 IntCmp $R0 1 done done ; Upgrade isn't optional - abort if we don't have a suitable version
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1480 Quit
17464
a3e68bb05594 Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17246
diff changeset
1481 ${EndIf}
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1482
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1483 done:
16542
e96a4756734a Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16248
diff changeset
1484 Pop $R2
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1485 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1486 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1487 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1488 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1489
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1490 !ifdef WITH_GTK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1491 Function preGtkDirPage
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1492 Push $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1493 Push $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1494 Call DoWeNeedGtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1495 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1496 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1497
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1498 IntCmp $R0 2 +2 +2 no_gtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1499 StrCmp $R0 "3" no_gtk no_gtk
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1500
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1501 ; Don't show dir selector.. Upgrades are done to existing path..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1502 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1503 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1504 Abort
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1505
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1506 no_gtk:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1507 StrCmp $R1 "NONE" 0 no_gtk_cont
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1508 ; Got no install rights..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1509 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1510 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1511 Abort
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1512 no_gtk_cont:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1513 ; Suggest path..
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1514 StrCmp $R1 "HKCU" 0 hklm1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1515 ${GetParent} $SMPROGRAMS $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1516 ${GetParent} $R0 $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1517 StrCpy $R0 "$R0\GTK\2.0"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1518 Goto got_path
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1519 hklm1:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1520 StrCpy $R0 "${GTK_DEFAULT_INSTALL_PATH}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1521
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1522 got_path:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1523 StrCpy $name "GTK+ ${GTK_INSTALL_VERSION}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1524 StrCpy $GTK_FOLDER $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1525 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1526 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1527 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1528
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1529 Function postGtkDirPage
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1530 Push $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1531 StrCpy $name "Pidgin ${PIDGIN_VERSION}"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1532 Push $GTK_FOLDER
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1533 Call VerifyDir
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1534 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1535 StrCmp $R0 "0" 0 done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1536 MessageBox MB_OK $(GTK_BAD_INSTALL_PATH) /SD IDOK
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1537 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1538 Abort
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1539 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1540 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1541 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1542 !endif
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1543
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1544 ; SpellChecker Related Functions
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1545 ;-------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1546
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1547 ; Convert the a Section index to the language code
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1548 ; Push the section index onto the stack and pop off the language code after the call
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1549 ; This will set the error code, if no match is found
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1550 Function GetLangCodeForSection
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1551 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1552 Push $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1553 Exch
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1554 Pop $R0 ;This is the section index
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1555
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1556 IntCmp $R0 ${SecSpellCheckBreton} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1557 StrCpy $R0 "br"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1558 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1559 IntCmp $R0 ${SecSpellCheckCatalan} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1560 StrCpy $R0 "ca"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1561 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1562 IntCmp $R0 ${SecSpellCheckCzech} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1563 StrCpy $R0 "cs"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1564 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1565 IntCmp $R0 ${SecSpellCheckWelsh} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1566 StrCpy $R0 "cy"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1567 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1568 IntCmp $R0 ${SecSpellCheckDanish} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1569 StrCpy $R0 "da"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1570 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1571 IntCmp $R0 ${SecSpellCheckGerman} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1572 StrCpy $R0 "de"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1573 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1574 IntCmp $R0 ${SecSpellCheckGreek} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1575 StrCpy $R0 "el"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1576 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1577 IntCmp $R0 ${SecSpellCheckEnglish} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1578 StrCpy $R0 "en"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1579 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1580 IntCmp $R0 ${SecSpellCheckEsperanto} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1581 StrCpy $R0 "eo"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1582 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1583 IntCmp $R0 ${SecSpellCheckSpanish} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1584 StrCpy $R0 "es"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1585 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1586 IntCmp $R0 ${SecSpellCheckFaroese} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1587 StrCpy $R0 "fo"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1588 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1589 IntCmp $R0 ${SecSpellCheckFrench} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1590 StrCpy $R0 "fr"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1591 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1592 IntCmp $R0 ${SecSpellCheckItalian} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1593 StrCpy $R0 "it"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1594 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1595 IntCmp $R0 ${SecSpellCheckDutch} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1596 StrCpy $R0 "nl"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1597 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1598 IntCmp $R0 ${SecSpellCheckNorwegian} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1599 StrCpy $R0 "no"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1600 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1601 IntCmp $R0 ${SecSpellCheckPolish} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1602 StrCpy $R0 "pl"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1603 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1604 IntCmp $R0 ${SecSpellCheckPortuguese} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1605 StrCpy $R0 "pt"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1606 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1607 IntCmp $R0 ${SecSpellCheckRomanian} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1608 StrCpy $R0 "ro"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1609 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1610 IntCmp $R0 ${SecSpellCheckRussian} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1611 StrCpy $R0 "ru"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1612 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1613 IntCmp $R0 ${SecSpellCheckSlovak} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1614 StrCpy $R0 "sk"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1615 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1616 IntCmp $R0 ${SecSpellCheckSwedish} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1617 StrCpy $R0 "sv"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1618 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1619 IntCmp $R0 ${SecSpellCheckUkrainian} 0 +3 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1620 StrCpy $R0 "uk"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1621 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1622
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1623 SetErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1624
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1625 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1626 Exch $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1627 FunctionEnd ;GetLangCodeForSection
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1628
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1629 ; Select and Disable any Sections that have currently installed dictionaries
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1630 Function SelectAndDisableInstalledDictionaries
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1631 Push $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1632 Push $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1633 Push $R2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1634
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1635 ; Start with the first language dictionary
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1636 IntOp $R0 ${SecSpellCheck} + 1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1637
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1638 start:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1639 ; If it is the end of the section group, stop
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1640 SectionGetFlags $R0 $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1641 IntOp $R2 $R1 & ${SF_SECGRPEND}
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1642 IntCmp $R2 ${SF_SECGRPEND} done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1643
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1644 Push $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1645 Call GetLangCodeForSection
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1646 Pop $R2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1647 IfErrors end_loop
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1648 ReadRegStr $R2 HKLM "${ASPELL_REG_KEY}-$R2" "" ; Check that the dictionary is installed
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1649 StrCmp $R2 "" end_loop ; If it isn't installed, skip to the next item
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1650 IntOp $R1 $R1 | ${SF_RO} ; Mark Readonly
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1651 IntOp $R1 $R1 | ${SF_SELECTED} ; Select
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1652 SectionSetFlags $R0 $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1653
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1654 end_loop:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1655 IntOp $R0 $R0 + 1 ;Advance to the next section
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1656 Goto start
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1657
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1658 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1659 Pop $R2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1660 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1661 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1662 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1663
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1664 Function InstallAspellAndDict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1665 Push $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1666 Exch
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1667 Call GetLangCodeForSection
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1668 Pop $R0 ;This is the language code
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1669 Push $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1670
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1671 IfErrors done ; We weren't able to convert the section to lang code
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1672
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1673 retry:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1674 Call InstallAspell
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1675 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1676 StrCmp $R1 "" +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1677 StrCmp $R1 "cancel" done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1678 MessageBox MB_RETRYCANCEL "$(PIDGIN_SPELLCHECK_ERROR) : $R1" /SD IDCANCEL IDRETRY retry IDCANCEL done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1679
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1680 retry_dict:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1681 Push $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1682 Call InstallAspellDictionary
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1683 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1684 StrCmp $R1 "" +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1685 StrCmp $R1 "cancel" done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1686 MessageBox MB_RETRYCANCEL "$(PIDGIN_SPELLCHECK_DICT_ERROR) : $R1" /SD IDCANCEL IDRETRY retry_dict
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1687
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1688 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1689
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1690 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1691 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1692 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1693
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1694 Function InstallAspell
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1695 Push $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1696 Push $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1697 Push $R2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1698
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1699 check:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1700 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1701 ReadRegDWORD $R0 HKLM ${ASPELL_REG_KEY} "AspellVersion"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1702 IntCmp $R0 15 installed
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1703
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1704 ; If this is the check after installation, don't infinite loop on failure
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1705 StrCmp $R1 "$TEMP\aspell_installer.exe" 0 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1706 StrCpy $R0 $(ASPELL_INSTALL_FAILED)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1707 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1708
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1709 ; We need to download and install aspell
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1710 StrCpy $R1 "$TEMP\aspell_installer.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1711 StrCpy $R2 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}&dl_pkg=aspell_core"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1712 DetailPrint "Downloading Aspell... ($R2)"
16785
2ab54f33b67d Bump the spellchecking download timeout to 10 seconds.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16784
diff changeset
1713 NSISdl::download /TIMEOUT=10000 $R2 $R1
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1714 Pop $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1715 StrCmp $R0 "success" +2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1716 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1717 ExecWait '"$R1"'
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1718 Delete $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1719 Goto check ; Check that it is now installed correctly
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1720
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1721 installed: ;Aspell is currently installed, no error message
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1722 DetailPrint "Aspell is installed"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1723 StrCpy $R0 ''
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1724
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1725 done:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1726 Pop $R2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1727 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1728 Exch $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1729 FunctionEnd
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1730
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1731 Function InstallAspellDictionary
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1732 Push $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1733 Exch
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1734 Pop $R0 ;This is the language code
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1735 Push $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1736 Push $R2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1737 Push $R3
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1738 Push $R4
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1739
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1740 check:
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1741 ClearErrors
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1742 ReadRegStr $R2 HKLM "${ASPELL_REG_KEY}-$R0" ""
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1743 StrCmp $R2 "" 0 installed
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1744
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1745 ; If this is the check after installation, don't infinite loop on failure
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1746 StrCmp $R1 "$TEMP\aspell_dict-$R0.exe" 0 +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1747 StrCpy $R0 $(ASPELL_INSTALL_FAILED)
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1748 Goto done
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1749
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1750 ; We need to download and install aspell
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1751 StrCpy $R1 "$TEMP\aspell_dict-$R0.exe"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1752 StrCpy $R3 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}&dl_pkg=lang_$R0"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1753 DetailPrint "Downloading the Aspell $R0 Dictionary... ($R3)"
16785
2ab54f33b67d Bump the spellchecking download timeout to 10 seconds.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16784
diff changeset
1754 NSISdl::download /TIMEOUT=10000 $R3 $R1
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1755 Pop $R3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1756 StrCmp $R3 "success" +3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1757 StrCpy $R0 $R3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1758 Goto done
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1759 ; Use a specific temporary $OUTDIR for each dictionary because the installer doesn't clean up after itself
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1760 StrCpy $R4 "$OUTDIR"
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1761 SetOutPath "$TEMP\aspell_dict-$R0"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1762 ExecWait '"$R1"'
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1763 SetOutPath "$R4"
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1764 RMDir /r "$TEMP\aspell_dict-$R0"
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1765 Delete $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1766 Goto check ; Check that it is now installed correctly
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1767
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1768 installed: ;The dictionary is currently installed, no error message
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1769 DetailPrint "Aspell $R0 Dictionary is installed"
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1770 StrCpy $R0 ''
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1771
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1772 done:
25046
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25020
diff changeset
1773 Pop $R4
15752
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1774 Pop $R3
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1775 Pop $R2
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1776 Pop $R1
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1777 Exch $R0
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1778 FunctionEnd