Mercurial > pidgin.yaz
annotate pidgin/win32/nsis/pidgin-installer.nsi @ 32465:39d69f5bf146
Use the new accessor functions of PidginWhiteboard.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 30 Aug 2011 22:07:19 +0000 |
parents | a5384cd9b332 |
children |
rev | line source |
---|---|
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1 ; Installer script for win32 Pidgin |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
2 ; Original Author: Herman Bloggs <hermanator12002@yahoo.com> |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
3 ; Updated By: Daniel Atallah <daniel_atallah@yahoo.com> |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
4 |
27470
77976350b32d
Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
27218
diff
changeset
|
5 ; NOTE: this .NSI script is intended for NSIS 2.27+ |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
6 ; |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
7 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
8 ;-------------------------------- |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
9 ;Global Variables |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
10 Var name |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
11 Var STARTUP_RUN_KEY |
30369
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
12 Var CURRENT_GTK_STATE |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
13 Var WARNED_GTK_STATE |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
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 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
21 !ifdef OFFLINE_INSTALLER |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
22 OutFile "pidgin-${PIDGIN_VERSION}-offline.exe" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
23 !else |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
24 OutFile "pidgin-${PIDGIN_VERSION}.exe" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
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 |
29911
c65c406d0d8d
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29907
diff
changeset
|
31 RequestExecutionLevel highest |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
32 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
33 ; $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
|
34 |
e11859350489
Updates 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 "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
|
36 !include "Sections.nsh" |
17464
a3e68bb05594
Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17246
diff
changeset
|
37 !include "WinVer.nsh" |
a3e68bb05594
Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17246
diff
changeset
|
38 !include "LogicLib.nsh" |
29624
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
39 !include "Memento.nsh" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
40 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
41 !include "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
|
42 !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
|
43 !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
|
44 !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
|
45 |
e11859350489
Updates 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 !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
|
47 !insertmacro VersionCompare |
15796
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
48 !insertmacro WordFind |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
49 !insertmacro un.WordFind |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
50 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
51 !include "TextFunc.nsh" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
52 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
53 ;-------------------------------- |
e11859350489
Updates 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 ;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
|
55 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
56 !define PIDGIN_NSIS_INCLUDE_PATH "." |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
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 |
29490
33e36de9f83a
Fix minimum required GTK+ version in win32 installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
28203
diff
changeset
|
70 !define GTK_MIN_VERSION "2.14.0" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
71 !define PERL_REG_KEY "SOFTWARE\Perl" |
23648
ab5b9acebde3
Update the Perl plugin loader to work with Perl 5.10.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23633
diff
changeset
|
72 !define PERL_DLL "perl510.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
73 |
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
|
74 !define DOWNLOADER_URL "http://pidgin.im/win32/download_redir.php" |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
75 !define SPELL_DOWNLOAD_URL "http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
76 |
29624
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
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:
29620
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:
29620
diff
changeset
|
79 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
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" "" |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
87 !ifdef OFFLINE_INSTALLER |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
88 VIAddVersionKey "FileDescription" "Pidgin Installer (Offline)" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
89 !else |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
90 VIAddVersionKey "FileDescription" "Pidgin Installer" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
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 ;-------------------------------- |
17464
a3e68bb05594
Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17246
diff
changeset
|
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:
17246
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:
17246
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:
17246
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:
17246
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:
17246
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:
17246
diff
changeset
|
100 ;-------------------------------- |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
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 |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
110 !define MUI_LICENSEPAGE_BUTTON $(PIDGINLICENSEBUTTON) |
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
111 !define MUI_LICENSEPAGE_TEXT_BOTTOM $(PIDGINLICENSEBOTTOMTEXT) |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
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 |
16784
9b74ac7ea9c7
Don't automatically proceed to the installer's "Finished" page - allow the log to be reviewed and make the user choose to move on. (Fixes #456).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16783
diff
changeset
|
121 !define MUI_FINISHPAGE_NOAUTOCLOSE |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
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 |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
124 !define MUI_FINISHPAGE_LINK $(PIDGINFINISHVISITWEBSITE) |
17884
234ab2c9ed36
Fix win32 installer finishpage URL. (this is fixed in the 2.0.2 installer too)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17864
diff
changeset
|
125 !define MUI_FINISHPAGE_LINK_LOCATION "http://pidgin.im" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
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 !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
|
150 |
e11859350489
Updates 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 ;-------------------------------- |
e11859350489
Updates 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 ;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
|
153 ; 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
|
154 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
155 !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
|
156 !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
|
157 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
|
158 |
e11859350489
Updates 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 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
160 ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
161 ;; 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
|
162 ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
163 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
164 ;-------------------------------- |
e11859350489
Updates 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 ;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
|
166 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
167 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
|
168 ; 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
|
169 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
|
170 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
|
171 |
e11859350489
Updates 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 ;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
|
173 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
|
174 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
|
175 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
|
176 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
|
177 |
e11859350489
Updates 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 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
|
179 ;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
|
180 ; 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
|
181 ; 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
|
182 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
|
183 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
|
184 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
|
185 StrCpy $STARTUP_RUN_KEY "HKCU" |
16783
58904374db06
Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16773
diff
changeset
|
186 Goto +5 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
187 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
|
188 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
|
189 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
|
190 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
|
191 |
e11859350489
Updates 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 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
|
193 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
|
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 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
|
196 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
|
197 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
|
198 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
|
199 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
|
200 |
e11859350489
Updates 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 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
|
202 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
|
203 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
|
204 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
|
205 |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
206 ; If a previous version exists, remove it |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
207 try_uninstall: |
16783
58904374db06
Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16773
diff
changeset
|
208 StrCmp $R1 "" no_version_found |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
209 ; Version key started with 0.60a3. Prior versions can't be |
16773
ef86cf8789ea
Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16713
diff
changeset
|
210 ; automatically uninstalled. |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
211 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
|
212 ; 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
|
213 IfFileExists $R3 0 uninstall_problem |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
214 ; Have uninstall string, go ahead and uninstall. |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
215 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
|
216 ; 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
|
217 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
|
218 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
|
219 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
|
220 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
|
221 ; 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
|
222 ClearErrors |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
223 ExecWait '"$TEMP\$R6" /S /UPGRADE=1 _?=$R1' |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
224 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
|
225 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
|
226 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
|
227 |
e11859350489
Updates 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 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
|
229 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
|
230 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
|
231 |
16783
58904374db06
Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16773
diff
changeset
|
232 no_version_found: |
58904374db06
Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16773
diff
changeset
|
233 ;We've already tried to fallback to an old gaim instance |
58904374db06
Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16773
diff
changeset
|
234 StrCmp $R7 "Gaim" done |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
235 ; If we couldn't uninstall Pidgin, try to uninstall Gaim |
16783
58904374db06
Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16773
diff
changeset
|
236 StrCpy $STARTUP_RUN_KEY "NONE" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
237 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
|
238 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
|
239 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
|
240 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
|
241 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
|
242 |
16783
58904374db06
Fix some installer issues (#416, #433)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16773
diff
changeset
|
243 uninstall_problem: |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
244 ; We can't uninstall. Either the user must manually uninstall or we ignore and reinstall over it. |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
245 MessageBox MB_OKCANCEL $(PIDGINPROMPTCONTINUEWITHOUTUNINSTALL) /SD IDOK IDOK done |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
246 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
|
247 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
|
248 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
|
249 |
e11859350489
Updates 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 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
251 ;-------------------------------- |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
252 ;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
|
253 |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
254 Section $(GTKSECTIONTITLE) SecGtk |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
255 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
256 InitPluginsDir |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
257 StrCpy $R1 "$PLUGINSDIR\gtk.zip" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
258 !ifdef OFFLINE_INSTALLER |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
259 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
260 SetOutPath $PLUGINSDIR |
29911
c65c406d0d8d
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29907
diff
changeset
|
261 File /oname=gtk.zip ".\gtk-runtime-${GTK_INSTALL_VERSION}.zip" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
262 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
263 !else |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
264 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
265 ; We need to download the GTK+ runtime |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
266 retry: |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
267 StrCpy $R2 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}>k_version=${GTK_INSTALL_VERSION}&dl_pkg=gtk" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
268 DetailPrint "Downloading GTK+ Runtime ... ($R2)" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
269 NSISdl::download /TIMEOUT=10000 $R2 $R1 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
270 Pop $R0 |
30855
0b8ac7c5e6b6
-------------------------------------------------------------------------------
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30767
diff
changeset
|
271 ;StrCmp $R0 "cancel" done |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
272 StrCmp $R0 "success" +2 |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
273 MessageBox MB_RETRYCANCEL "$(PIDGINGTKDOWNLOADERROR)" /SD IDCANCEL IDRETRY retry IDCANCEL done |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
274 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
275 !endif |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
276 |
29911
c65c406d0d8d
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29907
diff
changeset
|
277 ;Delete the old Gtk directory |
c65c406d0d8d
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29907
diff
changeset
|
278 RMDir /r "$INSTDIR\Gtk" |
c65c406d0d8d
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29907
diff
changeset
|
279 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
280 SetOutPath "$INSTDIR" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
281 nsisunz::UnzipToLog $R1 "$INSTDIR" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
282 Pop $R0 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
283 StrCmp $R0 "success" +2 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
284 DetailPrint "$R0" ;print error message to log |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
285 |
e11859350489
Updates 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 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
|
287 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
|
288 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
289 ;-------------------------------- |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
290 ;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
|
291 |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
292 Section $(PIDGINSECTIONTITLE) SecPidgin |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
293 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
|
294 |
e11859350489
Updates 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 ; 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
|
296 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
|
297 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
|
298 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
299 StrCmp $R0 "NONE" pidgin_install_files |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
300 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
|
301 |
e11859350489
Updates 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 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
|
303 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "" "$INSTDIR\pidgin.exe" |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
304 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$INSTDIR\Gtk\bin" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
305 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
|
306 WriteRegStr HKLM ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}" |
30856
cc75490da0e3
Explicitly set the icon for Windows' Add/Remove Programs.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30855
diff
changeset
|
307 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\pidgin.exe" |
17853
bfd44bbb5909
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17772
diff
changeset
|
308 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayName" "Pidgin" |
bfd44bbb5909
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17772
diff
changeset
|
309 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayVersion" "${PIDGIN_VERSION}" |
bfd44bbb5909
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17772
diff
changeset
|
310 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "HelpLink" "http://developer.pidgin.im/wiki/Using Pidgin" |
bfd44bbb5909
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17772
diff
changeset
|
311 WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoModify" 1 |
bfd44bbb5909
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17772
diff
changeset
|
312 WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
313 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
|
314 ; 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
|
315 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
|
316 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
|
317 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
318 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
|
319 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
|
320 WriteRegStr HKCU ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}" |
30856
cc75490da0e3
Explicitly set the icon for Windows' Add/Remove Programs.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30855
diff
changeset
|
321 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\pidgin.exe" |
17853
bfd44bbb5909
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17772
diff
changeset
|
322 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayName" "Pidgin" |
bfd44bbb5909
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17772
diff
changeset
|
323 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayVersion" "${PIDGIN_VERSION}" |
bfd44bbb5909
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17772
diff
changeset
|
324 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "HelpLink" "http://developer.pidgin.im/wiki/Using Pidgin" |
bfd44bbb5909
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17772
diff
changeset
|
325 WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoModify" 1 |
bfd44bbb5909
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17772
diff
changeset
|
326 WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
327 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
|
328 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
|
329 |
e11859350489
Updates 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 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
|
331 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
|
332 ; 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
|
333 SetOverwrite on |
16248
ff2cd3f29f9b
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16243
diff
changeset
|
334 |
ff2cd3f29f9b
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16243
diff
changeset
|
335 ;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
|
336 Delete "$INSTDIR\plugins\liboscar.dll" |
ff2cd3f29f9b
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16243
diff
changeset
|
337 Delete "$INSTDIR\plugins\libjabber.dll" |
ff2cd3f29f9b
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16243
diff
changeset
|
338 |
29624
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
339 File /r /x locale ..\..\..\${PIDGIN_INSTALL_DIR}\*.* |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
340 |
e11859350489
Updates 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 ; 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
|
342 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
|
343 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
|
344 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
|
345 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
|
346 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
347 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
|
348 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
|
349 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
|
350 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
|
351 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
|
352 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
353 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
|
354 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
355 ; 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
|
356 ; 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
|
357 ; See https://lists.silcnet.org/pipermail/silc-devel/2005-January/001588.html |
23632
1452c89e7f05
Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23049
diff
changeset
|
358 ; Also, remove the GSSAPI SASL plugin and associated files as they aren't |
1452c89e7f05
Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23049
diff
changeset
|
359 ; compatible with NT4. |
17464
a3e68bb05594
Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17246
diff
changeset
|
360 ${If} ${IsNT} |
a3e68bb05594
Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17246
diff
changeset
|
361 ${AndIf} ${IsWinNT4} |
23632
1452c89e7f05
Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23049
diff
changeset
|
362 ;SILC |
17464
a3e68bb05594
Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17246
diff
changeset
|
363 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
|
364 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
|
365 Delete "$INSTDIR\libsilc-1-1-2.dll" |
23632
1452c89e7f05
Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23049
diff
changeset
|
366 ;GSSAPI |
1452c89e7f05
Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23049
diff
changeset
|
367 Delete "$INSTDIR\sasl2\saslGSSAPI.dll" |
17464
a3e68bb05594
Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17246
diff
changeset
|
368 ${EndIf} |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
369 |
e11859350489
Updates 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 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
|
371 |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
372 ; If we don't have install rights we're done |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
373 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
|
374 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
|
375 |
e11859350489
Updates 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 ; 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
|
377 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
|
378 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
|
379 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
|
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 ; 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
|
382 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
|
383 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
|
384 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
|
385 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
|
386 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
387 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
|
388 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
|
389 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
390 ;-------------------------------- |
e11859350489
Updates 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 ;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
|
392 |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
393 SectionGroup /e $(PIDGINSHORTCUTSSECTIONTITLE) SecShortcuts |
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
394 Section /o $(PIDGINDESKTOPSHORTCUTSECTIONTITLE) SecDesktopShortcut |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
395 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
|
396 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
|
397 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
|
398 SectionEnd |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
399 Section $(PIDGINSTARTMENUSHORTCUTSECTIONTITLE) SecStartMenuShortcut |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
400 SetOverwrite on |
17246
6d940df6c095
Don't put the Pidgin startmenu entry in a subdirectory. This violates the MS guidelines and (more importantly) it is pointless and annoying. Fixes #1188
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16785
diff
changeset
|
401 CreateShortCut "$SMPROGRAMS\Pidgin.lnk" "$INSTDIR\pidgin.exe" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
402 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
|
403 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
|
404 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
|
405 |
e11859350489
Updates 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 ;-------------------------------- |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
407 ;URI Handling |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
408 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
409 !macro URI_SECTION proto |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
410 Section /o "${proto}:" SecURI_${proto} |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
411 Push "${proto}" |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
412 Call RegisterURIHandler |
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
413 SectionEnd |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
414 !macroend |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
415 SectionGroup /e $(URIHANDLERSSECTIONTITLE) SecURIHandlers |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
416 !insertmacro URI_SECTION "aim" |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
417 !insertmacro URI_SECTION "msnim" |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
418 !insertmacro URI_SECTION "myim" |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
419 !insertmacro URI_SECTION "ymsgr" |
28203
da22b6d0151e
Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <paul@darkrain42.org>
parents:
28091
diff
changeset
|
420 !insertmacro URI_SECTION "xmpp" |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
421 SectionGroupEnd |
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
422 |
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
423 ;-------------------------------- |
29624
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
424 ;Translations |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
425 |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
426 !macro LANG_SECTION lang |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
427 ${MementoUnselectedSection} "${lang}" SecLang_${lang} |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
428 SetOutPath "$INSTDIR\locale\${lang}\LC_MESSAGES" |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
429 File "..\..\..\${PIDGIN_INSTALL_DIR}\locale\${lang}\LC_MESSAGES\*.mo" |
29624
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
430 SetOutPath "$INSTDIR" |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
431 ${MementoSectionEnd} |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
432 !macroend |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
433 SectionGroup $(TRANSLATIONSSECTIONTITLE) SecTranslations |
29624
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
434 # 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:
29620
diff
changeset
|
435 !include "pidgin-translations.nsh" |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
436 SectionGroupEnd |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
437 ${MementoSectionDone} |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
438 |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
439 ;-------------------------------- |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
440 ;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
|
441 |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
442 !macro SPELLCHECK_SECTION lang lang_name lang_file |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
443 Section /o "${lang_name}" SecSpell_${lang} |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
444 Push ${lang_file} |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
445 Push ${lang} |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
446 Call InstallDict |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
447 SectionEnd |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
448 !macroend |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
449 SectionGroup $(PIDGINSPELLCHECKSECTIONTITLE) SecSpellCheck |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
450 !include "pidgin-spellcheck.nsh" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
451 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
|
452 |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
453 Section /o $(DEBUGSYMBOLSSECTIONTITLE) SecDebugSymbols |
29884
c08740a93dd1
Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29880
diff
changeset
|
454 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
455 InitPluginsDir |
29884
c08740a93dd1
Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29880
diff
changeset
|
456 StrCpy $R1 "$PLUGINSDIR\dbgsym.zip" |
29625
4f325adb8ced
Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29624
diff
changeset
|
457 !ifdef OFFLINE_INSTALLER |
4f325adb8ced
Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29624
diff
changeset
|
458 |
4f325adb8ced
Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29624
diff
changeset
|
459 SetOutPath $PLUGINSDIR |
29884
c08740a93dd1
Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29880
diff
changeset
|
460 File /oname=dbgsym.zip "..\..\..\pidgin-${PIDGIN_VERSION}-dbgsym.zip" |
29625
4f325adb8ced
Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29624
diff
changeset
|
461 |
4f325adb8ced
Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29624
diff
changeset
|
462 !else |
4f325adb8ced
Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29624
diff
changeset
|
463 |
29884
c08740a93dd1
Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29880
diff
changeset
|
464 ; We need to download the debug symbols |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
465 retry: |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
466 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:
29618
diff
changeset
|
467 DetailPrint "Downloading Debug Symbols... ($R2)" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
468 NSISdl::download /TIMEOUT=10000 $R2 $R1 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
469 Pop $R0 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
470 StrCmp $R0 "cancel" done |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
471 StrCmp $R0 "success" +2 |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
472 MessageBox MB_RETRYCANCEL "$(PIDGINDEBUGSYMBOLSERROR)" /SD IDCANCEL IDRETRY retry IDCANCEL done |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
473 |
29625
4f325adb8ced
Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29624
diff
changeset
|
474 !endif |
4f325adb8ced
Include the debug symbols in the offline installer
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29624
diff
changeset
|
475 |
29884
c08740a93dd1
Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29880
diff
changeset
|
476 SetOutPath "$INSTDIR" |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
477 nsisunz::UnzipToLog $R1 "$INSTDIR" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
478 Pop $R0 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
479 StrCmp $R0 "success" +2 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
480 DetailPrint "$R0" ;print error message to log |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
481 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
482 done: |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
483 SectionEnd |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
484 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
485 ;-------------------------------- |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
486 ;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
|
487 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
488 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
489 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
|
490 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
|
491 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
|
492 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
|
493 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
|
494 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
495 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
|
496 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
|
497 StrCmp $R0 $INSTDIR 0 cant_uninstall |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
498 ; HKCU install path matches our INSTDIR so uninstall |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
499 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
|
500 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
|
501 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
|
502 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
503 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
|
504 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
|
505 StrCmp $R0 $INSTDIR 0 try_hkcu |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
506 ; HKLM install path matches our INSTDIR so uninstall |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
507 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
|
508 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
|
509 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
|
510 ; 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
|
511 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
|
512 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
513 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
|
514 ; 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
|
515 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
|
516 DeleteRegValue HKLM "${STARTUP_RUN_KEY}" "Pidgin" |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
517 ; Remove Language preference info |
30368
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
518 DeleteRegValue HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
519 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
520 ; Remove any URI handlers |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
521 ; 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
|
522 Push "aim" |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
523 Call un.UnregisterURIHandler |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
524 Push "msnim" |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
525 Call un.UnregisterURIHandler |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
526 Push "myim" |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
527 Call un.UnregisterURIHandler |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
528 Push "ymsgr" |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
529 Call un.UnregisterURIHandler |
28203
da22b6d0151e
Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <paul@darkrain42.org>
parents:
28091
diff
changeset
|
530 Push "xmpp" |
da22b6d0151e
Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <paul@darkrain42.org>
parents:
28091
diff
changeset
|
531 Call un.UnregisterURIHandler |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
532 |
31579
14a36bcf6704
Add the AddTrust External CA Root. Closes #11554.
Paul Aurich <paul@darkrain42.org>
parents:
31367
diff
changeset
|
533 Delete "$INSTDIR\ca-certs\AddTrust_External_Root.pem" |
25164
f59cfb686b02
Add a second chain of SSL certificates now necessary for OSCAR SSL
Paul Aurich <paul@darkrain42.org>
parents:
25046
diff
changeset
|
534 Delete "$INSTDIR\ca-certs\America_Online_Root_Certification_Authority_1.pem" |
f59cfb686b02
Add a second chain of SSL certificates now necessary for OSCAR SSL
Paul Aurich <paul@darkrain42.org>
parents:
25046
diff
changeset
|
535 Delete "$INSTDIR\ca-certs\AOL_Member_CA.pem" |
23633
3ec514b98728
Uninstall the CAcert certs in the win32 uninstaller.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23632
diff
changeset
|
536 Delete "$INSTDIR\ca-certs\CAcert_Class3.pem" |
3ec514b98728
Uninstall the CAcert certs in the win32 uninstaller.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23632
diff
changeset
|
537 Delete "$INSTDIR\ca-certs\CAcert_Root.pem" |
31029
771abfd8ead4
ca-certs: Add new Thawte and Deutsche Telekom Roots. Fixes #12667, #12668.
Paul Aurich <paul@darkrain42.org>
parents:
31028
diff
changeset
|
538 Delete "$INSTDIR\ca-certs\Deutsche_Telekom_Root_CA_2.pem" |
31910
13b8f684ea8a
Add the DigiCert High Assurance CA-3 intermediate CA.
Paul Aurich <paul@darkrain42.org>
parents:
31579
diff
changeset
|
539 Delete "$INSTDIR\ca-certs\DigiCertHighAssuranceCA-3.pem" |
28695
c5280f5677b5
Add the Entrust.net Secure Server CA (taken from Debian's set). Closes #10247.
Paul Aurich <paul@darkrain42.org>
parents:
28647
diff
changeset
|
540 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
|
541 Delete "$INSTDIR\ca-certs\Equifax_Secure_CA.pem" |
27651
307f346eefa2
Add the twitter.com CA cert. Fixes 9264.
Paul Aurich <paul@darkrain42.org>
parents:
27646
diff
changeset
|
542 Delete "$INSTDIR\ca-certs\Equifax_Secure_Global_eBusiness_CA-1.pem" |
31028
e492df53a0f3
ca-certs: Add the Go Daddy Class 2 self-signed root. Fixes #12594
Paul Aurich <paul@darkrain42.org>
parents:
30894
diff
changeset
|
543 Delete "$INSTDIR\ca-certs\Go_Daddy_Class_2_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
|
544 Delete "$INSTDIR\ca-certs\GTE_CyberTrust_Global_Root.pem" |
24804
7be4d472761a
Delete MSN cert when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23982
diff
changeset
|
545 Delete "$INSTDIR\ca-certs\Microsoft_Internet_Authority.pem" |
31367
02c0a2640fc2
Add new intermediate certificates that Microsoft have started using to
Stu Tomlinson <stu@nosnilmot.com>
parents:
31338
diff
changeset
|
546 Delete "$INSTDIR\ca-certs\Microsoft_Internet_Authority_2010.pem" |
21123
7df0b9734d1f
Delete Microsoft_Secure_Server_Authority.pem when uninstalling on win32
Stu Tomlinson <stu@nosnilmot.com>
parents:
20274
diff
changeset
|
547 Delete "$INSTDIR\ca-certs\Microsoft_Secure_Server_Authority.pem" |
31367
02c0a2640fc2
Add new intermediate certificates that Microsoft have started using to
Stu Tomlinson <stu@nosnilmot.com>
parents:
31338
diff
changeset
|
548 Delete "$INSTDIR\ca-certs\Microsoft_Secure_Server_Authority_2010.pem" |
27047
e22fa2cc6c46
Add the StartCom root that the XMPP ICA will start using this year.
Paul Aurich <paul@darkrain42.org>
parents:
25873
diff
changeset
|
549 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
|
550 Delete "$INSTDIR\ca-certs\StartCom_Free_SSL_CA.pem" |
28091 | 551 Delete "$INSTDIR\ca-certs\Thawte_Premium_Server_CA.pem" |
31029
771abfd8ead4
ca-certs: Add new Thawte and Deutsche Telekom Roots. Fixes #12667, #12668.
Paul Aurich <paul@darkrain42.org>
parents:
31028
diff
changeset
|
552 Delete "$INSTDIR\ca-certs\Thawte_Primary_Root_CA.pem" |
30767
17254453adf3
Add the ValiCert Class 2 VA root CA.
Paul Aurich <paul@darkrain42.org>
parents:
30396
diff
changeset
|
553 Delete "$INSTDIR\ca-certs\ValiCert_Class_2_VA.crt" |
28091 | 554 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
|
555 Delete "$INSTDIR\ca-certs\Verisign_Class3_Primary_CA.pem" |
31081
361f32af5147
Add Verisign Class 3 Public CA - G2
Paul Aurich <paul@darkrain42.org>
parents:
31029
diff
changeset
|
556 Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G2.pem" |
23924
c1697251c9fe
Update win32 installer for cert changes.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23668
diff
changeset
|
557 Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem" |
28091 | 558 Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5_2.pem" |
25020
0ba3da7724ff
Add new cert to the Windows uninstaller per datallah's request
Paul Aurich <paul@darkrain42.org>
parents:
24804
diff
changeset
|
559 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
|
560 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
|
561 RMDir "$INSTDIR\ca-certs" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
562 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
|
563 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
|
564 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
|
565 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
|
566 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
|
567 Delete "$INSTDIR\plugins\extplacement.dll" |
19673
c59e7cd27797
Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
19545
diff
changeset
|
568 Delete "$INSTDIR\plugins\gtkbuddynote.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
569 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
|
570 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
|
571 Delete "$INSTDIR\plugins\idle.dll" |
17864
dc195d5646e9
Build and distribute the joinpart plugin on win32.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17853
diff
changeset
|
572 Delete "$INSTDIR\plugins\joinpart.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
573 Delete "$INSTDIR\plugins\libaim.dll" |
17745
6731e5fe3673
Add the bonjour prpl to the win32 uninstaller.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17464
diff
changeset
|
574 Delete "$INSTDIR\plugins\libbonjour.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
575 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
|
576 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
|
577 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
|
578 Delete "$INSTDIR\plugins\libmsn.dll" |
28970
d537567d051f
Add mxit to uninstall list
Daniel Atallah <daniel.atallah@gmail.com>
parents:
28695
diff
changeset
|
579 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
|
580 Delete "$INSTDIR\plugins\libmyspace.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
581 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
|
582 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
|
583 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
|
584 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
|
585 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
|
586 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
|
587 Delete "$INSTDIR\plugins\libyahoo.dll" |
27470
77976350b32d
Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
27218
diff
changeset
|
588 Delete "$INSTDIR\plugins\libyahoojp.dll" |
16248
ff2cd3f29f9b
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16243
diff
changeset
|
589 Delete "$INSTDIR\plugins\libxmpp.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
590 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
|
591 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
|
592 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
|
593 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
|
594 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
|
595 Delete "$INSTDIR\plugins\perl.dll" |
19673
c59e7cd27797
Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
19545
diff
changeset
|
596 Delete "$INSTDIR\plugins\pidginrc.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
597 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
|
598 Delete "$INSTDIR\plugins\relnot.dll" |
23027
2565ccc4898c
applied changes from ae9d7912dfb7c1627441484bfe471dd4d370d346
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22775
diff
changeset
|
599 Delete "$INSTDIR\plugins\sendbutton.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
600 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
|
601 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
|
602 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
|
603 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
|
604 Delete "$INSTDIR\plugins\tcl.dll" |
31338
3c1563a54785
Build the "Pidgin Theme Editor" plugin on Windows too.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
31081
diff
changeset
|
605 Delete "$INSTDIR\plugins\themeedit.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
606 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
|
607 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
|
608 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
|
609 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
|
610 Delete "$INSTDIR\plugins\winprefs.dll" |
23928
18f6ff443104
Build the XMPP Console plugin by default on windows too.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23924
diff
changeset
|
611 Delete "$INSTDIR\plugins\xmppconsole.dll" |
27218
f97cc05bf3b7
Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <paul@darkrain42.org>
parents:
27047
diff
changeset
|
612 Delete "$INSTDIR\plugins\xmppdisco.dll" |
27489
b74fa3d29cda
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <pidgin@unreliablesource.net>
parents:
27470
diff
changeset
|
613 RMDir /r "$INSTDIR\plugins\perl" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
614 RMDir "$INSTDIR\plugins" |
21125
23d046a20aa0
Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents:
21123
diff
changeset
|
615 RMDir /r "$INSTDIR\sasl2" |
19673
c59e7cd27797
Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
19545
diff
changeset
|
616 Delete "$INSTDIR\sounds\purple\alert.wav" |
c59e7cd27797
Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
19545
diff
changeset
|
617 Delete "$INSTDIR\sounds\purple\login.wav" |
c59e7cd27797
Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
19545
diff
changeset
|
618 Delete "$INSTDIR\sounds\purple\logout.wav" |
c59e7cd27797
Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
19545
diff
changeset
|
619 Delete "$INSTDIR\sounds\purple\receive.wav" |
c59e7cd27797
Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
19545
diff
changeset
|
620 Delete "$INSTDIR\sounds\purple\send.wav" |
c59e7cd27797
Make the uninstaller remove everything it installs.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
19545
diff
changeset
|
621 RMDir "$INSTDIR\sounds\purple" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
622 RMDir "$INSTDIR\sounds" |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
623 Delete "$INSTDIR\spellcheck\libenchant.dll" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
624 Delete "$INSTDIR\spellcheck\libgtkspell-0.dll" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
625 Delete "$INSTDIR\spellcheck\lib\enchant\libenchant_aspell.dll" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
626 Delete "$INSTDIR\spellcheck\lib\enchant\libenchant_ispell.dll" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
627 Delete "$INSTDIR\spellcheck\lib\enchant\libenchant_myspell.dll" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
628 RMDir "$INSTDIR\spellcheck\lib\enchant" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
629 RMDir "$INSTDIR\spellcheck\lib" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
630 RMDir "$INSTDIR\spellcheck" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
631 Delete "$INSTDIR\freebl3.dll" |
16248
ff2cd3f29f9b
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16243
diff
changeset
|
632 Delete "$INSTDIR\libjabber.dll" |
29907
996eb83a1162
Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29884
diff
changeset
|
633 Delete "$INSTDIR\libnspr4.dll" |
21125
23d046a20aa0
Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents:
21123
diff
changeset
|
634 Delete "$INSTDIR\libmeanwhile-1.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
635 Delete "$INSTDIR\liboscar.dll" |
29907
996eb83a1162
Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29884
diff
changeset
|
636 Delete "$INSTDIR\libplc4.dll" |
996eb83a1162
Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29884
diff
changeset
|
637 Delete "$INSTDIR\libplds4.dll" |
15754
dc6081d167cf
More installer stuff.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15752
diff
changeset
|
638 Delete "$INSTDIR\libpurple.dll" |
21125
23d046a20aa0
Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents:
21123
diff
changeset
|
639 Delete "$INSTDIR\libsasl.dll" |
23d046a20aa0
Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents:
21123
diff
changeset
|
640 Delete "$INSTDIR\libsilc-1-1-2.dll" |
23d046a20aa0
Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents:
21123
diff
changeset
|
641 Delete "$INSTDIR\libsilcclient-1-1-2.dll" |
29880
15e26b945a7a
Various win32 installer fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29876
diff
changeset
|
642 Delete "$INSTDIR\libxml2-2.dll" |
27470
77976350b32d
Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
27218
diff
changeset
|
643 Delete "$INSTDIR\libymsg.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
644 Delete "$INSTDIR\nss3.dll" |
29907
996eb83a1162
Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29884
diff
changeset
|
645 Delete "$INSTDIR\nssutil3.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
646 Delete "$INSTDIR\nssckbi.dll" |
21125
23d046a20aa0
Improved cyrus sasl support on win32:
Stu Tomlinson <stu@nosnilmot.com>
parents:
21123
diff
changeset
|
647 Delete "$INSTDIR\pidgin.dll" |
15754
dc6081d167cf
More installer stuff.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15752
diff
changeset
|
648 Delete "$INSTDIR\pidgin.exe" |
19504
d5ecaf5bce93
Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
19453
diff
changeset
|
649 Delete "$INSTDIR\smime3.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
650 Delete "$INSTDIR\softokn3.dll" |
29907
996eb83a1162
Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29884
diff
changeset
|
651 Delete "$INSTDIR\sqlite3.dll" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
652 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
|
653 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
|
654 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
|
655 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
|
656 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
657 ; Remove the debug symbols |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
658 RMDir /r "$INSTDIR\pidgin-${PIDGIN_VERSION}-dbgsym" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
659 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
660 ; 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:
29618
diff
changeset
|
661 ${GetParameters} $R0 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
662 ClearErrors |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
663 ${GetOptions} "$R0" "/UPGRADE=" $R1 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
664 IfErrors +2 |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
665 StrCmp $R1 "1" upgrade_done |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
666 RMDir /r "$INSTDIR\Gtk" |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
667 ; Remove the downloaded spellcheck dictionaries (if we're not just upgrading) |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
668 RMDir /r "$INSTDIR\spellcheck" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
669 upgrade_done: |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
670 |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
671 ;Try to remove Pidgin install dir (only if empty) |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
672 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
|
673 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
674 ; 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
|
675 Delete "$DESKTOP\Pidgin.lnk" |
25873
21a90a4c76d6
Backport 1ae2b55502a0afd8f28918fc4726683c52e998e9 (#8985 - Remove Start Menu shortcut when unistalling)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25164
diff
changeset
|
676 Delete "$SMPROGRAMS\Pidgin.lnk" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
677 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
678 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
|
679 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
680 cant_uninstall: |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
681 MessageBox MB_OK $(PIDGINUNINSTALLERROR1) /SD IDOK |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
682 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
|
683 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
684 no_rights: |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
685 MessageBox MB_OK $(PIDGINUNINSTALLERROR2) /SD IDOK |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
686 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
|
687 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
688 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
|
689 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
|
690 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
691 ;-------------------------------- |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
692 ;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
|
693 !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
|
694 !insertmacro MUI_DESCRIPTION_TEXT ${SecPidgin} \ |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
695 $(PIDGINSECTIONDESCRIPTION) |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
696 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} \ |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
697 $(GTKSECTIONDESCRIPTION) |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
698 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
699 !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} \ |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
700 $(PIDGINSHORTCUTSSECTIONDESCRIPTION) |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
701 !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} \ |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
702 $(PIDGINDESKTOPSHORTCUTDESC) |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
703 !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} \ |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
704 $(PIDGINSTARTMENUSHORTCUTDESC) |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
705 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
706 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheck} \ |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
707 $(PIDGINSPELLCHECKSECTIONDESCRIPTION) |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
708 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
709 !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
|
710 |
e11859350489
Updates 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 ;-------------------------------- |
e11859350489
Updates 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 ;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
|
713 |
15796
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
714 ; Default the URI handler checkboxes if Pidgin is the current handler or if there is no handler |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
715 Function SelectURIHandlerSelections |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
716 Push $R0 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
717 Push $R1 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
718 Push $R2 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
719 Push $R3 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
720 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
721 ; Start with the first URI handler |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
722 IntOp $R0 ${SecURIHandlers} + 1 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
723 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
724 start: |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
725 ; If it is the end of the section group, stop |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
726 SectionGetFlags $R0 $R1 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
727 IntOp $R2 $R1 & ${SF_SECGRPEND} |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
728 IntCmp $R2 ${SF_SECGRPEND} done |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
729 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
730 SectionGetText $R0 $R2 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
731 ;Strip the trailing ':' |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
732 StrLen $R3 $R2 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
733 IntOp $R3 $R3 - 1 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
734 StrCpy $R2 $R2 $R3 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
735 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
736 ClearErrors |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
737 ReadRegStr $R3 HKCR "$R2" "" |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
738 IfErrors default_on ;there is no current handler |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
739 |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
740 Push $R2 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
741 Call CheckIfPidginIsCurrentURIHandler |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
742 Pop $R3 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
743 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
744 ; 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
|
745 IntCmp $R3 0 end_loop |
15796
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
746 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
747 ;We default the URI handler checkbox on |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
748 default_on: |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
749 IntOp $R1 $R1 | ${SF_SELECTED} ; Select |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
750 SectionSetFlags $R0 $R1 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
751 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
752 end_loop: |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
753 IntOp $R0 $R0 + 1 ;Advance to the next section |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
754 Goto start |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
755 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
756 done: |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
757 Pop $R3 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
758 Pop $R2 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
759 Pop $R1 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
760 Pop $R0 |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
761 FunctionEnd ;SelectURIHandlerSections |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
762 |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
763 ; 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
|
764 ; 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
|
765 !macro CheckIfPidginIsCurrentURIHandlerMacro UN |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
766 Function ${UN}CheckIfPidginIsCurrentURIHandler |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
767 Exch $R0 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
768 ClearErrors |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
769 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
770 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
|
771 IfErrors 0 +3 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
772 IntOp $R0 0 + 0 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
773 Goto done |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
774 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
775 !ifdef __UNINSTALL__ |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
776 ${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
|
777 !else |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
778 ${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
|
779 !endif |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
780 IntOp $R0 0 + 1 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
781 IfErrors 0 +2 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
782 IntOp $R0 0 + 0 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
783 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
784 done: |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
785 Exch $R0 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
786 FunctionEnd |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
787 !macroend |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
788 !insertmacro CheckIfPidginIsCurrentURIHandlerMacro "" |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
789 !insertmacro CheckIfPidginIsCurrentURIHandlerMacro "un." |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
790 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
791 ; 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
|
792 Function un.UnregisterURIHandler |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
793 Exch $R0 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
794 Push $R1 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
795 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
796 Push $R0 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
797 Call un.CheckIfPidginIsCurrentURIHandler |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
798 Pop $R1 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
799 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
800 ; 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
|
801 IntCmp $R1 0 done |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
802 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
803 ;Unregister the URI handler |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
804 DetailPrint "Unregistering $R0 URI Handler" |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
805 DeleteRegKey HKCR "$R0" |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
806 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
807 done: |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
808 Pop $R1 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
809 Pop $R0 |
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
810 FunctionEnd |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
811 |
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
812 Function RegisterURIHandler |
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
813 Exch $R0 |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
814 DetailPrint "Registering $R0 URI Handler" |
15796
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
815 DeleteRegKey HKCR "$R0" |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
816 WriteRegStr HKCR "$R0" "" "URL:$R0" |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
817 WriteRegStr HKCR "$R0" "URL Protocol" "" |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
818 WriteRegStr HKCR "$R0\DefaultIcon" "" "$INSTDIR\pidgin.exe" |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
819 WriteRegStr HKCR "$R0\shell" "" "" |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
820 WriteRegStr HKCR "$R0\shell\Open" "" "" |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
821 WriteRegStr HKCR "$R0\shell\Open\command" "" "$INSTDIR\pidgin.exe --protocolhandler=%1" |
15795
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
822 Pop $R0 |
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
823 FunctionEnd |
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
824 |
a26ffc69f81c
Add support for registering URI handlers to the windows installer.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15756
diff
changeset
|
825 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
826 !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
|
827 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
|
828 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
|
829 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
|
830 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
|
831 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
|
832 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
|
833 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
|
834 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
|
835 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
|
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 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
|
838 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
|
839 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
|
840 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
|
841 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
|
842 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
|
843 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
|
844 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
|
845 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
|
846 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
|
847 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
|
848 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
|
849 ; 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
|
850 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
|
851 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
|
852 |
e11859350489
Updates 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 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
|
854 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
|
855 |
e11859350489
Updates 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 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
|
857 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
|
858 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
|
859 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
|
860 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
|
861 !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
|
862 !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
|
863 !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
|
864 |
e11859350489
Updates 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 ; |
e11859350489
Updates 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 ; 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
|
867 ; 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
|
868 ; 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
|
869 ; 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
|
870 ; |
e11859350489
Updates 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 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
|
872 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
|
873 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
|
874 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
|
875 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
|
876 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
|
877 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
|
878 ${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
|
879 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
|
880 ; 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
|
881 ; 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
|
882 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
|
883 ; 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
|
884 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
|
885 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
|
886 |
e11859350489
Updates 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 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
|
888 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
|
889 ; 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
|
890 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
|
891 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
|
892 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
|
893 |
e11859350489
Updates 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 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
|
895 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
|
896 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
|
897 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
|
898 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
899 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
|
900 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
|
901 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
|
902 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
903 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
|
904 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
|
905 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
|
906 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
907 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
|
908 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
|
909 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
|
910 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
|
911 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
|
912 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
|
913 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
|
914 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
915 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
|
916 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
|
917 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
|
918 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
|
919 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
|
920 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
|
921 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
922 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
|
923 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
|
924 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
|
925 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
|
926 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
|
927 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
|
928 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
929 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
|
930 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
|
931 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
|
932 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
|
933 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
|
934 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
|
935 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
|
936 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
|
937 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
938 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
|
939 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
|
940 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
|
941 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
942 ; |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
943 ; 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
|
944 ; 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
|
945 ; 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
|
946 ; 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
|
947 ; 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
|
948 ; 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
|
949 ; 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
|
950 ; |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
951 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
|
952 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
|
953 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
|
954 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
955 IfFileExists "$INSTDIR\Gtk\CONTENTS" +3 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
956 Push "3" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
957 Goto done |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
958 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
959 ClearErrors |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
960 ${ConfigRead} "$INSTDIR\Gtk\CONTENTS" "Bundle Version " $0 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
961 IfErrors 0 +3 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
962 Push "3" |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
963 Goto done |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
964 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
965 ${VersionCompare} ${GTK_INSTALL_VERSION} $0 $1 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
966 IntCmp $1 1 +3 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
967 Push "0" ; Have a good version |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
968 Goto done |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
969 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
970 ${VersionCompare} ${GTK_MIN_VERSION} $0 $1 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
971 IntCmp $1 1 +3 |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
972 Push "1" ; Optional Upgrade |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
973 Goto done |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
974 Push "2" ; Mandatory Upgrade |
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
975 Goto done |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
976 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
977 done: |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
978 ; 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:
29618
diff
changeset
|
979 Exch |
16542
e96a4756734a
Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16248
diff
changeset
|
980 Pop $1 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
981 Exch |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
982 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
|
983 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
|
984 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
985 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
986 !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
|
987 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
|
988 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
|
989 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
|
990 |
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
|
991 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
|
992 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
|
993 ; 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
|
994 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
|
995 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
|
996 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
|
997 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
|
998 IntCmp $R0 0 +3 ;This could check for ERROR_ALREADY_EXISTS(183), but lets just assume |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
999 MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(PIDGINISRUNNING) /SD IDCANCEL IDRETRY retry_runcheck |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1000 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
|
1001 |
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
|
1002 ; 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
|
1003 ; 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
|
1004 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
|
1005 |
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
|
1006 Pop $R1 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1007 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
|
1008 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
|
1009 !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
|
1010 !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
|
1011 !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
|
1012 |
e11859350489
Updates 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 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
|
1014 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
|
1015 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
|
1016 Push $R2 |
25046
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1017 Push $R3 ; This is only used for the Parameters throughout the function |
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1018 |
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1019 ${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
|
1020 |
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
|
1021 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
|
1022 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
|
1023 ; 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
|
1024 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
|
1025 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
|
1026 System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_installer_running") i .R1 ?e' |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1027 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
|
1028 IntCmp $R0 0 +3 ;This could check for ERROR_ALREADY_EXISTS(183), but lets just assume |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
1029 MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(INSTALLERISRUNNING) /SD IDCANCEL IDRETRY retry_runcheck |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1030 Abort |
25046
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1031 |
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1032 ; Allow installer to run even if pidgin is running via "/NOPIDGINRUNCHECK=1" |
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1033 ; This is useful for testing |
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1034 ClearErrors |
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1035 ${GetOptions} "$R3" "/NOPIDGINRUNCHECK=" $R1 |
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1036 IfErrors 0 +2 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1037 Call RunCheck |
25046
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1038 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1039 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
|
1040 |
15756
2b6acdc5b614
Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15754
diff
changeset
|
1041 ;Try to copy the old Gaim installer Lang Reg. key |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
1042 ;(remove it after we're done to prevent this being done more than once) |
15756
2b6acdc5b614
Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15754
diff
changeset
|
1043 ClearErrors |
30368
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1044 ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" |
15756
2b6acdc5b614
Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15754
diff
changeset
|
1045 IfErrors 0 +5 |
2b6acdc5b614
Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15754
diff
changeset
|
1046 ClearErrors |
30368
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1047 ReadRegStr $R0 HKCU "${OLD_GAIM_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
1048 IfErrors +3 |
30368
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1049 DeleteRegValue HKCU "${OLD_GAIM_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" |
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1050 WriteRegStr HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" "$R0" |
15756
2b6acdc5b614
Installer updates
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15754
diff
changeset
|
1051 |
29624
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
1052 ${MementoSectionRestore} |
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
1053 |
15796
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
1054 ;Preselect the URI handlers as appropriate |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
1055 Call SelectURIHandlerSelections |
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
1056 |
18463
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1057 ;Preselect the "shortcuts" checkboxes according to the previous installation |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1058 ClearErrors |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1059 ;Make sure that there was a previous installation |
30368
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1060 ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" |
18463
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1061 IfErrors done_preselecting_shortcuts |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1062 ;Does the Desktop shortcut exist? |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1063 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
|
1064 IfErrors +1 +5 |
18463
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1065 ClearErrors |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1066 SetShellVarContext "all" |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1067 GetFileTime "$DESKTOP\Pidgin.lnk" $R0 $R0 |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1068 IfErrors preselect_startmenu_shortcut ;Desktop Shortcut if off by default |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1069 !insertmacro SelectSection ${SecDesktopShortcut} |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1070 preselect_startmenu_shortcut: |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1071 ;Reset ShellVarContext because we may have changed it |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1072 SetShellVarContext "current" |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1073 ClearErrors |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1074 ;Does the StartMenu shortcut exist? |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1075 GetFileTime "$SMPROGRAMS\Pidgin.lnk" $R0 $R0 |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1076 IfErrors +1 done_preselecting_shortcuts ;StartMenu Shortcut is on by default |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1077 ClearErrors |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1078 SetShellVarContext "all" |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1079 GetFileTime "$SMPROGRAMS\Pidgin.lnk" $R0 $R0 |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1080 IfErrors +1 done_preselecting_shortcuts ;StartMenu Shortcut is on by default |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1081 !insertmacro UnselectSection ${SecStartMenuShortcut} |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1082 done_preselecting_shortcuts: |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1083 ;Reset ShellVarContext because we may have changed it |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1084 SetShellVarContext "current" |
18a81722d6d4
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
17884
diff
changeset
|
1085 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1086 ClearErrors |
25046
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1087 ${GetOptions} "$R3" "/L=" $R1 |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
1088 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
|
1089 StrCpy $LANGUAGE $R1 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1090 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
|
1091 |
e11859350489
Updates 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 ; 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
|
1093 ; Display Language selection dialog |
28647
23615d141245
Fix a silly regression that I introduced in f1167f906624ca218b6fd2a39b10be205ca99892 where the win32 installer language selection would no longer work correctly. Fixes #10243.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
28450
diff
changeset
|
1094 !define MUI_LANGDLL_ALWAYSSHOW |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1095 !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
|
1096 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
|
1097 |
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
|
1098 ClearErrors |
25046
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1099 ${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
|
1100 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
|
1101 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
|
1102 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
|
1103 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
|
1104 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
|
1105 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
|
1106 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
|
1107 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
|
1108 |
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
|
1109 ClearErrors |
25046
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1110 ${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
|
1111 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
|
1112 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
|
1113 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
|
1114 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
|
1115 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
|
1116 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
|
1117 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
|
1118 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
|
1119 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1120 ; 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
|
1121 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
|
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 ; 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
|
1124 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
|
1125 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
|
1126 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
|
1127 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
|
1128 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
|
1129 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
|
1130 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
|
1131 StrCmp $INSTDIR "" 0 instdir_done |
15796
1dee9065e336
Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15795
diff
changeset
|
1132 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1133 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
|
1134 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
|
1135 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1136 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
|
1137 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
|
1138 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
|
1139 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
|
1140 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
|
1141 ${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
|
1142 ${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
|
1143 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
|
1144 |
e11859350489
Updates 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 instdir_done: |
30368
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1146 ;LogSet on |
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1147 |
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1148 ; Try to select a translation and a dictionary for the currently selected Language |
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1149 Call SelectTranslationForCurrentLanguage |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1150 |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1151 ;Mark the dictionaries that are already installed as readonly |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1152 Call SelectAndDisableInstalledDictionaries |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1153 |
25046
e316de5f75a3
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
25020
diff
changeset
|
1154 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
|
1155 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
|
1156 Pop $R1 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1157 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
|
1158 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
|
1159 |
28450
1b534812157d
Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
28203
diff
changeset
|
1160 Function .onInstSuccess |
1b534812157d
Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
28203
diff
changeset
|
1161 |
29624
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
1162 ${MementoSectionSave} |
28450
1b534812157d
Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
28203
diff
changeset
|
1163 |
1b534812157d
Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
28203
diff
changeset
|
1164 FunctionEnd |
1b534812157d
Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
28203
diff
changeset
|
1165 |
29624
6d6921daf2da
Add the ability to choose which translations are installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29620
diff
changeset
|
1166 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1167 Function un.onInit |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
1168 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1169 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
|
1170 StrCpy $name "Pidgin ${PIDGIN_VERSION}" |
22775
a8a2268ce925
Remove the stored installer language selection when uninstalling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22109
diff
changeset
|
1171 ;LogSet on |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1172 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1173 ; 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
|
1174 !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
|
1175 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1176 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
|
1177 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1178 ; 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
|
1179 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1180 Function preWelcomePage |
16542
e96a4756734a
Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16248
diff
changeset
|
1181 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
|
1182 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
|
1183 |
29884
c08740a93dd1
Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29880
diff
changeset
|
1184 !ifdef OFFLINE_INSTALLER |
c08740a93dd1
Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29880
diff
changeset
|
1185 !insertmacro SelectSection ${SecDebugSymbols} |
c08740a93dd1
Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29880
diff
changeset
|
1186 !endif |
c08740a93dd1
Various installer bug fixes
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29880
diff
changeset
|
1187 |
16542
e96a4756734a
Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16248
diff
changeset
|
1188 Call DoWeNeedGtk |
30369
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1189 Pop $CURRENT_GTK_STATE |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1190 StrCpy $WARNED_GTK_STATE "0" |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1191 IntCmp $CURRENT_GTK_STATE 1 done gtk_not_mandatory |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1192 ; Make the GTK+ Section RO if it is required. (it is required only if you have an existing version that is too old) |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1193 StrCmp $CURRENT_GTK_STATE "2" 0 done |
16542
e96a4756734a
Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16248
diff
changeset
|
1194 !insertmacro SetSectionFlag ${SecGtk} ${SF_RO} |
29619
3f33a8fbf871
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29618
diff
changeset
|
1195 Goto done |
16542
e96a4756734a
Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
16248
diff
changeset
|
1196 gtk_not_mandatory: |
23982
f6b47af95252
Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23981
diff
changeset
|
1197 ; Don't select the GTK+ section if we already have this version or newer installed |
f6b47af95252
Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23981
diff
changeset
|
1198 !insertmacro UnselectSection ${SecGtk} |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1199 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1200 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
|
1201 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
|
1202 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
|
1203 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
|
1204 |
30369
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1205 ; If the GTK+ Section has been unselected and there isn't a compatible GTK+ already, confirm |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1206 Function .onSelChange |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1207 Push $R0 |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1208 |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1209 SectionGetFlags ${SecGtk} $R0 |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1210 IntOp $R0 $R0 & ${SF_SELECTED} |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1211 ; If the Gtk Section is currently selected, reset the "Warned" flag |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1212 StrCmp $R0 "${SF_SELECTED}" 0 +3 |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1213 StrCpy $WARNED_GTK_STATE "0" |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1214 Goto done |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1215 |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1216 ; If we've already warned the user, don't warn them again |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1217 StrCmp $WARNED_GTK_STATE "1" done |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1218 IntCmp $CURRENT_GTK_STATE 1 done done 0 |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1219 StrCpy $WARNED_GTK_STATE "1" |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
1220 MessageBox MB_YESNO $(PIDGINPROMPTFORCENOGTK) /SD IDNO IDYES done |
30369
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1221 !insertmacro SelectSection ${SecGtk} |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1222 |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1223 done: |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1224 Pop $R0 |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1225 FunctionEnd |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1226 |
30368
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1227 Function SelectTranslationForCurrentLanguage |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
1228 !insertmacro SELECT_TRANSLATION_FUNCTION |
30368
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1229 FunctionEnd |
0d42077e36cf
Automatically select the translation corresponding to the installer language.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29933
diff
changeset
|
1230 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1231 ; 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
|
1232 ;------------------------------- |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1233 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1234 ; Select and Disable any Sections that have currently installed dictionaries |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1235 !macro CHECK_SPELLCHECK_SECTION lang |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1236 ;Advance to the next (correct) section index |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1237 IntOp $R0 $R0 + 1 |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1238 IfFileExists "$INSTDIR\spellcheck\share\enchant\myspell\${lang}.dic" 0 done_${lang} |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1239 SectionGetFlags $R0 $R1 |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1240 IntOp $R1 $R1 | ${SF_RO} ; Mark Readonly |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1241 IntOp $R1 $R1 | ${SF_SELECTED} ; Select |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1242 SectionSetFlags $R0 $R1 |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1243 done_${lang}: |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1244 !macroend |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1245 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
|
1246 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
|
1247 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
|
1248 |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1249 !insertmacro SetSectionFlag ${SecSpellCheck} ${SF_RO} |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1250 !insertmacro UnselectSection ${SecSpellCheck} |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1251 |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1252 IntOp $R0 ${SecSpellCheck} + 0 |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1253 !include "pidgin-spellcheck-preselect.nsh" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1254 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1255 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
|
1256 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
|
1257 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
|
1258 |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1259 Function InstallDict |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1260 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
|
1261 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
|
1262 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
|
1263 Push $R1 |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1264 Exch 2 |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1265 Pop $R1 ;This is the language file |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1266 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
|
1267 Push $R3 |
30369
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1268 Push $R4 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1269 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1270 ClearErrors |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1271 IfFileExists "$INSTDIR\spellcheck\share\enchant\myspell\$R0.dic" installed |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1272 |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1273 InitPluginsDir |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1274 |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1275 ; We need to download and install dictionary |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1276 StrCpy $R2 "$PLUGINSDIR\$R1" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1277 StrCpy $R3 "${SPELL_DOWNLOAD_URL}/$R1" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1278 DetailPrint "Downloading the $R0 Dictionary... ($R3)" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1279 retry: |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1280 NSISdl::download /TIMEOUT=10000 "$R3" "$R2" |
30369
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1281 Pop $R4 |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1282 StrCmp $R4 "cancel" done |
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1283 StrCmp $R4 "success" +3 |
30396
62f0988c666c
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30369
diff
changeset
|
1284 MessageBox MB_RETRYCANCEL "$(PIDGINSPELLCHECKERROR)" /SD IDCANCEL IDRETRY retry IDCANCEL done |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1285 Goto done |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1286 SetOutPath "$INSTDIR\spellcheck\share\enchant\myspell" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1287 nsisunz::UnzipToLog "$R2" "$OUTDIR" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1288 SetOutPath "$INSTDIR" |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1289 Pop $R3 |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1290 StrCmp $R3 "success" installed |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1291 DetailPrint "$R3" ;print error message to log |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1292 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
|
1293 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1294 installed: ;The dictionary is currently installed, no error message |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1295 DetailPrint "$R0 Dictionary is installed" |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1296 |
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1297 done: |
30369
e8b781c23fb6
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <daniel.atallah@gmail.com>
parents:
30368
diff
changeset
|
1298 Pop $R4 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1299 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
|
1300 Pop $R2 |
29933
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1301 Pop $R0 |
daa02d44df13
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <daniel.atallah@gmail.com>
parents:
29911
diff
changeset
|
1302 Exch $R1 |
15752
e11859350489
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff
changeset
|
1303 FunctionEnd |