Thu, 04 Nov 2010 18:23:41 +0000
Build the "Pidgin Theme Editor" plugin on Windows too.
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
1 | ; Installer script for win32 Pidgin |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
2 | ; Original Author: Herman Bloggs <hermanator12002@yahoo.com> |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
3 | ; Updated By: Daniel Atallah <daniel_atallah@yahoo.com> |
| 3630 | 4 | |
|
27647
acbefee0cd14
Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <datallah@pidgin.im>
parents:
27360
diff
changeset
|
5 | ; NOTE: this .NSI script is intended for NSIS 2.27+ |
|
8388
243f2eeca134
[gaim-migrate @ 9116]
Herman Bloggs <herman@bluedigits.com>
parents:
8183
diff
changeset
|
6 | ; |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
7 | |
|
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
8 | ;-------------------------------- |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
9 | ;Global Variables |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
10 | Var name |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
11 | Var STARTUP_RUN_KEY |
|
30260
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
12 | Var CURRENT_GTK_STATE |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
13 | Var WARNED_GTK_STATE |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
14 | |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
15 | ;-------------------------------- |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
16 | ;Configuration |
| 3630 | 17 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
18 | ;The name var is set in .onInit |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
19 | Name $name |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
20 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
21 | !ifdef OFFLINE_INSTALLER |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
22 | OutFile "pidgin-${PIDGIN_VERSION}-offline.exe" |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
23 | !else |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
24 | OutFile "pidgin-${PIDGIN_VERSION}.exe" |
|
5931
6bd53176fdcf
[gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents:
5396
diff
changeset
|
25 | !endif |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
26 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
27 | SetCompressor /SOLID lzma |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
28 | ShowInstDetails show |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
29 | ShowUninstDetails show |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
30 | SetDateSave on |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
29794
diff
changeset
|
31 | RequestExecutionLevel highest |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
32 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
33 | ; $name and $INSTDIR are set in .onInit function.. |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
34 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
35 | !include "MUI.nsh" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
36 | !include "Sections.nsh" |
|
17462
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
37 | !include "WinVer.nsh" |
|
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
38 | !include "LogicLib.nsh" |
|
29639
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
39 | !include "Memento.nsh" |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
40 | |
|
14439
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
41 | !include "FileFunc.nsh" |
|
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
42 | !insertmacro GetParameters |
|
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
43 | !insertmacro GetOptions |
|
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
44 | !insertmacro GetParent |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
45 | |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
46 | !include "WordFunc.nsh" |
|
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
47 | !insertmacro VersionCompare |
|
15857
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
48 | !insertmacro WordFind |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
49 | !insertmacro un.WordFind |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
50 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
51 | !include "TextFunc.nsh" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
52 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
53 | ;-------------------------------- |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
54 | ;Defines |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
55 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
56 | !define PIDGIN_NSIS_INCLUDE_PATH "." |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
57 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
58 | ; Remove these and the stuff that uses them at some point |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
59 | !define OLD_GAIM_REG_KEY "SOFTWARE\gaim" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
60 | !define OLD_GAIM_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
61 | !define OLD_GAIM_UNINST_EXE "gaim-uninst.exe" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
62 | |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
63 | !define PIDGIN_REG_KEY "SOFTWARE\pidgin" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
64 | !define PIDGIN_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Pidgin" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
65 | |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
66 | !define HKLM_APP_PATHS_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\pidgin.exe" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
67 | !define STARTUP_RUN_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
68 | !define PIDGIN_UNINST_EXE "pidgin-uninst.exe" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
69 | |
|
29505
2d3820fca371
Fix minimum required GTK+ version in win32 installer.
Daniel Atallah <datallah@pidgin.im>
parents:
28136
diff
changeset
|
70 | !define GTK_MIN_VERSION "2.14.0" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
71 | !define PERL_REG_KEY "SOFTWARE\Perl" |
|
23915
b62601fd6e7d
Update the Perl plugin loader to work with Perl 5.10.
Daniel Atallah <datallah@pidgin.im>
parents:
23900
diff
changeset
|
72 | !define PERL_DLL "perl510.dll" |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
73 | |
|
16305
b2aa56593869
Remove GTK+ theme selection from installer. The next GTK+ runtime installer will contain a theme selector utility.
Daniel Atallah <datallah@pidgin.im>
parents:
16272
diff
changeset
|
74 | !define DOWNLOADER_URL "http://pidgin.im/win32/download_redir.php" |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
75 | !define SPELL_DOWNLOAD_URL "http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
76 | |
|
29639
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
77 | !define MEMENTO_REGISTRY_ROOT HKLM |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
78 | !define MEMENTO_REGISTRY_KEY "${PIDGIN_UNINSTALL_KEY}" |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
79 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
80 | ;-------------------------------- |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
81 | ;Version resource |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
82 | VIProductVersion "${PIDGIN_PRODUCT_VERSION}" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
83 | VIAddVersionKey "ProductName" "Pidgin" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
84 | VIAddVersionKey "FileVersion" "${PIDGIN_VERSION}" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
85 | VIAddVersionKey "ProductVersion" "${PIDGIN_VERSION}" |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
86 | VIAddVersionKey "LegalCopyright" "" |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
87 | !ifdef OFFLINE_INSTALLER |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
88 | VIAddVersionKey "FileDescription" "Pidgin Installer (Offline)" |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
89 | !else |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
90 | VIAddVersionKey "FileDescription" "Pidgin Installer" |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
91 | !endif |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
92 | |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
93 | ;-------------------------------- |
|
17462
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
94 | ;Reserve files used in .onInit |
|
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
95 | ;for faster start-up |
|
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
96 | ReserveFile "${NSISDIR}\Plugins\System.dll" |
|
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
97 | !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS |
|
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
98 | !insertmacro MUI_RESERVEFILE_LANGDLL |
|
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
99 | |
|
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
100 | ;-------------------------------- |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
101 | ;Modern UI Configuration |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
102 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
103 | !define MUI_ICON ".\pixmaps\pidgin-install.ico" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
104 | !define MUI_UNICON ".\pixmaps\pidgin-install.ico" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
105 | !define MUI_WELCOMEFINISHPAGE_BITMAP ".\pixmaps\pidgin-intro.bmp" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
106 | !define MUI_HEADERIMAGE |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
107 | !define MUI_HEADERIMAGE_BITMAP ".\pixmaps\pidgin-header.bmp" |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
108 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
109 | ; Alter License section |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
110 | !define MUI_LICENSEPAGE_BUTTON $(PIDGINLICENSEBUTTON) |
|
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
111 | !define MUI_LICENSEPAGE_TEXT_BOTTOM $(PIDGINLICENSEBOTTOMTEXT) |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
112 | |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
113 | !define MUI_LANGDLL_REGISTRY_ROOT "HKCU" |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
114 | !define MUI_LANGDLL_REGISTRY_KEY ${PIDGIN_REG_KEY} |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
115 | !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language" |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
116 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
117 | !define MUI_COMPONENTSPAGE_SMALLDESC |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
118 | !define MUI_ABORTWARNING |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
119 | |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
120 | ;Finish Page config |
|
16830
a3e3d4f63c11
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 <datallah@pidgin.im>
parents:
16829
diff
changeset
|
121 | !define MUI_FINISHPAGE_NOAUTOCLOSE |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
122 | !define MUI_FINISHPAGE_RUN "$INSTDIR\pidgin.exe" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
123 | !define MUI_FINISHPAGE_RUN_NOTCHECKED |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
124 | !define MUI_FINISHPAGE_LINK $(PIDGINFINISHVISITWEBSITE) |
|
17752
7e6c1a58c002
Fix win32 installer finishpage URL. (this is fixed in the 2.0.2 installer too)
Daniel Atallah <datallah@pidgin.im>
parents:
17733
diff
changeset
|
125 | !define MUI_FINISHPAGE_LINK_LOCATION "http://pidgin.im" |
| 3630 | 126 | |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
127 | ;-------------------------------- |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
128 | ;Pages |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
129 | |
|
7600
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
130 | !define MUI_PAGE_CUSTOMFUNCTION_PRE preWelcomePage |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
131 | !insertmacro MUI_PAGE_WELCOME |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
132 | !insertmacro MUI_PAGE_LICENSE "../../../COPYING" |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
133 | !insertmacro MUI_PAGE_COMPONENTS |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
134 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
135 | ; Pidgin install dir page |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
136 | !insertmacro MUI_PAGE_DIRECTORY |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
137 | |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
138 | !insertmacro MUI_PAGE_INSTFILES |
|
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
139 | !insertmacro MUI_PAGE_FINISH |
|
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
140 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
141 | !insertmacro MUI_UNPAGE_WELCOME |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
142 | !insertmacro MUI_UNPAGE_CONFIRM |
|
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
143 | !insertmacro MUI_UNPAGE_INSTFILES |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
144 | !insertmacro MUI_UNPAGE_FINISH |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
145 | |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
146 | ;-------------------------------- |
|
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
147 | ;Languages |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
148 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
149 | !include "${PIDGIN_NSIS_INCLUDE_PATH}\langmacros.nsh" |
|
7572
976d5883ef99
[gaim-migrate @ 8188]
Herman Bloggs <herman@bluedigits.com>
parents:
7558
diff
changeset
|
150 | |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
151 | ;-------------------------------- |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
152 | ;Reserve Files |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
153 | ; Only need this if using bzip2 compression |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
154 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
155 | !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
156 | !insertmacro MUI_RESERVEFILE_LANGDLL |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
157 | ReserveFile "${NSISDIR}\Plugins\UserInfo.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
158 | |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
159 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
160 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
161 | ;; Start Install Sections ;; |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
162 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 3630 | 163 | |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
164 | ;-------------------------------- |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
165 | ;Uninstall any old version of Pidgin (or Gaim) |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
166 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
167 | Section -SecUninstallOldPidgin |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
168 | ; Check install rights.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
169 | Call CheckUserInstallRights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
170 | Pop $R0 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
171 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
172 | ;First try to uninstall Pidgin |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
173 | StrCpy $R4 ${PIDGIN_REG_KEY} |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
174 | StrCpy $R5 ${PIDGIN_UNINSTALL_KEY} |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
175 | StrCpy $R6 ${PIDGIN_UNINST_EXE} |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
176 | StrCpy $R7 "Pidgin" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
177 | |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
178 | start_comparison: |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
179 | ;If pidgin is currently set to run on startup, |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
180 | ; save the section of the Registry where the setting is before uninstalling, |
|
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
181 | ; so we can put it back after installing the new version |
|
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
182 | ClearErrors |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
183 | ReadRegStr $STARTUP_RUN_KEY HKCU "${STARTUP_RUN_KEY}" $R7 |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
184 | IfErrors +3 |
|
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
185 | StrCpy $STARTUP_RUN_KEY "HKCU" |
|
16829
d5827c7efbae
Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents:
16817
diff
changeset
|
186 | Goto +5 |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
187 | ClearErrors |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
188 | ReadRegStr $STARTUP_RUN_KEY HKLM "${STARTUP_RUN_KEY}" $R7 |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
189 | IfErrors +2 |
|
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
190 | StrCpy $STARTUP_RUN_KEY "HKLM" |
|
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
191 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
192 | StrCmp $R0 "HKLM" compare_hklm |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
193 | StrCmp $R0 "HKCU" compare_hkcu done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
194 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
195 | compare_hkcu: |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
196 | ReadRegStr $R1 HKCU $R4 "" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
197 | ReadRegStr $R2 HKCU $R4 "Version" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
198 | ReadRegStr $R3 HKCU "$R5" "UninstallString" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
199 | Goto try_uninstall |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
200 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
201 | compare_hklm: |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
202 | ReadRegStr $R1 HKLM $R4 "" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
203 | ReadRegStr $R2 HKLM $R4 "Version" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
204 | ReadRegStr $R3 HKLM "$R5" "UninstallString" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
205 | |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
206 | ; If a previous version exists, remove it |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
207 | try_uninstall: |
|
16829
d5827c7efbae
Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents:
16817
diff
changeset
|
208 | StrCmp $R1 "" no_version_found |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
209 | ; Version key started with 0.60a3. Prior versions can't be |
|
16817
6ebf286c04b2
Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <datallah@pidgin.im>
parents:
16780
diff
changeset
|
210 | ; automatically uninstalled. |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
211 | StrCmp $R2 "" uninstall_problem |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
212 | ; Check if we have uninstall string.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
213 | IfFileExists $R3 0 uninstall_problem |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
214 | ; Have uninstall string, go ahead and uninstall. |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
215 | SetOverwrite on |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
216 | ; Need to copy uninstaller outside of the install dir |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
217 | ClearErrors |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
218 | CopyFiles /SILENT $R3 "$TEMP\$R6" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
219 | SetOverwrite off |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
220 | IfErrors uninstall_problem |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
221 | ; Ready to uninstall.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
222 | ClearErrors |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
223 | ExecWait '"$TEMP\$R6" /S /UPGRADE=1 _?=$R1' |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
224 | IfErrors exec_error |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
225 | Delete "$TEMP\$R6" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
226 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
227 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
228 | exec_error: |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
229 | Delete "$TEMP\$R6" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
230 | Goto uninstall_problem |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
231 | |
|
16829
d5827c7efbae
Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents:
16817
diff
changeset
|
232 | no_version_found: |
|
d5827c7efbae
Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents:
16817
diff
changeset
|
233 | ;We've already tried to fallback to an old gaim instance |
|
d5827c7efbae
Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents:
16817
diff
changeset
|
234 | StrCmp $R7 "Gaim" done |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
235 | ; If we couldn't uninstall Pidgin, try to uninstall Gaim |
|
16829
d5827c7efbae
Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents:
16817
diff
changeset
|
236 | StrCpy $STARTUP_RUN_KEY "NONE" |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
237 | StrCpy $R4 ${OLD_GAIM_REG_KEY} |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
238 | StrCpy $R5 ${OLD_GAIM_UNINSTALL_KEY} |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
239 | StrCpy $R6 ${OLD_GAIM_UNINST_EXE} |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
240 | StrCpy $R7 "Gaim" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
241 | Goto start_comparison |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
242 | |
|
16829
d5827c7efbae
Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents:
16817
diff
changeset
|
243 | uninstall_problem: |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
244 | ; We can't uninstall. Either the user must manually uninstall or we ignore and reinstall over it. |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
245 | MessageBox MB_OKCANCEL $(PIDGINPROMPTCONTINUEWITHOUTUNINSTALL) /SD IDOK IDOK done |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
246 | Quit |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
247 | done: |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
248 | SectionEnd |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
249 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
250 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
251 | ;-------------------------------- |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
252 | ;GTK+ Runtime Install Section |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
253 | |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
254 | Section $(GTKSECTIONTITLE) SecGtk |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
255 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
256 | InitPluginsDir |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
257 | StrCpy $R1 "$PLUGINSDIR\gtk.zip" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
258 | !ifdef OFFLINE_INSTALLER |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
259 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
260 | SetOutPath $PLUGINSDIR |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
29794
diff
changeset
|
261 | File /oname=gtk.zip ".\gtk-runtime-${GTK_INSTALL_VERSION}.zip" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
262 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
263 | !else |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
264 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
265 | ; We need to download the GTK+ runtime |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
266 | retry: |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
267 | StrCpy $R2 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}>k_version=${GTK_INSTALL_VERSION}&dl_pkg=gtk" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
268 | DetailPrint "Downloading GTK+ Runtime ... ($R2)" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
269 | NSISdl::download /TIMEOUT=10000 $R2 $R1 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
270 | Pop $R0 |
|
30695
7c10b1be13f2
-------------------------------------------------------------------------------
Daniel Atallah <datallah@pidgin.im>
parents:
30601
diff
changeset
|
271 | ;StrCmp $R0 "cancel" done |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
272 | StrCmp $R0 "success" +2 |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
273 | MessageBox MB_RETRYCANCEL "$(PIDGINGTKDOWNLOADERROR)" /SD IDCANCEL IDRETRY retry IDCANCEL done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
274 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
275 | !endif |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
276 | |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
29794
diff
changeset
|
277 | ;Delete the old Gtk directory |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
29794
diff
changeset
|
278 | RMDir /r "$INSTDIR\Gtk" |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
29794
diff
changeset
|
279 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
280 | SetOutPath "$INSTDIR" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
281 | nsisunz::UnzipToLog $R1 "$INSTDIR" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
282 | Pop $R0 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
283 | StrCmp $R0 "success" +2 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
284 | DetailPrint "$R0" ;print error message to log |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
285 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
286 | done: |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
287 | SectionEnd ; end of GTK+ section |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
288 | |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
289 | ;-------------------------------- |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
290 | ;Pidgin Install Section |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
291 | |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
292 | Section $(PIDGINSECTIONTITLE) SecPidgin |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
293 | SectionIn 1 RO |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
294 | |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
295 | ; Check install rights.. |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
296 | Call CheckUserInstallRights |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
297 | Pop $R0 |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
298 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
299 | StrCmp $R0 "NONE" pidgin_install_files |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
300 | StrCmp $R0 "HKLM" pidgin_hklm pidgin_hkcu |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
301 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
302 | pidgin_hklm: |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
303 | WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "" "$INSTDIR\pidgin.exe" |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
304 | WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$INSTDIR\Gtk\bin" |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
305 | WriteRegStr HKLM ${PIDGIN_REG_KEY} "" "$INSTDIR" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
306 | WriteRegStr HKLM ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}" |
|
30696
e756909b7a35
Explicitly set the icon for Windows' Add/Remove Programs.
Daniel Atallah <datallah@pidgin.im>
parents:
30695
diff
changeset
|
307 | WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\pidgin.exe" |
|
17722
0e6a85627c70
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents:
17645
diff
changeset
|
308 | WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayName" "Pidgin" |
|
0e6a85627c70
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents:
17645
diff
changeset
|
309 | WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayVersion" "${PIDGIN_VERSION}" |
|
0e6a85627c70
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents:
17645
diff
changeset
|
310 | WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "HelpLink" "http://developer.pidgin.im/wiki/Using Pidgin" |
|
0e6a85627c70
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents:
17645
diff
changeset
|
311 | WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoModify" 1 |
|
0e6a85627c70
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents:
17645
diff
changeset
|
312 | WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1 |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
313 | WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${PIDGIN_UNINST_EXE}" |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
314 | ; Sets scope of the desktop and Start Menu entries for all users. |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
315 | SetShellVarContext "all" |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
316 | Goto pidgin_install_files |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
317 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
318 | pidgin_hkcu: |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
319 | WriteRegStr HKCU ${PIDGIN_REG_KEY} "" "$INSTDIR" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
320 | WriteRegStr HKCU ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}" |
|
30696
e756909b7a35
Explicitly set the icon for Windows' Add/Remove Programs.
Daniel Atallah <datallah@pidgin.im>
parents:
30695
diff
changeset
|
321 | WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\pidgin.exe" |
|
17722
0e6a85627c70
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents:
17645
diff
changeset
|
322 | WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayName" "Pidgin" |
|
0e6a85627c70
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents:
17645
diff
changeset
|
323 | WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayVersion" "${PIDGIN_VERSION}" |
|
0e6a85627c70
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents:
17645
diff
changeset
|
324 | WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "HelpLink" "http://developer.pidgin.im/wiki/Using Pidgin" |
|
0e6a85627c70
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents:
17645
diff
changeset
|
325 | WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoModify" 1 |
|
0e6a85627c70
Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents:
17645
diff
changeset
|
326 | WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1 |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
327 | WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${PIDGIN_UNINST_EXE}" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
328 | Goto pidgin_install_files |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
329 | |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
330 | pidgin_install_files: |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
331 | SetOutPath "$INSTDIR" |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
332 | ; Pidgin files |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
333 | SetOverwrite on |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16305
diff
changeset
|
334 | |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16305
diff
changeset
|
335 | ;Delete old liboscar and libjabber since they tend to be problematic |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16305
diff
changeset
|
336 | Delete "$INSTDIR\plugins\liboscar.dll" |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16305
diff
changeset
|
337 | Delete "$INSTDIR\plugins\libjabber.dll" |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16305
diff
changeset
|
338 | |
|
29639
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
339 | File /r /x locale ..\..\..\${PIDGIN_INSTALL_DIR}\*.* |
|
6848
ca91f08b60df
[gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
340 | |
|
14665
e05842f7fe43
[gaim-migrate @ 17331]
Daniel Atallah <datallah@pidgin.im>
parents:
14516
diff
changeset
|
341 | ; Check if Perl is installed, if so add it to the AppPaths |
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
342 | ReadRegStr $R2 HKLM ${PERL_REG_KEY} "" |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
343 | StrCmp $R2 "" 0 perl_exists |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
344 | ReadRegStr $R2 HKCU ${PERL_REG_KEY} "" |
|
14665
e05842f7fe43
[gaim-migrate @ 17331]
Daniel Atallah <datallah@pidgin.im>
parents:
14516
diff
changeset
|
345 | StrCmp $R2 "" perl_done perl_exists |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
346 | |
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
347 | perl_exists: |
|
14665
e05842f7fe43
[gaim-migrate @ 17331]
Daniel Atallah <datallah@pidgin.im>
parents:
14516
diff
changeset
|
348 | IfFileExists "$R2\bin\${PERL_DLL}" 0 perl_done |
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
349 | StrCmp $R0 "HKLM" 0 perl_done |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
350 | ReadRegStr $R3 HKLM "${HKLM_APP_PATHS_KEY}" "Path" |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
351 | WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R3;$R2\bin" |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
352 | |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
353 | perl_done: |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
354 | |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
355 | ; If this is under NT4, delete the SILC support stuff |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
356 | ; there is a bug that will prevent any account from connecting |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
357 | ; See https://lists.silcnet.org/pipermail/silc-devel/2005-January/001588.html |
|
23899
41f495e3b1a1
Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <datallah@pidgin.im>
parents:
23189
diff
changeset
|
358 | ; Also, remove the GSSAPI SASL plugin and associated files as they aren't |
|
41f495e3b1a1
Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <datallah@pidgin.im>
parents:
23189
diff
changeset
|
359 | ; compatible with NT4. |
|
17462
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
360 | ${If} ${IsNT} |
|
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
361 | ${AndIf} ${IsWinNT4} |
|
23899
41f495e3b1a1
Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <datallah@pidgin.im>
parents:
23189
diff
changeset
|
362 | ;SILC |
|
17462
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
363 | Delete "$INSTDIR\plugins\libsilc.dll" |
|
19684
cb06b0123bd5
Upgrade the win32 build to use version 1.1.2 of the SILC toolkit.
Daniel Atallah <datallah@pidgin.im>
parents:
19668
diff
changeset
|
364 | Delete "$INSTDIR\libsilcclient-1-1-2.dll" |
|
cb06b0123bd5
Upgrade the win32 build to use version 1.1.2 of the SILC toolkit.
Daniel Atallah <datallah@pidgin.im>
parents:
19668
diff
changeset
|
365 | Delete "$INSTDIR\libsilc-1-1-2.dll" |
|
23899
41f495e3b1a1
Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <datallah@pidgin.im>
parents:
23189
diff
changeset
|
366 | ;GSSAPI |
|
41f495e3b1a1
Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <datallah@pidgin.im>
parents:
23189
diff
changeset
|
367 | Delete "$INSTDIR\sasl2\saslGSSAPI.dll" |
|
17462
593f36ca27bc
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 <datallah@pidgin.im>
parents:
17289
diff
changeset
|
368 | ${EndIf} |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
369 | |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
370 | SetOutPath "$INSTDIR" |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
371 | |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
372 | ; If we don't have install rights we're done |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
373 | StrCmp $R0 "NONE" done |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
374 | SetOverwrite off |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
375 | |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
376 | ; write out uninstaller |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
377 | SetOverwrite on |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
378 | WriteUninstaller "$INSTDIR\${PIDGIN_UNINST_EXE}" |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
379 | SetOverwrite off |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
380 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
381 | ; If we previously had pidgin set up to run on startup, make it do so again |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
382 | StrCmp $STARTUP_RUN_KEY "HKCU" +1 +2 |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
383 | WriteRegStr HKCU "${STARTUP_RUN_KEY}" "Pidgin" "$INSTDIR\pidgin.exe" |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
384 | StrCmp $STARTUP_RUN_KEY "HKLM" +1 +2 |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
385 | WriteRegStr HKLM "${STARTUP_RUN_KEY}" "Pidgin" "$INSTDIR\pidgin.exe" |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
386 | |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
387 | done: |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
388 | SectionEnd ; end of default Pidgin section |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
389 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
390 | ;-------------------------------- |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
391 | ;Shortcuts |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
392 | |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
393 | SectionGroup /e $(PIDGINSHORTCUTSSECTIONTITLE) SecShortcuts |
|
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
394 | Section /o $(PIDGINDESKTOPSHORTCUTSECTIONTITLE) SecDesktopShortcut |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
395 | SetOverwrite on |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
396 | CreateShortCut "$DESKTOP\Pidgin.lnk" "$INSTDIR\pidgin.exe" |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
397 | SetOverwrite off |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
398 | SectionEnd |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
399 | Section $(PIDGINSTARTMENUSHORTCUTSECTIONTITLE) SecStartMenuShortcut |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
400 | SetOverwrite on |
|
17289
6412ffdd74dd
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 <datallah@pidgin.im>
parents:
16831
diff
changeset
|
401 | CreateShortCut "$SMPROGRAMS\Pidgin.lnk" "$INSTDIR\pidgin.exe" |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
402 | SetOverwrite off |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
403 | SectionEnd |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
404 | SectionGroupEnd |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
405 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
406 | ;-------------------------------- |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
407 | ;URI Handling |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
408 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
409 | !macro URI_SECTION proto |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
410 | Section /o "${proto}:" SecURI_${proto} |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
411 | Push "${proto}" |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
412 | Call RegisterURIHandler |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
413 | SectionEnd |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
414 | !macroend |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
415 | SectionGroup /e $(URIHANDLERSSECTIONTITLE) SecURIHandlers |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
416 | !insertmacro URI_SECTION "aim" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
417 | !insertmacro URI_SECTION "msnim" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
418 | !insertmacro URI_SECTION "myim" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
419 | !insertmacro URI_SECTION "ymsgr" |
|
28136
a3b6446eb2c4
Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <darkrain42@pidgin.im>
parents:
28020
diff
changeset
|
420 | !insertmacro URI_SECTION "xmpp" |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
421 | SectionGroupEnd |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
422 | |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
423 | ;-------------------------------- |
|
29639
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
424 | ;Translations |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
425 | |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
426 | !macro LANG_SECTION lang |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
427 | ${MementoUnselectedSection} "${lang}" SecLang_${lang} |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
428 | SetOutPath "$INSTDIR\locale\${lang}\LC_MESSAGES" |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
429 | File "..\..\..\${PIDGIN_INSTALL_DIR}\locale\${lang}\LC_MESSAGES\*.mo" |
|
29639
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
430 | SetOutPath "$INSTDIR" |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
431 | ${MementoSectionEnd} |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
432 | !macroend |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
433 | SectionGroup $(TRANSLATIONSSECTIONTITLE) SecTranslations |
|
29639
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
434 | # pidgin-translations is generated based on the contents of the locale directory |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
435 | !include "pidgin-translations.nsh" |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
436 | SectionGroupEnd |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
437 | ${MementoSectionDone} |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
438 | |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
439 | ;-------------------------------- |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
440 | ;Spell Checking |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
441 | |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
442 | !macro SPELLCHECK_SECTION lang lang_name lang_file |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
443 | Section /o "${lang_name}" SecSpell_${lang} |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
444 | Push ${lang_file} |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
445 | Push ${lang} |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
446 | Call InstallDict |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
447 | SectionEnd |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
448 | !macroend |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
449 | SectionGroup $(PIDGINSPELLCHECKSECTIONTITLE) SecSpellCheck |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
450 | !include "pidgin-spellcheck.nsh" |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
451 | SectionGroupEnd |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
452 | |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
453 | Section /o $(DEBUGSYMBOLSSECTIONTITLE) SecDebugSymbols |
|
29766
540e86343b7e
Various installer bug fixes
Daniel Atallah <datallah@pidgin.im>
parents:
29763
diff
changeset
|
454 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
455 | InitPluginsDir |
|
29766
540e86343b7e
Various installer bug fixes
Daniel Atallah <datallah@pidgin.im>
parents:
29763
diff
changeset
|
456 | StrCpy $R1 "$PLUGINSDIR\dbgsym.zip" |
|
29640
e97688dcc88a
Include the debug symbols in the offline installer
Daniel Atallah <datallah@pidgin.im>
parents:
29639
diff
changeset
|
457 | !ifdef OFFLINE_INSTALLER |
|
e97688dcc88a
Include the debug symbols in the offline installer
Daniel Atallah <datallah@pidgin.im>
parents:
29639
diff
changeset
|
458 | |
|
e97688dcc88a
Include the debug symbols in the offline installer
Daniel Atallah <datallah@pidgin.im>
parents:
29639
diff
changeset
|
459 | SetOutPath $PLUGINSDIR |
|
29766
540e86343b7e
Various installer bug fixes
Daniel Atallah <datallah@pidgin.im>
parents:
29763
diff
changeset
|
460 | File /oname=dbgsym.zip "..\..\..\pidgin-${PIDGIN_VERSION}-dbgsym.zip" |
|
29640
e97688dcc88a
Include the debug symbols in the offline installer
Daniel Atallah <datallah@pidgin.im>
parents:
29639
diff
changeset
|
461 | |
|
e97688dcc88a
Include the debug symbols in the offline installer
Daniel Atallah <datallah@pidgin.im>
parents:
29639
diff
changeset
|
462 | !else |
|
e97688dcc88a
Include the debug symbols in the offline installer
Daniel Atallah <datallah@pidgin.im>
parents:
29639
diff
changeset
|
463 | |
|
29766
540e86343b7e
Various installer bug fixes
Daniel Atallah <datallah@pidgin.im>
parents:
29763
diff
changeset
|
464 | ; We need to download the debug symbols |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
465 | retry: |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
466 | StrCpy $R2 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}&dl_pkg=dbgsym" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
467 | DetailPrint "Downloading Debug Symbols... ($R2)" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
468 | NSISdl::download /TIMEOUT=10000 $R2 $R1 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
469 | Pop $R0 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
470 | StrCmp $R0 "cancel" done |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
471 | StrCmp $R0 "success" +2 |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
472 | MessageBox MB_RETRYCANCEL "$(PIDGINDEBUGSYMBOLSERROR)" /SD IDCANCEL IDRETRY retry IDCANCEL done |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
473 | |
|
29640
e97688dcc88a
Include the debug symbols in the offline installer
Daniel Atallah <datallah@pidgin.im>
parents:
29639
diff
changeset
|
474 | !endif |
|
e97688dcc88a
Include the debug symbols in the offline installer
Daniel Atallah <datallah@pidgin.im>
parents:
29639
diff
changeset
|
475 | |
|
29766
540e86343b7e
Various installer bug fixes
Daniel Atallah <datallah@pidgin.im>
parents:
29763
diff
changeset
|
476 | SetOutPath "$INSTDIR" |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
477 | nsisunz::UnzipToLog $R1 "$INSTDIR" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
478 | Pop $R0 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
479 | StrCmp $R0 "success" +2 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
480 | DetailPrint "$R0" ;print error message to log |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
481 | |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
482 | done: |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
483 | SectionEnd |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
484 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
485 | ;-------------------------------- |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
486 | ;Uninstaller Section |
| 3630 | 487 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
488 | |
| 3630 | 489 | Section Uninstall |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
490 | Call un.CheckUserInstallRights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
491 | Pop $R0 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
492 | StrCmp $R0 "NONE" no_rights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
493 | StrCmp $R0 "HKCU" try_hkcu try_hklm |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
494 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
495 | try_hkcu: |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
496 | ReadRegStr $R0 HKCU ${PIDGIN_REG_KEY} "" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
497 | StrCmp $R0 $INSTDIR 0 cant_uninstall |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
498 | ; HKCU install path matches our INSTDIR so uninstall |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
499 | DeleteRegKey HKCU ${PIDGIN_REG_KEY} |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
500 | DeleteRegKey HKCU "${PIDGIN_UNINSTALL_KEY}" |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
501 | Goto cont_uninstall |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
502 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
503 | try_hklm: |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
504 | ReadRegStr $R0 HKLM ${PIDGIN_REG_KEY} "" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
505 | StrCmp $R0 $INSTDIR 0 try_hkcu |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
506 | ; HKLM install path matches our INSTDIR so uninstall |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
507 | DeleteRegKey HKLM ${PIDGIN_REG_KEY} |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
508 | DeleteRegKey HKLM "${PIDGIN_UNINSTALL_KEY}" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
509 | DeleteRegKey HKLM "${HKLM_APP_PATHS_KEY}" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
510 | ; Sets start menu and desktop scope to all users.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
511 | SetShellVarContext "all" |
|
4126
99bff42f4a47
[gaim-migrate @ 4343]
Herman Bloggs <herman@bluedigits.com>
parents:
3989
diff
changeset
|
512 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
513 | cont_uninstall: |
|
6090
348fcb77d3cf
[gaim-migrate @ 6549]
Herman Bloggs <herman@bluedigits.com>
parents:
5931
diff
changeset
|
514 | ; The WinPrefs plugin may have left this behind.. |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
515 | DeleteRegValue HKCU "${STARTUP_RUN_KEY}" "Pidgin" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
516 | DeleteRegValue HKLM "${STARTUP_RUN_KEY}" "Pidgin" |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
517 | ; Remove Language preference info |
|
30259
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
518 | DeleteRegValue HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
519 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
520 | ; Remove any URI handlers |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
521 | ; I can't think of an easy way to maintain a list in a single place |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
522 | Push "aim" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
523 | Call un.UnregisterURIHandler |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
524 | Push "msnim" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
525 | Call un.UnregisterURIHandler |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
526 | Push "myim" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
527 | Call un.UnregisterURIHandler |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
528 | Push "ymsgr" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
529 | Call un.UnregisterURIHandler |
|
28136
a3b6446eb2c4
Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <darkrain42@pidgin.im>
parents:
28020
diff
changeset
|
530 | Push "xmpp" |
|
a3b6446eb2c4
Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <darkrain42@pidgin.im>
parents:
28020
diff
changeset
|
531 | Call un.UnregisterURIHandler |
|
6090
348fcb77d3cf
[gaim-migrate @ 6549]
Herman Bloggs <herman@bluedigits.com>
parents:
5931
diff
changeset
|
532 | |
|
25672
5c28e0c93492
Add a second chain of SSL certificates now necessary for OSCAR SSL
Paul Aurich <darkrain42@pidgin.im>
parents:
25550
diff
changeset
|
533 | Delete "$INSTDIR\ca-certs\America_Online_Root_Certification_Authority_1.pem" |
|
5c28e0c93492
Add a second chain of SSL certificates now necessary for OSCAR SSL
Paul Aurich <darkrain42@pidgin.im>
parents:
25550
diff
changeset
|
534 | Delete "$INSTDIR\ca-certs\AOL_Member_CA.pem" |
|
23900
9424d2f88d96
Uninstall the CAcert certs in the win32 uninstaller.
Daniel Atallah <datallah@pidgin.im>
parents:
23899
diff
changeset
|
535 | Delete "$INSTDIR\ca-certs\CAcert_Class3.pem" |
|
9424d2f88d96
Uninstall the CAcert certs in the win32 uninstaller.
Daniel Atallah <datallah@pidgin.im>
parents:
23899
diff
changeset
|
536 | Delete "$INSTDIR\ca-certs\CAcert_Root.pem" |
|
30835
9c18ddfd4901
ca-certs: Add new Thawte and Deutsche Telekom Roots. Fixes #12667, #12668.
Paul Aurich <darkrain42@pidgin.im>
parents:
30834
diff
changeset
|
537 | Delete "$INSTDIR\ca-certs\Deutsche_Telekom_Root_CA_2.pem" |
|
28624
b287044cda0e
Add the Entrust.net Secure Server CA (taken from Debian's set). Closes #10247.
Paul Aurich <darkrain42@pidgin.im>
parents:
28562
diff
changeset
|
538 | Delete "$INSTDIR\ca-certs\Entrust.net_Secure_Server_CA.pem" |
|
19668
2071903c58e4
Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents:
19627
diff
changeset
|
539 | Delete "$INSTDIR\ca-certs\Equifax_Secure_CA.pem" |
|
27833
21dd169273d2
Add the twitter.com CA cert. Fixes 9264.
Paul Aurich <darkrain42@pidgin.im>
parents:
27826
diff
changeset
|
540 | Delete "$INSTDIR\ca-certs\Equifax_Secure_Global_eBusiness_CA-1.pem" |
|
30834
a43dd369afed
ca-certs: Add the Go Daddy Class 2 self-signed root. Fixes #12594
Paul Aurich <darkrain42@pidgin.im>
parents:
30735
diff
changeset
|
541 | Delete "$INSTDIR\ca-certs\Go_Daddy_Class_2_CA.pem" |
|
19705
aaa5bcae3261
Add mingw makefile to the dist. Update uninstaller for new certs.
Daniel Atallah <datallah@pidgin.im>
parents:
19684
diff
changeset
|
542 | Delete "$INSTDIR\ca-certs\GTE_CyberTrust_Global_Root.pem" |
|
25274
f1bd7294c950
Delete MSN cert when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
24249
diff
changeset
|
543 | Delete "$INSTDIR\ca-certs\Microsoft_Internet_Authority.pem" |
|
21393
36adbec26643
Delete Microsoft_Secure_Server_Authority.pem when uninstalling on win32
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20167
diff
changeset
|
544 | Delete "$INSTDIR\ca-certs\Microsoft_Secure_Server_Authority.pem" |
|
27188
888112948549
Add the StartCom root that the XMPP ICA will start using this year.
Paul Aurich <darkrain42@pidgin.im>
parents:
25728
diff
changeset
|
545 | Delete "$INSTDIR\ca-certs\StartCom_Certification_Authority.pem" |
|
22048
be245d92600e
Add the StartCom Free SSL Certificate Authority certificate (as used by
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21971
diff
changeset
|
546 | Delete "$INSTDIR\ca-certs\StartCom_Free_SSL_CA.pem" |
| 28020 | 547 | Delete "$INSTDIR\ca-certs\Thawte_Premium_Server_CA.pem" |
|
30835
9c18ddfd4901
ca-certs: Add new Thawte and Deutsche Telekom Roots. Fixes #12667, #12668.
Paul Aurich <darkrain42@pidgin.im>
parents:
30834
diff
changeset
|
548 | Delete "$INSTDIR\ca-certs\Thawte_Primary_Root_CA.pem" |
|
30601
8bc7b54f24b8
Add the ValiCert Class 2 VA root CA.
Paul Aurich <darkrain42@pidgin.im>
parents:
30285
diff
changeset
|
549 | Delete "$INSTDIR\ca-certs\ValiCert_Class_2_VA.crt" |
| 28020 | 550 | Delete "$INSTDIR\ca-certs\VeriSign_Class3_Extended_Validation_CA.pem" |
|
19705
aaa5bcae3261
Add mingw makefile to the dist. Update uninstaller for new certs.
Daniel Atallah <datallah@pidgin.im>
parents:
19684
diff
changeset
|
551 | Delete "$INSTDIR\ca-certs\Verisign_Class3_Primary_CA.pem" |
|
30884
890b93594937
Add Verisign Class 3 Public CA - G2
Paul Aurich <darkrain42@pidgin.im>
parents:
30835
diff
changeset
|
552 | Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G2.pem" |
|
24191
6e13f808537e
Update win32 installer for cert changes.
Daniel Atallah <datallah@pidgin.im>
parents:
23935
diff
changeset
|
553 | Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem" |
| 28020 | 554 | Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5_2.pem" |
|
25517
979335790670
Add new cert to the Windows uninstaller per datallah's request
Paul Aurich <darkrain42@pidgin.im>
parents:
25274
diff
changeset
|
555 | Delete "$INSTDIR\ca-certs\VeriSign_International_Server_Class_3_CA.pem" |
|
19668
2071903c58e4
Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents:
19627
diff
changeset
|
556 | Delete "$INSTDIR\ca-certs\Verisign_RSA_Secure_Server_CA.pem" |
|
2071903c58e4
Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents:
19627
diff
changeset
|
557 | RMDir "$INSTDIR\ca-certs" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
558 | RMDir /r "$INSTDIR\locale" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
559 | RMDir /r "$INSTDIR\pixmaps" |
|
15236
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
560 | Delete "$INSTDIR\plugins\autoaccept.dll" |
|
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
561 | Delete "$INSTDIR\plugins\buddynote.dll" |
|
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
562 | Delete "$INSTDIR\plugins\convcolors.dll" |
|
9565
c824ac72974f
[gaim-migrate @ 10404]
Herman Bloggs <herman@bluedigits.com>
parents:
9561
diff
changeset
|
563 | Delete "$INSTDIR\plugins\extplacement.dll" |
|
19851
48abddbe6b78
Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents:
19705
diff
changeset
|
564 | Delete "$INSTDIR\plugins\gtkbuddynote.dll" |
|
6476
92d08d220cd1
[gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents:
6447
diff
changeset
|
565 | Delete "$INSTDIR\plugins\history.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
566 | Delete "$INSTDIR\plugins\iconaway.dll" |
|
6476
92d08d220cd1
[gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents:
6447
diff
changeset
|
567 | Delete "$INSTDIR\plugins\idle.dll" |
|
17733
722e93eb392e
Build and distribute the joinpart plugin on win32.
Daniel Atallah <datallah@pidgin.im>
parents:
17722
diff
changeset
|
568 | Delete "$INSTDIR\plugins\joinpart.dll" |
|
15031
c45aa1667620
[gaim-migrate @ 17748]
Daniel Atallah <datallah@pidgin.im>
parents:
14929
diff
changeset
|
569 | Delete "$INSTDIR\plugins\libaim.dll" |
|
17614
82ea9e17d6b0
Add the bonjour prpl to the win32 uninstaller.
Daniel Atallah <datallah@pidgin.im>
parents:
17462
diff
changeset
|
570 | Delete "$INSTDIR\plugins\libbonjour.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
571 | Delete "$INSTDIR\plugins\libgg.dll" |
|
15031
c45aa1667620
[gaim-migrate @ 17748]
Daniel Atallah <datallah@pidgin.im>
parents:
14929
diff
changeset
|
572 | Delete "$INSTDIR\plugins\libicq.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
573 | Delete "$INSTDIR\plugins\libirc.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
574 | Delete "$INSTDIR\plugins\libmsn.dll" |
|
28922
5f7d25fdcdb7
Add mxit to uninstall list
Daniel Atallah <datallah@pidgin.im>
parents:
28624
diff
changeset
|
575 | Delete "$INSTDIR\plugins\libmxit.dll" |
|
19627
27519ded92c5
Add MySpaceIM to the Windows build, though I can't verify this works
Kevin Stange <kstange@pidgin.im>
parents:
19624
diff
changeset
|
576 | Delete "$INSTDIR\plugins\libmyspace.dll" |
|
9570
8b3f38824cd3
[gaim-migrate @ 10413]
Herman Bloggs <herman@bluedigits.com>
parents:
9565
diff
changeset
|
577 | Delete "$INSTDIR\plugins\libnapster.dll" |
|
9139
98408fc7521c
[gaim-migrate @ 9923]
Herman Bloggs <herman@bluedigits.com>
parents:
9115
diff
changeset
|
578 | Delete "$INSTDIR\plugins\libnovell.dll" |
|
14887
067f351ad90a
[gaim-migrate @ 17592]
Daniel Atallah <datallah@pidgin.im>
parents:
14854
diff
changeset
|
579 | Delete "$INSTDIR\plugins\libqq.dll" |
|
11103
a85505cc7ea0
[gaim-migrate @ 13143]
Richard Laager <rlaager@pidgin.im>
parents:
11090
diff
changeset
|
580 | Delete "$INSTDIR\plugins\libsametime.dll" |
|
a85505cc7ea0
[gaim-migrate @ 13143]
Richard Laager <rlaager@pidgin.im>
parents:
11090
diff
changeset
|
581 | Delete "$INSTDIR\plugins\libsilc.dll" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
582 | Delete "$INSTDIR\plugins\libsimple.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
583 | Delete "$INSTDIR\plugins\libtoc.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
584 | Delete "$INSTDIR\plugins\libyahoo.dll" |
|
27647
acbefee0cd14
Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <datallah@pidgin.im>
parents:
27360
diff
changeset
|
585 | Delete "$INSTDIR\plugins\libyahoojp.dll" |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16305
diff
changeset
|
586 | Delete "$INSTDIR\plugins\libxmpp.dll" |
|
14297
c1788b3112fd
[gaim-migrate @ 16917]
Richard Laager <rlaager@pidgin.im>
parents:
13810
diff
changeset
|
587 | Delete "$INSTDIR\plugins\log_reader.dll" |
|
15236
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
588 | Delete "$INSTDIR\plugins\markerline.dll" |
|
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
589 | Delete "$INSTDIR\plugins\newline.dll" |
|
13067
f455a2ca30a9
[gaim-migrate @ 15429]
Daniel Atallah <datallah@pidgin.im>
parents:
13037
diff
changeset
|
590 | Delete "$INSTDIR\plugins\notify.dll" |
|
15236
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
591 | Delete "$INSTDIR\plugins\offlinemsg.dll" |
|
7352
715b973d34e2
[gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents:
7215
diff
changeset
|
592 | Delete "$INSTDIR\plugins\perl.dll" |
|
19851
48abddbe6b78
Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents:
19705
diff
changeset
|
593 | Delete "$INSTDIR\plugins\pidginrc.dll" |
|
13037
e5fd3ea2ad98
[gaim-migrate @ 15396]
Daniel Atallah <datallah@pidgin.im>
parents:
12922
diff
changeset
|
594 | Delete "$INSTDIR\plugins\psychic.dll" |
|
7600
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
595 | Delete "$INSTDIR\plugins\relnot.dll" |
|
23167
d542424833f9
applied changes from ae9d7912dfb7c1627441484bfe471dd4d370d346
Daniel Atallah <datallah@pidgin.im>
parents:
22947
diff
changeset
|
596 | Delete "$INSTDIR\plugins\sendbutton.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
597 | Delete "$INSTDIR\plugins\spellchk.dll" |
|
7352
715b973d34e2
[gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents:
7215
diff
changeset
|
598 | Delete "$INSTDIR\plugins\ssl-nss.dll" |
|
715b973d34e2
[gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents:
7215
diff
changeset
|
599 | Delete "$INSTDIR\plugins\ssl.dll" |
|
6476
92d08d220cd1
[gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents:
6447
diff
changeset
|
600 | Delete "$INSTDIR\plugins\statenotify.dll" |
|
8099
690e8ae9d03a
[gaim-migrate @ 8799]
Herman Bloggs <herman@bluedigits.com>
parents:
7924
diff
changeset
|
601 | Delete "$INSTDIR\plugins\tcl.dll" |
|
31102
0687ddc92313
Build the "Pidgin Theme Editor" plugin on Windows too.
Daniel Atallah <datallah@pidgin.im>
parents:
30884
diff
changeset
|
602 | Delete "$INSTDIR\plugins\themeedit.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
603 | Delete "$INSTDIR\plugins\ticker.dll" |
|
6476
92d08d220cd1
[gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents:
6447
diff
changeset
|
604 | Delete "$INSTDIR\plugins\timestamp.dll" |
|
12922
5c9dd678da15
[gaim-migrate @ 15275]
Daniel Atallah <datallah@pidgin.im>
parents:
12644
diff
changeset
|
605 | Delete "$INSTDIR\plugins\timestamp_format.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
606 | Delete "$INSTDIR\plugins\win2ktrans.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
607 | Delete "$INSTDIR\plugins\winprefs.dll" |
|
24195
c8c6f34b091d
Build the XMPP Console plugin by default on windows too.
Daniel Atallah <datallah@pidgin.im>
parents:
24191
diff
changeset
|
608 | Delete "$INSTDIR\plugins\xmppconsole.dll" |
|
27360
3c5ef391cd63
Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
27188
diff
changeset
|
609 | Delete "$INSTDIR\plugins\xmppdisco.dll" |
|
27665
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
27647
diff
changeset
|
610 | RMDir /r "$INSTDIR\plugins\perl" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
611 | RMDir "$INSTDIR\plugins" |
|
21395
e5bb2b0df509
Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21393
diff
changeset
|
612 | RMDir /r "$INSTDIR\sasl2" |
|
19851
48abddbe6b78
Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents:
19705
diff
changeset
|
613 | Delete "$INSTDIR\sounds\purple\alert.wav" |
|
48abddbe6b78
Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents:
19705
diff
changeset
|
614 | Delete "$INSTDIR\sounds\purple\login.wav" |
|
48abddbe6b78
Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents:
19705
diff
changeset
|
615 | Delete "$INSTDIR\sounds\purple\logout.wav" |
|
48abddbe6b78
Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents:
19705
diff
changeset
|
616 | Delete "$INSTDIR\sounds\purple\receive.wav" |
|
48abddbe6b78
Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents:
19705
diff
changeset
|
617 | Delete "$INSTDIR\sounds\purple\send.wav" |
|
48abddbe6b78
Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents:
19705
diff
changeset
|
618 | RMDir "$INSTDIR\sounds\purple" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
619 | RMDir "$INSTDIR\sounds" |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
620 | Delete "$INSTDIR\spellcheck\libenchant.dll" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
621 | Delete "$INSTDIR\spellcheck\libgtkspell-0.dll" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
622 | Delete "$INSTDIR\spellcheck\lib\enchant\libenchant_aspell.dll" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
623 | Delete "$INSTDIR\spellcheck\lib\enchant\libenchant_ispell.dll" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
624 | Delete "$INSTDIR\spellcheck\lib\enchant\libenchant_myspell.dll" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
625 | RMDir "$INSTDIR\spellcheck\lib\enchant" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
626 | RMDir "$INSTDIR\spellcheck\lib" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
627 | RMDir "$INSTDIR\spellcheck" |
|
15138
45cef2c7d3b6
[gaim-migrate @ 17860]
Daniel Atallah <datallah@pidgin.im>
parents:
15047
diff
changeset
|
628 | Delete "$INSTDIR\freebl3.dll" |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16305
diff
changeset
|
629 | Delete "$INSTDIR\libjabber.dll" |
|
29794
c2e688a6a2f5
Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <datallah@pidgin.im>
parents:
29766
diff
changeset
|
630 | Delete "$INSTDIR\libnspr4.dll" |
|
21395
e5bb2b0df509
Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21393
diff
changeset
|
631 | Delete "$INSTDIR\libmeanwhile-1.dll" |
|
15031
c45aa1667620
[gaim-migrate @ 17748]
Daniel Atallah <datallah@pidgin.im>
parents:
14929
diff
changeset
|
632 | Delete "$INSTDIR\liboscar.dll" |
|
29794
c2e688a6a2f5
Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <datallah@pidgin.im>
parents:
29766
diff
changeset
|
633 | Delete "$INSTDIR\libplc4.dll" |
|
c2e688a6a2f5
Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <datallah@pidgin.im>
parents:
29766
diff
changeset
|
634 | Delete "$INSTDIR\libplds4.dll" |
|
15816
6fb46b27dedc
More installer stuff.
Daniel Atallah <datallah@pidgin.im>
parents:
15815
diff
changeset
|
635 | Delete "$INSTDIR\libpurple.dll" |
|
21395
e5bb2b0df509
Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21393
diff
changeset
|
636 | Delete "$INSTDIR\libsasl.dll" |
|
e5bb2b0df509
Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21393
diff
changeset
|
637 | Delete "$INSTDIR\libsilc-1-1-2.dll" |
|
e5bb2b0df509
Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21393
diff
changeset
|
638 | Delete "$INSTDIR\libsilcclient-1-1-2.dll" |
|
29763
28f8c86acf66
Various win32 installer fixes
Daniel Atallah <datallah@pidgin.im>
parents:
29760
diff
changeset
|
639 | Delete "$INSTDIR\libxml2-2.dll" |
|
27647
acbefee0cd14
Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <datallah@pidgin.im>
parents:
27360
diff
changeset
|
640 | Delete "$INSTDIR\libymsg.dll" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
641 | Delete "$INSTDIR\nss3.dll" |
|
29794
c2e688a6a2f5
Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <datallah@pidgin.im>
parents:
29766
diff
changeset
|
642 | Delete "$INSTDIR\nssutil3.dll" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
643 | Delete "$INSTDIR\nssckbi.dll" |
|
21395
e5bb2b0df509
Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21393
diff
changeset
|
644 | Delete "$INSTDIR\pidgin.dll" |
|
15816
6fb46b27dedc
More installer stuff.
Daniel Atallah <datallah@pidgin.im>
parents:
15815
diff
changeset
|
645 | Delete "$INSTDIR\pidgin.exe" |
|
19668
2071903c58e4
Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents:
19627
diff
changeset
|
646 | Delete "$INSTDIR\smime3.dll" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
647 | Delete "$INSTDIR\softokn3.dll" |
|
29794
c2e688a6a2f5
Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <datallah@pidgin.im>
parents:
29766
diff
changeset
|
648 | Delete "$INSTDIR\sqlite3.dll" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
649 | Delete "$INSTDIR\ssl3.dll" |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
650 | Delete "$INSTDIR\${PIDGIN_UNINST_EXE}" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
651 | Delete "$INSTDIR\exchndl.dll" |
|
14798
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
652 | Delete "$INSTDIR\install.log" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
653 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
654 | ; Remove the debug symbols |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
655 | RMDir /r "$INSTDIR\pidgin-${PIDGIN_VERSION}-dbgsym" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
656 | |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
657 | ; Remove the local GTK+ copy (if we're not just upgrading) |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
658 | ${GetParameters} $R0 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
659 | ClearErrors |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
660 | ${GetOptions} "$R0" "/UPGRADE=" $R1 |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
661 | IfErrors +2 |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
662 | StrCmp $R1 "1" upgrade_done |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
663 | RMDir /r "$INSTDIR\Gtk" |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
664 | ; Remove the downloaded spellcheck dictionaries (if we're not just upgrading) |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
665 | RMDir /r "$INSTDIR\spellcheck" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
666 | upgrade_done: |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
667 | |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
668 | ;Try to remove Pidgin install dir (only if empty) |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
669 | RMDir "$INSTDIR" |
|
3853
510f497172b5
[gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents:
3849
diff
changeset
|
670 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
671 | ; Shortcuts.. |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
672 | Delete "$DESKTOP\Pidgin.lnk" |
|
25728
1985dd712828
Backport 1ae2b55502a0afd8f28918fc4726683c52e998e9 (#8985 - Remove Start Menu shortcut when unistalling)
Daniel Atallah <datallah@pidgin.im>
parents:
25672
diff
changeset
|
673 | Delete "$SMPROGRAMS\Pidgin.lnk" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
674 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
675 | Goto done |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
676 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
677 | cant_uninstall: |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
678 | MessageBox MB_OK $(PIDGINUNINSTALLERROR1) /SD IDOK |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
679 | Quit |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
680 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
681 | no_rights: |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
682 | MessageBox MB_OK $(PIDGINUNINSTALLERROR2) /SD IDOK |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
683 | Quit |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
684 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
685 | done: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
686 | SectionEnd ; end of uninstall section |
|
3853
510f497172b5
[gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents:
3849
diff
changeset
|
687 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
688 | ;-------------------------------- |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
689 | ;Descriptions |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
690 | !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
691 | !insertmacro MUI_DESCRIPTION_TEXT ${SecPidgin} \ |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
692 | $(PIDGINSECTIONDESCRIPTION) |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
693 | !insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} \ |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
694 | $(GTKSECTIONDESCRIPTION) |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
695 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
696 | !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} \ |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
697 | $(PIDGINSHORTCUTSSECTIONDESCRIPTION) |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
698 | !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} \ |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
699 | $(PIDGINDESKTOPSHORTCUTDESC) |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
700 | !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} \ |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
701 | $(PIDGINSTARTMENUSHORTCUTDESC) |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
702 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
703 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheck} \ |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
704 | $(PIDGINSPELLCHECKSECTIONDESCRIPTION) |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
705 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
706 | !insertmacro MUI_FUNCTION_DESCRIPTION_END |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
707 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
708 | ;-------------------------------- |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
709 | ;Functions |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
710 | |
|
15857
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
711 | ; Default the URI handler checkboxes if Pidgin is the current handler or if there is no handler |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
712 | Function SelectURIHandlerSelections |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
713 | Push $R0 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
714 | Push $R1 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
715 | Push $R2 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
716 | Push $R3 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
717 | |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
718 | ; Start with the first URI handler |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
719 | IntOp $R0 ${SecURIHandlers} + 1 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
720 | |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
721 | start: |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
722 | ; If it is the end of the section group, stop |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
723 | SectionGetFlags $R0 $R1 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
724 | IntOp $R2 $R1 & ${SF_SECGRPEND} |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
725 | IntCmp $R2 ${SF_SECGRPEND} done |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
726 | |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
727 | SectionGetText $R0 $R2 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
728 | ;Strip the trailing ':' |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
729 | StrLen $R3 $R2 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
730 | IntOp $R3 $R3 - 1 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
731 | StrCpy $R2 $R2 $R3 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
732 | |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
733 | ClearErrors |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
734 | ReadRegStr $R3 HKCR "$R2" "" |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
735 | IfErrors default_on ;there is no current handler |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
736 | |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
737 | Push $R2 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
738 | Call CheckIfPidginIsCurrentURIHandler |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
739 | Pop $R3 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
740 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
741 | ; If Pidgin isn't the current handler, we don't steal it automatically |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
742 | IntCmp $R3 0 end_loop |
|
15857
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
743 | |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
744 | ;We default the URI handler checkbox on |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
745 | default_on: |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
746 | IntOp $R1 $R1 | ${SF_SELECTED} ; Select |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
747 | SectionSetFlags $R0 $R1 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
748 | |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
749 | end_loop: |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
750 | IntOp $R0 $R0 + 1 ;Advance to the next section |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
751 | Goto start |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
752 | |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
753 | done: |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
754 | Pop $R3 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
755 | Pop $R2 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
756 | Pop $R1 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
757 | Pop $R0 |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
758 | FunctionEnd ;SelectURIHandlerSections |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
759 | |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
760 | ; Check if Pidgin is the current handler |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
761 | ; Returns a boolean on the stack |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
762 | !macro CheckIfPidginIsCurrentURIHandlerMacro UN |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
763 | Function ${UN}CheckIfPidginIsCurrentURIHandler |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
764 | Exch $R0 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
765 | ClearErrors |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
766 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
767 | ReadRegStr $R0 HKCR "$R0\shell\Open\command" "" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
768 | IfErrors 0 +3 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
769 | IntOp $R0 0 + 0 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
770 | Goto done |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
771 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
772 | !ifdef __UNINSTALL__ |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
773 | ${un.WordFind} "$R0" "pidgin.exe" "E+1{" $R0 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
774 | !else |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
775 | ${WordFind} "$R0" "pidgin.exe" "E+1{" $R0 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
776 | !endif |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
777 | IntOp $R0 0 + 1 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
778 | IfErrors 0 +2 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
779 | IntOp $R0 0 + 0 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
780 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
781 | done: |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
782 | Exch $R0 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
783 | FunctionEnd |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
784 | !macroend |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
785 | !insertmacro CheckIfPidginIsCurrentURIHandlerMacro "" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
786 | !insertmacro CheckIfPidginIsCurrentURIHandlerMacro "un." |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
787 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
788 | ; If Pidgin is the current URI handler for the specified protocol, remove it. |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
789 | Function un.UnregisterURIHandler |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
790 | Exch $R0 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
791 | Push $R1 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
792 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
793 | Push $R0 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
794 | Call un.CheckIfPidginIsCurrentURIHandler |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
795 | Pop $R1 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
796 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
797 | ; If Pidgin isn't the current handler, leave it as-is |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
798 | IntCmp $R1 0 done |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
799 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
800 | ;Unregister the URI handler |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
801 | DetailPrint "Unregistering $R0 URI Handler" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
802 | DeleteRegKey HKCR "$R0" |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
803 | |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
804 | done: |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
805 | Pop $R1 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
806 | Pop $R0 |
|
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
807 | FunctionEnd |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
808 | |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
809 | Function RegisterURIHandler |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
810 | Exch $R0 |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
811 | DetailPrint "Registering $R0 URI Handler" |
|
15857
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
812 | DeleteRegKey HKCR "$R0" |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
813 | WriteRegStr HKCR "$R0" "" "URL:$R0" |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
814 | WriteRegStr HKCR "$R0" "URL Protocol" "" |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
815 | WriteRegStr HKCR "$R0\DefaultIcon" "" "$INSTDIR\pidgin.exe" |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
816 | WriteRegStr HKCR "$R0\shell" "" "" |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
817 | WriteRegStr HKCR "$R0\shell\Open" "" "" |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
818 | WriteRegStr HKCR "$R0\shell\Open\command" "" "$INSTDIR\pidgin.exe --protocolhandler=%1" |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
819 | Pop $R0 |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
820 | FunctionEnd |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
821 | |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
822 | |
| 13392 | 823 | !macro CheckUserInstallRightsMacro UN |
| 824 | Function ${UN}CheckUserInstallRights | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
825 | Push $0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
826 | Push $1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
827 | ClearErrors |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
828 | UserInfo::GetName |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
829 | IfErrors Win9x |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
830 | Pop $0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
831 | UserInfo::GetAccountType |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
832 | Pop $1 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
833 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
834 | StrCmp $1 "Admin" 0 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
835 | StrCpy $1 "HKLM" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
836 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
837 | StrCmp $1 "Power" 0 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
838 | StrCpy $1 "HKLM" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
839 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
840 | StrCmp $1 "User" 0 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
841 | StrCpy $1 "HKCU" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
842 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
843 | StrCmp $1 "Guest" 0 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
844 | StrCpy $1 "NONE" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
845 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
846 | ; Unknown error |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
847 | StrCpy $1 "NONE" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
848 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
849 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
850 | Win9x: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
851 | StrCpy $1 "HKLM" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
852 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
853 | done: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
854 | Exch $1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
855 | Exch |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
856 | Pop $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
857 | FunctionEnd |
| 13392 | 858 | !macroend |
| 859 | !insertmacro CheckUserInstallRightsMacro "" | |
| 860 | !insertmacro CheckUserInstallRightsMacro "un." | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
861 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
862 | ; |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
863 | ; Usage: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
864 | ; Push $0 ; Path string |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
865 | ; Call VerifyDir |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
866 | ; Pop $0 ; 0 - Bad path 1 - Good path |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
867 | ; |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
868 | Function VerifyDir |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
869 | Exch $0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
870 | Push $1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
871 | Push $2 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
872 | Loop: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
873 | IfFileExists $0 dir_exists |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
874 | StrCpy $1 $0 ; save last |
|
14439
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
875 | ${GetParent} $0 $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
876 | StrLen $2 $0 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
877 | ; IfFileExists "C:" on xp returns true and on win2k returns false |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
878 | ; So we're done in such a case.. |
| 9960 | 879 | IntCmp $2 2 loop_done |
| 880 | ; GetParent of "C:" returns "" | |
| 881 | IntCmp $2 0 loop_done | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
882 | Goto Loop |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
883 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
884 | loop_done: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
885 | StrCpy $1 "$0\GaImFooB" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
886 | ; Check if we can create dir on this drive.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
887 | ClearErrors |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
888 | CreateDirectory $1 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
889 | IfErrors DirBad DirGood |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
890 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
891 | dir_exists: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
892 | ClearErrors |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
893 | FileOpen $1 "$0\pidginfoo.bar" w |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
894 | IfErrors PathBad PathGood |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
895 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
896 | DirGood: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
897 | RMDir $1 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
898 | Goto PathGood1 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
899 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
900 | DirBad: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
901 | RMDir $1 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
902 | Goto PathBad1 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
903 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
904 | PathBad: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
905 | FileClose $1 |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
906 | Delete "$0\pidginfoo.bar" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
907 | PathBad1: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
908 | StrCpy $0 "0" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
909 | Push $0 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
910 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
911 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
912 | PathGood: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
913 | FileClose $1 |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
914 | Delete "$0\pidginfoo.bar" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
915 | PathGood1: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
916 | StrCpy $0 "1" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
917 | Push $0 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
918 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
919 | done: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
920 | Exch 3 ; The top of the stack contains the output variable |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
921 | Pop $0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
922 | Pop $2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
923 | Pop $1 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
924 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
925 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
926 | Function .onVerifyInstDir |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
927 | Push $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
928 | Push $INSTDIR |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
929 | Call VerifyDir |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
930 | Pop $0 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
931 | StrCmp $0 "0" 0 dir_good |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
932 | Pop $0 |
|
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
933 | Abort |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
934 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
935 | dir_good: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
936 | Pop $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
937 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
938 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
939 | ; |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
940 | ; Usage: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
941 | ; Call DoWeNeedGtk |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
942 | ; First Pop: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
943 | ; 0 - We have the correct version |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
944 | ; 1 - We have an old version that should work, prompt user for optional upgrade |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
945 | ; 2 - We have an old version that needs to be upgraded |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
946 | ; 3 - We don't have Gtk+ at all |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
947 | ; |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
948 | Function DoWeNeedGtk |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
949 | Push $0 |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
950 | Push $1 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
951 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
952 | IfFileExists "$INSTDIR\Gtk\CONTENTS" +3 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
953 | Push "3" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
954 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
955 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
956 | ClearErrors |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
957 | ${ConfigRead} "$INSTDIR\Gtk\CONTENTS" "Bundle Version " $0 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
958 | IfErrors 0 +3 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
959 | Push "3" |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
960 | Goto done |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
961 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
962 | ${VersionCompare} ${GTK_INSTALL_VERSION} $0 $1 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
963 | IntCmp $1 1 +3 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
964 | Push "0" ; Have a good version |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
965 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
966 | |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
967 | ${VersionCompare} ${GTK_MIN_VERSION} $0 $1 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
968 | IntCmp $1 1 +3 |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
969 | Push "1" ; Optional Upgrade |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
970 | Goto done |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
971 | Push "2" ; Mandatory Upgrade |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
972 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
973 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
974 | done: |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
975 | ; The item on the stack is what we want to return |
|
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
976 | Exch |
|
16602
e26771ee55df
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 <datallah@pidgin.im>
parents:
16309
diff
changeset
|
977 | Pop $1 |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
978 | Exch |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
979 | Pop $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
980 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
981 | |
| 13392 | 982 | |
| 983 | !macro RunCheckMacro UN | |
| 984 | Function ${UN}RunCheck | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
985 | Push $R0 |
|
21971
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
986 | Push $R1 |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
987 | |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
988 | IntOp $R1 0 + 0 |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
989 | retry_runcheck: |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
990 | ; Close the Handle (needed if we're retrying) |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
991 | IntCmp $R1 0 +2 |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
992 | System::Call 'kernel32::CloseHandle(i $R1) i .R1' |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
993 | System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_is_running") i .R1 ?e' |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
994 | Pop $R0 |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
995 | IntCmp $R0 0 +3 ;This could check for ERROR_ALREADY_EXISTS(183), but lets just assume |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
996 | MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(PIDGINISRUNNING) /SD IDCANCEL IDRETRY retry_runcheck |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
997 | Abort |
|
21971
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
998 | |
|
22236
d6762c285789
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 <datallah@pidgin.im>
parents:
22174
diff
changeset
|
999 | ; Close the Handle (If we don't do this, the uninstaller called from within will fail) |
|
d6762c285789
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 <datallah@pidgin.im>
parents:
22174
diff
changeset
|
1000 | ; This is not optimal because there is a (small) window of time when a new process could start |
|
d6762c285789
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 <datallah@pidgin.im>
parents:
22174
diff
changeset
|
1001 | System::Call 'kernel32::CloseHandle(i $R1) i .R1' |
|
d6762c285789
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 <datallah@pidgin.im>
parents:
22174
diff
changeset
|
1002 | |
|
21971
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
1003 | Pop $R1 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1004 | Pop $R0 |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1005 | FunctionEnd |
| 13392 | 1006 | !macroend |
| 1007 | !insertmacro RunCheckMacro "" | |
| 1008 | !insertmacro RunCheckMacro "un." | |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1009 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1010 | Function .onInit |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1011 | Push $R0 |
|
21418
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1012 | Push $R1 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1013 | Push $R2 |
|
25550
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1014 | Push $R3 ; This is only used for the Parameters throughout the function |
|
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1015 | |
|
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1016 | ${GetParameters} $R3 |
|
21971
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
1017 | |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
1018 | IntOp $R1 0 + 0 |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
1019 | retry_runcheck: |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
1020 | ; Close the Handle (needed if we're retrying) |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
1021 | IntCmp $R1 0 +2 |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
1022 | System::Call 'kernel32::CloseHandle(i $R1) i .R1' |
|
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
1023 | System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_installer_running") i .R1 ?e' |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1024 | Pop $R0 |
|
21971
e00e0d55d129
Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents:
21418
diff
changeset
|
1025 | IntCmp $R0 0 +3 ;This could check for ERROR_ALREADY_EXISTS(183), but lets just assume |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
1026 | MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(INSTALLERISRUNNING) /SD IDCANCEL IDRETRY retry_runcheck |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1027 | Abort |
|
25550
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1028 | |
|
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1029 | ; Allow installer to run even if pidgin is running via "/NOPIDGINRUNCHECK=1" |
|
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1030 | ; This is useful for testing |
|
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1031 | ClearErrors |
|
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1032 | ${GetOptions} "$R3" "/NOPIDGINRUNCHECK=" $R1 |
|
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1033 | IfErrors 0 +2 |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1034 | Call RunCheck |
|
25550
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1035 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
1036 | StrCpy $name "Pidgin ${PIDGIN_VERSION}" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1037 | |
| 15818 | 1038 | ;Try to copy the old Gaim installer Lang Reg. key |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
1039 | ;(remove it after we're done to prevent this being done more than once) |
| 15818 | 1040 | ClearErrors |
|
30259
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1041 | ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" |
| 15818 | 1042 | IfErrors 0 +5 |
| 1043 | ClearErrors | |
|
30259
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1044 | ReadRegStr $R0 HKCU "${OLD_GAIM_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
1045 | IfErrors +3 |
|
30259
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1046 | DeleteRegValue HKCU "${OLD_GAIM_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" |
|
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1047 | WriteRegStr HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" "$R0" |
| 15818 | 1048 | |
|
29639
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
1049 | ${MementoSectionRestore} |
|
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
1050 | |
|
15857
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
1051 | ;Preselect the URI handlers as appropriate |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
1052 | Call SelectURIHandlerSelections |
|
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
1053 | |
|
18671
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1054 | ;Preselect the "shortcuts" checkboxes according to the previous installation |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1055 | ClearErrors |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1056 | ;Make sure that there was a previous installation |
|
30259
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1057 | ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" |
|
18671
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1058 | IfErrors done_preselecting_shortcuts |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1059 | ;Does the Desktop shortcut exist? |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1060 | GetFileTime "$DESKTOP\Pidgin.lnk" $R0 $R0 |
|
19414
e96cbe3a659b
New Persian win32 installer translation from Elnaz Sarbar. Fixes 2273.
Daniel Atallah <datallah@pidgin.im>
parents:
18671
diff
changeset
|
1061 | IfErrors +1 +5 |
|
18671
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1062 | ClearErrors |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1063 | SetShellVarContext "all" |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1064 | GetFileTime "$DESKTOP\Pidgin.lnk" $R0 $R0 |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1065 | IfErrors preselect_startmenu_shortcut ;Desktop Shortcut if off by default |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1066 | !insertmacro SelectSection ${SecDesktopShortcut} |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1067 | preselect_startmenu_shortcut: |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1068 | ;Reset ShellVarContext because we may have changed it |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1069 | SetShellVarContext "current" |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1070 | ClearErrors |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1071 | ;Does the StartMenu shortcut exist? |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1072 | GetFileTime "$SMPROGRAMS\Pidgin.lnk" $R0 $R0 |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1073 | IfErrors +1 done_preselecting_shortcuts ;StartMenu Shortcut is on by default |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1074 | ClearErrors |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1075 | SetShellVarContext "all" |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1076 | GetFileTime "$SMPROGRAMS\Pidgin.lnk" $R0 $R0 |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1077 | IfErrors +1 done_preselecting_shortcuts ;StartMenu Shortcut is on by default |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1078 | !insertmacro UnselectSection ${SecStartMenuShortcut} |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1079 | done_preselecting_shortcuts: |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1080 | ;Reset ShellVarContext because we may have changed it |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1081 | SetShellVarContext "current" |
|
1d1c09b15a12
Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents:
17752
diff
changeset
|
1082 | |
|
14439
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
1083 | ClearErrors |
|
25550
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1084 | ${GetOptions} "$R3" "/L=" $R1 |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
1085 | IfErrors +3 |
|
21418
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1086 | StrCpy $LANGUAGE $R1 |
|
14929
a71c59193f9d
[gaim-migrate @ 17636]
Daniel Atallah <datallah@pidgin.im>
parents:
14887
diff
changeset
|
1087 | Goto skip_lang |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1088 | |
|
7600
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1089 | ; Select Language |
|
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1090 | ; Display Language selection dialog |
|
28562
624fed1d4f8e
Fix a silly regression that I introduced in 449a0d08f21daa4dbd903ee361d544ae7703ce24 where the win32 installer language selection would no longer work correctly. Fixes #10243.
Daniel Atallah <datallah@pidgin.im>
parents:
28381
diff
changeset
|
1091 | !define MUI_LANGDLL_ALWAYSSHOW |
|
7600
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1092 | !insertmacro MUI_LANGDLL_DISPLAY |
|
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1093 | skip_lang: |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1094 | |
|
21418
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1095 | ClearErrors |
|
25550
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1096 | ${GetOptions} "$R3" "/DS=" $R1 |
|
22174
6069ae2cd571
Fix an issue where the Start Menu shortcut wasn't selected by default when not installed. Fixes #4489.
Daniel Atallah <datallah@pidgin.im>
parents:
22048
diff
changeset
|
1097 | IfErrors +8 |
|
21418
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1098 | SectionGetFlags ${SecDesktopShortcut} $R2 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1099 | StrCmp "1" $R1 0 +2 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1100 | IntOp $R2 $R2 | ${SF_SELECTED} |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1101 | StrCmp "0" $R1 0 +3 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1102 | IntOp $R1 ${SF_SELECTED} ~ |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1103 | IntOp $R2 $R2 & $R1 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1104 | SectionSetFlags ${SecDesktopShortcut} $R2 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1105 | |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1106 | ClearErrors |
|
25550
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1107 | ${GetOptions} "$R3" "/SMS=" $R1 |
|
22174
6069ae2cd571
Fix an issue where the Start Menu shortcut wasn't selected by default when not installed. Fixes #4489.
Daniel Atallah <datallah@pidgin.im>
parents:
22048
diff
changeset
|
1108 | IfErrors +8 |
|
21418
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1109 | SectionGetFlags ${SecStartMenuShortcut} $R2 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1110 | StrCmp "1" $R1 0 +2 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1111 | IntOp $R2 $R2 | ${SF_SELECTED} |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1112 | StrCmp "0" $R1 0 +3 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1113 | IntOp $R1 ${SF_SELECTED} ~ |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1114 | IntOp $R2 $R2 & $R1 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1115 | SectionSetFlags ${SecStartMenuShortcut} $R2 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1116 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1117 | ; If install path was set on the command, use it. |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1118 | StrCmp $INSTDIR "" 0 instdir_done |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1119 | |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
1120 | ; If pidgin or gaim is currently installed, we should default to where it is currently installed |
|
10511
0a0bd0d33904
[gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents:
10212
diff
changeset
|
1121 | ClearErrors |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
1122 | ReadRegStr $INSTDIR HKCU "${PIDGIN_REG_KEY}" "" |
|
10511
0a0bd0d33904
[gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents:
10212
diff
changeset
|
1123 | IfErrors +2 |
|
0a0bd0d33904
[gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents:
10212
diff
changeset
|
1124 | StrCmp $INSTDIR "" 0 instdir_done |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
1125 | ClearErrors |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
1126 | ReadRegStr $INSTDIR HKLM "${PIDGIN_REG_KEY}" "" |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
1127 | IfErrors +2 |
|
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
1128 | StrCmp $INSTDIR "" 0 instdir_done |
|
15857
bcde5b8d9b0d
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 <datallah@pidgin.im>
parents:
15856
diff
changeset
|
1129 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1130 | Call CheckUserInstallRights |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1131 | Pop $R0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1132 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1133 | StrCmp $R0 "HKLM" 0 user_dir |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
1134 | StrCpy $INSTDIR "$PROGRAMFILES\Pidgin" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1135 | Goto instdir_done |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1136 | user_dir: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1137 | Push $SMPROGRAMS |
|
14439
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
1138 | ${GetParent} $SMPROGRAMS $R2 |
|
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
1139 | ${GetParent} $R2 $R2 |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
1140 | StrCpy $INSTDIR "$R2\Pidgin" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1141 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1142 | instdir_done: |
|
30259
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1143 | ;LogSet on |
|
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1144 | |
|
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1145 | ; Try to select a translation and a dictionary for the currently selected Language |
|
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1146 | Call SelectTranslationForCurrentLanguage |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1147 | |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1148 | ;Mark the dictionaries that are already installed as readonly |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1149 | Call SelectAndDisableInstalledDictionaries |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1150 | |
|
25550
2354ce28434c
Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents:
25517
diff
changeset
|
1151 | Pop $R3 |
|
21418
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1152 | Pop $R2 |
|
e1291490635e
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 <datallah@pidgin.im>
parents:
21395
diff
changeset
|
1153 | Pop $R1 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1154 | Pop $R0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1155 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1156 | |
|
28381
449a0d08f21d
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 <datallah@pidgin.im>
parents:
28136
diff
changeset
|
1157 | Function .onInstSuccess |
|
449a0d08f21d
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 <datallah@pidgin.im>
parents:
28136
diff
changeset
|
1158 | |
|
29639
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
1159 | ${MementoSectionSave} |
|
28381
449a0d08f21d
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 <datallah@pidgin.im>
parents:
28136
diff
changeset
|
1160 | |
|
449a0d08f21d
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 <datallah@pidgin.im>
parents:
28136
diff
changeset
|
1161 | FunctionEnd |
|
449a0d08f21d
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 <datallah@pidgin.im>
parents:
28136
diff
changeset
|
1162 | |
|
29639
7266983d565c
Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents:
29635
diff
changeset
|
1163 | |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
1164 | Function un.onInit |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
1165 | |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1166 | Call un.RunCheck |
|
15805
a80eb333bae9
Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents:
15425
diff
changeset
|
1167 | StrCpy $name "Pidgin ${PIDGIN_VERSION}" |
|
22947
163e225750ad
Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents:
22236
diff
changeset
|
1168 | ;LogSet on |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
1169 | |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
1170 | ; Get stored language preference |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
1171 | !insertmacro MUI_UNGETLANGUAGE |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1172 | |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
1173 | FunctionEnd |
|
6233
d12a0c4e40a0
[gaim-migrate @ 6726]
Herman Bloggs <herman@bluedigits.com>
parents:
6159
diff
changeset
|
1174 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1175 | ; Page enter and exit functions.. |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1176 | |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1177 | Function preWelcomePage |
|
16602
e26771ee55df
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 <datallah@pidgin.im>
parents:
16309
diff
changeset
|
1178 | Push $R0 |
|
e26771ee55df
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 <datallah@pidgin.im>
parents:
16309
diff
changeset
|
1179 | Push $R1 |
|
e26771ee55df
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 <datallah@pidgin.im>
parents:
16309
diff
changeset
|
1180 | |
|
29766
540e86343b7e
Various installer bug fixes
Daniel Atallah <datallah@pidgin.im>
parents:
29763
diff
changeset
|
1181 | !ifdef OFFLINE_INSTALLER |
|
540e86343b7e
Various installer bug fixes
Daniel Atallah <datallah@pidgin.im>
parents:
29763
diff
changeset
|
1182 | !insertmacro SelectSection ${SecDebugSymbols} |
|
540e86343b7e
Various installer bug fixes
Daniel Atallah <datallah@pidgin.im>
parents:
29763
diff
changeset
|
1183 | !endif |
|
540e86343b7e
Various installer bug fixes
Daniel Atallah <datallah@pidgin.im>
parents:
29763
diff
changeset
|
1184 | |
|
16602
e26771ee55df
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 <datallah@pidgin.im>
parents:
16309
diff
changeset
|
1185 | Call DoWeNeedGtk |
|
30260
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1186 | Pop $CURRENT_GTK_STATE |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1187 | StrCpy $WARNED_GTK_STATE "0" |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1188 | IntCmp $CURRENT_GTK_STATE 1 done gtk_not_mandatory |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1189 | ; Make the GTK+ Section RO if it is required. (it is required only if you have an existing version that is too old) |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1190 | StrCmp $CURRENT_GTK_STATE "2" 0 done |
|
16602
e26771ee55df
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 <datallah@pidgin.im>
parents:
16309
diff
changeset
|
1191 | !insertmacro SetSectionFlag ${SecGtk} ${SF_RO} |
|
29634
80dbf6f777c4
Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents:
29633
diff
changeset
|
1192 | Goto done |
|
16602
e26771ee55df
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 <datallah@pidgin.im>
parents:
16309
diff
changeset
|
1193 | gtk_not_mandatory: |
|
24249
c49ccf386628
Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <datallah@pidgin.im>
parents:
24248
diff
changeset
|
1194 | ; Don't select the GTK+ section if we already have this version or newer installed |
|
c49ccf386628
Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <datallah@pidgin.im>
parents:
24248
diff
changeset
|
1195 | !insertmacro UnselectSection ${SecGtk} |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1196 | |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1197 | done: |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1198 | Pop $R1 |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1199 | Pop $R0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1200 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1201 | |
|
30260
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1202 | ; If the GTK+ Section has been unselected and there isn't a compatible GTK+ already, confirm |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1203 | Function .onSelChange |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1204 | Push $R0 |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1205 | |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1206 | SectionGetFlags ${SecGtk} $R0 |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1207 | IntOp $R0 $R0 & ${SF_SELECTED} |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1208 | ; If the Gtk Section is currently selected, reset the "Warned" flag |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1209 | StrCmp $R0 "${SF_SELECTED}" 0 +3 |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1210 | StrCpy $WARNED_GTK_STATE "0" |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1211 | Goto done |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1212 | |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1213 | ; If we've already warned the user, don't warn them again |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1214 | StrCmp $WARNED_GTK_STATE "1" done |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1215 | IntCmp $CURRENT_GTK_STATE 1 done done 0 |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1216 | StrCpy $WARNED_GTK_STATE "1" |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
1217 | MessageBox MB_YESNO $(PIDGINPROMPTFORCENOGTK) /SD IDNO IDYES done |
|
30260
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1218 | !insertmacro SelectSection ${SecGtk} |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1219 | |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1220 | done: |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1221 | Pop $R0 |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1222 | FunctionEnd |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1223 | |
|
30259
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1224 | Function SelectTranslationForCurrentLanguage |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
1225 | !insertmacro SELECT_TRANSLATION_FUNCTION |
|
30259
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1226 | FunctionEnd |
|
01eb5d70e51a
Automatically select the translation corresponding to the installer language.
Daniel Atallah <datallah@pidgin.im>
parents:
29818
diff
changeset
|
1227 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1228 | ; SpellChecker Related Functions |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1229 | ;------------------------------- |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1230 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1231 | ; Select and Disable any Sections that have currently installed dictionaries |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1232 | !macro CHECK_SPELLCHECK_SECTION lang |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1233 | ;Advance to the next (correct) section index |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1234 | IntOp $R0 $R0 + 1 |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1235 | IfFileExists "$INSTDIR\spellcheck\share\enchant\myspell\${lang}.dic" 0 done_${lang} |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1236 | SectionGetFlags $R0 $R1 |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1237 | IntOp $R1 $R1 | ${SF_RO} ; Mark Readonly |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1238 | IntOp $R1 $R1 | ${SF_SELECTED} ; Select |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1239 | SectionSetFlags $R0 $R1 |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1240 | done_${lang}: |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1241 | !macroend |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1242 | Function SelectAndDisableInstalledDictionaries |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1243 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1244 | Push $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1245 | |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1246 | !insertmacro SetSectionFlag ${SecSpellCheck} ${SF_RO} |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1247 | !insertmacro UnselectSection ${SecSpellCheck} |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1248 | |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1249 | IntOp $R0 ${SecSpellCheck} + 0 |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1250 | !include "pidgin-spellcheck-preselect.nsh" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1251 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1252 | Pop $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1253 | Pop $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1254 | FunctionEnd |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1255 | |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1256 | Function InstallDict |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1257 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1258 | Exch |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1259 | Pop $R0 ;This is the language code |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1260 | Push $R1 |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1261 | Exch 2 |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1262 | Pop $R1 ;This is the language file |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1263 | Push $R2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1264 | Push $R3 |
|
30260
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1265 | Push $R4 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1266 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1267 | ClearErrors |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1268 | IfFileExists "$INSTDIR\spellcheck\share\enchant\myspell\$R0.dic" installed |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1269 | |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1270 | InitPluginsDir |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1271 | |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1272 | ; We need to download and install dictionary |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1273 | StrCpy $R2 "$PLUGINSDIR\$R1" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1274 | StrCpy $R3 "${SPELL_DOWNLOAD_URL}/$R1" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1275 | DetailPrint "Downloading the $R0 Dictionary... ($R3)" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1276 | retry: |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1277 | NSISdl::download /TIMEOUT=10000 "$R3" "$R2" |
|
30260
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1278 | Pop $R4 |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1279 | StrCmp $R4 "cancel" done |
|
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1280 | StrCmp $R4 "success" +3 |
|
30285
33c8197dc6b6
Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents:
30260
diff
changeset
|
1281 | MessageBox MB_RETRYCANCEL "$(PIDGINSPELLCHECKERROR)" /SD IDCANCEL IDRETRY retry IDCANCEL done |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1282 | Goto done |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1283 | SetOutPath "$INSTDIR\spellcheck\share\enchant\myspell" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1284 | nsisunz::UnzipToLog "$R2" "$OUTDIR" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1285 | SetOutPath "$INSTDIR" |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1286 | Pop $R3 |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1287 | StrCmp $R3 "success" installed |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1288 | DetailPrint "$R3" ;print error message to log |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1289 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1290 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1291 | installed: ;The dictionary is currently installed, no error message |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1292 | DetailPrint "$R0 Dictionary is installed" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1293 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1294 | done: |
|
30260
a2765eb04fde
Allow the GTK+ Runtime to be unselected when there is no existing runtime
Daniel Atallah <datallah@pidgin.im>
parents:
30259
diff
changeset
|
1295 | Pop $R4 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1296 | Pop $R3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1297 | Pop $R2 |
|
29818
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1298 | Pop $R0 |
|
ba5a3e226f5d
Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
1299 | Exch $R1 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1300 | FunctionEnd |