annotate pidgin/win32/nsis/pidgin-installer.nsi @ 29487:c08740a93dd1

Various installer bug fixes
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 25 Feb 2010 06:35:35 +0000
parents 15e26b945a7a
children 996eb83a1162
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15751
e11859350489 Updates 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
27388
77976350b32d Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 27136
diff changeset
5 ; NOTE: this .NSI script is intended for NSIS 2.27+
15751
e11859350489 Updates 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 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
12 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
13 Var 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
14
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
15 ;--------------------------------
e11859350489 Updates 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 ;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
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 ;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
19 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
20
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
21 !ifdef OFFLINE_INSTALLER
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
22 OutFile "pidgin-${PIDGIN_VERSION}-offline.exe"
15751
e11859350489 Updates 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 !else
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
24 OutFile "pidgin-${PIDGIN_VERSION}.exe"
15751
e11859350489 Updates 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 !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
26
e11859350489 Updates 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 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
28 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
29 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
30 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
31
e11859350489 Updates 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 ; $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
33
e11859350489 Updates 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 !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
35 !include "Sections.nsh"
17384
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: 17197
diff changeset
36 !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: 17197
diff changeset
37 !include "LogicLib.nsh"
29230
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
38 !include "Memento.nsh"
15751
e11859350489 Updates 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 "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
41 !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
42 !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
43 !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
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 "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
46 !insertmacro VersionCompare
15795
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: 15794
diff changeset
47 !insertmacro WordFind
22799
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
48 !insertmacro un.WordFind
15751
e11859350489 Updates 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
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
50 !include "TextFunc.nsh"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
51
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
52 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
53 ;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
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 !define PIDGIN_NSIS_INCLUDE_PATH "."
29480
59099ccd141e Use datestamped pidgin-inst-deps directory
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29329
diff changeset
56 !define PIDGIN_INSTALLER_DEPS "..\..\..\..\win32-dev\pidgin-inst-deps-20100223"
15751
e11859350489 Updates 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 ; 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
59 !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
60 !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
61 !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
62
e11859350489 Updates 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 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
64 !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
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 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
67 !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
68 !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
69
29096
33e36de9f83a Fix minimum required GTK+ version in win32 installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 27860
diff changeset
70 !define GTK_MIN_VERSION "2.14.0"
15751
e11859350489 Updates 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 PERL_REG_KEY "SOFTWARE\Perl"
23603
ab5b9acebde3 Update the Perl plugin loader to work with Perl 5.10.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23588
diff changeset
72 !define PERL_DLL "perl510.dll"
15751
e11859350489 Updates 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
e11859350489 Updates 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 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
75 !define DOWNLOADER_URL "http://pidgin.im/win32/download_redir.php"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
76
29230
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
77 !define MEMENTO_REGISTRY_ROOT HKLM
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
78 !define MEMENTO_REGISTRY_KEY "${PIDGIN_UNINSTALL_KEY}"
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
79
15751
e11859350489 Updates 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 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
81 ;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
82 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
83 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
84 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
85 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
86 VIAddVersionKey "LegalCopyright" ""
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
87 !ifdef OFFLINE_INSTALLER
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
88 VIAddVersionKey "FileDescription" "Pidgin Installer (Offline)"
15751
e11859350489 Updates 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 !else
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
90 VIAddVersionKey "FileDescription" "Pidgin Installer"
15751
e11859350489 Updates 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 !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
92
e11859350489 Updates 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 ;--------------------------------
17384
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: 17197
diff changeset
94 ;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: 17197
diff changeset
95 ;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: 17197
diff changeset
96 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: 17197
diff changeset
97 !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: 17197
diff changeset
98 !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: 17197
diff changeset
99
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: 17197
diff changeset
100 ;--------------------------------
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
101 ;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
102
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
103 !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
104 !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
105 !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
106 !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
107 !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
108
e11859350489 Updates 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 ; 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
110 !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
111 !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
112
e11859350489 Updates 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_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
114 !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
115 !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
116
e11859350489 Updates 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_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
118 !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
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 ;Finish Page config
16773
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: 16772
diff changeset
121 !define MUI_FINISHPAGE_NOAUTOCLOSE
15751
e11859350489 Updates 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_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
123 !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
124 !define MUI_FINISHPAGE_LINK $(PIDGIN_FINISH_VISIT_WEB_SITE)
17936
234ab2c9ed36 Fix win32 installer finishpage URL. (this is fixed in the 2.0.2 installer too)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17625
diff changeset
125 !define MUI_FINISHPAGE_LINK_LOCATION "http://pidgin.im"
15751
e11859350489 Updates 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 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
128 ;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
129
e11859350489 Updates 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_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
131 !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
132 !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
133 !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
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 ; 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
136 !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
137
e11859350489 Updates 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_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
139 !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
140
e11859350489 Updates 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 !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
142 !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
143 !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
144 !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
145
e11859350489 Updates 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 ;--------------------------------
e11859350489 Updates 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 ;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
148
e11859350489 Updates 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 ;; 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
150 ;; 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
151 ;; 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
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_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
154
16704
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: 16534
diff changeset
155 !insertmacro MUI_LANGUAGE "Afrikaans"
15751
e11859350489 Updates 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_LANGUAGE "Albanian"
20274
d9e391c08e08 Enable the new Arabic windows installer translation.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19780
diff changeset
157 !insertmacro MUI_LANGUAGE "Arabic"
19780
3023e0ba2fa6 Add Basque translation to win32 installer from Mikel Pascual Aldabaldetreku. Fixes #2880.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19674
diff changeset
158 !insertmacro MUI_LANGUAGE "Basque"
15751
e11859350489 Updates 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_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
160 !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
161 !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
162 !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
163 !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
164 !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
165 !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
166 !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
167 !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
168 !insertmacro MUI_LANGUAGE "Finnish"
15751
e11859350489 Updates 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 !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
170 !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
171 !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
172 !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
173 !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
174 !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
175 !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
176 !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
177 !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
178 !insertmacro MUI_LANGUAGE "Norwegian"
28771
592d382e1bf4 Norwegian nynorsk win32 installer translation from Yngve Spjeld Landro
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28591
diff changeset
179 !insertmacro MUI_LANGUAGE "NorwegianNynorsk"
15751
e11859350489 Updates 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 "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
181 !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
182 !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
183 !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
184 !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
185 !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
186 !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
187 !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
188 !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
189
e11859350489 Updates 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 ;--------------------------------
e11859350489 Updates 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 ;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
192
e11859350489 Updates 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 !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
194
e11859350489 Updates 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 !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
196
16704
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: 16534
diff changeset
197 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "AFRIKAANS" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\afrikaans.nsh"
15751
e11859350489 Updates 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 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: 19780
diff changeset
199 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ARABIC" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\arabic.nsh"
19780
3023e0ba2fa6 Add Basque translation to win32 installer from Mikel Pascual Aldabaldetreku. Fixes #2880.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19674
diff changeset
200 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "BASQUE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\basque.nsh"
15751
e11859350489 Updates 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 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
202 !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
203 !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
204 !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
205 !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
206 !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
207 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "FARSI" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\persian.nsh"
15751
e11859350489 Updates 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 !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
209 !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
210 !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
211 !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
212 !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
213 !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
214 !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
215 !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
216 !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
217 !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
218 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "NORWEGIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\norwegian.nsh"
28771
592d382e1bf4 Norwegian nynorsk win32 installer translation from Yngve Spjeld Landro
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28591
diff changeset
219 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "NORWEGIANNYNORSK" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\norwegian_nynorsk.nsh"
15751
e11859350489 Updates 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 "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
221 !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
222 !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
223 !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
224 !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
225 !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
226 !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
227 !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
228 !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
229 !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
230 !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
231 !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
232
e11859350489 Updates 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 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
234 ;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
235 ; 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
236
e11859350489 Updates 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 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
238 !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
239 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
240
e11859350489 Updates 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
e11859350489 Updates 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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
e11859350489 Updates 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 ;; 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
244 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
e11859350489 Updates 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
e11859350489 Updates 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 ;--------------------------------
e11859350489 Updates 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 ;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
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 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
250 ; 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
251 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
252 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
253
e11859350489 Updates 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 ;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
255 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
256 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
257 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
258 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
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 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
261 ;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
262 ; 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
263 ; 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
264 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
265 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
266 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
267 StrCpy $STARTUP_RUN_KEY "HKCU"
16772
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16762
diff changeset
268 Goto +5
15751
e11859350489 Updates 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 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
270 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
271 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
272 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
273
e11859350489 Updates 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 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
275 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
276
e11859350489 Updates 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 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
278 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
279 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
280 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
281 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
282
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
283 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
284 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
285 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
286 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
287
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
288 ; If a previous version exists, remove it
15751
e11859350489 Updates 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 try_uninstall:
16772
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16762
diff changeset
290 StrCmp $R1 "" no_version_found
15751
e11859350489 Updates 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 ; Version key started with 0.60a3. Prior versions can't be
16762
ef86cf8789ea Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16704
diff changeset
292 ; automatically uninstalled.
15751
e11859350489 Updates 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 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
294 ; 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
295 IfFileExists $R3 0 uninstall_problem
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
296 ; Have uninstall string, go ahead and uninstall.
15751
e11859350489 Updates 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 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
298 ; 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
299 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
300 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
301 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
302 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
303 ; 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
304 ClearErrors
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
305 ExecWait '"$TEMP\$R6" /S /KEEPGTK=1 _?=$R1'
15751
e11859350489 Updates 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 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
307 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
308 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
309
e11859350489 Updates 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 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
311 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
312 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
313
16772
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16762
diff changeset
314 no_version_found:
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16762
diff changeset
315 ;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: 16762
diff changeset
316 StrCmp $R7 "Gaim" done
15751
e11859350489 Updates 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 ; If we couldn't uninstall Pidgin, try to uninstall Gaim
16772
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16762
diff changeset
318 StrCpy $STARTUP_RUN_KEY "NONE"
15751
e11859350489 Updates 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 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
320 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
321 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
322 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
323 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
324
16772
58904374db06 Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16762
diff changeset
325 uninstall_problem:
15751
e11859350489 Updates 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 ; 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
327 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
328 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
329 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
330 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
331
e11859350489 Updates 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
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
333 ;--------------------------------
e11859350489 Updates 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 ;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
335
e11859350489 Updates 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 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
337
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
338 InitPluginsDir
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
339 StrCpy $R1 "$PLUGINSDIR\gtk.zip"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
340 !ifdef OFFLINE_INSTALLER
15751
e11859350489 Updates 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
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
342 SetOutPath $PLUGINSDIR
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
343 File /oname=gtk.zip "..\..\..\..\gtk_installer\gtk-runtime-${GTK_INSTALL_VERSION}.zip"
15751
e11859350489 Updates 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
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
345 !else
15751
e11859350489 Updates 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
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
347 ; We need to download the GTK+ runtime
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
348 retry:
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
349 StrCpy $R2 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}&gtk_version=${GTK_INSTALL_VERSION}&dl_pkg=gtk"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
350 DetailPrint "Downloading GTK+ Runtime ... ($R2)"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
351 NSISdl::download /TIMEOUT=10000 $R2 $R1
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
352 Pop $R0
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
353 StrCmp $R0 "cancel" done
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
354 StrCmp $R0 "success" +2
29487
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
355 MessageBox MB_RETRYCANCEL "$(PIDGIN_GTK_DOWNLOAD_ERROR) : $R2" /SD IDCANCEL IDRETRY retry IDCANCEL done
15751
e11859350489 Updates 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
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
357 !endif
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
358
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
359 SetOutPath "$INSTDIR"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
360 nsisunz::UnzipToLog $R1 "$INSTDIR"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
361 Pop $R0
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
362 StrCmp $R0 "success" +2
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
363 DetailPrint "$R0" ;print error message to log
15751
e11859350489 Updates 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
e11859350489 Updates 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 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
366 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
367
e11859350489 Updates 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 ;--------------------------------
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
369 ;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
370
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
371 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
372 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
373
e11859350489 Updates 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 ; 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
375 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
376 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
377
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
378 StrCmp $R0 "NONE" pidgin_install_files
15751
e11859350489 Updates 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 "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
380
e11859350489 Updates 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 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
382 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "" "$INSTDIR\pidgin.exe"
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
383 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$INSTDIR\Gtk\bin"
15751
e11859350489 Updates 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 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
385 WriteRegStr HKLM ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}"
17615
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17534
diff changeset
386 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: 17534
diff changeset
387 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: 17534
diff changeset
388 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: 17534
diff changeset
389 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: 17534
diff changeset
390 WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1
15751
e11859350489 Updates 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 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
392 ; 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
393 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
394 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
395
e11859350489 Updates 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 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
397 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
398 WriteRegStr HKCU ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}"
17615
bfd44bbb5909 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17534
diff changeset
399 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: 17534
diff changeset
400 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: 17534
diff changeset
401 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: 17534
diff changeset
402 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: 17534
diff changeset
403 WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1
15751
e11859350489 Updates 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 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
405 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
406
e11859350489 Updates 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 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
408 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
409 ; 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
410 SetOverwrite on
16248
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
411
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
412 ;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
413 Delete "$INSTDIR\plugins\liboscar.dll"
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
414 Delete "$INSTDIR\plugins\libjabber.dll"
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
415
29230
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
416 File /r /x locale ..\..\..\${PIDGIN_INSTALL_DIR}\*.*
15751
e11859350489 Updates 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 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
418
e11859350489 Updates 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 ; 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
420 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
421 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
422 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
423 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
424
e11859350489 Updates 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 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
426 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
427 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
428 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
429 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
430
e11859350489 Updates 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 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
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 ; 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
434 ; 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
435 ; See https://lists.silcnet.org/pipermail/silc-devel/2005-January/001588.html
23587
1452c89e7f05 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23047
diff changeset
436 ; 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: 23047
diff changeset
437 ; compatible with NT4.
17384
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: 17197
diff changeset
438 ${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: 17197
diff changeset
439 ${AndIf} ${IsWinNT4}
23587
1452c89e7f05 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23047
diff changeset
440 ;SILC
17384
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: 17197
diff changeset
441 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
442 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
443 Delete "$INSTDIR\libsilc-1-1-2.dll"
23587
1452c89e7f05 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23047
diff changeset
444 ;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: 23047
diff changeset
445 Delete "$INSTDIR\sasl2\saslGSSAPI.dll"
17384
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: 17197
diff changeset
446 ${EndIf}
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
447
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
448 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
449
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
450 ; If we don't have install rights we're done
15751
e11859350489 Updates 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 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
452 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
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 ; 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
455 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
456 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
457 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
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 ; 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
460 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
461 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
462 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
463 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
464
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
465 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
466 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
467
e11859350489 Updates 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 ;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
470
e11859350489 Updates 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 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
472 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
473 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
474 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
475 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
476 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
477 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
478 SetOverwrite on
17197
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: 16774
diff changeset
479 CreateShortCut "$SMPROGRAMS\Pidgin.lnk" "$INSTDIR\pidgin.exe"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
480 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
481 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
482 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
483
e11859350489 Updates 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 ;--------------------------------
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
485 ;URI Handling
22799
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
486
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
487 !macro URI_SECTION proto
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
488 Section /o "${proto}:" SecURI_${proto}
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
489 Push "${proto}"
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
490 Call RegisterURIHandler
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
491 SectionEnd
22799
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
492 !macroend
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
493 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
494 !insertmacro URI_SECTION "aim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
495 !insertmacro URI_SECTION "msnim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
496 !insertmacro URI_SECTION "myim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
497 !insertmacro URI_SECTION "ymsgr"
27860
da22b6d0151e Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <paul@darkrain42.org>
parents: 27754
diff changeset
498 !insertmacro URI_SECTION "xmpp"
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
499 SectionGroupEnd
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
500
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
501 ;--------------------------------
29230
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
502 ;Translations
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
503
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
504 !macro LANG_SECTION lang
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
505 ${MementoUnselectedSection} "${lang}" SecLang_${lang}
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
506 SetOutPath "$INSTDIR\locale\${lang}\LC_MESSAGES"
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
507 File /oname=pidgin.mo "..\..\..\${PIDGIN_INSTALL_DIR}\locale\${lang}\LC_MESSAGES\pidgin.mo"
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
508 SetOutPath "$INSTDIR"
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
509 ${MementoSectionEnd}
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
510 !macroend
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
511 SectionGroup $(TRANSLATIONS_SECTION_TITLE) SecTranslations
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
512 # pidgin-translations is generated based on the contents of the locale directory
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
513 !include "pidgin-translations.nsh"
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
514 SectionGroupEnd
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
515 ${MementoSectionDone}
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
516
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
517 ;--------------------------------
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
518 ;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
519
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
520 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
521 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
522 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
523 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
524 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
525 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
526 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
527 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
528 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
529 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
530 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
531 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
532 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
533 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
534 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
535 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
536 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
537 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
538 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
539 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
540 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
541 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
542 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
543 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
544 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
545 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
546 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
547 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
548 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
549 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
550 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
551 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
552 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
553 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
554 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
555 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
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 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
558 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
559 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
560 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
561 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
562 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
563 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
564 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
565 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
566 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
567 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
568 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
569 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
570 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
571 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
572 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
573 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
574 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
575 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
576 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
577 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
578 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
579 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
580 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
581 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
582 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
583 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
584 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
585 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
586 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
587 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
588 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
589 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
590 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
591 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
592 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
593 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
594 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
595 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
596 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
597 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
598 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
599 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
600 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
601 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
602 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
603 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
604 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
605 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
606 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
607 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
608 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
609 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
610
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
611 Section /o $(DEBUG_SYMBOLS_SECTION_TITLE) SecDebugSymbols
29487
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
612
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
613 InitPluginsDir
29487
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
614 StrCpy $R1 "$PLUGINSDIR\dbgsym.zip"
29231
4f325adb8ced Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29230
diff changeset
615 !ifdef OFFLINE_INSTALLER
4f325adb8ced Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29230
diff changeset
616
4f325adb8ced Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29230
diff changeset
617 SetOutPath $PLUGINSDIR
29487
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
618 File /oname=dbgsym.zip "..\..\..\pidgin-${PIDGIN_VERSION}-dbgsym.zip"
29231
4f325adb8ced Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29230
diff changeset
619
4f325adb8ced Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29230
diff changeset
620 !else
4f325adb8ced Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29230
diff changeset
621
29487
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
622 ; We need to download the debug symbols
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
623 retry:
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
624 StrCpy $R2 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}&dl_pkg=dbgsym"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
625 DetailPrint "Downloading Debug Symbols... ($R2)"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
626 NSISdl::download /TIMEOUT=10000 $R2 $R1
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
627 Pop $R0
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
628 StrCmp $R0 "cancel" done
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
629 StrCmp $R0 "success" +2
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
630 MessageBox MB_RETRYCANCEL "$(PIDGIN_DEBUGSYMBOLS_ERROR) : $R2" /SD IDCANCEL IDRETRY retry IDCANCEL done
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
631
29231
4f325adb8ced Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29230
diff changeset
632 !endif
4f325adb8ced Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29230
diff changeset
633
29487
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
634 SetOutPath "$INSTDIR"
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
635 nsisunz::UnzipToLog $R1 "$INSTDIR"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
636 Pop $R0
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
637 StrCmp $R0 "success" +2
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
638 DetailPrint "$R0" ;print error message to log
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
639
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
640 done:
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
641 SectionEnd
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
642
15751
e11859350489 Updates 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 ;--------------------------------
e11859350489 Updates 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 ;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
645
e11859350489 Updates 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
e11859350489 Updates 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 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
648 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
649 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
650 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
651 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
652
e11859350489 Updates 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 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
654 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
655 StrCmp $R0 $INSTDIR 0 cant_uninstall
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
656 ; HKCU install path matches our INSTDIR so uninstall
15751
e11859350489 Updates 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 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
658 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
659 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
660
e11859350489 Updates 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 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
662 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
663 StrCmp $R0 $INSTDIR 0 try_hkcu
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
664 ; HKLM install path matches our INSTDIR so uninstall
15751
e11859350489 Updates 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 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
666 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
667 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
668 ; 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
669 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
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 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
672 ; 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
673 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
674 DeleteRegValue HKLM "${STARTUP_RUN_KEY}" "Pidgin"
22799
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
675 ; Remove Language preference info
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
676 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
677
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
678 ; Remove any URI handlers
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
679 ; 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
680 Push "aim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
681 Call un.UnregisterURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
682 Push "msnim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
683 Call un.UnregisterURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
684 Push "myim"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
685 Call un.UnregisterURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
686 Push "ymsgr"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
687 Call un.UnregisterURIHandler
27860
da22b6d0151e Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <paul@darkrain42.org>
parents: 27754
diff changeset
688 Push "xmpp"
da22b6d0151e Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <paul@darkrain42.org>
parents: 27754
diff changeset
689 Call un.UnregisterURIHandler
15751
e11859350489 Updates 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
25534
f59cfb686b02 Add a second chain of SSL certificates now necessary for OSCAR SSL
Paul Aurich <paul@darkrain42.org>
parents: 25408
diff changeset
691 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: 25408
diff changeset
692 Delete "$INSTDIR\ca-certs\AOL_Member_CA.pem"
23588
3ec514b98728 Uninstall the CAcert certs in the win32 uninstaller.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23587
diff changeset
693 Delete "$INSTDIR\ca-certs\CAcert_Class3.pem"
3ec514b98728 Uninstall the CAcert certs in the win32 uninstaller.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23587
diff changeset
694 Delete "$INSTDIR\ca-certs\CAcert_Root.pem"
28328
c5280f5677b5 Add the Entrust.net Secure Server CA (taken from Debian's set). Closes #10247.
Paul Aurich <paul@darkrain42.org>
parents: 28282
diff changeset
695 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
696 Delete "$INSTDIR\ca-certs\Equifax_Secure_CA.pem"
27575
307f346eefa2 Add the twitter.com CA cert. Fixes 9264.
Paul Aurich <paul@darkrain42.org>
parents: 27570
diff changeset
697 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
698 Delete "$INSTDIR\ca-certs\GTE_CyberTrust_Global_Root.pem"
24839
7be4d472761a Delete MSN cert when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 24052
diff changeset
699 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
700 Delete "$INSTDIR\ca-certs\Microsoft_Secure_Server_Authority.pem"
26965
e22fa2cc6c46 Add the StartCom root that the XMPP ICA will start using this year.
Paul Aurich <paul@darkrain42.org>
parents: 25588
diff changeset
701 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
702 Delete "$INSTDIR\ca-certs\StartCom_Free_SSL_CA.pem"
27754
Paul Aurich <paul@darkrain42.org>
parents: 27753
diff changeset
703 Delete "$INSTDIR\ca-certs\Thawte_Premium_Server_CA.pem"
Paul Aurich <paul@darkrain42.org>
parents: 27753
diff changeset
704 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
705 Delete "$INSTDIR\ca-certs\Verisign_Class3_Primary_CA.pem"
23994
c1697251c9fe Update win32 installer for cert changes.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23623
diff changeset
706 Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem"
27754
Paul Aurich <paul@darkrain42.org>
parents: 27753
diff changeset
707 Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5_2.pem"
25334
0ba3da7724ff Add new cert to the Windows uninstaller per datallah's request
Paul Aurich <paul@darkrain42.org>
parents: 24839
diff changeset
708 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
709 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
710 RMDir "$INSTDIR\ca-certs"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
711 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
712 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
713 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
714 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
715 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
716 Delete "$INSTDIR\plugins\extplacement.dll"
19674
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
717 Delete "$INSTDIR\plugins\gtkbuddynote.dll"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
718 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
719 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
720 Delete "$INSTDIR\plugins\idle.dll"
17625
dc195d5646e9 Build and distribute the joinpart plugin on win32.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17615
diff changeset
721 Delete "$INSTDIR\plugins\joinpart.dll"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
722 Delete "$INSTDIR\plugins\libaim.dll"
17507
6731e5fe3673 Add the bonjour prpl to the win32 uninstaller.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17384
diff changeset
723 Delete "$INSTDIR\plugins\libbonjour.dll"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
724 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
725 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
726 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
727 Delete "$INSTDIR\plugins\libmsn.dll"
28591
d537567d051f Add mxit to uninstall list
Daniel Atallah <daniel.atallah@gmail.com>
parents: 28328
diff changeset
728 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
729 Delete "$INSTDIR\plugins\libmyspace.dll"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
730 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
731 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
732 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
733 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
734 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
735 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
736 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
737 Delete "$INSTDIR\plugins\libyahoo.dll"
27388
77976350b32d Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 27136
diff changeset
738 Delete "$INSTDIR\plugins\libyahoojp.dll"
16248
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
739 Delete "$INSTDIR\plugins\libxmpp.dll"
15751
e11859350489 Updates 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\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
741 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
742 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
743 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
744 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
745 Delete "$INSTDIR\plugins\perl.dll"
19674
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
746 Delete "$INSTDIR\plugins\pidginrc.dll"
15751
e11859350489 Updates 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\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
748 Delete "$INSTDIR\plugins\relnot.dll"
23025
2565ccc4898c applied changes from ae9d7912dfb7c1627441484bfe471dd4d370d346
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22799
diff changeset
749 Delete "$INSTDIR\plugins\sendbutton.dll"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
750 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
751 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
752 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
753 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
754 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
755 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
756 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
757 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
758 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
759 Delete "$INSTDIR\plugins\winprefs.dll"
23998
18f6ff443104 Build the XMPP Console plugin by default on windows too.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23994
diff changeset
760 Delete "$INSTDIR\plugins\xmppconsole.dll"
27136
f97cc05bf3b7 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <paul@darkrain42.org>
parents: 26965
diff changeset
761 Delete "$INSTDIR\plugins\xmppdisco.dll"
27407
b74fa3d29cda Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <pidgin@unreliablesource.net>
parents: 27388
diff changeset
762 RMDir /r "$INSTDIR\plugins\perl"
15751
e11859350489 Updates 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 RMDir "$INSTDIR\plugins"
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
764 RMDir /r "$INSTDIR\sasl2"
19674
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
765 Delete "$INSTDIR\sounds\purple\alert.wav"
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
766 Delete "$INSTDIR\sounds\purple\login.wav"
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
767 Delete "$INSTDIR\sounds\purple\logout.wav"
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
768 Delete "$INSTDIR\sounds\purple\receive.wav"
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
769 Delete "$INSTDIR\sounds\purple\send.wav"
c59e7cd27797 Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19545
diff changeset
770 RMDir "$INSTDIR\sounds\purple"
15751
e11859350489 Updates 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 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
772 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
773 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
774 Delete "$INSTDIR\libgtkspell.dll"
16248
ff2cd3f29f9b Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16243
diff changeset
775 Delete "$INSTDIR\libjabber.dll"
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
776 Delete "$INSTDIR\libmeanwhile-1.dll"
15751
e11859350489 Updates 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\liboscar.dll"
15753
dc6081d167cf More installer stuff.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15751
diff changeset
778 Delete "$INSTDIR\libpurple.dll"
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
779 Delete "$INSTDIR\libsasl.dll"
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
780 Delete "$INSTDIR\libsilc-1-1-2.dll"
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
781 Delete "$INSTDIR\libsilcclient-1-1-2.dll"
29484
15e26b945a7a Various win32 installer fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29480
diff changeset
782 Delete "$INSTDIR\libxml2-2.dll"
27388
77976350b32d Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 27136
diff changeset
783 Delete "$INSTDIR\libymsg.dll"
15751
e11859350489 Updates 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\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
785 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
786 Delete "$INSTDIR\nssckbi.dll"
21125
23d046a20aa0 Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents: 21123
diff changeset
787 Delete "$INSTDIR\pidgin.dll"
15753
dc6081d167cf More installer stuff.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15751
diff changeset
788 Delete "$INSTDIR\pidgin.exe"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
789 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
790 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
791 Delete "$INSTDIR\smime3.dll"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
792 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
793 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
794 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
795 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
796 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
797
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
798 ; Remove the debug symbols
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
799 RMDir /r "$INSTDIR\pidgin-${PIDGIN_VERSION}-dbgsym"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
800
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
801 ; Remove the local GTK+ copy (if we're not just upgrading)
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
802 ${GetParameters} $R0
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
803 ClearErrors
29487
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
804 ${GetOptions} "$R0" "/KEEPGTK=" $R1
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
805 IfErrors +2
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
806 StrCmp $R1 "1" +2
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
807 RMDir /r "$INSTDIR\Gtk"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
808
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
809 ;Try to remove Pidgin install dir (only if empty)
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
810 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
811
e11859350489 Updates 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 ; 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
813 Delete "$DESKTOP\Pidgin.lnk"
25588
21a90a4c76d6 Backport 1ae2b55502a0afd8f28918fc4726683c52e998e9 (#8985 - Remove Start Menu shortcut when unistalling)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25534
diff changeset
814 Delete "$SMPROGRAMS\Pidgin.lnk"
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
815
e11859350489 Updates 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 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
817
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
818 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
819 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
820 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
821
e11859350489 Updates 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 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
823 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
824 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
825
e11859350489 Updates 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 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
827 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
828
e11859350489 Updates 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 ;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
831 !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
832 !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
833 $(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
834 !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
835 $(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
836
e11859350489 Updates 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 !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
838 $(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
839 !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
840 $(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
841 !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
842 $(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
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 !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
845 $(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
846 !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
847 "$(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
848 !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
849 "$(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
850 !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
851 "$(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
852 !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
853 "$(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
854 !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
855 "$(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
856 !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
857 "$(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
858 !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
859 "$(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
860 !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
861 "$(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
862 !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
863 "$(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
864 !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
865 "$(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
866 !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
867 "$(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
868 !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
869 "$(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
870 !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
871 "$(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
872 !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
873 "$(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
874 !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
875 "$(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
876 !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
877 "$(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
878 !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
879 "$(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
880 !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
881 "$(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
882 !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
883 "$(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
884 !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
885 "$(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
886 !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
887 "$(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
888 !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
889 "$(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
890 !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
891
e11859350489 Updates 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 ;--------------------------------
e11859350489 Updates 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 ;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
894
15795
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: 15794
diff changeset
895 ; 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: 15794
diff changeset
896 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: 15794
diff changeset
897 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: 15794
diff changeset
898 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: 15794
diff changeset
899 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: 15794
diff changeset
900 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: 15794
diff changeset
901
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: 15794
diff changeset
902 ; 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: 15794
diff changeset
903 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: 15794
diff changeset
904
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: 15794
diff changeset
905 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: 15794
diff changeset
906 ; 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: 15794
diff changeset
907 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: 15794
diff changeset
908 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: 15794
diff changeset
909 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: 15794
diff changeset
910
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: 15794
diff changeset
911 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: 15794
diff changeset
912 ;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: 15794
diff changeset
913 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: 15794
diff changeset
914 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: 15794
diff changeset
915 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: 15794
diff changeset
916
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: 15794
diff changeset
917 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: 15794
diff changeset
918 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: 15794
diff changeset
919 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: 15794
diff changeset
920
22799
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
921 Push $R2
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
922 Call CheckIfPidginIsCurrentURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
923 Pop $R3
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
924
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
925 ; 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
926 IntCmp $R3 0 end_loop
15795
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: 15794
diff changeset
927
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: 15794
diff changeset
928 ;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: 15794
diff changeset
929 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: 15794
diff changeset
930 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: 15794
diff changeset
931 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: 15794
diff changeset
932
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: 15794
diff changeset
933 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: 15794
diff changeset
934 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: 15794
diff changeset
935 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: 15794
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: 15794
diff changeset
937 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: 15794
diff changeset
938 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: 15794
diff changeset
939 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: 15794
diff changeset
940 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: 15794
diff changeset
941 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: 15794
diff changeset
942 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: 15794
diff changeset
943
22799
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
944 ; 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
945 ; 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
946 !macro CheckIfPidginIsCurrentURIHandlerMacro UN
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
947 Function ${UN}CheckIfPidginIsCurrentURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
948 Exch $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
949 ClearErrors
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
950
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
951 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
952 IfErrors 0 +3
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
953 IntOp $R0 0 + 0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
954 Goto done
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
955
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
956 !ifdef __UNINSTALL__
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
957 ${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
958 !else
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
959 ${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
960 !endif
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
961 IntOp $R0 0 + 1
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
962 IfErrors 0 +2
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
963 IntOp $R0 0 + 0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
964
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
965 done:
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
966 Exch $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
967 FunctionEnd
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
968 !macroend
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
969 !insertmacro CheckIfPidginIsCurrentURIHandlerMacro ""
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
970 !insertmacro CheckIfPidginIsCurrentURIHandlerMacro "un."
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
971
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
972 ; 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
973 Function un.UnregisterURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
974 Exch $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
975 Push $R1
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
976
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
977 Push $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
978 Call un.CheckIfPidginIsCurrentURIHandler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
979 Pop $R1
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
980
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
981 ; 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
982 IntCmp $R1 0 done
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
983
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
984 ;Unregister the URI handler
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
985 DetailPrint "Unregistering $R0 URI Handler"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
986 DeleteRegKey HKCR "$R0"
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
987
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
988 done:
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
989 Pop $R1
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
990 Pop $R0
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
991 FunctionEnd
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
992
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
993 Function RegisterURIHandler
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
994 Exch $R0
22799
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
995 DetailPrint "Registering $R0 URI Handler"
15795
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: 15794
diff changeset
996 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: 15794
diff changeset
997 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: 15794
diff changeset
998 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: 15794
diff changeset
999 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: 15794
diff changeset
1000 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: 15794
diff changeset
1001 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: 15794
diff changeset
1002 WriteRegStr HKCR "$R0\shell\Open\command" "" "$INSTDIR\pidgin.exe --protocolhandler=%1"
15794
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
1003 Pop $R0
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
1004 FunctionEnd
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
1005
a26ffc69f81c Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15755
diff changeset
1006
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1007 !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
1008 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
1009 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
1010 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
1011 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
1012 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
1013 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
1014 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
1015 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
1016 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
1017
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1018 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
1019 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
1020 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
1021 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
1022 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
1023 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
1024 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
1025 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
1026 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
1027 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
1028 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
1029 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
1030 ; 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
1031 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
1032 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
1033
e11859350489 Updates 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 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
1035 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
1036
e11859350489 Updates 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 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
1038 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
1039 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
1040 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
1041 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
1042 !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
1043 !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
1044 !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
1045
e11859350489 Updates 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 ;
e11859350489 Updates 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 ; 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
1048 ; 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
1049 ; 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
1050 ; 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
1051 ;
e11859350489 Updates 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 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
1053 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
1054 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
1055 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
1056 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
1057 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
1058 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
1059 ${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
1060 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
1061 ; 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
1062 ; 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
1063 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
1064 ; 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
1065 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
1066 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
1067
e11859350489 Updates 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 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
1069 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
1070 ; 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
1071 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
1072 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
1073 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
1074
e11859350489 Updates 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 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
1076 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
1077 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
1078 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
1079
e11859350489 Updates 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 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
1081 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
1082 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
1083
e11859350489 Updates 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 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
1085 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
1086 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
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 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
1089 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
1090 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
1091 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
1092 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
1093 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
1094 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
1095
e11859350489 Updates 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 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
1097 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
1098 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
1099 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
1100 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
1101 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
1102
e11859350489 Updates 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 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
1104 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
1105 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
1106 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
1107 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
1108 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
1109
e11859350489 Updates 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 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
1111 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
1112 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
1113 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
1114 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
1115 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
1116 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
1117 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
1118
e11859350489 Updates 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 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
1120 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
1121 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
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 ;
e11859350489 Updates 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 ; 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
1125 ; 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
1126 ; 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
1127 ; 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
1128 ; 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
1129 ; 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
1130 ; 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
1131 ;
e11859350489 Updates 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 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
1133 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
1134 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
1135
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1136 IfFileExists "$INSTDIR\Gtk\CONTENTS" +3
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1137 Push "3"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1138 Goto done
15751
e11859350489 Updates 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
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1140 ClearErrors
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1141 ${ConfigRead} "$INSTDIR\Gtk\CONTENTS" "Bundle Version " $0
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1142 IfErrors 0 +3
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1143 Push "3"
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1144 Goto done
15751
e11859350489 Updates 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
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1146 ${VersionCompare} ${GTK_INSTALL_VERSION} $0 $1
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1147 IntCmp $1 1 +3
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1148 Push "0" ; Have a good version
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1149 Goto done
15751
e11859350489 Updates 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
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1151 ${VersionCompare} ${GTK_MIN_VERSION} $0 $1
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1152 IntCmp $1 1 +3
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1153 Push "1" ; Optional Upgrade
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1154 Goto done
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1155 Push "2" ; Mandatory Upgrade
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1156 Goto done
15751
e11859350489 Updates 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
e11859350489 Updates 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 done:
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1159 ; The item on the stack is what we want to return
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1160 Exch
16534
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
1161 Pop $1
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1162 Exch
15751
e11859350489 Updates 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 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
1164 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
1165
e11859350489 Updates 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
e11859350489 Updates 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 !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
1168 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
1169 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
1170 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
1171
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
1172 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
1173 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
1174 ; 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
1175 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
1176 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
1177 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
1178 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
1179 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
1180 MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(PIDGIN_IS_RUNNING) /SD IDCANCEL IDRETRY retry_runcheck
15751
e11859350489 Updates 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 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
1182
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
1183 ; 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
1184 ; 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
1185 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
1186
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
1187 Pop $R1
15751
e11859350489 Updates 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 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
1189 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
1190 !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
1191 !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
1192 !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
1193
e11859350489 Updates 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 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
1195 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
1196 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
1197 Push $R2
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1198 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: 25334
diff changeset
1199
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1200 ${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
1201
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
1202 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
1203 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
1204 ; 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
1205 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
1206 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
1207 System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_installer_running") i .R1 ?e'
15751
e11859350489 Updates 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 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
1209 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
1210 MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(INSTALLER_IS_RUNNING) /SD IDCANCEL IDRETRY retry_runcheck
15751
e11859350489 Updates 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 Abort
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1212
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1213 ; 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: 25334
diff changeset
1214 ; 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: 25334
diff changeset
1215 ClearErrors
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1216 ${GetOptions} "$R3" "/NOPIDGINRUNCHECK=" $R1
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1217 IfErrors 0 +2
15751
e11859350489 Updates 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 Call RunCheck
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1219
15751
e11859350489 Updates 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 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
1221 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
1222
15755
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15753
diff changeset
1223 ;Try to copy the old Gaim installer Lang Reg. key
22799
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1224 ;(remove it after we're done to prevent this being done more than once)
15755
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15753
diff changeset
1225 ClearErrors
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15753
diff changeset
1226 ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "Installer Language"
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15753
diff changeset
1227 IfErrors 0 +5
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15753
diff changeset
1228 ClearErrors
22799
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1229 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
1230 IfErrors +3
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1231 DeleteRegValue HKCU "${OLD_GAIM_REG_KEY}" "Installer Language"
15755
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15753
diff changeset
1232 WriteRegStr HKCU "${PIDGIN_REG_KEY}" "Installer Language" "$R0"
2b6acdc5b614 Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15753
diff changeset
1233
29230
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
1234 ${MementoSectionRestore}
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
1235
16762
ef86cf8789ea Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16704
diff changeset
1236 !insertmacro SetSectionFlag ${SecSpellCheck} ${SF_RO}
ef86cf8789ea Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16704
diff changeset
1237 !insertmacro UnselectSection ${SecSpellCheck}
ef86cf8789ea Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16704
diff changeset
1238
15751
e11859350489 Updates 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 ;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
1240 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
1241
15795
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: 15794
diff changeset
1242 ;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: 15794
diff changeset
1243 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: 15794
diff changeset
1244
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: 17936
diff changeset
1245 ;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: 17936
diff changeset
1246 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: 17936
diff changeset
1247 ;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: 17936
diff changeset
1248 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: 17936
diff changeset
1249 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: 17936
diff changeset
1250 ;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: 17936
diff changeset
1251 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
1252 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: 17936
diff changeset
1253 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: 17936
diff changeset
1254 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: 17936
diff changeset
1255 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: 17936
diff changeset
1256 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: 17936
diff changeset
1257 !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: 17936
diff changeset
1258 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: 17936
diff changeset
1259 ;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: 17936
diff changeset
1260 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: 17936
diff changeset
1261 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: 17936
diff changeset
1262 ;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: 17936
diff changeset
1263 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: 17936
diff changeset
1264 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: 17936
diff changeset
1265 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: 17936
diff changeset
1266 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: 17936
diff changeset
1267 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: 17936
diff changeset
1268 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: 17936
diff changeset
1269 !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: 17936
diff changeset
1270 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: 17936
diff changeset
1271 ;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: 17936
diff changeset
1272 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: 17936
diff changeset
1273
23617
f5e614bc6606 Fix the win32 installer not to cause messageboxes in the gtk installer when
Daniel Atallah <daniel.atallah@gmail.com>
parents: 23603
diff changeset
1274 StrCpy $ISSILENT "/S"
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1275 ; GTK installer has two silent states - one with Message boxes, one without
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1276 ; If pidgin installer was run silently, we want to supress gtk installer msg boxes.
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1277 IfSilent 0 +2
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1278 StrCpy $ISSILENT "/NOUI"
15751
e11859350489 Updates 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
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1280 ClearErrors
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1281 ${GetOptions} "$R3" "/L=" $R1
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1282 IfErrors +3
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
1283 StrCpy $LANGUAGE $R1
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1284 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
1285
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1286 ; 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
1287 ; Display Language selection dialog
28282
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: 28099
diff changeset
1288 !define MUI_LANGDLL_ALWAYSSHOW
15751
e11859350489 Updates 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 !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
1290 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
1291
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
1292 ClearErrors
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1293 ${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
1294 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
1295 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
1296 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
1297 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
1298 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
1299 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
1300 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
1301 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
1302
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
1303 ClearErrors
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1304 ${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
1305 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
1306 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
1307 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
1308 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
1309 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
1310 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
1311 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
1312 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
1313
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1314 ; 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
1315 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
1316
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1317 ; 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
1318 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
1319 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
1320 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
1321 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
1322 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
1323 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
1324 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
1325 StrCmp $INSTDIR "" 0 instdir_done
15795
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: 15794
diff changeset
1326
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1327 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
1328 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
1329
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1330 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
1331 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
1332 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
1333 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
1334 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
1335 ${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
1336 ${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
1337 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
1338
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1339 instdir_done:
16534
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
1340 ;LogSet on
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1341 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
1342 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
1343 Pop $R1
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1344 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
1345 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
1346
28099
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: 27860
diff changeset
1347 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: 27860
diff changeset
1348
29230
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
1349 ${MementoSectionSave}
28099
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: 27860
diff changeset
1350
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: 27860
diff changeset
1351 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: 27860
diff changeset
1352
29230
6d6921daf2da Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29226
diff changeset
1353
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1354 Function un.onInit
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1355
15751
e11859350489 Updates 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 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
1357 StrCpy $name "Pidgin ${PIDGIN_VERSION}"
22799
a8a2268ce925 Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 22109
diff changeset
1358 ;LogSet on
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1359
e11859350489 Updates 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 ; 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
1361 !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
1362
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1363 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
1364
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1365 ; 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
1366
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1367 Function preWelcomePage
16534
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
1368 Push $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
1369 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
1370
29487
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
1371 !ifdef OFFLINE_INSTALLER
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
1372 !insertmacro SelectSection ${SecDebugSymbols}
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
1373 !endif
c08740a93dd1 Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29484
diff changeset
1374
16534
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
1375 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
1376 Pop $R0
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1377 IntCmp $R0 1 done gtk_not_mandatory
24052
f6b47af95252 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <daniel.atallah@gmail.com>
parents: 24051
diff changeset
1378 ; Make the GTK+ Section RO if it is required.
16534
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
1379 !insertmacro SetSectionFlag ${SecGtk} ${SF_RO}
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1380 Goto done
16534
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
1381 gtk_not_mandatory:
24052
f6b47af95252 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <daniel.atallah@gmail.com>
parents: 24051
diff changeset
1382 ; 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: 24051
diff changeset
1383 !insertmacro UnselectSection ${SecGtk}
15751
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1384
e11859350489 Updates 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 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
1386 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
1387 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
1388 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
1389
e11859350489 Updates 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 ; 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
1391 ;-------------------------------
e11859350489 Updates 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
e11859350489 Updates 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 ; 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
1394 ; 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
1395 ; 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
1396 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
1397 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
1398 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
1399 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
1400 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
1401
e11859350489 Updates 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 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
1403 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
1404 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
1405 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
1406 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
1407 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
1408 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
1409 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
1410 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
1411 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
1412 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
1413 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
1414 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
1415 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
1416 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
1417 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
1418 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
1419 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
1420 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
1421 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
1422 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
1423 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
1424 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
1425 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
1426 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
1427 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
1428 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
1429 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
1430 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
1431 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
1432 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
1433 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
1434 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
1435 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
1436 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
1437 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
1438 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
1439 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
1440 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
1441 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
1442 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
1443 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
1444 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
1445 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
1446 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
1447 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
1448 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
1449 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
1450 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
1451 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
1452 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
1453 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
1454 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
1455 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
1456 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
1457 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
1458 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
1459 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
1460 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
1461 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
1462 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
1463 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
1464 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
1465 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
1466 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
1467 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
1468
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1469 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
1470
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1471 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
1472 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
1473 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
1474
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1475 ; 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
1476 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
1477 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
1478 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
1479 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
1480
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1481 ; 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
1482 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
1483
e11859350489 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
1484 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
1485 ; 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
1486 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
1487 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
1488 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
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 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
1491 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
1492 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
1493 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
1494 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
1495 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
1496 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
1497 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
1498 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
1499
e11859350489 Updates 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 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
1501 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
1502 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
1503
e11859350489 Updates 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 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
1505 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
1506 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
1507 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
1508 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
1509
e11859350489 Updates 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 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
1511 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
1512 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
1513 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
1514 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
1515 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
1516
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1517 InitPluginsDir
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1518
15751
e11859350489 Updates 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 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
1520
e11859350489 Updates 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 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
1522 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
1523 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
1524 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
1525 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
1526 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
1527
e11859350489 Updates 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 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
1529 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
1530 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
1531 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
1532 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
1533 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
1534 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
1535
e11859350489 Updates 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 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
1537
e11859350489 Updates 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 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
1539 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
1540 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
1541
e11859350489 Updates 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 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
1543 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
1544 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
1545 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
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 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
1548 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
1549 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
1550 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
1551
e11859350489 Updates 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 ; If this is the check after installation, don't infinite loop on failure
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1553 StrCmp $R1 "$PLUGINSDIR\aspell_installer.exe" 0 +3
15751
e11859350489 Updates 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 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
1555 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
1556
e11859350489 Updates 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 ; We need to download and install aspell
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1558 StrCpy $R1 "$PLUGINSDIR\aspell_installer.exe"
15751
e11859350489 Updates 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 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
1560 DetailPrint "Downloading Aspell... ($R2)"
16774
2ab54f33b67d Bump the spellchecking download timeout to 10 seconds.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16773
diff changeset
1561 NSISdl::download /TIMEOUT=10000 $R2 $R1
15751
e11859350489 Updates 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 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
1563 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
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 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
1566 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
1567 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
1568
e11859350489 Updates 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 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
1570 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
1571 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
1572
e11859350489 Updates 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 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 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
1575 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
1576 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
1577 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
1578
e11859350489 Updates 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 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
1580 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
1581 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
1582 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
1583 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
1584 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
1585 Push $R3
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1586 Push $R4
15751
e11859350489 Updates 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
e11859350489 Updates 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 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
1589 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
1590 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
1591 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
1592
e11859350489 Updates 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 ; If this is the check after installation, don't infinite loop on failure
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1594 StrCmp $R1 "$PLUGINSDIR\aspell_dict-$R0.exe" 0 +3
15751
e11859350489 Updates 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 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
1596 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
1597
e11859350489 Updates 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 ; We need to download and install aspell
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1599 StrCpy $R1 "$PLUGINSDIR\aspell_dict-$R0.exe"
15751
e11859350489 Updates 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 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
1601 DetailPrint "Downloading the Aspell $R0 Dictionary... ($R3)"
16774
2ab54f33b67d Bump the spellchecking download timeout to 10 seconds.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 16773
diff changeset
1602 NSISdl::download /TIMEOUT=10000 $R3 $R1
15751
e11859350489 Updates 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 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
1604 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
1605 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
1606 Goto done
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1607 ; 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: 25334
diff changeset
1608 StrCpy $R4 "$OUTDIR"
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1609 SetOutPath "$PLUGINSDIR\aspell_dict-$R0"
15751
e11859350489 Updates 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 ExecWait '"$R1"'
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1611 SetOutPath "$R4"
29225
3f33a8fbf871 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 29224
diff changeset
1612 RMDir /r "$PLUGINSDIR\aspell_dict-$R0"
15751
e11859350489 Updates 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 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
1614 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
1615
e11859350489 Updates 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 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
1617 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
1618 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
1619
e11859350489 Updates 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 done:
25408
e316de5f75a3 Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 25334
diff changeset
1621 Pop $R4
15751
e11859350489 Updates 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 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
1623 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
1624 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
1625 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
1626 FunctionEnd