Fri, 16 Mar 2007 02:10:25 +0000
Add support for registering URI handlers to the windows installer.
|
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 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
5 | ; NOTE: this .NSI script is intended for NSIS 2.08 |
|
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 |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
11 | Var GTK_FOLDER |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
12 | Var GTK_THEME_SEL |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
13 | Var ISSILENT |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
14 | Var STARTUP_RUN_KEY |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
15 | Var SPELLCHECK_SEL |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
16 | |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
17 | ;-------------------------------- |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
18 | ;Configuration |
| 3630 | 19 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
20 | ;The name var is set in .onInit |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
21 | Name $name |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
22 | |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
23 | !ifdef WITH_GTK |
|
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
|
24 | OutFile "pidgin-${PIDGIN_VERSION}.exe" |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
25 | !else |
|
5931
6bd53176fdcf
[gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents:
5396
diff
changeset
|
26 | !ifdef DEBUG |
|
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
|
27 | OutFile "pidgin-${PIDGIN_VERSION}-debug.exe" |
|
5931
6bd53176fdcf
[gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents:
5396
diff
changeset
|
28 | !else |
|
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
|
29 | OutFile "pidgin-${PIDGIN_VERSION}-no-gtk.exe" |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
30 | !endif |
|
5931
6bd53176fdcf
[gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents:
5396
diff
changeset
|
31 | !endif |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
32 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
33 | SetCompressor /SOLID lzma |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
34 | ShowInstDetails show |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
35 | ShowUninstDetails show |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
36 | SetDateSave on |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
37 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
38 | ; $name and $INSTDIR are set in .onInit function.. |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
39 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
40 | !include "MUI.nsh" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
41 | !include "Sections.nsh" |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
42 | |
|
14439
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
43 | !include "FileFunc.nsh" |
|
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
44 | !insertmacro GetParameters |
|
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
45 | !insertmacro GetOptions |
|
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
46 | !insertmacro GetParent |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
47 | |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
48 | !include "WordFunc.nsh" |
|
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
49 | !insertmacro VersionCompare |
|
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
50 | |
|
14798
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
51 | !include "TextFunc.nsh" |
|
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
52 | !insertmacro ConfigWriteS |
|
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
53 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
54 | ;-------------------------------- |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
55 | ;Defines |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
56 | |
|
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
|
57 | !define PIDGIN_NSIS_INCLUDE_PATH "." |
|
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 | !define PIDGIN_INSTALLER_DEPS "..\..\..\..\win32-dev\pidgin-inst-deps" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
59 | |
|
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
|
60 | ; 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
|
61 | !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
|
62 | !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
|
63 | !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
|
64 | |
|
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 | !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
|
66 | !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
|
67 | |
|
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 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
|
69 | !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
|
70 | !define PIDGIN_UNINST_EXE "pidgin-uninst.exe" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
71 | |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
72 | !define GTK_MIN_VERSION "2.6.10" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
73 | !define GTK_REG_KEY "SOFTWARE\GTK\2.0" |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
74 | !define PERL_REG_KEY "SOFTWARE\Perl" |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
75 | !define PERL_DLL "perl58.dll" |
|
11260
963271ddae2b
[gaim-migrate @ 13437]
Steve Láposi <ronin_hun@users.sourceforge.net>
parents:
11103
diff
changeset
|
76 | !define GTK_DEFAULT_INSTALL_PATH "$COMMONFILES\GTK\2.0" |
|
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
|
77 | !define GTK_RUNTIME_INSTALLER "..\..\..\..\gtk_installer\gtk-runtime*.exe" |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
78 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
79 | !define ASPELL_REG_KEY "SOFTWARE\Aspell" |
|
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
|
80 | !define DOWNLOADER_URL "http://www.pidgin.im/win32/download_redir.php" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
81 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
82 | ;-------------------------------- |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
83 | ;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
|
84 | 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
|
85 | 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
|
86 | 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
|
87 | VIAddVersionKey "ProductVersion" "${PIDGIN_VERSION}" |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
88 | VIAddVersionKey "LegalCopyright" "" |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
89 | !ifdef WITH_GTK |
|
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
|
90 | VIAddVersionKey "FileDescription" "Pidgin Installer (w/ GTK+ Installer)" |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
91 | !else |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
92 | !ifdef DEBUG |
|
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
|
93 | VIAddVersionKey "FileDescription" "Pidgin Installer (Debug Version)" |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
94 | !else |
|
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
|
95 | VIAddVersionKey "FileDescription" "Pidgin Installer (w/o GTK+ Installer)" |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
96 | !endif |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
97 | !endif |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
98 | |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
99 | ;-------------------------------- |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
100 | ;Modern UI Configuration |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
101 | |
|
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
|
102 | !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
|
103 | !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
|
104 | !define MUI_WELCOMEFINISHPAGE_BITMAP ".\pixmaps\pidgin-intro.bmp" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
105 | !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
|
106 | !define MUI_HEADERIMAGE_BITMAP ".\pixmaps\pidgin-header.bmp" |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
107 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
108 | ; Alter License section |
|
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
|
109 | !define MUI_LICENSEPAGE_BUTTON $(PIDGIN_LICENSE_BUTTON) |
|
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
|
110 | !define MUI_LICENSEPAGE_TEXT_BOTTOM $(PIDGIN_LICENSE_BOTTOM_TEXT) |
|
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
|
111 | |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
112 | !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
|
113 | !define MUI_LANGDLL_REGISTRY_KEY ${PIDGIN_REG_KEY} |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
114 | !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language" |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
115 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
116 | !define MUI_COMPONENTSPAGE_SMALLDESC |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
117 | !define MUI_ABORTWARNING |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
118 | |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
119 | ;Finish Page config |
|
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
|
120 | !define MUI_FINISHPAGE_RUN "$INSTDIR\pidgin.exe" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
121 | !define MUI_FINISHPAGE_RUN_NOTCHECKED |
|
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_LINK $(PIDGIN_FINISH_VISIT_WEB_SITE) |
|
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
|
123 | !define MUI_FINISHPAGE_LINK_LOCATION "http://www.pidgin.im/win32" |
| 3630 | 124 | |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
125 | ;-------------------------------- |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
126 | ;Pages |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
127 | |
|
7600
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
128 | !define MUI_PAGE_CUSTOMFUNCTION_PRE preWelcomePage |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
129 | !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
|
130 | !insertmacro MUI_PAGE_LICENSE "../../../COPYING" |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
131 | !insertmacro MUI_PAGE_COMPONENTS |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
132 | |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
133 | !ifdef WITH_GTK |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
134 | ; GTK+ install dir page |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
135 | !define MUI_PAGE_CUSTOMFUNCTION_PRE preGtkDirPage |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
136 | !define MUI_PAGE_CUSTOMFUNCTION_LEAVE postGtkDirPage |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
137 | !define MUI_DIRECTORYPAGE_VARIABLE $GTK_FOLDER |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
138 | !insertmacro MUI_PAGE_DIRECTORY |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
139 | !endif |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
140 | |
|
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
|
141 | ; Pidgin install dir page |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
142 | !insertmacro MUI_PAGE_DIRECTORY |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
143 | |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
144 | !insertmacro MUI_PAGE_INSTFILES |
|
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
145 | !insertmacro MUI_PAGE_FINISH |
|
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
146 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
147 | !insertmacro MUI_UNPAGE_WELCOME |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
148 | !insertmacro MUI_UNPAGE_CONFIRM |
|
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
149 | !insertmacro MUI_UNPAGE_INSTFILES |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
150 | !insertmacro MUI_UNPAGE_FINISH |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
151 | |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
152 | ;-------------------------------- |
|
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
153 | ;Languages |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
154 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
155 | ;; English goes first because its the default. The rest are |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
156 | ;; in alphabetical order (at least the strings actually displayed |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
157 | ;; will be). |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
158 | |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
159 | !insertmacro MUI_LANGUAGE "English" |
|
6913
63ece2ac54b6
[gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents:
6912
diff
changeset
|
160 | |
|
10095
c1ec2845a7c7
[gaim-migrate @ 11114]
Herman Bloggs <herman@bluedigits.com>
parents:
9960
diff
changeset
|
161 | !insertmacro MUI_LANGUAGE "Albanian" |
|
6913
63ece2ac54b6
[gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents:
6912
diff
changeset
|
162 | !insertmacro MUI_LANGUAGE "Bulgarian" |
|
9956
a9ee0f79ffc7
[gaim-migrate @ 10856]
Herman Bloggs <herman@bluedigits.com>
parents:
9902
diff
changeset
|
163 | !insertmacro MUI_LANGUAGE "Catalan" |
|
7626
f75416e3937c
[gaim-migrate @ 8250]
Herman Bloggs <herman@bluedigits.com>
parents:
7600
diff
changeset
|
164 | !insertmacro MUI_LANGUAGE "Czech" |
|
7924
ec3b83b9c56b
[gaim-migrate @ 8593]
Herman Bloggs <herman@bluedigits.com>
parents:
7626
diff
changeset
|
165 | !insertmacro MUI_LANGUAGE "Danish" |
|
6913
63ece2ac54b6
[gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents:
6912
diff
changeset
|
166 | !insertmacro MUI_LANGUAGE "SimpChinese" |
|
63ece2ac54b6
[gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents:
6912
diff
changeset
|
167 | !insertmacro MUI_LANGUAGE "TradChinese" |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
168 | !insertmacro MUI_LANGUAGE "German" |
|
7575
35d089f53176
[gaim-migrate @ 8191]
Herman Bloggs <herman@bluedigits.com>
parents:
7572
diff
changeset
|
169 | !insertmacro MUI_LANGUAGE "Spanish" |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
170 | !insertmacro MUI_LANGUAGE "French" |
|
8388
243f2eeca134
[gaim-migrate @ 9116]
Herman Bloggs <herman@bluedigits.com>
parents:
8183
diff
changeset
|
171 | !insertmacro MUI_LANGUAGE "Hebrew" |
|
6913
63ece2ac54b6
[gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents:
6912
diff
changeset
|
172 | !insertmacro MUI_LANGUAGE "Italian" |
|
8183
7615409e7c1c
[gaim-migrate @ 8902]
Herman Bloggs <herman@bluedigits.com>
parents:
8180
diff
changeset
|
173 | !insertmacro MUI_LANGUAGE "Japanese" |
|
6913
63ece2ac54b6
[gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents:
6912
diff
changeset
|
174 | !insertmacro MUI_LANGUAGE "Korean" |
|
13182
c734956839ff
[gaim-migrate @ 15544]
Daniel Atallah <datallah@pidgin.im>
parents:
13067
diff
changeset
|
175 | !insertmacro MUI_LANGUAGE "Kurdish" |
|
13564
0bde4529a7d8
[gaim-migrate @ 15942]
Daniel Atallah <datallah@pidgin.im>
parents:
13563
diff
changeset
|
176 | !insertmacro MUI_LANGUAGE "Lithuanian" |
|
6913
63ece2ac54b6
[gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents:
6912
diff
changeset
|
177 | !insertmacro MUI_LANGUAGE "Hungarian" |
|
63ece2ac54b6
[gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents:
6912
diff
changeset
|
178 | !insertmacro MUI_LANGUAGE "Dutch" |
|
8567
80fd332369b9
[gaim-migrate @ 9314]
Herman Bloggs <herman@bluedigits.com>
parents:
8388
diff
changeset
|
179 | !insertmacro MUI_LANGUAGE "Norwegian" |
|
8126
d1d67e1f4f55
[gaim-migrate @ 8830]
Herman Bloggs <herman@bluedigits.com>
parents:
8099
diff
changeset
|
180 | !insertmacro MUI_LANGUAGE "Polish" |
|
6290
ab8d99eec250
[gaim-migrate @ 6789]
Herman Bloggs <herman@bluedigits.com>
parents:
6277
diff
changeset
|
181 | !insertmacro MUI_LANGUAGE "PortugueseBR" |
|
7215
69a142e6ea66
[gaim-migrate @ 7784]
Herman Bloggs <herman@bluedigits.com>
parents:
7214
diff
changeset
|
182 | !insertmacro MUI_LANGUAGE "Portuguese" |
|
6951
81cb641692cf
[gaim-migrate @ 7498]
Herman Bloggs <herman@bluedigits.com>
parents:
6948
diff
changeset
|
183 | !insertmacro MUI_LANGUAGE "Romanian" |
|
8099
690e8ae9d03a
[gaim-migrate @ 8799]
Herman Bloggs <herman@bluedigits.com>
parents:
7924
diff
changeset
|
184 | !insertmacro MUI_LANGUAGE "Russian" |
|
6913
63ece2ac54b6
[gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents:
6912
diff
changeset
|
185 | !insertmacro MUI_LANGUAGE "Serbian" |
|
9561
91d63f61aa59
[gaim-migrate @ 10397]
Herman Bloggs <herman@bluedigits.com>
parents:
9139
diff
changeset
|
186 | !insertmacro MUI_LANGUAGE "Slovak" |
|
9115
4afc232900e5
[gaim-migrate @ 9892]
Herman Bloggs <herman@bluedigits.com>
parents:
8567
diff
changeset
|
187 | !insertmacro MUI_LANGUAGE "Slovenian" |
|
8179
2d98de8b85a7
[gaim-migrate @ 8896]
Herman Bloggs <herman@bluedigits.com>
parents:
8178
diff
changeset
|
188 | !insertmacro MUI_LANGUAGE "Finnish" |
|
6559
eae45d3e67e6
[gaim-migrate @ 7081]
Herman Bloggs <herman@bluedigits.com>
parents:
6491
diff
changeset
|
189 | !insertmacro MUI_LANGUAGE "Swedish" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
190 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
191 | ;-------------------------------- |
|
6233
d12a0c4e40a0
[gaim-migrate @ 6726]
Herman Bloggs <herman@bluedigits.com>
parents:
6159
diff
changeset
|
192 | ;Translations |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
193 | |
|
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
|
194 | !define PIDGIN_DEFAULT_LANGFILE "${PIDGIN_NSIS_INCLUDE_PATH}\translations\english.nsh" |
|
7572
976d5883ef99
[gaim-migrate @ 8188]
Herman Bloggs <herman@bluedigits.com>
parents:
7558
diff
changeset
|
195 | |
|
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
|
196 | !include "${PIDGIN_NSIS_INCLUDE_PATH}\langmacros.nsh" |
|
7572
976d5883ef99
[gaim-migrate @ 8188]
Herman Bloggs <herman@bluedigits.com>
parents:
7558
diff
changeset
|
197 | |
|
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
|
198 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ALBANIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\albanian.nsh" |
|
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
|
199 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "BULGARIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\bulgarian.nsh" |
|
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
|
200 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "CATALAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\catalan.nsh" |
|
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 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "CZECH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\czech.nsh" |
|
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 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "DANISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\danish.nsh" |
|
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 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "DUTCH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\dutch.nsh" |
|
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 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ENGLISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\english.nsh" |
|
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
|
205 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "FINNISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\finnish.nsh" |
|
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
|
206 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "FRENCH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\french.nsh" |
|
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
|
207 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "GERMAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\german.nsh" |
|
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
|
208 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "HEBREW" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\hebrew.nsh" |
|
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
|
209 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "HUNGARIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\hungarian.nsh" |
|
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
|
210 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ITALIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\italian.nsh" |
|
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
|
211 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "JAPANESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\japanese.nsh" |
|
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
|
212 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "KOREAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\korean.nsh" |
|
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
|
213 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "KURDISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\kurdish.nsh" |
|
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
|
214 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "LITHUANIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\lithuanian.nsh" |
|
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
|
215 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "NORWEGIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\norwegian.nsh" |
|
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
|
216 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "POLISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\polish.nsh" |
|
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
|
217 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "PORTUGUESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\portuguese.nsh" |
|
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 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "PORTUGUESEBR" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\portuguese-br.nsh" |
|
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
|
219 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ROMANIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\romanian.nsh" |
|
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
|
220 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "RUSSIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\russian.nsh" |
|
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
|
221 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SERBIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\serbian-latin.nsh" |
|
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
|
222 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SIMPCHINESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\simp-chinese.nsh" |
|
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
|
223 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SLOVAK" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\slovak.nsh" |
|
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
|
224 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SLOVENIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\slovenian.nsh" |
|
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 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SPANISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\spanish.nsh" |
|
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
|
226 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SWEDISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\swedish.nsh" |
|
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
|
227 | !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "TRADCHINESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\trad-chinese.nsh" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
228 | |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
229 | ;-------------------------------- |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
230 | ;Reserve Files |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
231 | ; Only need this if using bzip2 compression |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
232 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
233 | !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
234 | !insertmacro MUI_RESERVEFILE_LANGDLL |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
235 | ReserveFile "${NSISDIR}\Plugins\UserInfo.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
236 | |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
237 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
238 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
239 | ;; Start Install Sections ;; |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
240 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 3630 | 241 | |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
242 | ;-------------------------------- |
|
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
|
243 | ;Uninstall any old version of Pidgin (or Gaim) |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
244 | |
|
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
|
245 | Section -SecUninstallOldPidgin |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
246 | ; Check install rights.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
247 | Call CheckUserInstallRights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
248 | Pop $R0 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
249 | |
|
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
|
250 | ;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
|
251 | 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
|
252 | 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
|
253 | 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
|
254 | 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
|
255 | |
|
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
|
256 | 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
|
257 | ;If pidgin is currently set to run on startup, |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
258 | ; 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
|
259 | ; so we can put it back after installing the new version |
|
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
260 | 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
|
261 | ReadRegStr $STARTUP_RUN_KEY HKCU "${STARTUP_RUN_KEY}" $R7 |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
262 | IfErrors +3 |
|
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
263 | StrCpy $STARTUP_RUN_KEY "HKCU" |
|
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
264 | Goto +4 |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
265 | 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
|
266 | ReadRegStr $STARTUP_RUN_KEY HKLM "${STARTUP_RUN_KEY}" $R7 |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
267 | IfErrors +2 |
|
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
268 | StrCpy $STARTUP_RUN_KEY "HKLM" |
|
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
269 | |
|
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
|
270 | 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
|
271 | StrCmp $R0 "HKCU" compare_hkcu done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
272 | |
|
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
|
273 | 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
|
274 | 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
|
275 | 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
|
276 | ReadRegStr $R3 HKCU "$R5" "UninstallString" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
277 | Goto try_uninstall |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
278 | |
|
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
|
279 | 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
|
280 | 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
|
281 | 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
|
282 | ReadRegStr $R3 HKLM "$R5" "UninstallString" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
283 | |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
284 | ; If a previous version exists, remove it |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
285 | try_uninstall: |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
286 | StrCmp $R1 "" done |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
287 | ; Version key started with 0.60a3. Prior versions can't be |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
288 | ; automaticlly uninstalled. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
289 | StrCmp $R2 "" uninstall_problem |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
290 | ; Check if we have uninstall string.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
291 | 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
|
292 | ; Have uninstall string, go ahead and uninstall. |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
293 | SetOverwrite on |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
294 | ; Need to copy uninstaller outside of the install dir |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
295 | 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
|
296 | CopyFiles /SILENT $R3 "$TEMP\$R6" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
297 | SetOverwrite off |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
298 | IfErrors uninstall_problem |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
299 | ; Ready to uninstall.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
300 | 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
|
301 | ExecWait '"$TEMP\$R6" /S _?=$R1' |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
302 | 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
|
303 | Delete "$TEMP\$R6" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
304 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
305 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
306 | 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
|
307 | Delete "$TEMP\$R6" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
308 | Goto uninstall_problem |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
309 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
310 | uninstall_problem: |
|
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
|
311 | ; If we couldn't uninstall Pidgin, try to 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
|
312 | StrCmp $R4 ${PIDGIN_REG_KEY} cannot_uninstall |
|
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 | 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
|
314 | 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
|
315 | 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
|
316 | 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
|
317 | 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
|
318 | |
|
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 | cannot_uninstall: |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
320 | ; We can't uninstall. Either the user must manually uninstall or we ignore and reinstall over it. |
|
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
|
321 | MessageBox MB_OKCANCEL $(PIDGIN_PROMPT_CONTINUE_WITHOUT_UNINSTALL) /SD IDOK IDOK done |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
322 | Quit |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
323 | done: |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
324 | SectionEnd |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
325 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
326 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
327 | ;-------------------------------- |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
328 | ;GTK+ Runtime Install Section |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
329 | |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
330 | !ifdef WITH_GTK |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
331 | Section $(GTK_SECTION_TITLE) SecGtk |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
332 | SectionIn 1 RO |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
333 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
334 | Call CheckUserInstallRights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
335 | Pop $R1 |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
336 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
337 | SetOutPath $TEMP |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
338 | SetOverwrite on |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
339 | File /oname=gtk-runtime.exe ${GTK_RUNTIME_INSTALLER} |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
340 | SetOverwrite off |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
341 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
342 | Call DoWeNeedGtk |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
343 | Pop $R0 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
344 | Pop $R6 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
345 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
346 | StrCmp $R0 "0" have_gtk |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
347 | StrCmp $R0 "1" upgrade_gtk |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
348 | StrCmp $R0 "2" upgrade_gtk |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
349 | StrCmp $R0 "3" no_gtk no_gtk |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
350 | |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
351 | no_gtk: |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
352 | StrCmp $R1 "NONE" gtk_no_install_rights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
353 | ClearErrors |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
354 | ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT /D=$GTK_FOLDER' |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
355 | IfErrors gtk_install_error done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
356 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
357 | upgrade_gtk: |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
358 | StrCpy $GTK_FOLDER $R6 |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
359 | StrCmp $R0 "2" +2 ; Upgrade isn't optional |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
360 | MessageBox MB_YESNO $(GTK_UPGRADE_PROMPT) /SD IDYES IDNO done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
361 | ClearErrors |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
362 | ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE /S /D=$GTK_FOLDER' |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
363 | IfErrors gtk_install_error done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
364 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
365 | gtk_install_error: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
366 | Delete "$TEMP\gtk-runtime.exe" |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
367 | MessageBox MB_OK $(GTK_INSTALL_ERROR) /SD IDOK |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
368 | Quit |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
369 | |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
370 | have_gtk: |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
371 | StrCpy $GTK_FOLDER $R6 |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
372 | StrCmp $R1 "NONE" done ; If we have no rights, we can't re-install |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
373 | ; Even if we have a sufficient version of GTK+, we give user choice to re-install. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
374 | ClearErrors |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
375 | ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT' |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
376 | IfErrors gtk_install_error |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
377 | Goto done |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
378 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
379 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
380 | ; end got_install rights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
381 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
382 | gtk_no_install_rights: |
|
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 | ; Install GTK+ to Pidgin install dir |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
384 | StrCpy $GTK_FOLDER $INSTDIR |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
385 | ClearErrors |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
386 | ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT /D=$GTK_FOLDER' |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
387 | IfErrors gtk_install_error |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
388 | SetOverwrite on |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
389 | ClearErrors |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
390 | CopyFiles /FILESONLY "$GTK_FOLDER\bin\*.dll" $GTK_FOLDER |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
391 | SetOverwrite off |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
392 | IfErrors gtk_install_error |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
393 | Delete "$GTK_FOLDER\bin\*.dll" |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
394 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
395 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
396 | ; end gtk_no_install_rights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
397 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
398 | done: |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
399 | Delete "$TEMP\gtk-runtime.exe" |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
400 | SectionEnd ; end of GTK+ section |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
401 | !endif |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
402 | |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
403 | ;-------------------------------- |
|
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
|
404 | ;Pidgin Install Section |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
405 | |
|
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
|
406 | Section $(PIDGIN_SECTION_TITLE) SecPidgin |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
407 | SectionIn 1 RO |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
408 | |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
409 | ; Check install rights.. |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
410 | Call CheckUserInstallRights |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
411 | Pop $R0 |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
412 | |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
413 | ; Get GTK+ lib dir if we have it.. |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
414 | |
|
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
|
415 | StrCmp $R0 "NONE" pidgin_none |
|
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
|
416 | StrCmp $R0 "HKLM" pidgin_hklm pidgin_hkcu |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
417 | |
|
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
|
418 | pidgin_hklm: |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
419 | ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path" |
|
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
|
420 | WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "" "$INSTDIR\pidgin.exe" |
|
6422
95b4b1acdb18
[gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents:
6300
diff
changeset
|
421 | WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R1\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
|
422 | 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
|
423 | WriteRegStr HKLM ${PIDGIN_REG_KEY} "Version" "${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
|
424 | WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayName" $(PIDGIN_UNINSTALL_DESC) |
|
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
|
425 | WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${PIDGIN_UNINST_EXE}" |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
426 | ; 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
|
427 | 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
|
428 | Goto pidgin_install_files |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
429 | |
|
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
|
430 | pidgin_hkcu: |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
431 | ReadRegStr $R1 HKCU ${GTK_REG_KEY} "Path" |
|
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
|
432 | StrCmp $R1 "" 0 +2 |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
433 | ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path" |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
434 | |
|
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
|
435 | 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
|
436 | WriteRegStr HKCU ${PIDGIN_REG_KEY} "Version" "${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
|
437 | WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayName" $(PIDGIN_UNINSTALL_DESC) |
|
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
|
438 | 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
|
439 | 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
|
440 | |
|
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
|
441 | pidgin_none: |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
442 | ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path" |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
443 | |
|
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
|
444 | pidgin_install_files: |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
445 | 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
|
446 | ; Pidgin files |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
447 | 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
|
448 | File /r ..\..\..\${PIDGIN_INSTALL_DIR}\*.* |
|
5931
6bd53176fdcf
[gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents:
5396
diff
changeset
|
449 | !ifdef DEBUG |
|
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
|
450 | File "${PIDGIN_INSTALLER_DEPS}\exchndl.dll" |
|
5931
6bd53176fdcf
[gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents:
5396
diff
changeset
|
451 | !endif |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
452 | |
|
6848
ca91f08b60df
[gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
453 | ; Install shfolder.dll if need be.. |
|
ca91f08b60df
[gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
454 | SearchPath $R4 "shfolder.dll" |
|
ca91f08b60df
[gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
455 | StrCmp $R4 "" 0 got_shfolder |
|
ca91f08b60df
[gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
456 | SetOutPath "$SYSDIR" |
|
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
|
457 | File "${PIDGIN_INSTALLER_DEPS}\shfolder.dll" |
|
6848
ca91f08b60df
[gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
458 | SetOutPath "$INSTDIR" |
|
ca91f08b60df
[gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
459 | got_shfolder: |
|
ca91f08b60df
[gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
460 | |
|
14665
e05842f7fe43
[gaim-migrate @ 17331]
Daniel Atallah <datallah@pidgin.im>
parents:
14516
diff
changeset
|
461 | ; 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
|
462 | ReadRegStr $R2 HKLM ${PERL_REG_KEY} "" |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
463 | StrCmp $R2 "" 0 perl_exists |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
464 | ReadRegStr $R2 HKCU ${PERL_REG_KEY} "" |
|
14665
e05842f7fe43
[gaim-migrate @ 17331]
Daniel Atallah <datallah@pidgin.im>
parents:
14516
diff
changeset
|
465 | StrCmp $R2 "" perl_done perl_exists |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
466 | |
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
467 | perl_exists: |
|
14665
e05842f7fe43
[gaim-migrate @ 17331]
Daniel Atallah <datallah@pidgin.im>
parents:
14516
diff
changeset
|
468 | IfFileExists "$R2\bin\${PERL_DLL}" 0 perl_done |
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
469 | StrCmp $R0 "HKLM" 0 perl_done |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
470 | ReadRegStr $R3 HKLM "${HKLM_APP_PATHS_KEY}" "Path" |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
471 | WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R3;$R2\bin" |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
472 | |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
473 | perl_done: |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6650
diff
changeset
|
474 | |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
475 | ; If this is under NT4, delete the SILC support stuff |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
476 | ; there is a bug that will prevent any account from connecting |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
477 | ; See https://lists.silcnet.org/pipermail/silc-devel/2005-January/001588.html |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
478 | Call GetWindowsVersion |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
479 | Pop $R2 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
480 | StrCmp $R2 "NT 4.0" +1 +4 |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
481 | Delete "$INSTDIR\plugins\libsilc.dll" |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
482 | Delete "$INSTDIR\silcclient.dll" |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
483 | Delete "$INSTDIR\silc.dll" |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
484 | |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
485 | SetOutPath "$INSTDIR" |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
486 | |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
487 | ; If we don't have install rights we're done |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
488 | StrCmp $R0 "NONE" done |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
489 | SetOverwrite off |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
490 | |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
491 | ; write out uninstaller |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
492 | 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
|
493 | WriteUninstaller "$INSTDIR\${PIDGIN_UNINST_EXE}" |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
494 | SetOverwrite off |
|
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
495 | |
|
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 | ; 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
|
497 | 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
|
498 | WriteRegStr HKCU "${STARTUP_RUN_KEY}" "Pidgin" "$INSTDIR\pidgin.exe" |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
499 | 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
|
500 | WriteRegStr HKLM "${STARTUP_RUN_KEY}" "Pidgin" "$INSTDIR\pidgin.exe" |
|
9902
289987279ba2
[gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents:
9890
diff
changeset
|
501 | |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
502 | 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
|
503 | SectionEnd ; end of default Pidgin section |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
504 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
505 | ;-------------------------------- |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
506 | ;Shortcuts |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
507 | |
|
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
|
508 | SectionGroup /e $(PIDGIN_SHORTCUTS_SECTION_TITLE) SecShortcuts |
|
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
|
509 | Section /o $(PIDGIN_DESKTOP_SHORTCUT_SECTION_TITLE) SecDesktopShortcut |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
510 | 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
|
511 | CreateShortCut "$DESKTOP\Pidgin.lnk" "$INSTDIR\pidgin.exe" |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
512 | SetOverwrite off |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
513 | SectionEnd |
|
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
|
514 | Section $(PIDGIN_STARTMENU_SHORTCUT_SECTION_TITLE) SecStartMenuShortcut |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
515 | 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
|
516 | CreateDirectory "$SMPROGRAMS\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
|
517 | CreateShortCut "$SMPROGRAMS\Pidgin\Pidgin.lnk" "$INSTDIR\pidgin.exe" |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
518 | SetOverwrite off |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
519 | SectionEnd |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
520 | SectionGroupEnd |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
521 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
522 | ;-------------------------------- |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
523 | ;GTK+ Themes |
|
3860
c6f585e5fa19
[gaim-migrate @ 4012]
Herman Bloggs <herman@bluedigits.com>
parents:
3853
diff
changeset
|
524 | |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
525 | SectionGroup /e $(GTK_THEMES_SECTION_TITLE) SecGtkThemes |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
526 | Section /o $(GTK_NOTHEME_SECTION_TITLE) SecGtkNone |
|
14798
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
527 | Push "Raleigh" |
|
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
528 | Call WriteGtkThemeConfig |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
529 | SectionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
530 | |
|
7352
715b973d34e2
[gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents:
7215
diff
changeset
|
531 | Section $(GTK_WIMP_SECTION_TITLE) SecGtkWimp |
|
14798
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
532 | Push "MS-Windows" |
|
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
533 | Call WriteGtkThemeConfig |
|
7352
715b973d34e2
[gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents:
7215
diff
changeset
|
534 | SectionEnd |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
535 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
536 | Section /o $(GTK_BLUECURVE_SECTION_TITLE) SecGtkBluecurve |
|
14798
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
537 | Push "Bluecurve" |
|
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
538 | Call WriteGtkThemeConfig |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
539 | SectionEnd |
|
3860
c6f585e5fa19
[gaim-migrate @ 4012]
Herman Bloggs <herman@bluedigits.com>
parents:
3853
diff
changeset
|
540 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
541 | Section /o $(GTK_LIGHTHOUSEBLUE_SECTION_TITLE) SecGtkLighthouseblue |
|
14798
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
542 | Push "Lighthouseblue" |
|
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
543 | Call WriteGtkThemeConfig |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
544 | SectionEnd |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
545 | SectionGroupEnd |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
546 | |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
547 | ;-------------------------------- |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
548 | ;URI Handling |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
549 | SectionGroup /e $(URI_HANDLERS_SECTION_TITLE) SecURIHandlers |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
550 | Section /o "aim:" SecURI_AIM |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
551 | Push "aim" |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
552 | Call RegisterURIHandler |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
553 | SectionEnd |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
554 | Section /o "msnim:" SecURI_MSNIM |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
555 | Push "msnim" |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
556 | Call RegisterURIHandler |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
557 | SectionEnd |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
558 | Section /o "ymsgr:" SecURI_YMSGR |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
559 | Push "ymsgr" |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
560 | Call RegisterURIHandler |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
561 | SectionEnd |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
562 | SectionGroupEnd |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
563 | |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
564 | ;-------------------------------- |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
565 | ;Spell Checking |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
566 | |
|
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
|
567 | SectionGroup /e $(PIDGIN_SPELLCHECK_SECTION_TITLE) SecSpellCheck |
|
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
|
568 | Section /o $(PIDGIN_SPELLCHECK_BRETON) SecSpellCheckBreton |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
569 | Push ${SecSpellCheckBreton} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
570 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
571 | SectionEnd |
|
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
|
572 | Section /o $(PIDGIN_SPELLCHECK_CATALAN) SecSpellCheckCatalan |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
573 | Push ${SecSpellCheckCatalan} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
574 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
575 | SectionEnd |
|
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
|
576 | Section /o $(PIDGIN_SPELLCHECK_CZECH) SecSpellCheckCzech |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
577 | Push ${SecSpellCheckCzech} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
578 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
579 | SectionEnd |
|
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
|
580 | Section /o $(PIDGIN_SPELLCHECK_WELSH) SecSpellCheckWelsh |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
581 | Push ${SecSpellCheckWelsh} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
582 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
583 | SectionEnd |
|
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
|
584 | Section /o $(PIDGIN_SPELLCHECK_DANISH) SecSpellCheckDanish |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
585 | Push ${SecSpellCheckDanish} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
586 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
587 | SectionEnd |
|
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
|
588 | Section /o $(PIDGIN_SPELLCHECK_GERMAN) SecSpellCheckGerman |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
589 | Push ${SecSpellCheckGerman} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
590 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
591 | SectionEnd |
|
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
|
592 | Section /o $(PIDGIN_SPELLCHECK_GREEK) SecSpellCheckGreek |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
593 | Push ${SecSpellCheckGreek} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
594 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
595 | SectionEnd |
|
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
|
596 | Section /o $(PIDGIN_SPELLCHECK_ENGLISH) SecSpellCheckEnglish |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
597 | Push ${SecSpellCheckEnglish} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
598 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
599 | SectionEnd |
|
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
|
600 | Section /o $(PIDGIN_SPELLCHECK_ESPERANTO) SecSpellCheckEsperanto |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
601 | Push ${SecSpellCheckEsperanto} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
602 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
603 | SectionEnd |
|
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
|
604 | Section /o $(PIDGIN_SPELLCHECK_SPANISH) SecSpellCheckSpanish |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
605 | Push ${SecSpellCheckSpanish} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
606 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
607 | SectionEnd |
|
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
|
608 | Section /o $(PIDGIN_SPELLCHECK_FAROESE) SecSpellCheckFaroese |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
609 | Push ${SecSpellCheckFaroese} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
610 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
611 | SectionEnd |
|
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
|
612 | Section /o $(PIDGIN_SPELLCHECK_FRENCH) SecSpellCheckFrench |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
613 | Push ${SecSpellCheckFrench} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
614 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
615 | SectionEnd |
|
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
|
616 | Section /o $(PIDGIN_SPELLCHECK_ITALIAN) SecSpellCheckItalian |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
617 | Push ${SecSpellCheckItalian} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
618 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
619 | SectionEnd |
|
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
|
620 | Section /o $(PIDGIN_SPELLCHECK_DUTCH) SecSpellCheckDutch |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
621 | Push ${SecSpellCheckDutch} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
622 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
623 | SectionEnd |
|
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
|
624 | Section /o $(PIDGIN_SPELLCHECK_NORWEGIAN) SecSpellCheckNorwegian |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
625 | Push ${SecSpellCheckNorwegian} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
626 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
627 | SectionEnd |
|
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
|
628 | Section /o $(PIDGIN_SPELLCHECK_POLISH) SecSpellCheckPolish |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
629 | Push ${SecSpellCheckPolish} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
630 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
631 | SectionEnd |
|
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
|
632 | Section /o $(PIDGIN_SPELLCHECK_PORTUGUESE) SecSpellCheckPortuguese |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
633 | Push ${SecSpellCheckPortuguese} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
634 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
635 | SectionEnd |
|
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
|
636 | Section /o $(PIDGIN_SPELLCHECK_ROMANIAN) SecSpellCheckRomanian |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
637 | Push ${SecSpellCheckRomanian} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
638 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
639 | SectionEnd |
|
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
|
640 | Section /o $(PIDGIN_SPELLCHECK_RUSSIAN) SecSpellCheckRussian |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
641 | Push ${SecSpellCheckRussian} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
642 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
643 | SectionEnd |
|
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
|
644 | Section /o $(PIDGIN_SPELLCHECK_SLOVAK) SecSpellCheckSlovak |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
645 | Push ${SecSpellCheckSlovak} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
646 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
647 | SectionEnd |
|
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
|
648 | Section /o $(PIDGIN_SPELLCHECK_SWEDISH) SecSpellCheckSwedish |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
649 | Push ${SecSpellCheckSwedish} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
650 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
651 | SectionEnd |
|
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
|
652 | Section /o $(PIDGIN_SPELLCHECK_UKRAINIAN) SecSpellCheckUkrainian |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
653 | Push ${SecSpellCheckUkrainian} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
654 | Call InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
655 | SectionEnd |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
656 | SectionGroupEnd |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
657 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
658 | ;-------------------------------- |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
659 | ;Uninstaller Section |
| 3630 | 660 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
661 | |
| 3630 | 662 | Section Uninstall |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
663 | Call un.CheckUserInstallRights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
664 | Pop $R0 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
665 | StrCmp $R0 "NONE" no_rights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
666 | StrCmp $R0 "HKCU" try_hkcu try_hklm |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
667 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
668 | 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
|
669 | ReadRegStr $R0 HKCU ${PIDGIN_REG_KEY} "" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
670 | 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
|
671 | ; 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
|
672 | 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
|
673 | DeleteRegKey HKCU "${PIDGIN_UNINSTALL_KEY}" |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
674 | Goto cont_uninstall |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
675 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
676 | 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
|
677 | ReadRegStr $R0 HKLM ${PIDGIN_REG_KEY} "" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
678 | 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
|
679 | ; 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
|
680 | 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
|
681 | DeleteRegKey HKLM "${PIDGIN_UNINSTALL_KEY}" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
682 | DeleteRegKey HKLM "${HKLM_APP_PATHS_KEY}" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
683 | ; Sets start menu and desktop scope to all users.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
684 | SetShellVarContext "all" |
|
4126
99bff42f4a47
[gaim-migrate @ 4343]
Herman Bloggs <herman@bluedigits.com>
parents:
3989
diff
changeset
|
685 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
686 | cont_uninstall: |
|
6090
348fcb77d3cf
[gaim-migrate @ 6549]
Herman Bloggs <herman@bluedigits.com>
parents:
5931
diff
changeset
|
687 | ; 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
|
688 | 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
|
689 | DeleteRegValue HKLM "${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
|
690 | ; Remove Language preference info (TODO: check if NSIS removes this) |
|
6090
348fcb77d3cf
[gaim-migrate @ 6549]
Herman Bloggs <herman@bluedigits.com>
parents:
5931
diff
changeset
|
691 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
692 | RMDir /r "$INSTDIR\locale" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
693 | RMDir /r "$INSTDIR\pixmaps" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
694 | RMDir /r "$INSTDIR\perlmod" |
|
15236
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
695 | Delete "$INSTDIR\plugins\autoaccept.dll" |
|
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
696 | Delete "$INSTDIR\plugins\autoreply.dll" |
|
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
697 | Delete "$INSTDIR\plugins\buddynote.dll" |
|
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
698 | Delete "$INSTDIR\plugins\convcolors.dll" |
|
9565
c824ac72974f
[gaim-migrate @ 10404]
Herman Bloggs <herman@bluedigits.com>
parents:
9561
diff
changeset
|
699 | Delete "$INSTDIR\plugins\extplacement.dll" |
|
12452
05216d7995e2
[gaim-migrate @ 14761]
Daniel Atallah <datallah@pidgin.im>
parents:
11962
diff
changeset
|
700 | Delete "$INSTDIR\plugins\gaimrc.dll" |
|
6476
92d08d220cd1
[gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents:
6447
diff
changeset
|
701 | Delete "$INSTDIR\plugins\history.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
702 | Delete "$INSTDIR\plugins\iconaway.dll" |
|
6476
92d08d220cd1
[gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents:
6447
diff
changeset
|
703 | Delete "$INSTDIR\plugins\idle.dll" |
|
15031
c45aa1667620
[gaim-migrate @ 17748]
Daniel Atallah <datallah@pidgin.im>
parents:
14929
diff
changeset
|
704 | Delete "$INSTDIR\plugins\libaim.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
705 | Delete "$INSTDIR\plugins\libgg.dll" |
|
15031
c45aa1667620
[gaim-migrate @ 17748]
Daniel Atallah <datallah@pidgin.im>
parents:
14929
diff
changeset
|
706 | Delete "$INSTDIR\plugins\libicq.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
707 | Delete "$INSTDIR\plugins\libirc.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
708 | Delete "$INSTDIR\plugins\libjabber.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
709 | Delete "$INSTDIR\plugins\libmsn.dll" |
|
9570
8b3f38824cd3
[gaim-migrate @ 10413]
Herman Bloggs <herman@bluedigits.com>
parents:
9565
diff
changeset
|
710 | Delete "$INSTDIR\plugins\libnapster.dll" |
|
9139
98408fc7521c
[gaim-migrate @ 9923]
Herman Bloggs <herman@bluedigits.com>
parents:
9115
diff
changeset
|
711 | Delete "$INSTDIR\plugins\libnovell.dll" |
|
14887
067f351ad90a
[gaim-migrate @ 17592]
Daniel Atallah <datallah@pidgin.im>
parents:
14854
diff
changeset
|
712 | Delete "$INSTDIR\plugins\libqq.dll" |
|
11103
a85505cc7ea0
[gaim-migrate @ 13143]
Richard Laager <rlaager@pidgin.im>
parents:
11090
diff
changeset
|
713 | Delete "$INSTDIR\plugins\libsametime.dll" |
|
a85505cc7ea0
[gaim-migrate @ 13143]
Richard Laager <rlaager@pidgin.im>
parents:
11090
diff
changeset
|
714 | Delete "$INSTDIR\plugins\libsilc.dll" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
715 | Delete "$INSTDIR\plugins\libsimple.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
716 | Delete "$INSTDIR\plugins\libtoc.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
717 | Delete "$INSTDIR\plugins\libyahoo.dll" |
|
14297
c1788b3112fd
[gaim-migrate @ 16917]
Richard Laager <rlaager@pidgin.im>
parents:
13810
diff
changeset
|
718 | Delete "$INSTDIR\plugins\log_reader.dll" |
|
15236
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
719 | Delete "$INSTDIR\plugins\markerline.dll" |
|
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
720 | Delete "$INSTDIR\plugins\newline.dll" |
|
13067
f455a2ca30a9
[gaim-migrate @ 15429]
Daniel Atallah <datallah@pidgin.im>
parents:
13037
diff
changeset
|
721 | Delete "$INSTDIR\plugins\notify.dll" |
|
15236
b0b173741baf
[gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents:
15144
diff
changeset
|
722 | Delete "$INSTDIR\plugins\offlinemsg.dll" |
|
7352
715b973d34e2
[gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents:
7215
diff
changeset
|
723 | Delete "$INSTDIR\plugins\perl.dll" |
|
13037
e5fd3ea2ad98
[gaim-migrate @ 15396]
Daniel Atallah <datallah@pidgin.im>
parents:
12922
diff
changeset
|
724 | Delete "$INSTDIR\plugins\psychic.dll" |
|
7600
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
725 | Delete "$INSTDIR\plugins\relnot.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
726 | Delete "$INSTDIR\plugins\spellchk.dll" |
|
7352
715b973d34e2
[gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents:
7215
diff
changeset
|
727 | Delete "$INSTDIR\plugins\ssl-nss.dll" |
|
715b973d34e2
[gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents:
7215
diff
changeset
|
728 | Delete "$INSTDIR\plugins\ssl.dll" |
|
6476
92d08d220cd1
[gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents:
6447
diff
changeset
|
729 | Delete "$INSTDIR\plugins\statenotify.dll" |
|
8099
690e8ae9d03a
[gaim-migrate @ 8799]
Herman Bloggs <herman@bluedigits.com>
parents:
7924
diff
changeset
|
730 | Delete "$INSTDIR\plugins\tcl.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
731 | Delete "$INSTDIR\plugins\ticker.dll" |
|
6476
92d08d220cd1
[gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents:
6447
diff
changeset
|
732 | Delete "$INSTDIR\plugins\timestamp.dll" |
|
12922
5c9dd678da15
[gaim-migrate @ 15275]
Daniel Atallah <datallah@pidgin.im>
parents:
12644
diff
changeset
|
733 | Delete "$INSTDIR\plugins\timestamp_format.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
734 | Delete "$INSTDIR\plugins\win2ktrans.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
735 | Delete "$INSTDIR\plugins\winprefs.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
736 | RMDir "$INSTDIR\plugins" |
|
13067
f455a2ca30a9
[gaim-migrate @ 15429]
Daniel Atallah <datallah@pidgin.im>
parents:
13037
diff
changeset
|
737 | Delete "$INSTDIR\sounds\gaim\alert.wav" |
|
f455a2ca30a9
[gaim-migrate @ 15429]
Daniel Atallah <datallah@pidgin.im>
parents:
13037
diff
changeset
|
738 | Delete "$INSTDIR\sounds\gaim\login.wav" |
|
f455a2ca30a9
[gaim-migrate @ 15429]
Daniel Atallah <datallah@pidgin.im>
parents:
13037
diff
changeset
|
739 | Delete "$INSTDIR\sounds\gaim\logout.wav" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
740 | Delete "$INSTDIR\sounds\gaim\receive.wav" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
741 | Delete "$INSTDIR\sounds\gaim\send.wav" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
742 | RMDir "$INSTDIR\sounds\gaim" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
743 | RMDir "$INSTDIR\sounds" |
|
15138
45cef2c7d3b6
[gaim-migrate @ 17860]
Daniel Atallah <datallah@pidgin.im>
parents:
15047
diff
changeset
|
744 | Delete "$INSTDIR\freebl3.dll" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
745 | Delete "$INSTDIR\idletrack.dll" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
746 | Delete "$INSTDIR\libgtkspell.dll" |
|
15031
c45aa1667620
[gaim-migrate @ 17748]
Daniel Atallah <datallah@pidgin.im>
parents:
14929
diff
changeset
|
747 | Delete "$INSTDIR\liboscar.dll" |
|
15816
6fb46b27dedc
More installer stuff.
Daniel Atallah <datallah@pidgin.im>
parents:
15815
diff
changeset
|
748 | Delete "$INSTDIR\libpurple.dll" |
|
12644
a1ea859eb94b
[gaim-migrate @ 14981]
Daniel Atallah <datallah@pidgin.im>
parents:
12637
diff
changeset
|
749 | Delete "$INSTDIR\libmeanwhile-1.dll" |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
13564
diff
changeset
|
750 | Delete "$INSTDIR\libxml2.dll" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
751 | Delete "$INSTDIR\nspr4.dll" |
|
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
752 | Delete "$INSTDIR\nss3.dll" |
|
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
753 | Delete "$INSTDIR\nssckbi.dll" |
|
15816
6fb46b27dedc
More installer stuff.
Daniel Atallah <datallah@pidgin.im>
parents:
15815
diff
changeset
|
754 | Delete "$INSTDIR\pidgin.exe" |
|
6fb46b27dedc
More installer stuff.
Daniel Atallah <datallah@pidgin.im>
parents:
15815
diff
changeset
|
755 | Delete "$INSTDIR\pidgin.dll" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
756 | Delete "$INSTDIR\plc4.dll" |
|
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
757 | Delete "$INSTDIR\plds4.dll" |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
758 | Delete "$INSTDIR\silc.dll" |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
759 | Delete "$INSTDIR\silcclient.dll" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
760 | Delete "$INSTDIR\softokn3.dll" |
|
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
761 | 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
|
762 | Delete "$INSTDIR\${PIDGIN_UNINST_EXE}" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
763 | !ifdef DEBUG |
|
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
764 | Delete "$INSTDIR\exchndl.dll" |
|
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
765 | !endif |
|
14798
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
766 | Delete "$INSTDIR\install.log" |
|
6973
96afadc10b8d
[gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents:
6951
diff
changeset
|
767 | |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
768 | ;Try to remove Pidgin install dir (only if empty) |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
769 | RMDir "$INSTDIR" |
|
3853
510f497172b5
[gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents:
3849
diff
changeset
|
770 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
771 | ; 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
|
772 | RMDir /r "$SMPROGRAMS\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
|
773 | Delete "$DESKTOP\Pidgin.lnk" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
774 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
775 | Goto done |
|
4897
b957d7e1ab16
[gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents:
4857
diff
changeset
|
776 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
777 | cant_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
|
778 | MessageBox MB_OK $(un.PIDGIN_UNINSTALL_ERROR_1) /SD IDOK |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
779 | Quit |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
780 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
781 | no_rights: |
|
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
|
782 | MessageBox MB_OK $(un.PIDGIN_UNINSTALL_ERROR_2) /SD IDOK |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
783 | Quit |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
784 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
785 | done: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
786 | SectionEnd ; end of uninstall section |
|
3853
510f497172b5
[gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents:
3849
diff
changeset
|
787 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
788 | ;-------------------------------- |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
789 | ;Descriptions |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
790 | !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
|
791 | !insertmacro MUI_DESCRIPTION_TEXT ${SecPidgin} \ |
|
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
|
792 | $(PIDGIN_SECTION_DESCRIPTION) |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
793 | !ifdef WITH_GTK |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
794 | !insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} \ |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
795 | $(GTK_SECTION_DESCRIPTION) |
|
5383
b9835d165626
[gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents:
5332
diff
changeset
|
796 | !endif |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
797 | !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkThemes} \ |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
798 | $(GTK_THEMES_SECTION_DESCRIPTION) |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
799 | !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkNone} \ |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
800 | $(GTK_NO_THEME_DESC) |
|
7352
715b973d34e2
[gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents:
7215
diff
changeset
|
801 | !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkWimp} \ |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
802 | $(GTK_WIMP_THEME_DESC) |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
803 | !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkBluecurve} \ |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
804 | $(GTK_BLUECURVE_THEME_DESC) |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
805 | !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkLighthouseblue} \ |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
806 | $(GTK_LIGHTHOUSEBLUE_THEME_DESC) |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
807 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
808 | !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} \ |
|
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
|
809 | $(PIDGIN_SHORTCUTS_SECTION_DESCRIPTION) |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
810 | !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} \ |
|
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
|
811 | $(PIDGIN_DESKTOP_SHORTCUT_DESC) |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
812 | !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} \ |
|
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
|
813 | $(PIDGIN_STARTMENU_SHORTCUT_DESC) |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
814 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
815 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheck} \ |
|
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
|
816 | $(PIDGIN_SPELLCHECK_SECTION_DESCRIPTION) |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
817 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckBreton} \ |
|
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
|
818 | "$(PIDGIN_SPELLCHECK_BRETON) (862kb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
819 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckCatalan} \ |
|
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
|
820 | "$(PIDGIN_SPELLCHECK_CATALAN) (3.9Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
821 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckCzech} \ |
|
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
|
822 | "$(PIDGIN_SPELLCHECK_CZECH) (17Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
823 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckWelsh} \ |
|
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
|
824 | "$(PIDGIN_SPELLCHECK_WELSH) (4.2Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
825 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckDanish} \ |
|
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
|
826 | "$(PIDGIN_SPELLCHECK_DANISH) (6.9Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
827 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckGerman} \ |
|
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
|
828 | "$(PIDGIN_SPELLCHECK_GERMAN) (5.4Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
829 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckGreek} \ |
|
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
|
830 | "$(PIDGIN_SPELLCHECK_GREEK) (7.1Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
831 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckEnglish} \ |
|
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
|
832 | "$(PIDGIN_SPELLCHECK_ENGLISH) (2.3Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
833 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckEsperanto} \ |
|
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
|
834 | "$(PIDGIN_SPELLCHECK_ESPERANTO) (5.7Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
835 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSpanish} \ |
|
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
|
836 | "$(PIDGIN_SPELLCHECK_SPANISH) (7.0Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
837 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckFaroese} \ |
|
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
|
838 | "$(PIDGIN_SPELLCHECK_FAROESE) (913kb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
839 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckFrench} \ |
|
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
|
840 | "$(PIDGIN_SPELLCHECK_FRENCH) (9.3Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
841 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckItalian} \ |
|
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
|
842 | "$(PIDGIN_SPELLCHECK_ITALIAN) (770kb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
843 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckDutch} \ |
|
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
|
844 | "$(PIDGIN_SPELLCHECK_DUTCH) (3.7Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
845 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckNorwegian} \ |
|
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
|
846 | "$(PIDGIN_SPELLCHECK_NORWEGIAN) (3.2Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
847 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckPolish} \ |
|
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
|
848 | "$(PIDGIN_SPELLCHECK_POLISH) (9.3Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
849 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckPortuguese} \ |
|
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
|
850 | "$(PIDGIN_SPELLCHECK_PORTUGUESE) (5.5Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
851 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckRomanian} \ |
|
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
|
852 | "$(PIDGIN_SPELLCHECK_ROMANIAN) (906kb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
853 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckRussian} \ |
|
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
|
854 | "$(PIDGIN_SPELLCHECK_RUSSIAN) (11Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
855 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSlovak} \ |
|
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
|
856 | "$(PIDGIN_SPELLCHECK_SLOVAK) (8.0Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
857 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSwedish} \ |
|
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
|
858 | "$(PIDGIN_SPELLCHECK_SWEDISH) (2.2Mb)" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
859 | !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckUkrainian} \ |
|
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
|
860 | "$(PIDGIN_SPELLCHECK_UKRAINIAN) (12Mb)" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
861 | !insertmacro MUI_FUNCTION_DESCRIPTION_END |
|
5332
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 | ;-------------------------------- |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
864 | ;Functions |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
865 | |
|
14798
3a48e094d216
[gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents:
14745
diff
changeset
|
866 | Function WriteGtkThemeConfig |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
867 | Exch $0 |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
868 | Push $1 |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
869 | Push $2 |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
870 | Push $3 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
871 | |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
872 | Call CheckUserInstallRights |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
873 | Pop $2 |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
874 | StrCmp $2 "HKLM" 0 user_theme |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
875 | |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
876 | ; Global Theme |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
877 | ClearErrors |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
878 | ReadRegStr $2 HKLM ${GTK_REG_KEY} "Path" |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
879 | IfErrors user_theme |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
880 | StrCpy $3 "$2\etc\gtk-2.0\gtkrc" |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
881 | Goto update_theme |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
882 | user_theme: |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
883 | StrCpy $3 "$PROFILE\.gtkrc-2.0" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
884 | |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
885 | update_theme: |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
886 | IfFileExists $3 0 new_file |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
887 | ${ConfigWriteS} $3 "gtk-theme-name =" " $\"$0$\"" $1 |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
888 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
889 | |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
890 | new_file: |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
891 | FileOpen $1 $3 w |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
892 | FileWrite $1 "gtk-theme-name = $\"$0$\"" |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
893 | FileClose $1 |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
894 | |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
895 | done: |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
896 | Pop $3 |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
897 | Pop $2 |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
898 | Pop $1 |
|
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
899 | Pop $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
900 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
901 | |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
902 | |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
903 | Function RegisterURIHandler |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
904 | Exch $R0 |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
905 | WriteRegStr HKEY_CLASSES_ROOT "$R0" "" "URL:$R0" |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
906 | WriteRegStr HKEY_CLASSES_ROOT "$R0" "URL Protocol" "" |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
907 | WriteRegStr HKEY_CLASSES_ROOT "$R0\DefaultIcon" "" "$INSTDIR\pidgin.exe" |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
908 | WriteRegStr HKEY_CLASSES_ROOT "$R0\shell" "" "" |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
909 | WriteRegStr HKEY_CLASSES_ROOT "$R0\shell\Open" "" "" |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
910 | WriteRegStr HKEY_CLASSES_ROOT "$R0\shell\Open\command" "" "$INSTDIR\pidgin.exe --protocolhandler=%1" |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
911 | Pop $R0 |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
912 | FunctionEnd |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
913 | |
|
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
914 | |
| 13392 | 915 | !macro CheckUserInstallRightsMacro UN |
| 916 | Function ${UN}CheckUserInstallRights | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
917 | Push $0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
918 | Push $1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
919 | ClearErrors |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
920 | UserInfo::GetName |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
921 | IfErrors Win9x |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
922 | Pop $0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
923 | UserInfo::GetAccountType |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
924 | Pop $1 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
925 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
926 | StrCmp $1 "Admin" 0 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
927 | StrCpy $1 "HKLM" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
928 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
929 | StrCmp $1 "Power" 0 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
930 | StrCpy $1 "HKLM" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
931 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
932 | StrCmp $1 "User" 0 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
933 | StrCpy $1 "HKCU" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
934 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
935 | StrCmp $1 "Guest" 0 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
936 | StrCpy $1 "NONE" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
937 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
938 | ; Unknown error |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
939 | StrCpy $1 "NONE" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
940 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
941 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
942 | Win9x: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
943 | StrCpy $1 "HKLM" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
944 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
945 | done: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
946 | Exch $1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
947 | Exch |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
948 | Pop $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
949 | FunctionEnd |
| 13392 | 950 | !macroend |
| 951 | !insertmacro CheckUserInstallRightsMacro "" | |
| 952 | !insertmacro CheckUserInstallRightsMacro "un." | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
953 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
954 | ; |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
955 | ; Usage: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
956 | ; Push $0 ; Path string |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
957 | ; Call VerifyDir |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
958 | ; Pop $0 ; 0 - Bad path 1 - Good path |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
959 | ; |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
960 | Function VerifyDir |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
961 | Exch $0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
962 | Push $1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
963 | Push $2 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
964 | Loop: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
965 | IfFileExists $0 dir_exists |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
966 | StrCpy $1 $0 ; save last |
|
14439
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
967 | ${GetParent} $0 $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
968 | StrLen $2 $0 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
969 | ; IfFileExists "C:" on xp returns true and on win2k returns false |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
970 | ; So we're done in such a case.. |
| 9960 | 971 | IntCmp $2 2 loop_done |
| 972 | ; GetParent of "C:" returns "" | |
| 973 | IntCmp $2 0 loop_done | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
974 | Goto Loop |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
975 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
976 | loop_done: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
977 | StrCpy $1 "$0\GaImFooB" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
978 | ; Check if we can create dir on this drive.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
979 | ClearErrors |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
980 | CreateDirectory $1 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
981 | IfErrors DirBad DirGood |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
982 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
983 | dir_exists: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
984 | 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
|
985 | FileOpen $1 "$0\pidginfoo.bar" w |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
986 | IfErrors PathBad PathGood |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
987 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
988 | DirGood: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
989 | RMDir $1 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
990 | Goto PathGood1 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
991 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
992 | DirBad: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
993 | RMDir $1 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
994 | Goto PathBad1 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
995 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
996 | PathBad: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
997 | 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
|
998 | Delete "$0\pidginfoo.bar" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
999 | PathBad1: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1000 | StrCpy $0 "0" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1001 | Push $0 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1002 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1003 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1004 | PathGood: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1005 | 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
|
1006 | Delete "$0\pidginfoo.bar" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1007 | PathGood1: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1008 | StrCpy $0 "1" |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1009 | Push $0 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1010 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1011 | done: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1012 | Exch 3 ; The top of the stack contains the output variable |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1013 | Pop $0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1014 | Pop $2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1015 | Pop $1 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1016 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1017 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1018 | Function .onVerifyInstDir |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1019 | Push $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1020 | Push $INSTDIR |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1021 | Call VerifyDir |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1022 | Pop $0 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1023 | StrCmp $0 "0" 0 dir_good |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1024 | Pop $0 |
|
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1025 | Abort |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1026 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1027 | dir_good: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1028 | Pop $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1029 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1030 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1031 | ; |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1032 | ; Usage: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1033 | ; Call DoWeNeedGtk |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1034 | ; First Pop: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1035 | ; 0 - We have the correct version |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1036 | ; Second Pop: Key where Version was found |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1037 | ; 1 - We have an old version that should work, prompt user for optional upgrade |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1038 | ; Second Pop: HKLM or HKCU depending on where GTK was found. |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1039 | ; 2 - We have an old version that needs to be upgraded |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1040 | ; Second Pop: HKLM or HKCU depending on where GTK was found. |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1041 | ; 3 - We don't have Gtk+ at all |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1042 | ; Second Pop: "NONE, HKLM or HKCU" depending on our rights.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1043 | ; |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1044 | Function DoWeNeedGtk |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1045 | ; Logic should be: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1046 | ; - Check what user rights we have (HKLM or HKCU) |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1047 | ; - If HKLM rights.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1048 | ; - Only check HKLM key for GTK+ |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1049 | ; - If installed to HKLM, check it and return. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1050 | ; - If HKCU rights.. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1051 | ; - First check HKCU key for GTK+ |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1052 | ; - if good or bad exists stop and ret. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1053 | ; - If no hkcu gtk+ install, check HKLM |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1054 | ; - If HKLM ver exists but old, return as if no ver exits. |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1055 | ; - If no rights |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1056 | ; - Check HKLM |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1057 | Push $0 |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1058 | Push $1 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1059 | Push $2 |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1060 | Push $3 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1061 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1062 | Call CheckUserInstallRights |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1063 | Pop $1 |
|
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1064 | StrCmp $1 "HKLM" check_hklm |
|
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1065 | StrCmp $1 "HKCU" check_hkcu check_hklm |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1066 | check_hkcu: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1067 | ReadRegStr $0 HKCU ${GTK_REG_KEY} "Version" |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1068 | StrCpy $2 "HKCU" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1069 | StrCmp $0 "" check_hklm have_gtk |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1070 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1071 | check_hklm: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1072 | ReadRegStr $0 HKLM ${GTK_REG_KEY} "Version" |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1073 | StrCpy $2 "HKLM" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1074 | StrCmp $0 "" no_gtk have_gtk |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1075 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1076 | have_gtk: |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
1077 | ; GTK+ is already installed; check version. |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1078 | ${VersionCompare} ${GTK_INSTALL_VERSION} $0 $3 |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1079 | IntCmp $3 1 +1 good_version good_version |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1080 | ${VersionCompare} ${GTK_MIN_VERSION} $0 $3 |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1081 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1082 | ; Bad version. If hklm ver and we have hkcu or no rights.. return no gtk |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1083 | StrCmp $1 "NONE" no_gtk ; if no rights.. can't upgrade |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1084 | StrCmp $1 "HKCU" 0 +2 ; if HKLM can upgrade.. |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1085 | StrCmp $2 "HKLM" no_gtk ; have hkcu rights.. if found hklm ver can't upgrade.. |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1086 | Push $2 |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1087 | IntCmp $3 1 +3 |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1088 | Push "1" ; Optional Upgrade |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1089 | Goto done |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1090 | Push "2" ; Mandatory Upgrade |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1091 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1092 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1093 | good_version: |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1094 | StrCmp $2 "HKLM" have_hklm_gtk have_hkcu_gtk |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1095 | have_hkcu_gtk: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1096 | ; Have HKCU version |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1097 | ReadRegStr $0 HKCU ${GTK_REG_KEY} "Path" |
|
6422
95b4b1acdb18
[gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents:
6300
diff
changeset
|
1098 | Goto good_version_cont |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1099 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1100 | have_hklm_gtk: |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1101 | ReadRegStr $0 HKLM ${GTK_REG_KEY} "Path" |
|
6422
95b4b1acdb18
[gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents:
6300
diff
changeset
|
1102 | Goto good_version_cont |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1103 | |
|
6422
95b4b1acdb18
[gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents:
6300
diff
changeset
|
1104 | good_version_cont: |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1105 | Push $0 ; The path to existing GTK+ |
|
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1106 | Push "0" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1107 | Goto done |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1108 | |
|
6422
95b4b1acdb18
[gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents:
6300
diff
changeset
|
1109 | no_gtk: |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1110 | Push $1 ; our rights |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1111 | Push "3" |
|
6422
95b4b1acdb18
[gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents:
6300
diff
changeset
|
1112 | Goto done |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1113 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1114 | done: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1115 | ; The top two items on the stack are what we want to return |
|
15856
322e0965615f
Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents:
15819
diff
changeset
|
1116 | Exch 4 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1117 | Pop $0 |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1118 | Exch 4 |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1119 | Pop $3 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1120 | Pop $2 |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1121 | Pop $1 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1122 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1123 | |
| 13392 | 1124 | |
| 1125 | !macro RunCheckMacro UN | |
| 1126 | Function ${UN}RunCheck | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1127 | Push $R0 |
| 15818 | 1128 | System::Call 'kernel32::OpenMutex(i 2031617, b 0, t "pidgin_is_running") i .R0' |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1129 | IntCmp $R0 0 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
|
1130 | MessageBox MB_OK|MB_ICONEXCLAMATION $(PIDGIN_IS_RUNNING) /SD IDOK |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1131 | Abort |
|
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1132 | done: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1133 | Pop $R0 |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1134 | FunctionEnd |
| 13392 | 1135 | !macroend |
| 1136 | !insertmacro RunCheckMacro "" | |
| 1137 | !insertmacro RunCheckMacro "un." | |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1138 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1139 | Function .onInit |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1140 | Push $R0 |
|
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
|
1141 | 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
|
1142 | Pop $R0 |
|
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1143 | StrCmp $R0 0 +3 |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
1144 | MessageBox MB_OK|MB_ICONEXCLAMATION $(INSTALLER_IS_RUNNING) /SD IDOK |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1145 | Abort |
|
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1146 | Call 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
|
1147 | StrCpy $name "Pidgin ${PIDGIN_VERSION}" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1148 | StrCpy $GTK_THEME_SEL ${SecGtkWimp} |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1149 | StrCpy $SPELLCHECK_SEL "" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1150 | |
| 15818 | 1151 | ;Try to copy the old Gaim installer Lang Reg. key |
| 1152 | ClearErrors | |
| 1153 | ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "Installer Language" | |
| 1154 | IfErrors 0 +5 | |
| 1155 | ClearErrors | |
| 1156 | ReadRegStr $R0 HKCU "SOFTWARE\gaim" "Installer Language" | |
| 1157 | IfErrors +2 | |
| 1158 | WriteRegStr HKCU "${PIDGIN_REG_KEY}" "Installer Language" "$R0" | |
| 1159 | ||
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1160 | !insertmacro SetSectionFlag ${SecGtkThemes} ${SF_RO} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1161 | !insertmacro UnselectSection ${SecGtkThemes} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1162 | !insertmacro SelectSection $GTK_THEME_SEL |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1163 | !insertmacro SetSectionFlag ${SecSpellCheck} ${SF_RO} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1164 | !insertmacro UnselectSection ${SecSpellCheck} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1165 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1166 | ;Mark the dictionaries that are already installed as readonly |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1167 | Call SelectAndDisableInstalledDictionaries |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1168 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1169 | StrCpy $ISSILENT "/NOUI" |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1170 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1171 | ; GTK installer has two silent states.. one with Message boxes, one without |
|
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
|
1172 | ; If pidgin installer was run silently, we want to supress gtk installer msg boxes. |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1173 | IfSilent 0 set_gtk_normal |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1174 | StrCpy $ISSILENT "/S" |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1175 | set_gtk_normal: |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1176 | |
|
14439
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
1177 | ${GetParameters} $R0 |
|
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
1178 | ClearErrors |
|
14929
a71c59193f9d
[gaim-migrate @ 17636]
Daniel Atallah <datallah@pidgin.im>
parents:
14887
diff
changeset
|
1179 | ${GetOptions} $R0 "/L=" $R0 |
|
a71c59193f9d
[gaim-migrate @ 17636]
Daniel Atallah <datallah@pidgin.im>
parents:
14887
diff
changeset
|
1180 | IfErrors +3 |
|
a71c59193f9d
[gaim-migrate @ 17636]
Daniel Atallah <datallah@pidgin.im>
parents:
14887
diff
changeset
|
1181 | StrCpy $LANGUAGE $R0 |
|
a71c59193f9d
[gaim-migrate @ 17636]
Daniel Atallah <datallah@pidgin.im>
parents:
14887
diff
changeset
|
1182 | Goto skip_lang |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1183 | |
|
7600
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1184 | ; Select Language |
|
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1185 | ; Display Language selection dialog |
|
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1186 | !insertmacro MUI_LANGDLL_DISPLAY |
|
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1187 | skip_lang: |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1188 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1189 | ; If install path was set on the command, use it. |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1190 | StrCmp $INSTDIR "" 0 instdir_done |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1191 | |
|
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
|
1192 | ; 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
|
1193 | 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
|
1194 | ReadRegStr $INSTDIR HKCU "${PIDGIN_REG_KEY}" "" |
|
10511
0a0bd0d33904
[gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents:
10212
diff
changeset
|
1195 | IfErrors +2 |
|
0a0bd0d33904
[gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents:
10212
diff
changeset
|
1196 | StrCmp $INSTDIR "" 0 instdir_done |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
1197 | 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
|
1198 | 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
|
1199 | 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
|
1200 | StrCmp $INSTDIR "" 0 instdir_done |
|
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
|
1201 | ClearErrors |
|
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
|
1202 | ReadRegStr $INSTDIR HKCU "${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
|
1203 | 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
|
1204 | StrCmp $INSTDIR "" 0 instdir_done |
|
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
|
1205 | ClearErrors |
|
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
|
1206 | ReadRegStr $INSTDIR HKLM "${OLD_GAIM_REG_KEY}" "" |
|
10511
0a0bd0d33904
[gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents:
10212
diff
changeset
|
1207 | IfErrors +2 |
|
0a0bd0d33904
[gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents:
10212
diff
changeset
|
1208 | StrCmp $INSTDIR "" 0 instdir_done |
|
0a0bd0d33904
[gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents:
10212
diff
changeset
|
1209 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1210 | Call CheckUserInstallRights |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1211 | Pop $R0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1212 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1213 | 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
|
1214 | StrCpy $INSTDIR "$PROGRAMFILES\Pidgin" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1215 | Goto instdir_done |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1216 | user_dir: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1217 | Push $SMPROGRAMS |
|
14439
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
1218 | ${GetParent} $SMPROGRAMS $R2 |
|
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
1219 | ${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
|
1220 | StrCpy $INSTDIR "$R2\Pidgin" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1221 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1222 | instdir_done: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1223 | Pop $R0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1224 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1225 | |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
1226 | Function un.onInit |
|
10212
9a9c18b72773
[gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents:
10137
diff
changeset
|
1227 | 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
|
1228 | StrCpy $name "Pidgin ${PIDGIN_VERSION}" |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
1229 | |
|
14516
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
1230 | ; Get stored language preference |
|
fa15efbfe388
[gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents:
14512
diff
changeset
|
1231 | !insertmacro MUI_UNGETLANGUAGE |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1232 | |
|
6255
ed38c707623b
[gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents:
6233
diff
changeset
|
1233 | FunctionEnd |
|
6233
d12a0c4e40a0
[gaim-migrate @ 6726]
Herman Bloggs <herman@bluedigits.com>
parents:
6159
diff
changeset
|
1234 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1235 | ; This is a modified StartRadioButtons (from Sections.nsh) |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1236 | ; The only difference is that it allows for nothing in the group to be selected |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1237 | ; In that case, the default variable should be set to "" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1238 | !macro StartRadioButtonsUnselectable var |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1239 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1240 | !define StartRadioButtons_Var "${var}" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1241 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1242 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1243 | Push $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1244 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1245 | ;If we have no selection, don't try to unselect it |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1246 | StrCmp "${StartRadioButtons_Var}" "" +4 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1247 | SectionGetFlags "${StartRadioButtons_Var}" $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1248 | IntOp $R1 $R0 & ${SF_SELECTED} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1249 | IntOp $R0 $R0 & ${SECTION_OFF} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1250 | SectionSetFlags "${StartRadioButtons_Var}" $R0 |
|
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 | ; If the previous value isn't currently selected, |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1253 | ; we don't want to select it at the end |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1254 | IntCmp $R1 ${SF_SELECTED} +2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1255 | StrCpy "${StartRadioButtons_Var}" "" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1256 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1257 | StrCpy $R1 "${StartRadioButtons_Var}" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1258 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1259 | !macroend |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1260 | |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1261 | Function .onSelChange |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1262 | Push $0 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1263 | Push $1 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1264 | Push $2 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1265 | |
|
15045
d587829617f4
[gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents:
15031
diff
changeset
|
1266 | !insertmacro StartRadioButtonsUnselectable $GTK_THEME_SEL |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1267 | !insertmacro RadioButton ${SecGtkNone} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1268 | !insertmacro RadioButton ${SecGtkWimp} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1269 | !insertmacro RadioButton ${SecGtkBluecurve} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1270 | !insertmacro RadioButton ${SecGtkLighthouseblue} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1271 | !insertmacro EndRadioButtons |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1272 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1273 | ; Check that at most one of the non-readonly spelling dictionaries are selected |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1274 | ; We can't use $R0 or $R1 in this block since they're used in the macros |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1275 | !insertmacro StartRadioButtonsUnselectable $SPELLCHECK_SEL |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1276 | ; Start with the first language dictionary |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1277 | IntOp $2 ${SecSpellCheck} + 1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1278 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1279 | start_spellcheck_radio: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1280 | SectionGetFlags $2 $0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1281 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1282 | IntOp $1 $0 & ${SF_SECGRPEND} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1283 | ; If it is the end of the section group, stop |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1284 | IntCmp $1 ${SF_SECGRPEND} end_spellcheck_radio |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1285 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1286 | IntOp $0 $0 & ${SF_RO} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1287 | IntCmp $0 ${SF_RO} after_button_insert |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1288 | ; If !readonly, then it is part of the radiobutton group |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1289 | !insertmacro RadioButton $2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1290 | after_button_insert: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1291 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1292 | IntOp $2 $2 + 1 ;Advance to the next section |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1293 | Goto start_spellcheck_radio |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1294 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1295 | end_spellcheck_radio: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1296 | !insertmacro EndRadioButtons |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1297 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1298 | Pop $2 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1299 | Pop $1 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1300 | Pop $0 |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1301 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1302 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1303 | ; Page enter and exit functions.. |
|
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1304 | |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1305 | Function preWelcomePage |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1306 | Push R0 |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1307 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1308 | !ifndef WITH_GTK |
|
7600
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1309 | ; If this installer dosn't have GTK, check whether we need it. |
|
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1310 | ; We do this here an not in .onInit because language change in |
|
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1311 | ; .onInit doesn't take effect until it is finished. |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1312 | Call DoWeNeedGtk |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1313 | Pop $R0 |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1314 | Pop $GTK_FOLDER |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1315 | |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1316 | IntCmp $R0 1 done done |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1317 | MessageBox MB_OK $(GTK_INSTALLER_NEEDED) /SD IDOK |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1318 | Quit |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1319 | |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1320 | done: |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1321 | |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1322 | !else |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1323 | Push R1 |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1324 | |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1325 | ; If on Win95/98/ME warn them that the GTK+ version wont work |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1326 | Call GetWindowsVersion |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1327 | Pop $R1 |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1328 | StrCmp $R1 "95" win_ver_bad |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1329 | StrCmp $R1 "98" win_ver_bad |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1330 | StrCmp $R1 "ME" win_ver_bad |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1331 | Goto done |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1332 | |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1333 | win_ver_bad: |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1334 | !insertmacro UnselectSection ${SecGtk} |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1335 | !insertmacro SetSectionFlag ${SecGtkNone} ${SF_RO} |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1336 | !insertmacro UnselectSection ${SecGtkNone} |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1337 | !insertmacro SetSectionFlag ${SecGtkWimp} ${SF_RO} |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1338 | !insertmacro UnselectSection ${SecGtkWimp} |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1339 | !insertmacro SetSectionFlag ${SecGtkBluecurve} ${SF_RO} |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1340 | !insertmacro UnselectSection ${SecGtkBluecurve} |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1341 | !insertmacro SetSectionFlag ${SecGtkLighthouseblue} ${SF_RO} |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1342 | !insertmacro UnselectSection ${SecGtkLighthouseblue} |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1343 | MessageBox MB_OK $(GTK_WINDOWS_INCOMPATIBLE) /SD IDOK |
|
7600
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1344 | Call DoWeNeedGtk |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1345 | Pop $R0 |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1346 | Pop $R1 |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1347 | IntCmp $R0 1 done done ; Upgrade isn't optional - abort if we don't have a suitable version |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1348 | Quit |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1349 | |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1350 | done: |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1351 | Pop $R1 |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1352 | !endif |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1353 | Pop $R0 |
|
7600
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1354 | FunctionEnd |
|
279abfe7721f
[gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents:
7575
diff
changeset
|
1355 | |
|
7572
976d5883ef99
[gaim-migrate @ 8188]
Herman Bloggs <herman@bluedigits.com>
parents:
7558
diff
changeset
|
1356 | !ifdef WITH_GTK |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1357 | Function preGtkDirPage |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1358 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1359 | Push $R1 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1360 | Call DoWeNeedGtk |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1361 | Pop $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1362 | Pop $R1 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1363 | |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1364 | IntCmp $R0 2 +2 +2 no_gtk |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1365 | StrCmp $R0 "3" no_gtk no_gtk |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1366 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1367 | ; Don't show dir selector.. Upgrades are done to existing path.. |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1368 | Pop $R1 |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1369 | Pop $R0 |
|
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1370 | Abort |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1371 | |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1372 | no_gtk: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1373 | StrCmp $R1 "NONE" 0 no_gtk_cont |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1374 | ; Got no install rights.. |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1375 | Pop $R1 |
|
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1376 | Pop $R0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1377 | Abort |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1378 | no_gtk_cont: |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1379 | ; Suggest path.. |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1380 | StrCmp $R1 "HKCU" 0 hklm1 |
|
14439
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
1381 | ${GetParent} $SMPROGRAMS $R0 |
|
adecc0185ad7
[gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents:
14438
diff
changeset
|
1382 | ${GetParent} $R0 $R0 |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1383 | StrCpy $R0 "$R0\GTK\2.0" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1384 | Goto got_path |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1385 | hklm1: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1386 | StrCpy $R0 "${GTK_DEFAULT_INSTALL_PATH}" |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1387 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1388 | got_path: |
|
14854
0a2391b774a4
[gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents:
14798
diff
changeset
|
1389 | StrCpy $name "GTK+ ${GTK_INSTALL_VERSION}" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1390 | StrCpy $GTK_FOLDER $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1391 | Pop $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1392 | Pop $R0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1393 | FunctionEnd |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1394 | |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1395 | Function postGtkDirPage |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1396 | Push $R0 |
|
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
|
1397 | StrCpy $name "Pidgin ${PIDGIN_VERSION}" |
|
7558
a99729c4010a
[gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents:
7357
diff
changeset
|
1398 | Push $GTK_FOLDER |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1399 | Call VerifyDir |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1400 | Pop $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1401 | StrCmp $R0 "0" 0 done |
|
14438
b552f0964484
[gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents:
14351
diff
changeset
|
1402 | MessageBox MB_OK $(GTK_BAD_INSTALL_PATH) /SD IDOK |
|
14512
7584322a65a2
[gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents:
14439
diff
changeset
|
1403 | Pop $R0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1404 | Abort |
|
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1405 | done: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1406 | Pop $R0 |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1407 | FunctionEnd |
|
7572
976d5883ef99
[gaim-migrate @ 8188]
Herman Bloggs <herman@bluedigits.com>
parents:
7558
diff
changeset
|
1408 | !endif |
|
5332
0cfb8232fa21
[gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents:
5066
diff
changeset
|
1409 | |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1410 | ; GetWindowsVersion |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1411 | ; |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1412 | ; Based on Yazno's function, http://yazno.tripod.com/powerpimpit/ |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1413 | ; Updated by Joost Verburg |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1414 | ; |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1415 | ; Returns on top of stack |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1416 | ; |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1417 | ; Windows Version (95, 98, ME, NT x.x, 2000, XP, 2003, Vista) |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1418 | ; or |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1419 | ; '' (Unknown Windows Version) |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1420 | ; |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1421 | ; Usage: |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1422 | ; Call GetWindowsVersion |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1423 | ; Pop $R0 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1424 | ; |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1425 | ; at this point $R0 is "NT 4.0" or whatnot |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1426 | Function GetWindowsVersion |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1427 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1428 | Push $R0 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1429 | Push $R1 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1430 | |
|
12637
3a82ff60687b
[gaim-migrate @ 14973]
Daniel Atallah <datallah@pidgin.im>
parents:
12452
diff
changeset
|
1431 | ClearErrors |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1432 | ReadRegStr $R0 HKLM \ |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1433 | "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1434 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1435 | IfErrors 0 lbl_winnt |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1436 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1437 | ; we are not NT |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1438 | ReadRegStr $R0 HKLM \ |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1439 | "SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1440 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1441 | StrCpy $R1 $R0 1 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1442 | StrCmp $R1 '4' 0 lbl_error |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1443 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1444 | StrCpy $R1 $R0 3 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1445 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1446 | StrCmp $R1 '4.0' lbl_win32_95 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1447 | StrCmp $R1 '4.9' lbl_win32_ME lbl_win32_98 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1448 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1449 | lbl_win32_95: |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1450 | StrCpy $R0 '95' |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1451 | Goto lbl_done |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1452 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1453 | lbl_win32_98: |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1454 | StrCpy $R0 '98' |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1455 | Goto lbl_done |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1456 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1457 | lbl_win32_ME: |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1458 | StrCpy $R0 'ME' |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1459 | Goto lbl_done |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1460 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1461 | lbl_winnt: |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1462 | StrCpy $R1 $R0 1 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1463 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1464 | StrCmp $R1 '3' lbl_winnt_x |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1465 | StrCmp $R1 '4' lbl_winnt_x |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1466 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1467 | StrCpy $R1 $R0 3 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1468 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1469 | StrCmp $R1 '5.0' lbl_winnt_2000 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1470 | StrCmp $R1 '5.1' lbl_winnt_XP |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1471 | StrCmp $R1 '5.2' lbl_winnt_2003 |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1472 | StrCmp $R1 '6.0' lbl_winnt_vista lbl_error |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1473 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1474 | lbl_winnt_x: |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1475 | StrCpy $R0 "NT $R0" 6 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1476 | Goto lbl_done |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1477 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1478 | lbl_winnt_2000: |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1479 | Strcpy $R0 '2000' |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1480 | Goto lbl_done |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1481 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1482 | lbl_winnt_XP: |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1483 | Strcpy $R0 'XP' |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1484 | Goto lbl_done |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1485 | |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1486 | lbl_winnt_2003: |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1487 | Strcpy $R0 '2003' |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1488 | Goto lbl_done |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1489 | |
|
15047
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1490 | lbl_winnt_vista: |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1491 | Strcpy $R0 'Vista' |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1492 | Goto lbl_done |
|
6064684b3eeb
[gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents:
15045
diff
changeset
|
1493 | |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1494 | lbl_error: |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1495 | Strcpy $R0 '' |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1496 | lbl_done: |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1497 | |
|
10920
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1498 | Pop $R1 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1499 | Exch $R0 |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1500 | FunctionEnd |
|
f68798385106
[gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
1501 | |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1502 | ; SpellChecker Related Functions |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1503 | ;------------------------------- |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1504 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1505 | ; Convert the a Section index to the language code |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1506 | ; Push the section index onto the stack and pop off the language code after the call |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1507 | ; This will set the error code, if no match is found |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1508 | Function GetLangCodeForSection |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1509 | ClearErrors |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1510 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1511 | Exch |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1512 | Pop $R0 ;This is the section index |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1513 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1514 | IntCmp $R0 ${SecSpellCheckBreton} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1515 | StrCpy $R0 "br" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1516 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1517 | IntCmp $R0 ${SecSpellCheckCatalan} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1518 | StrCpy $R0 "ca" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1519 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1520 | IntCmp $R0 ${SecSpellCheckCzech} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1521 | StrCpy $R0 "cs" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1522 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1523 | IntCmp $R0 ${SecSpellCheckWelsh} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1524 | StrCpy $R0 "cy" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1525 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1526 | IntCmp $R0 ${SecSpellCheckDanish} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1527 | StrCpy $R0 "da" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1528 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1529 | IntCmp $R0 ${SecSpellCheckGerman} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1530 | StrCpy $R0 "de" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1531 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1532 | IntCmp $R0 ${SecSpellCheckGreek} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1533 | StrCpy $R0 "el" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1534 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1535 | IntCmp $R0 ${SecSpellCheckEnglish} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1536 | StrCpy $R0 "en" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1537 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1538 | IntCmp $R0 ${SecSpellCheckEsperanto} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1539 | StrCpy $R0 "eo" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1540 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1541 | IntCmp $R0 ${SecSpellCheckSpanish} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1542 | StrCpy $R0 "es" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1543 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1544 | IntCmp $R0 ${SecSpellCheckFaroese} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1545 | StrCpy $R0 "fo" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1546 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1547 | IntCmp $R0 ${SecSpellCheckFrench} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1548 | StrCpy $R0 "fr" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1549 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1550 | IntCmp $R0 ${SecSpellCheckItalian} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1551 | StrCpy $R0 "it" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1552 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1553 | IntCmp $R0 ${SecSpellCheckDutch} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1554 | StrCpy $R0 "nl" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1555 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1556 | IntCmp $R0 ${SecSpellCheckNorwegian} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1557 | StrCpy $R0 "no" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1558 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1559 | IntCmp $R0 ${SecSpellCheckPolish} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1560 | StrCpy $R0 "pl" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1561 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1562 | IntCmp $R0 ${SecSpellCheckPortuguese} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1563 | StrCpy $R0 "pt" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1564 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1565 | IntCmp $R0 ${SecSpellCheckRomanian} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1566 | StrCpy $R0 "ro" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1567 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1568 | IntCmp $R0 ${SecSpellCheckRussian} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1569 | StrCpy $R0 "ru" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1570 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1571 | IntCmp $R0 ${SecSpellCheckSlovak} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1572 | StrCpy $R0 "sk" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1573 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1574 | IntCmp $R0 ${SecSpellCheckSwedish} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1575 | StrCpy $R0 "sv" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1576 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1577 | IntCmp $R0 ${SecSpellCheckUkrainian} 0 +3 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1578 | StrCpy $R0 "uk" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1579 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1580 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1581 | SetErrors |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1582 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1583 | done: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1584 | Exch $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1585 | FunctionEnd ;GetLangCodeForSection |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1586 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1587 | ; Select and Disable any Sections that have currently installed dictionaries |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1588 | Function SelectAndDisableInstalledDictionaries |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1589 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1590 | Push $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1591 | Push $R2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1592 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1593 | ; Start with the first language dictionary |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1594 | IntOp $R0 ${SecSpellCheck} + 1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1595 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1596 | start: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1597 | ; If it is the end of the section group, stop |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1598 | SectionGetFlags $R0 $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1599 | IntOp $R2 $R1 & ${SF_SECGRPEND} |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1600 | IntCmp $R2 ${SF_SECGRPEND} done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1601 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1602 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1603 | Call GetLangCodeForSection |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1604 | Pop $R2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1605 | IfErrors end_loop |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1606 | ReadRegStr $R2 HKLM "${ASPELL_REG_KEY}-$R2" "" ; Check that the dictionary is installed |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1607 | StrCmp $R2 "" end_loop ; If it isn't installed, skip to the next item |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1608 | IntOp $R1 $R1 | ${SF_RO} ; Mark Readonly |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1609 | IntOp $R1 $R1 | ${SF_SELECTED} ; Select |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1610 | SectionSetFlags $R0 $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1611 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1612 | end_loop: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1613 | IntOp $R0 $R0 + 1 ;Advance to the next section |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1614 | Goto start |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1615 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1616 | done: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1617 | Pop $R2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1618 | Pop $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1619 | Pop $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1620 | FunctionEnd |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1621 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1622 | Function InstallAspellAndDict |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1623 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1624 | Exch |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1625 | Call GetLangCodeForSection |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1626 | Pop $R0 ;This is the language code |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1627 | Push $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1628 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1629 | IfErrors done ; We weren't able to convert the section to lang code |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1630 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1631 | retry: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1632 | Call InstallAspell |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1633 | Pop $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1634 | StrCmp $R1 "" +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1635 | StrCmp $R1 "cancel" 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
|
1636 | MessageBox MB_RETRYCANCEL "$(PIDGIN_SPELLCHECK_ERROR) : $R1" /SD IDCANCEL IDRETRY retry IDCANCEL done |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1637 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1638 | retry_dict: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1639 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1640 | Call InstallAspellDictionary |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1641 | Pop $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1642 | StrCmp $R1 "" +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1643 | StrCmp $R1 "cancel" 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
|
1644 | MessageBox MB_RETRYCANCEL "$(PIDGIN_SPELLCHECK_DICT_ERROR) : $R1" /SD IDCANCEL IDRETRY retry_dict |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1645 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1646 | done: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1647 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1648 | Pop $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1649 | Pop $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1650 | FunctionEnd |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1651 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1652 | Function InstallAspell |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1653 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1654 | Push $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1655 | Push $R2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1656 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1657 | check: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1658 | ClearErrors |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1659 | ReadRegDWORD $R0 HKLM ${ASPELL_REG_KEY} "AspellVersion" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1660 | IntCmp $R0 15 installed |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1661 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1662 | ; If this is the check after installation, don't infinite loop on failure |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1663 | StrCmp $R1 "$TEMP\aspell_installer.exe" 0 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1664 | StrCpy $R0 $(ASPELL_INSTALL_FAILED) |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1665 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1666 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1667 | ; We need to download and install aspell |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1668 | StrCpy $R1 "$TEMP\aspell_installer.exe" |
|
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
|
1669 | StrCpy $R2 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}&dl_pkg=aspell_core" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1670 | DetailPrint "Downloading Aspell... ($R2)" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1671 | NSISdl::download $R2 $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1672 | Pop $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1673 | StrCmp $R0 "success" +2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1674 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1675 | ExecWait '"$R1"' |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1676 | Delete $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1677 | Goto check ; Check that it is now installed correctly |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1678 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1679 | installed: ;Aspell is currently installed, no error message |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1680 | DetailPrint "Aspell is installed" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1681 | StrCpy $R0 '' |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1682 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1683 | done: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1684 | Pop $R2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1685 | Pop $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1686 | Exch $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1687 | FunctionEnd |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1688 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1689 | Function InstallAspellDictionary |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1690 | Push $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1691 | Exch |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1692 | Pop $R0 ;This is the language code |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1693 | Push $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1694 | Push $R2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1695 | Push $R3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1696 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1697 | check: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1698 | ClearErrors |
|
13532
610313290908
[gaim-migrate @ 15908]
Daniel Atallah <datallah@pidgin.im>
parents:
13392
diff
changeset
|
1699 | ReadRegStr $R2 HKLM "${ASPELL_REG_KEY}-$R0" "" |
|
610313290908
[gaim-migrate @ 15908]
Daniel Atallah <datallah@pidgin.im>
parents:
13392
diff
changeset
|
1700 | StrCmp $R2 "" 0 installed |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1701 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1702 | ; If this is the check after installation, don't infinite loop on failure |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1703 | StrCmp $R1 "$TEMP\aspell_dict-$R0.exe" 0 +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1704 | StrCpy $R0 $(ASPELL_INSTALL_FAILED) |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1705 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1706 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1707 | ; We need to download and install aspell |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1708 | StrCpy $R1 "$TEMP\aspell_dict-$R0.exe" |
|
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
|
1709 | StrCpy $R3 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}&dl_pkg=lang_$R0" |
|
11578
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1710 | DetailPrint "Downloading the Aspell $R0 Dictionary... ($R3)" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1711 | NSISdl::download $R3 $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1712 | Pop $R3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1713 | StrCmp $R3 "success" +3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1714 | StrCpy $R0 $R3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1715 | Goto done |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1716 | ExecWait '"$R1"' |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1717 | Delete $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1718 | Goto check ; Check that it is now installed correctly |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1719 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1720 | installed: ;The dictionary is currently installed, no error message |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1721 | DetailPrint "Aspell $R0 Dictionary is installed" |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1722 | StrCpy $R0 '' |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1723 | |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1724 | done: |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1725 | Pop $R3 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1726 | Pop $R2 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1727 | Pop $R1 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1728 | Exch $R0 |
|
70230c5dded2
[gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents:
11260
diff
changeset
|
1729 | FunctionEnd |