Mercurial > pidgin
annotate gaim-installer.nsi @ 12712:8ae981f2c9cb
[gaim-migrate @ 15056]
SF Patch #1395207 from Sadrul
"Gaim currently doesn't allow to have
formatted/multiline string as a preference for
core-plugins. It'd be great if core plugins could have
formatted strings for preference (ie. have
imhtml+toolbar for the preference in the
Plugin-preference dialog) without actually having to
worry about gtk-codes."
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 04 Jan 2006 04:14:02 +0000 |
parents | db5241525e53 |
children | 7324922a8849 |
rev | line source |
---|---|
3630 | 1 ; Installer script for win32 Gaim |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
2 ; Original Author: Herman Bloggs <hermanator12002@yahoo.com> |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
3 ; Updated By: Daniel Atallah <daniel_atallah@yahoo.com> |
3630 | 4 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
5 ; NOTE: this .NSI script is intended for NSIS 2.08 |
8388
c08d9b0dbd29
[gaim-migrate @ 9116]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8183
diff
changeset
|
6 ; |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
7 |
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
8 ;-------------------------------- |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
9 ;Global Variables |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
10 Var name |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
11 Var GTK_FOLDER |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
12 Var GTK_THEME_SEL |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
13 Var LANG_IS_SET |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
14 Var ISSILENT |
9902 | 15 Var STARTUP_RUN_KEY |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
16 Var SPELLCHECK_SEL |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
17 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
18 ;-------------------------------- |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
19 ;Configuration |
3630 | 20 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
21 ;The name var is set in .onInit |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
22 Name $name |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
23 |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
24 !ifdef WITH_GTK |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
25 OutFile "gaim-${GAIM_VERSION}.exe" |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
26 !else |
5931
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5396
diff
changeset
|
27 !ifdef DEBUG |
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5396
diff
changeset
|
28 OutFile "gaim-${GAIM_VERSION}-debug.exe" |
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5396
diff
changeset
|
29 !else |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
30 OutFile "gaim-${GAIM_VERSION}-no-gtk.exe" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
31 !endif |
5931
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5396
diff
changeset
|
32 !endif |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
33 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
34 SetCompressor /SOLID lzma |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
35 ShowInstDetails show |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
36 ShowUninstDetails show |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
37 SetDateSave on |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
38 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
39 ; $name and $INSTDIR are set in .onInit function.. |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
40 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
41 !include "MUI.nsh" |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
42 !include "Sections.nsh" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
43 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
44 ;-------------------------------- |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
45 ;Defines |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
46 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
47 !define GAIM_NSIS_INCLUDE_PATH ".\src\win32\nsis" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
48 !define GAIM_INSTALLER_DEPS "..\win32-dev\gaim-inst-deps" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
49 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
50 !define GAIM_REG_KEY "SOFTWARE\gaim" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
51 !define GAIM_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
52 !define HKLM_APP_PATHS_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\gaim.exe" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
53 !define GAIM_STARTUP_RUN_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
54 !define GAIM_UNINST_EXE "gaim-uninst.exe" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
55 !define GAIM_REG_LANG "Installer Language" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
56 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
57 !define GTK_VERSION "2.6.10" |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
58 !define GTK_REG_KEY "SOFTWARE\GTK\2.0" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
59 !define PERL_REG_KEY "SOFTWARE\Perl" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
60 !define PERL_DLL "perl58.dll" |
11260
fd4aba9dab9d
[gaim-migrate @ 13437]
Richard Laager <rlaager@wiktel.com>
parents:
11103
diff
changeset
|
61 !define GTK_DEFAULT_INSTALL_PATH "$COMMONFILES\GTK\2.0" |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
62 !define GTK_RUNTIME_INSTALLER "..\gtk_installer\gtk-runtime*.exe" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
63 !define GTK_THEME_DIR "..\gtk_installer\gtk_themes" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
64 !define GTK_DEFAULT_THEME_GTKRC_DIR "share\themes\Default\gtk-2.0" |
9565
c60809a33460
[gaim-migrate @ 10404]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9561
diff
changeset
|
65 !define GTK_DEFAULT_THEME_ENGINE_DIR "lib\gtk-2.0\2.4.0\engines" |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
66 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
67 !define ASPELL_REG_KEY "SOFTWARE\Aspell" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
68 !define DOWNLOADER_URL "http://gaim.sourceforge.net/win32/download_redir.php" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
69 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
70 ;-------------------------------- |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
71 ;Modern UI Configuration |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
72 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
73 !define MUI_ICON ".\pixmaps\gaim-install.ico" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
74 !define MUI_UNICON ".\pixmaps\gaim-install.ico" |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
75 !define MUI_WELCOMEFINISHPAGE_BITMAP ".\src\win32\nsis\gaim-intro.bmp" |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
76 !define MUI_HEADERIMAGE |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
77 !define MUI_HEADERIMAGE_BITMAP ".\src\win32\nsis\gaim-header.bmp" |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
78 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
79 ; Alter License section |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
80 !define MUI_LICENSEPAGE_BUTTON $(GAIM_LICENSE_BUTTON) |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
81 !define MUI_LICENSEPAGE_TEXT_BOTTOM $(GAIM_LICENSE_BOTTOM_TEXT) |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
82 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
83 !define MUI_COMPONENTSPAGE_SMALLDESC |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
84 !define MUI_ABORTWARNING |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
85 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
86 ;Finish Page config |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
87 !define MUI_FINISHPAGE_RUN "$INSTDIR\gaim.exe" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
88 !define MUI_FINISHPAGE_RUN_NOTCHECKED |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
89 !define MUI_FINISHPAGE_LINK $(GAIM_FINISH_VISIT_WEB_SITE) |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
90 !define MUI_FINISHPAGE_LINK_LOCATION "http://gaim.sourceforge.net/win32" |
3630 | 91 |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
92 ;-------------------------------- |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
93 ;Pages |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
94 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
95 !ifndef WITH_GTK |
7600
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
96 !define MUI_PAGE_CUSTOMFUNCTION_PRE preWelcomePage |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
97 !endif |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
98 !insertmacro MUI_PAGE_WELCOME |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
99 !insertmacro MUI_PAGE_LICENSE "./COPYING" |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
100 !insertmacro MUI_PAGE_COMPONENTS |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
101 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
102 !ifdef WITH_GTK |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
103 ; GTK+ install dir page |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
104 !define MUI_PAGE_CUSTOMFUNCTION_PRE preGtkDirPage |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
105 !define MUI_PAGE_CUSTOMFUNCTION_LEAVE postGtkDirPage |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
106 !define MUI_DIRECTORYPAGE_VARIABLE $GTK_FOLDER |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
107 !insertmacro MUI_PAGE_DIRECTORY |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
108 !endif |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
109 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
110 ; Gaim install dir page |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
111 !insertmacro MUI_PAGE_DIRECTORY |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
112 |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
113 !insertmacro MUI_PAGE_INSTFILES |
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
114 !insertmacro MUI_PAGE_FINISH |
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
115 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
116 !insertmacro MUI_UNPAGE_WELCOME |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
117 !insertmacro MUI_UNPAGE_CONFIRM |
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
118 !insertmacro MUI_UNPAGE_INSTFILES |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
119 !insertmacro MUI_UNPAGE_FINISH |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
120 |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
121 ;-------------------------------- |
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
122 ;Languages |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
123 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
124 ;; English goes first because its the default. The rest are |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
125 ;; in alphabetical order (at least the strings actually displayed |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
126 ;; will be). |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
127 |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
128 !insertmacro MUI_LANGUAGE "English" |
6913
44933354ecad
[gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6912
diff
changeset
|
129 |
10095
b28f9be379b3
[gaim-migrate @ 11114]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9960
diff
changeset
|
130 !insertmacro MUI_LANGUAGE "Albanian" |
6913
44933354ecad
[gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6912
diff
changeset
|
131 !insertmacro MUI_LANGUAGE "Bulgarian" |
9956
a448265e09d8
[gaim-migrate @ 10856]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9902
diff
changeset
|
132 !insertmacro MUI_LANGUAGE "Catalan" |
7626
2fb83607becf
[gaim-migrate @ 8250]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7600
diff
changeset
|
133 !insertmacro MUI_LANGUAGE "Czech" |
7924
cb400cd78961
[gaim-migrate @ 8593]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7626
diff
changeset
|
134 !insertmacro MUI_LANGUAGE "Danish" |
6913
44933354ecad
[gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6912
diff
changeset
|
135 !insertmacro MUI_LANGUAGE "SimpChinese" |
44933354ecad
[gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6912
diff
changeset
|
136 !insertmacro MUI_LANGUAGE "TradChinese" |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
137 !insertmacro MUI_LANGUAGE "German" |
7575
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
138 !insertmacro MUI_LANGUAGE "Spanish" |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
139 !insertmacro MUI_LANGUAGE "French" |
8388
c08d9b0dbd29
[gaim-migrate @ 9116]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8183
diff
changeset
|
140 !insertmacro MUI_LANGUAGE "Hebrew" |
6913
44933354ecad
[gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6912
diff
changeset
|
141 !insertmacro MUI_LANGUAGE "Italian" |
8183
ab0fce369327
[gaim-migrate @ 8902]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8180
diff
changeset
|
142 !insertmacro MUI_LANGUAGE "Japanese" |
6913
44933354ecad
[gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6912
diff
changeset
|
143 !insertmacro MUI_LANGUAGE "Korean" |
44933354ecad
[gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6912
diff
changeset
|
144 !insertmacro MUI_LANGUAGE "Hungarian" |
44933354ecad
[gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6912
diff
changeset
|
145 !insertmacro MUI_LANGUAGE "Dutch" |
8567
d92a7574473c
[gaim-migrate @ 9314]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8388
diff
changeset
|
146 !insertmacro MUI_LANGUAGE "Norwegian" |
8126
b6458d4ce101
[gaim-migrate @ 8830]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8099
diff
changeset
|
147 !insertmacro MUI_LANGUAGE "Polish" |
6290
976d9ad5d77a
[gaim-migrate @ 6789]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6277
diff
changeset
|
148 !insertmacro MUI_LANGUAGE "PortugueseBR" |
7215
fa011d609c54
[gaim-migrate @ 7784]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7214
diff
changeset
|
149 !insertmacro MUI_LANGUAGE "Portuguese" |
6951
54deff9eec41
[gaim-migrate @ 7498]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6948
diff
changeset
|
150 !insertmacro MUI_LANGUAGE "Romanian" |
8099
40163e984818
[gaim-migrate @ 8799]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7924
diff
changeset
|
151 !insertmacro MUI_LANGUAGE "Russian" |
6913
44933354ecad
[gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6912
diff
changeset
|
152 !insertmacro MUI_LANGUAGE "Serbian" |
9561
3ff773e92747
[gaim-migrate @ 10397]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9139
diff
changeset
|
153 !insertmacro MUI_LANGUAGE "Slovak" |
9115
f55f93a975f2
[gaim-migrate @ 9892]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8567
diff
changeset
|
154 !insertmacro MUI_LANGUAGE "Slovenian" |
8179
3fa28787e571
[gaim-migrate @ 8896]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8178
diff
changeset
|
155 !insertmacro MUI_LANGUAGE "Finnish" |
6559
8dba07c335e9
[gaim-migrate @ 7081]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6491
diff
changeset
|
156 !insertmacro MUI_LANGUAGE "Swedish" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
157 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
158 ;-------------------------------- |
6233
0c64ba470632
[gaim-migrate @ 6726]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6159
diff
changeset
|
159 ;Translations |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
160 |
7572
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
161 !define GAIM_DEFAULT_LANGFILE "${GAIM_NSIS_INCLUDE_PATH}\translations\english.nsh" |
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
162 |
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
163 !include "${GAIM_NSIS_INCLUDE_PATH}\langmacros.nsh" |
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
164 |
10095
b28f9be379b3
[gaim-migrate @ 11114]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9960
diff
changeset
|
165 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "ALBANIAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\albanian.nsh" |
7575
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
166 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "BULGARIAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\bulgarian.nsh" |
9956
a448265e09d8
[gaim-migrate @ 10856]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9902
diff
changeset
|
167 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "CATALAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\catalan.nsh" |
7626
2fb83607becf
[gaim-migrate @ 8250]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7600
diff
changeset
|
168 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "CZECH" "${GAIM_NSIS_INCLUDE_PATH}\translations\czech.nsh" |
7924
cb400cd78961
[gaim-migrate @ 8593]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7626
diff
changeset
|
169 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "DANISH" "${GAIM_NSIS_INCLUDE_PATH}\translations\danish.nsh" |
7575
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
170 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "DUTCH" "${GAIM_NSIS_INCLUDE_PATH}\translations\dutch.nsh" |
7572
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
171 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "ENGLISH" "${GAIM_NSIS_INCLUDE_PATH}\translations\english.nsh" |
8178
33802f8a2d90
[gaim-migrate @ 8895]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8126
diff
changeset
|
172 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "FINNISH" "${GAIM_NSIS_INCLUDE_PATH}\translations\finnish.nsh" |
7572
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
173 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "FRENCH" "${GAIM_NSIS_INCLUDE_PATH}\translations\french.nsh" |
7575
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
174 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "GERMAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\german.nsh" |
8388
c08d9b0dbd29
[gaim-migrate @ 9116]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8183
diff
changeset
|
175 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "HEBREW" "${GAIM_NSIS_INCLUDE_PATH}\translations\hebrew.nsh" |
7572
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
176 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "HUNGARIAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\hungarian.nsh" |
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
177 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "ITALIAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\italian.nsh" |
8183
ab0fce369327
[gaim-migrate @ 8902]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8180
diff
changeset
|
178 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "JAPANESE" "${GAIM_NSIS_INCLUDE_PATH}\translations\japanese.nsh" |
7575
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
179 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "KOREAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\korean.nsh" |
8567
d92a7574473c
[gaim-migrate @ 9314]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8388
diff
changeset
|
180 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "NORWEGIAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\norwegian.nsh" |
8126
b6458d4ce101
[gaim-migrate @ 8830]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8099
diff
changeset
|
181 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "POLISH" "${GAIM_NSIS_INCLUDE_PATH}\translations\polish.nsh" |
7575
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
182 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "PORTUGUESE" "${GAIM_NSIS_INCLUDE_PATH}\translations\portuguese.nsh" |
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
183 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "PORTUGUESEBR" "${GAIM_NSIS_INCLUDE_PATH}\translations\portuguese-br.nsh" |
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
184 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "ROMANIAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\romanian.nsh" |
8099
40163e984818
[gaim-migrate @ 8799]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7924
diff
changeset
|
185 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "RUSSIAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\russian.nsh" |
7575
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
186 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "SERBIAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\serbian-latin.nsh" |
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
187 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "SIMPCHINESE" "${GAIM_NSIS_INCLUDE_PATH}\translations\simp-chinese.nsh" |
9561
3ff773e92747
[gaim-migrate @ 10397]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9139
diff
changeset
|
188 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "SLOVAK" "${GAIM_NSIS_INCLUDE_PATH}\translations\slovak.nsh" |
9115
f55f93a975f2
[gaim-migrate @ 9892]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
8567
diff
changeset
|
189 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "SLOVENIAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\slovenian.nsh" |
7575
df5f8c339c38
[gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7572
diff
changeset
|
190 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "SPANISH" "${GAIM_NSIS_INCLUDE_PATH}\translations\spanish.nsh" |
7572
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
191 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "SWEDISH" "${GAIM_NSIS_INCLUDE_PATH}\translations\swedish.nsh" |
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
192 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "TRADCHINESE" "${GAIM_NSIS_INCLUDE_PATH}\translations\trad-chinese.nsh" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
193 |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
194 ;-------------------------------- |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
195 ;Reserve Files |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
196 ; Only need this if using bzip2 compression |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
197 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
198 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
199 !insertmacro MUI_RESERVEFILE_LANGDLL |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
200 ReserveFile "${NSISDIR}\Plugins\UserInfo.dll" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
201 |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
202 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
203 ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
204 ;; Start Install Sections ;; |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
205 ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
3630 | 206 |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
207 ;-------------------------------- |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
208 ;Uninstall any old version of Gaim |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
209 |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
210 Section -SecUninstallOldGaim |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
211 ; Check install rights.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
212 Call CheckUserInstallRights |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
213 Pop $R0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
214 |
9902 | 215 ;If gaim is currently set to run on startup, |
216 ; save the section of the Registry where the setting is before uninstalling, | |
217 ; so we can put it back after installing the new version | |
218 ClearErrors | |
219 ReadRegStr $STARTUP_RUN_KEY HKCU "${GAIM_STARTUP_RUN_KEY}" "Gaim" | |
220 IfErrors +3 | |
221 StrCpy $STARTUP_RUN_KEY "HKCU" | |
222 Goto +4 | |
223 ReadRegStr $STARTUP_RUN_KEY HKLM "${GAIM_STARTUP_RUN_KEY}" "Gaim" | |
224 IfErrors +2 | |
225 StrCpy $STARTUP_RUN_KEY "HKLM" | |
226 | |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
227 StrCmp $R0 "HKLM" gaim_hklm |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
228 StrCmp $R0 "HKCU" gaim_hkcu done |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
229 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
230 gaim_hkcu: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
231 ReadRegStr $R1 HKCU ${GAIM_REG_KEY} "" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
232 ReadRegStr $R2 HKCU ${GAIM_REG_KEY} "Version" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
233 ReadRegStr $R3 HKCU "${GAIM_UNINSTALL_KEY}" "UninstallString" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
234 Goto try_uninstall |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
235 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
236 gaim_hklm: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
237 ReadRegStr $R1 HKLM ${GAIM_REG_KEY} "" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
238 ReadRegStr $R2 HKLM ${GAIM_REG_KEY} "Version" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
239 ReadRegStr $R3 HKLM "${GAIM_UNINSTALL_KEY}" "UninstallString" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
240 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
241 ; If previous version exists .. remove |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
242 try_uninstall: |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
243 StrCmp $R1 "" done |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
244 ; Version key started with 0.60a3. Prior versions can't be |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
245 ; automaticlly uninstalled. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
246 StrCmp $R2 "" uninstall_problem |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
247 ; Check if we have uninstall string.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
248 IfFileExists $R3 0 uninstall_problem |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
249 ; Have uninstall string.. go ahead and uninstall. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
250 SetOverwrite on |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
251 ; Need to copy uninstaller outside of the install dir |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
252 ClearErrors |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
253 CopyFiles /SILENT $R3 "$TEMP\${GAIM_UNINST_EXE}" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
254 SetOverwrite off |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
255 IfErrors uninstall_problem |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
256 ; Ready to uninstall.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
257 ClearErrors |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
258 ExecWait '"$TEMP\${GAIM_UNINST_EXE}" /S _?=$R1' |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
259 IfErrors exec_error |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
260 Delete "$TEMP\${GAIM_UNINST_EXE}" |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
261 Goto done |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
262 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
263 exec_error: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
264 Delete "$TEMP\${GAIM_UNINST_EXE}" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
265 Goto uninstall_problem |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
266 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
267 uninstall_problem: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
268 ; In this case just wipe out previous Gaim install dir.. |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
269 ; We get here because versions 0.60a1 and 0.60a2 don't have versions set in the registry |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
270 ; and versions 0.60 and lower did not correctly set the uninstall reg string |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
271 ; (the string was set in quotes) |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
272 IfSilent do_wipeout |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
273 MessageBox MB_YESNO $(GAIM_PROMPT_WIPEOUT) IDYES do_wipeout IDNO cancel_install |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
274 cancel_install: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
275 Quit |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
276 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
277 do_wipeout: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
278 StrCmp $R0 "HKLM" gaim_del_lm_reg gaim_del_cu_reg |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
279 gaim_del_cu_reg: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
280 DeleteRegKey HKCU ${GAIM_REG_KEY} |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
281 Goto uninstall_prob_cont |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
282 gaim_del_lm_reg: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
283 DeleteRegKey HKLM ${GAIM_REG_KEY} |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
284 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
285 uninstall_prob_cont: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
286 RMDir /r "$R1" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
287 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
288 done: |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
289 SectionEnd |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
290 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
291 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
292 ;-------------------------------- |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
293 ;GTK+ Runtime Install Section |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
294 |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
295 !ifdef WITH_GTK |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
296 Section $(GTK_SECTION_TITLE) SecGtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
297 SectionIn 1 RO |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
298 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
299 Call CheckUserInstallRights |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
300 Pop $R1 |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
301 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
302 SetOutPath $TEMP |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
303 SetOverwrite on |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
304 File /oname=gtk-runtime.exe ${GTK_RUNTIME_INSTALLER} |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
305 SetOverwrite off |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
306 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
307 ; This keeps track whether we install GTK+ or not.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
308 StrCpy $R5 "0" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
309 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
310 Call DoWeNeedGtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
311 Pop $R0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
312 Pop $R6 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
313 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
314 StrCmp $R0 "0" have_gtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
315 StrCmp $R0 "1" upgrade_gtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
316 StrCmp $R0 "2" no_gtk no_gtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
317 |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
318 no_gtk: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
319 StrCmp $R1 "NONE" gtk_no_install_rights |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
320 ClearErrors |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
321 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT /D=$GTK_FOLDER' |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
322 Goto gtk_install_cont |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
323 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
324 upgrade_gtk: |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
325 StrCpy $GTK_FOLDER $R6 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
326 IfSilent skip_mb |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
327 MessageBox MB_YESNO $(GTK_UPGRADE_PROMPT) IDNO done |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
328 skip_mb: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
329 ClearErrors |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
330 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT' |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
331 Goto gtk_install_cont |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
332 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
333 gtk_install_cont: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
334 IfErrors gtk_install_error |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
335 StrCpy $R5 "1" ; marker that says we installed... |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
336 Goto done |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
337 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
338 gtk_install_error: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
339 Delete "$TEMP\gtk-runtime.exe" |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
340 IfSilent skip_mb1 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
341 MessageBox MB_OK $(GTK_INSTALL_ERROR) IDOK |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
342 skip_mb1: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
343 Quit |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
344 |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
345 have_gtk: |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
346 StrCpy $GTK_FOLDER $R6 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
347 StrCmp $R1 "NONE" done ; If we have no rights.. can't re-install.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
348 ; Even if we have a sufficient version of GTK+, we give user choice to re-install. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
349 ClearErrors |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
350 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT' |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
351 IfErrors gtk_install_error |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
352 Goto done |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
353 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
354 ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
355 ; end got_install rights |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
356 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
357 gtk_no_install_rights: |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
358 ; Install GTK+ to Gaim install dir |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
359 StrCpy $GTK_FOLDER $INSTDIR |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
360 ClearErrors |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
361 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT /D=$GTK_FOLDER' |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
362 IfErrors gtk_install_error |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
363 SetOverwrite on |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
364 ClearErrors |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
365 CopyFiles /FILESONLY "$GTK_FOLDER\bin\*.dll" $GTK_FOLDER |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
366 SetOverwrite off |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
367 IfErrors gtk_install_error |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
368 Delete "$GTK_FOLDER\bin\*.dll" |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
369 Goto done |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
370 ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
371 ; end gtk_no_install_rights |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
372 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
373 done: |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
374 Delete "$TEMP\gtk-runtime.exe" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
375 SectionEnd ; end of GTK+ section |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
376 !endif |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
377 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
378 ;-------------------------------- |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
379 ;Gaim Install Section |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
380 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
381 Section $(GAIM_SECTION_TITLE) SecGaim |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
382 SectionIn 1 RO |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
383 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
384 ; Check install rights.. |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
385 Call CheckUserInstallRights |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
386 Pop $R0 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
387 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
388 ; Get GTK+ lib dir if we have it.. |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
389 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
390 StrCmp $R0 "NONE" gaim_none |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
391 StrCmp $R0 "HKLM" gaim_hklm gaim_hkcu |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
392 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
393 gaim_hklm: |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
394 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path" |
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
395 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "" "$INSTDIR\gaim.exe" |
6422
468bbb5fbc29
[gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6300
diff
changeset
|
396 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R1\bin" |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
397 WriteRegStr HKLM ${GAIM_REG_KEY} "" "$INSTDIR" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
398 WriteRegStr HKLM ${GAIM_REG_KEY} "Version" "${GAIM_VERSION}" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
399 WriteRegStr HKLM "${GAIM_UNINSTALL_KEY}" "DisplayName" $(GAIM_UNINSTALL_DESC) |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
400 WriteRegStr HKLM "${GAIM_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${GAIM_UNINST_EXE}" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
401 ; Sets scope of the desktop and Start Menu entries for all users. |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
402 SetShellVarContext "all" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
403 Goto gaim_install_files |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
404 |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
405 gaim_hkcu: |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
406 ReadRegStr $R1 HKCU ${GTK_REG_KEY} "Path" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
407 StrCmp $R1 "" 0 gaim_hkcu1 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
408 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
409 gaim_hkcu1: |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
410 WriteRegStr HKCU ${GAIM_REG_KEY} "" "$INSTDIR" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
411 WriteRegStr HKCU ${GAIM_REG_KEY} "Version" "${GAIM_VERSION}" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
412 WriteRegStr HKCU "${GAIM_UNINSTALL_KEY}" "DisplayName" $(GAIM_UNINSTALL_DESC) |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
413 WriteRegStr HKCU "${GAIM_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${GAIM_UNINST_EXE}" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
414 Goto gaim_install_files |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
415 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
416 gaim_none: |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
417 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
418 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
419 gaim_install_files: |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
420 SetOutPath "$INSTDIR" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
421 ; Gaim files |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
422 SetOverwrite on |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
423 File /r .\win32-install-dir\*.* |
5931
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5396
diff
changeset
|
424 !ifdef DEBUG |
6854
9e1bd25afa88
[gaim-migrate @ 7399]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6848
diff
changeset
|
425 File "${GAIM_INSTALLER_DEPS}\exchndl.dll" |
5931
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5396
diff
changeset
|
426 !endif |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
427 |
6848
060aa79a733e
[gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6816
diff
changeset
|
428 ; Install shfolder.dll if need be.. |
060aa79a733e
[gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6816
diff
changeset
|
429 SearchPath $R4 "shfolder.dll" |
060aa79a733e
[gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6816
diff
changeset
|
430 StrCmp $R4 "" 0 got_shfolder |
060aa79a733e
[gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6816
diff
changeset
|
431 SetOutPath "$SYSDIR" |
6854
9e1bd25afa88
[gaim-migrate @ 7399]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6848
diff
changeset
|
432 File "${GAIM_INSTALLER_DEPS}\shfolder.dll" |
6848
060aa79a733e
[gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6816
diff
changeset
|
433 SetOutPath "$INSTDIR" |
060aa79a733e
[gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6816
diff
changeset
|
434 got_shfolder: |
060aa79a733e
[gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6816
diff
changeset
|
435 |
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
436 ; Check if Perl is installed, If not remove perl plugin |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
437 ReadRegStr $R2 HKLM ${PERL_REG_KEY} "" |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
438 StrCmp $R2 "" 0 perl_exists |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
439 ReadRegStr $R2 HKCU ${PERL_REG_KEY} "" |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
440 StrCmp $R2 "" perl_remove perl_exists |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
441 |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
442 perl_remove: |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
443 Delete "$INSTDIR\plugins\perl.dll" |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
444 RMDir /r "$INSTDIR\perlmod" |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
445 Goto perl_done |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
446 |
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
447 perl_exists: |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
448 IfFileExists "$R2\bin\${PERL_DLL}" 0 perl_remove |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
449 StrCmp $R0 "HKLM" 0 perl_done |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
450 ReadRegStr $R3 HKLM "${HKLM_APP_PATHS_KEY}" "Path" |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
451 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R3;$R2\bin" |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
452 |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
453 perl_done: |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6650
diff
changeset
|
454 |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
455 ; If this is under NT4, delete the SILC support stuff |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
456 ; there is a bug that will prevent any account from connecting |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
457 ; See https://lists.silcnet.org/pipermail/silc-devel/2005-January/001588.html |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
458 Call GetWindowsVersion |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
459 Pop $R2 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
460 StrCmp $R2 "NT 4.0" +1 +4 |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
461 Delete "$INSTDIR\plugins\libsilc.dll" |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
462 Delete "$INSTDIR\silcclient.dll" |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
463 Delete "$INSTDIR\silc.dll" |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
464 |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
465 SetOutPath "$INSTDIR" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
466 |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
467 ; If we don't have install rights.. we're done |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
468 StrCmp $R0 "NONE" done |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
469 SetOverwrite off |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
470 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
471 ; Write out installer language |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
472 WriteRegStr HKCU "${GAIM_REG_KEY}" "${GAIM_REG_LANG}" "$LANGUAGE" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
473 |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
474 ; write out uninstaller |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
475 SetOverwrite on |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
476 WriteUninstaller "$INSTDIR\${GAIM_UNINST_EXE}" |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
477 SetOverwrite off |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
478 |
9902 | 479 ; If we previously had gaim setup to run on startup, make it do so again |
480 StrCmp $STARTUP_RUN_KEY "HKCU" +1 +2 | |
481 WriteRegStr HKCU "${GAIM_STARTUP_RUN_KEY}" "Gaim" "$INSTDIR\gaim.exe" | |
482 StrCmp $STARTUP_RUN_KEY "HKLM" +1 +2 | |
483 WriteRegStr HKLM "${GAIM_STARTUP_RUN_KEY}" "Gaim" "$INSTDIR\gaim.exe" | |
484 | |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
485 done: |
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
486 SectionEnd ; end of default Gaim section |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
487 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
488 ;-------------------------------- |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
489 ;Shortcuts |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
490 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
491 SubSection /e $(GAIM_SHORTCUTS_SECTION_TITLE) SecShortcuts |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
492 Section /o $(GAIM_DESKTOP_SHORTCUT_SECTION_TITLE) SecDesktopShortcut |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
493 SetOverwrite on |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
494 CreateShortCut "$DESKTOP\Gaim.lnk" "$INSTDIR\gaim.exe" |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
495 SetOverwrite off |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
496 SectionEnd |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
497 Section $(GAIM_STARTMENU_SHORTCUT_SECTION_TITLE) SecStartMenuShortcut |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
498 SetOverwrite on |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
499 CreateDirectory "$SMPROGRAMS\Gaim" |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
500 CreateShortCut "$SMPROGRAMS\Gaim\Gaim.lnk" "$INSTDIR\gaim.exe" |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
501 SetOverwrite off |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
502 SectionEnd |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
503 SubSectionEnd |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
504 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
505 ;-------------------------------- |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
506 ;GTK+ Themes |
3860
d0897828bd0d
[gaim-migrate @ 4012]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
507 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
508 SubSection /e $(GTK_THEMES_SECTION_TITLE) SecGtkThemes |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
509 Section /o $(GTK_NOTHEME_SECTION_TITLE) SecGtkNone |
6948
8168bc284cfb
[gaim-migrate @ 7495]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6913
diff
changeset
|
510 Call CanWeInstallATheme |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
511 Pop $R0 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
512 StrCmp $R0 "" done |
6948
8168bc284cfb
[gaim-migrate @ 7495]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6913
diff
changeset
|
513 SetOverwrite on |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
514 Rename $R0\${GTK_DEFAULT_THEME_GTKRC_DIR}\gtkrc $R0\${GTK_DEFAULT_THEME_GTKRC_DIR}\gtkrc.old |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
515 CopyFiles $R0\${GTK_DEFAULT_THEME_GTKRC_DIR}\gtkrc.plain $R0\${GTK_DEFAULT_THEME_GTKRC_DIR}\gtkrc |
6948
8168bc284cfb
[gaim-migrate @ 7495]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6913
diff
changeset
|
516 SetOverwrite off |
8168bc284cfb
[gaim-migrate @ 7495]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6913
diff
changeset
|
517 done: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
518 SectionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
519 |
7352
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
520 Section $(GTK_WIMP_SECTION_TITLE) SecGtkWimp |
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
521 Call CanWeInstallATheme |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
522 Pop $R0 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
523 StrCmp $R0 "" done |
7352
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
524 SetOverwrite on |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
525 Rename $R0\${GTK_DEFAULT_THEME_GTKRC_DIR}\gtkrc $R0\${GTK_DEFAULT_THEME_GTKRC_DIR}\gtkrc.old |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
526 SetOutPath $R0\${GTK_DEFAULT_THEME_ENGINE_DIR} |
7352
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
527 File ${GTK_THEME_DIR}\engines\libwimp.dll |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
528 SetOutPath $R0\${GTK_DEFAULT_THEME_GTKRC_DIR} |
7352
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
529 File ${GTK_THEME_DIR}\themes\gtkrc.gtkwimp |
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
530 File /oname=gtkrc ${GTK_THEME_DIR}\themes\gtkrc.gtkwimp |
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
531 SetOverwrite off |
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
532 done: |
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
533 SectionEnd |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
534 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
535 Section /o $(GTK_BLUECURVE_SECTION_TITLE) SecGtkBluecurve |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
536 Call CanWeInstallATheme |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
537 Pop $R0 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
538 StrCmp $R0 "" done |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
539 SetOverwrite on |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
540 Rename $R0\${GTK_DEFAULT_THEME_GTKRC_DIR}\gtkrc $R0\${GTK_DEFAULT_THEME_GTKRC_DIR}\gtkrc.old |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
541 SetOutPath $R0\${GTK_DEFAULT_THEME_ENGINE_DIR} |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
542 File ${GTK_THEME_DIR}\engines\libbluecurve.dll |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
543 SetOutPath $R0\${GTK_DEFAULT_THEME_GTKRC_DIR} |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
544 File ${GTK_THEME_DIR}\themes\gtkrc.bluecurve |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
545 File /oname=gtkrc ${GTK_THEME_DIR}\themes\gtkrc.bluecurve |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
546 SetOverwrite off |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
547 done: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
548 SectionEnd |
3860
d0897828bd0d
[gaim-migrate @ 4012]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3853
diff
changeset
|
549 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
550 Section /o $(GTK_LIGHTHOUSEBLUE_SECTION_TITLE) SecGtkLighthouseblue |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
551 Call CanWeInstallATheme |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
552 Pop $R0 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
553 StrCmp $R0 "" done |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
554 SetOverwrite on |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
555 Rename $R0\${GTK_DEFAULT_THEME_GTKRC_DIR}\gtkrc $R0\${GTK_DEFAULT_THEME_GTKRC_DIR}\gtkrc.old |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
556 SetOutPath $R0\${GTK_DEFAULT_THEME_ENGINE_DIR} |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
557 File ${GTK_THEME_DIR}\engines\liblighthouseblue.dll |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
558 SetOutPath $R0\${GTK_DEFAULT_THEME_GTKRC_DIR} |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
559 File ${GTK_THEME_DIR}\themes\gtkrc.lighthouseblue |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
560 File /oname=gtkrc ${GTK_THEME_DIR}\themes\gtkrc.lighthouseblue |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
561 SetOverwrite off |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
562 done: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
563 SectionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
564 SubSectionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
565 |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
566 ;-------------------------------- |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
567 ;Spell Checking |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
568 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
569 SubSection /e $(GAIM_SPELLCHECK_SECTION_TITLE) SecSpellCheck |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
570 Section /o $(GAIM_SPELLCHECK_BRETON) SecSpellCheckBreton |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
571 Push ${SecSpellCheckBreton} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
572 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
573 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
574 Section /o $(GAIM_SPELLCHECK_CATALAN) SecSpellCheckCatalan |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
575 Push ${SecSpellCheckCatalan} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
576 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
577 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
578 Section /o $(GAIM_SPELLCHECK_CZECH) SecSpellCheckCzech |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
579 Push ${SecSpellCheckCzech} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
580 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
581 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
582 Section /o $(GAIM_SPELLCHECK_WELSH) SecSpellCheckWelsh |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
583 Push ${SecSpellCheckWelsh} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
584 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
585 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
586 Section /o $(GAIM_SPELLCHECK_DANISH) SecSpellCheckDanish |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
587 Push ${SecSpellCheckDanish} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
588 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
589 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
590 Section /o $(GAIM_SPELLCHECK_GERMAN) SecSpellCheckGerman |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
591 Push ${SecSpellCheckGerman} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
592 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
593 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
594 Section /o $(GAIM_SPELLCHECK_GREEK) SecSpellCheckGreek |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
595 Push ${SecSpellCheckGreek} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
596 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
597 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
598 Section /o $(GAIM_SPELLCHECK_ENGLISH) SecSpellCheckEnglish |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
599 Push ${SecSpellCheckEnglish} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
600 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
601 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
602 Section /o $(GAIM_SPELLCHECK_ESPERANTO) SecSpellCheckEsperanto |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
603 Push ${SecSpellCheckEsperanto} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
604 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
605 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
606 Section /o $(GAIM_SPELLCHECK_SPANISH) SecSpellCheckSpanish |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
607 Push ${SecSpellCheckSpanish} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
608 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
609 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
610 Section /o $(GAIM_SPELLCHECK_FAROESE) SecSpellCheckFaroese |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
611 Push ${SecSpellCheckFaroese} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
612 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
613 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
614 Section /o $(GAIM_SPELLCHECK_FRENCH) SecSpellCheckFrench |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
615 Push ${SecSpellCheckFrench} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
616 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
617 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
618 Section /o $(GAIM_SPELLCHECK_ITALIAN) SecSpellCheckItalian |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
619 Push ${SecSpellCheckItalian} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
620 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
621 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
622 Section /o $(GAIM_SPELLCHECK_DUTCH) SecSpellCheckDutch |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
623 Push ${SecSpellCheckDutch} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
624 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
625 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
626 Section /o $(GAIM_SPELLCHECK_NORWEGIAN) SecSpellCheckNorwegian |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
627 Push ${SecSpellCheckNorwegian} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
628 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
629 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
630 Section /o $(GAIM_SPELLCHECK_POLISH) SecSpellCheckPolish |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
631 Push ${SecSpellCheckPolish} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
632 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
633 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
634 Section /o $(GAIM_SPELLCHECK_PORTUGUESE) SecSpellCheckPortuguese |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
635 Push ${SecSpellCheckPortuguese} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
636 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
637 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
638 Section /o $(GAIM_SPELLCHECK_ROMANIAN) SecSpellCheckRomanian |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
639 Push ${SecSpellCheckRomanian} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
640 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
641 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
642 Section /o $(GAIM_SPELLCHECK_RUSSIAN) SecSpellCheckRussian |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
643 Push ${SecSpellCheckRussian} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
644 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
645 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
646 Section /o $(GAIM_SPELLCHECK_SLOVAK) SecSpellCheckSlovak |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
647 Push ${SecSpellCheckSlovak} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
648 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
649 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
650 Section /o $(GAIM_SPELLCHECK_SWEDISH) SecSpellCheckSwedish |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
651 Push ${SecSpellCheckSwedish} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
652 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
653 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
654 Section /o $(GAIM_SPELLCHECK_UKRAINIAN) SecSpellCheckUkrainian |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
655 Push ${SecSpellCheckUkrainian} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
656 Call InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
657 SectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
658 SubSectionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
659 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
660 ;-------------------------------- |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
661 ;Uninstaller Section |
3630 | 662 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
663 |
3630 | 664 Section Uninstall |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
665 Call un.CheckUserInstallRights |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
666 Pop $R0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
667 StrCmp $R0 "NONE" no_rights |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
668 StrCmp $R0 "HKCU" try_hkcu try_hklm |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
669 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
670 try_hkcu: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
671 ReadRegStr $R0 HKCU ${GAIM_REG_KEY} "" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
672 StrCmp $R0 $INSTDIR 0 cant_uninstall |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
673 ; HKCU install path matches our INSTDIR.. so uninstall |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
674 DeleteRegKey HKCU ${GAIM_REG_KEY} |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
675 DeleteRegKey HKCU "${GAIM_UNINSTALL_KEY}" |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
676 Goto cont_uninstall |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
677 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
678 try_hklm: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
679 ReadRegStr $R0 HKLM ${GAIM_REG_KEY} "" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
680 StrCmp $R0 $INSTDIR 0 try_hkcu |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
681 ; HKLM install path matches our INSTDIR.. so uninstall |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
682 DeleteRegKey HKLM ${GAIM_REG_KEY} |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
683 DeleteRegKey HKLM "${GAIM_UNINSTALL_KEY}" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
684 DeleteRegKey HKLM "${HKLM_APP_PATHS_KEY}" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
685 ; Sets start menu and desktop scope to all users.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
686 SetShellVarContext "all" |
4126
e8f2fdf78662
[gaim-migrate @ 4343]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3989
diff
changeset
|
687 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
688 cont_uninstall: |
6090
44930abebe0d
[gaim-migrate @ 6549]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5931
diff
changeset
|
689 ; The WinPrefs plugin may have left this behind.. |
44930abebe0d
[gaim-migrate @ 6549]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5931
diff
changeset
|
690 DeleteRegValue HKCU "${GAIM_STARTUP_RUN_KEY}" "Gaim" |
44930abebe0d
[gaim-migrate @ 6549]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5931
diff
changeset
|
691 DeleteRegValue HKLM "${GAIM_STARTUP_RUN_KEY}" "Gaim" |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
692 ; Remove Language preference info |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
693 DeleteRegKey HKCU ${GAIM_REG_KEY} ;${MUI_LANGDLL_REGISTRY_ROOT} ${MUI_LANGDLL_REGISTRY_KEY} |
6090
44930abebe0d
[gaim-migrate @ 6549]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5931
diff
changeset
|
694 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
695 RMDir /r "$INSTDIR\locale" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
696 RMDir /r "$INSTDIR\pixmaps" |
6973 | 697 RMDir /r "$INSTDIR\perlmod" |
7352
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
698 Delete "$INSTDIR\plugins\docklet.dll" |
9565
c60809a33460
[gaim-migrate @ 10404]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9561
diff
changeset
|
699 Delete "$INSTDIR\plugins\extplacement.dll" |
12452
bfa21679fef5
[gaim-migrate @ 14761]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11962
diff
changeset
|
700 Delete "$INSTDIR\plugins\gaimrc.dll" |
6476
1325c207d159
[gaim-migrate @ 6987]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6447
diff
changeset
|
701 Delete "$INSTDIR\plugins\history.dll" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
702 Delete "$INSTDIR\plugins\iconaway.dll" |
6476
1325c207d159
[gaim-migrate @ 6987]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6447
diff
changeset
|
703 Delete "$INSTDIR\plugins\idle.dll" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
704 Delete "$INSTDIR\plugins\libgg.dll" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
705 Delete "$INSTDIR\plugins\libirc.dll" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
706 Delete "$INSTDIR\plugins\libjabber.dll" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
707 Delete "$INSTDIR\plugins\libmsn.dll" |
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9565
diff
changeset
|
708 Delete "$INSTDIR\plugins\libnapster.dll" |
9139
89a1cfea74e5
[gaim-migrate @ 9923]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9115
diff
changeset
|
709 Delete "$INSTDIR\plugins\libnovell.dll" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
710 Delete "$INSTDIR\plugins\liboscar.dll" |
11103
d0baed7a3d10
[gaim-migrate @ 13143]
Richard Laager <rlaager@wiktel.com>
parents:
11090
diff
changeset
|
711 Delete "$INSTDIR\plugins\libsametime.dll" |
d0baed7a3d10
[gaim-migrate @ 13143]
Richard Laager <rlaager@wiktel.com>
parents:
11090
diff
changeset
|
712 Delete "$INSTDIR\plugins\libsilc.dll" |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
713 Delete "$INSTDIR\plugins\libsimple.dll" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
714 Delete "$INSTDIR\plugins\libtoc.dll" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
715 Delete "$INSTDIR\plugins\libyahoo.dll" |
7352
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
716 Delete "$INSTDIR\plugins\perl.dll" |
7600
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
717 Delete "$INSTDIR\plugins\relnot.dll" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
718 Delete "$INSTDIR\plugins\spellchk.dll" |
7352
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
719 Delete "$INSTDIR\plugins\ssl-nss.dll" |
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
720 Delete "$INSTDIR\plugins\ssl.dll" |
6476
1325c207d159
[gaim-migrate @ 6987]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6447
diff
changeset
|
721 Delete "$INSTDIR\plugins\statenotify.dll" |
8099
40163e984818
[gaim-migrate @ 8799]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7924
diff
changeset
|
722 Delete "$INSTDIR\plugins\tcl.dll" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
723 Delete "$INSTDIR\plugins\ticker.dll" |
6476
1325c207d159
[gaim-migrate @ 6987]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6447
diff
changeset
|
724 Delete "$INSTDIR\plugins\timestamp.dll" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
725 Delete "$INSTDIR\plugins\win2ktrans.dll" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
726 Delete "$INSTDIR\plugins\winprefs.dll" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
727 RMDir "$INSTDIR\plugins" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
728 Delete "$INSTDIR\sounds\gaim\arrive.wav" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
729 Delete "$INSTDIR\sounds\gaim\leave.wav" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
730 Delete "$INSTDIR\sounds\gaim\receive.wav" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
731 Delete "$INSTDIR\sounds\gaim\redalert.wav" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
732 Delete "$INSTDIR\sounds\gaim\send.wav" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
733 RMDir "$INSTDIR\sounds\gaim" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
734 RMDir "$INSTDIR\sounds" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
735 Delete "$INSTDIR\gaim.dll" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
736 Delete "$INSTDIR\gaim.exe" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
737 Delete "$INSTDIR\idletrack.dll" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
738 Delete "$INSTDIR\libgtkspell.dll" |
12644
db5241525e53
[gaim-migrate @ 14981]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12637
diff
changeset
|
739 Delete "$INSTDIR\libmeanwhile-1.dll" |
6973 | 740 Delete "$INSTDIR\nspr4.dll" |
741 Delete "$INSTDIR\nss3.dll" | |
742 Delete "$INSTDIR\nssckbi.dll" | |
743 Delete "$INSTDIR\plc4.dll" | |
744 Delete "$INSTDIR\plds4.dll" | |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
745 Delete "$INSTDIR\silc.dll" |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
746 Delete "$INSTDIR\silcclient.dll" |
6973 | 747 Delete "$INSTDIR\softokn3.dll" |
748 Delete "$INSTDIR\ssl3.dll" | |
749 Delete "$INSTDIR\${GAIM_UNINST_EXE}" | |
750 !ifdef DEBUG | |
751 Delete "$INSTDIR\exchndl.dll" | |
752 !endif | |
753 | |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
754 ;Try to remove Gaim install dir .. if empty |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
755 RMDir "$INSTDIR" |
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3849
diff
changeset
|
756 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
757 ; Shortcuts.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
758 RMDir /r "$SMPROGRAMS\Gaim" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
759 Delete "$DESKTOP\Gaim.lnk" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
760 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
761 Goto done |
4897
65a0a360e8c4
[gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4857
diff
changeset
|
762 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
763 cant_uninstall: |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
764 IfSilent skip_mb |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
765 MessageBox MB_OK $(un.GAIM_UNINSTALL_ERROR_1) IDOK |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
766 skip_mb: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
767 Quit |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
768 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
769 no_rights: |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
770 IfSilent skip_mb1 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
771 MessageBox MB_OK $(un.GAIM_UNINSTALL_ERROR_2) IDOK |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
772 skip_mb1: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
773 Quit |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
774 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
775 done: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
776 SectionEnd ; end of uninstall section |
3853
eddcb3a8c74e
[gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3849
diff
changeset
|
777 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
778 ;-------------------------------- |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
779 ;Descriptions |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
780 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
781 !insertmacro MUI_DESCRIPTION_TEXT ${SecGaim} \ |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
782 $(GAIM_SECTION_DESCRIPTION) |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
783 !ifdef WITH_GTK |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
784 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} \ |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
785 $(GTK_SECTION_DESCRIPTION) |
5383
e44333671363
[gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5332
diff
changeset
|
786 !endif |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
787 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkThemes} \ |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
788 $(GTK_THEMES_SECTION_DESCRIPTION) |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
789 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkNone} \ |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
790 $(GTK_NO_THEME_DESC) |
7352
af0e0b4d0c32
[gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7215
diff
changeset
|
791 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkWimp} \ |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
792 $(GTK_WIMP_THEME_DESC) |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
793 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkBluecurve} \ |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
794 $(GTK_BLUECURVE_THEME_DESC) |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
795 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkLighthouseblue} \ |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
796 $(GTK_LIGHTHOUSEBLUE_THEME_DESC) |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
797 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
798 !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} \ |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
799 $(GAIM_SHORTCUTS_SECTION_DESCRIPTION) |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
800 !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} \ |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
801 $(GAIM_DESKTOP_SHORTCUT_DESC) |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
802 !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} \ |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
803 $(GAIM_STARTMENU_SHORTCUT_DESC) |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
804 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
805 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheck} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
806 $(GAIM_SPELLCHECK_SECTION_DESCRIPTION) |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
807 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckBreton} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
808 "$(GAIM_SPELLCHECK_BRETON) (862kb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
809 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckCatalan} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
810 "$(GAIM_SPELLCHECK_CATALAN) (3.9Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
811 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckCzech} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
812 "$(GAIM_SPELLCHECK_CZECH) (17Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
813 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckWelsh} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
814 "$(GAIM_SPELLCHECK_WELSH) (4.2Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
815 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckDanish} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
816 "$(GAIM_SPELLCHECK_DANISH) (6.9Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
817 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckGerman} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
818 "$(GAIM_SPELLCHECK_GERMAN) (5.4Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
819 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckGreek} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
820 "$(GAIM_SPELLCHECK_GREEK) (7.1Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
821 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckEnglish} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
822 "$(GAIM_SPELLCHECK_ENGLISH) (2.3Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
823 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckEsperanto} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
824 "$(GAIM_SPELLCHECK_ESPERANTO) (5.7Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
825 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSpanish} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
826 "$(GAIM_SPELLCHECK_SPANISH) (7.0Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
827 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckFaroese} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
828 "$(GAIM_SPELLCHECK_FAROESE) (913kb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
829 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckFrench} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
830 "$(GAIM_SPELLCHECK_FRENCH) (9.3Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
831 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckItalian} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
832 "$(GAIM_SPELLCHECK_ITALIAN) (770kb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
833 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckDutch} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
834 "$(GAIM_SPELLCHECK_DUTCH) (3.7Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
835 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckNorwegian} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
836 "$(GAIM_SPELLCHECK_NORWEGIAN) (3.2Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
837 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckPolish} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
838 "$(GAIM_SPELLCHECK_POLISH) (9.3Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
839 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckPortuguese} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
840 "$(GAIM_SPELLCHECK_PORTUGUESE) (5.5Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
841 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckRomanian} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
842 "$(GAIM_SPELLCHECK_ROMANIAN) (906kb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
843 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckRussian} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
844 "$(GAIM_SPELLCHECK_RUSSIAN) (11Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
845 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSlovak} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
846 "$(GAIM_SPELLCHECK_SLOVAK) (8.0Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
847 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSwedish} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
848 "$(GAIM_SPELLCHECK_SWEDISH) (2.2Mb)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
849 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckUkrainian} \ |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
850 "$(GAIM_SPELLCHECK_UKRAINIAN) (12Mb)" |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
851 !insertmacro MUI_FUNCTION_DESCRIPTION_END |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
852 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
853 ;-------------------------------- |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
854 ;Functions |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
855 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
856 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
857 ; Usage: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
858 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
859 ; Call CanWeInstallATheme |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
860 ; Pop $R0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
861 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
862 ; Return: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
863 ; "" - If no |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
864 ; "root path of GTK+ installation" - if yes |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
865 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
866 Function CanWeInstallATheme |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
867 Push $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
868 Push $0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
869 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
870 ; Set default.. no rights |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
871 StrCpy $1 "" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
872 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
873 Call CheckUserInstallRights |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
874 Pop $0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
875 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
876 ; If no rights check if gtk was installed to gaim dir.. |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
877 StrCmp $0 "NONE" 0 themes_cont |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
878 StrCmp $GTK_FOLDER $INSTDIR 0 no_rights |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
879 StrCpy $1 $INSTDIR |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
880 Goto done |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
881 themes_cont: |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
882 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
883 StrCmp $0 "HKCU" hkcu hklm |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
884 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
885 hkcu: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
886 ReadRegStr $1 HKCU ${GTK_REG_KEY} "Path" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
887 StrCmp $1 "" no_rights done |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
888 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
889 hklm: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
890 ReadRegStr $1 HKLM ${GTK_REG_KEY} "Path" |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
891 Goto done |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
892 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
893 no_rights: |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
894 IfSilent skip_mb |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
895 MessageBox MB_OK $(GTK_NO_THEME_INSTALL_RIGHTS) IDOK |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
896 skip_mb: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
897 StrCpy $1 "" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
898 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
899 done: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
900 Pop $0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
901 Exch $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
902 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
903 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
904 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
905 Function CheckUserInstallRights |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
906 Push $0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
907 Push $1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
908 ClearErrors |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
909 UserInfo::GetName |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
910 IfErrors Win9x |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
911 Pop $0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
912 UserInfo::GetAccountType |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
913 Pop $1 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
914 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
915 StrCmp $1 "Admin" 0 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
916 StrCpy $1 "HKLM" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
917 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
918 StrCmp $1 "Power" 0 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
919 StrCpy $1 "HKLM" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
920 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
921 StrCmp $1 "User" 0 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
922 StrCpy $1 "HKCU" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
923 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
924 StrCmp $1 "Guest" 0 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
925 StrCpy $1 "NONE" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
926 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
927 ; Unknown error |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
928 StrCpy $1 "NONE" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
929 Goto done |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
930 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
931 Win9x: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
932 StrCpy $1 "HKLM" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
933 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
934 done: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
935 Exch $1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
936 Exch |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
937 Pop $0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
938 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
939 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
940 Function un.CheckUserInstallRights |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
941 Push $0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
942 Push $1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
943 ClearErrors |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
944 UserInfo::GetName |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
945 IfErrors Win9x |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
946 Pop $0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
947 UserInfo::GetAccountType |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
948 Pop $1 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
949 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
950 StrCmp $1 "Admin" 0 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
951 StrCpy $1 "HKLM" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
952 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
953 StrCmp $1 "Power" 0 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
954 StrCpy $1 "HKLM" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
955 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
956 StrCmp $1 "User" 0 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
957 StrCpy $1 "HKCU" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
958 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
959 StrCmp $1 "Guest" 0 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
960 StrCpy $1 "NONE" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
961 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
962 ; Unknown error |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
963 StrCpy $1 "NONE" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
964 Goto done |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
965 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
966 Win9x: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
967 StrCpy $1 "HKLM" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
968 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
969 done: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
970 Exch $1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
971 Exch |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
972 Pop $0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
973 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
974 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
975 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
976 ; Usage: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
977 ; Push $0 ; Path string |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
978 ; Call VerifyDir |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
979 ; Pop $0 ; 0 - Bad path 1 - Good path |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
980 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
981 Function VerifyDir |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
982 Exch $0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
983 Push $1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
984 Push $2 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
985 Loop: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
986 IfFileExists $0 dir_exists |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
987 StrCpy $1 $0 ; save last |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
988 Push $0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
989 Call GetParent |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
990 Pop $0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
991 StrLen $2 $0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
992 ; IfFileExists "C:" on xp returns true and on win2k returns false |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
993 ; So we're done in such a case.. |
9960 | 994 IntCmp $2 2 loop_done |
995 ; GetParent of "C:" returns "" | |
996 IntCmp $2 0 loop_done | |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
997 Goto Loop |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
998 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
999 loop_done: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1000 StrCpy $1 "$0\GaImFooB" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1001 ; Check if we can create dir on this drive.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1002 ClearErrors |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1003 CreateDirectory $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1004 IfErrors DirBad DirGood |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1005 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1006 dir_exists: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1007 ClearErrors |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1008 FileOpen $1 "$0\gaimfoo.bar" w |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1009 IfErrors PathBad PathGood |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1010 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1011 DirGood: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1012 RMDir $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1013 Goto PathGood1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1014 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1015 DirBad: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1016 RMDir $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1017 Goto PathBad1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1018 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1019 PathBad: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1020 FileClose $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1021 Delete "$0\gaimfoo.bar" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1022 PathBad1: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1023 StrCpy $0 "0" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1024 Push $0 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1025 Goto done |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1026 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1027 PathGood: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1028 FileClose $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1029 Delete "$0\gaimfoo.bar" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1030 PathGood1: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1031 StrCpy $0 "1" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1032 Push $0 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1033 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1034 done: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1035 Exch 3 ; The top of the stack contains the output variable |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1036 Pop $0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1037 Pop $2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1038 Pop $1 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1039 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1040 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1041 Function .onVerifyInstDir |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1042 Push $0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1043 Push $INSTDIR |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1044 Call VerifyDir |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1045 Pop $0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1046 StrCmp $0 "0" 0 dir_good |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1047 Abort |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1048 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1049 dir_good: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1050 Pop $0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1051 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1052 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1053 ; GetParent |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1054 ; input, top of stack (e.g. C:\Program Files\Poop) |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1055 ; output, top of stack (replaces, with e.g. C:\Program Files) |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1056 ; modifies no other variables. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1057 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1058 ; Usage: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1059 ; Push "C:\Program Files\Directory\Whatever" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1060 ; Call GetParent |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1061 ; Pop $R0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1062 ; ; at this point $R0 will equal "C:\Program Files\Directory" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1063 Function GetParent |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1064 Exch $0 ; old $0 is on top of stack |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1065 Push $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1066 Push $2 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1067 StrCpy $1 -1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1068 loop: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1069 StrCpy $2 $0 1 $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1070 StrCmp $2 "" exit |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1071 StrCmp $2 "\" exit |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1072 IntOp $1 $1 - 1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1073 Goto loop |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1074 exit: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1075 StrCpy $0 $0 $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1076 Pop $2 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1077 Pop $1 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1078 Exch $0 ; put $0 on top of stack, restore $0 to original value |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1079 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1080 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1081 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1082 ; CheckGtkVersion |
9565
c60809a33460
[gaim-migrate @ 10404]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9561
diff
changeset
|
1083 ; inputs: Push 2 GTK+ version strings to check. The major value needs to |
c60809a33460
[gaim-migrate @ 10404]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9561
diff
changeset
|
1084 ; be equal and the minor value needs to be greater or equal. |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1085 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1086 ; Usage: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1087 ; Push "2.1.0" ; Reference version |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1088 ; Push "2.2.1" ; Version to check |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1089 ; Call CheckGtkVersion |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1090 ; Pop $R0 |
9565
c60809a33460
[gaim-migrate @ 10404]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9561
diff
changeset
|
1091 ; $R0 will now equal "1", because 2.2 is greater than 2.1 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1092 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1093 Function CheckGtkVersion |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1094 ; Version we want to check |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1095 Exch $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1096 Exch |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1097 ; Reference version |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1098 Exch $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1099 Push $R2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1100 Push $R3 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1101 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1102 ; Check that the string to check is at least 5 chars long (i.e. x.x.x) |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1103 StrLen $R2 $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1104 IntCmp $R2 5 0 bad_version |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1105 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1106 ; Major version check |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1107 StrCpy $R2 $R0 1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1108 StrCpy $R3 $R1 1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1109 IntCmp $R2 $R3 check_minor bad_version bad_version |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1110 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1111 check_minor: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1112 StrCpy $R2 $R0 1 2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1113 StrCpy $R3 $R1 1 2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1114 IntCmp $R2 $R3 good_version bad_version good_version |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1115 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1116 bad_version: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1117 StrCpy $R0 "0" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1118 Goto done |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1119 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1120 good_version: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1121 StrCpy $R0 "1" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1122 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1123 done: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1124 Pop $R3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1125 Pop $R2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1126 Pop $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1127 Exch $R0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1128 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1129 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1130 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1131 ; Usage: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1132 ; Call DoWeNeedGtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1133 ; First Pop: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1134 ; 0 - We have the correct version |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1135 ; Second Pop: Key where Version was found |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1136 ; 1 - We have an old version that needs to be upgraded |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1137 ; Second Pop: HKLM or HKCU depending on where GTK was found. |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1138 ; 2 - We don't have Gtk+ at all |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1139 ; Second Pop: "NONE, HKLM or HKCU" depending on our rights.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1140 ; |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1141 Function DoWeNeedGtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1142 ; Logic should be: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1143 ; - Check what user rights we have (HKLM or HKCU) |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1144 ; - If HKLM rights.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1145 ; - Only check HKLM key for GTK+ |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1146 ; - If installed to HKLM, check it and return. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1147 ; - If HKCU rights.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1148 ; - First check HKCU key for GTK+ |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1149 ; - if good or bad exists stop and ret. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1150 ; - If no hkcu gtk+ install, check HKLM |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1151 ; - If HKLM ver exists but old, return as if no ver exits. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1152 ; - If no rights |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1153 ; - Check HKLM |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1154 Push $0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1155 Push $2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1156 Push $3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1157 Push $4 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1158 Push $5 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1159 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1160 Call CheckUserInstallRights |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1161 Pop $3 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1162 StrCmp $3 "HKLM" check_hklm |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1163 StrCmp $3 "HKCU" check_hkcu check_hklm |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1164 check_hkcu: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1165 ReadRegStr $0 HKCU ${GTK_REG_KEY} "Version" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1166 StrCpy $5 "HKCU" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1167 StrCmp $0 "" check_hklm have_gtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1168 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1169 check_hklm: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1170 ReadRegStr $0 HKLM ${GTK_REG_KEY} "Version" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1171 StrCpy $5 "HKLM" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1172 StrCmp $0 "" no_gtk have_gtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1173 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1174 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1175 have_gtk: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1176 ; GTK+ is already installed.. check version. |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1177 Push ${GTK_VERSION} ; Minimum GTK+ version needed |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1178 Push $0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1179 Call CheckGtkVersion |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1180 Pop $2 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1181 StrCmp $2 "1" good_version bad_version |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1182 bad_version: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1183 ; Bad version. If hklm ver and we have hkcu or no rights.. return no gtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1184 StrCmp $3 "NONE" no_gtk ; if no rights.. can't upgrade |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1185 StrCmp $3 "HKCU" 0 upgrade_gtk ; if HKLM can upgrade.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1186 StrCmp $5 "HKLM" no_gtk upgrade_gtk ; have hkcu rights.. if found hklm ver can't upgrade.. |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1187 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1188 upgrade_gtk: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1189 StrCpy $2 "1" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1190 Push $5 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1191 Push $2 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1192 Goto done |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1193 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1194 good_version: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1195 StrCmp $5 "HKLM" have_hklm_gtk have_hkcu_gtk |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1196 have_hkcu_gtk: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1197 ; Have HKCU version |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1198 ReadRegStr $4 HKCU ${GTK_REG_KEY} "Path" |
6422
468bbb5fbc29
[gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6300
diff
changeset
|
1199 Goto good_version_cont |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1200 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1201 have_hklm_gtk: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1202 ReadRegStr $4 HKLM ${GTK_REG_KEY} "Path" |
6422
468bbb5fbc29
[gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6300
diff
changeset
|
1203 Goto good_version_cont |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1204 |
6422
468bbb5fbc29
[gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6300
diff
changeset
|
1205 good_version_cont: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1206 StrCpy $2 "0" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1207 Push $4 ; The path to existing GTK+ |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1208 Push $2 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1209 Goto done |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1210 |
6422
468bbb5fbc29
[gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6300
diff
changeset
|
1211 no_gtk: |
468bbb5fbc29
[gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6300
diff
changeset
|
1212 StrCpy $2 "2" |
468bbb5fbc29
[gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6300
diff
changeset
|
1213 Push $3 ; our rights |
468bbb5fbc29
[gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6300
diff
changeset
|
1214 Push $2 |
468bbb5fbc29
[gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6300
diff
changeset
|
1215 Goto done |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1216 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1217 done: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1218 ; The top two items on the stack are what we want to return |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1219 Exch 5 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1220 Pop $0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1221 Exch 5 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1222 Pop $2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1223 Pop $5 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1224 Pop $4 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1225 Pop $3 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1226 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1227 |
10212
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1228 Function RunCheck |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1229 Push $R0 |
10212
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1230 System::Call 'kernel32::OpenMutex(i 2031617, b 0, t "gaim_is_running") i .R0' |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1231 IntCmp $R0 0 done |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1232 MessageBox MB_OK|MB_ICONEXCLAMATION $(GAIM_IS_RUNNING) IDOK |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1233 Abort |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1234 done: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1235 Pop $R0 |
10212
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1236 FunctionEnd |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1237 |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1238 Function un.RunCheck |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1239 Push $R0 |
10212
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1240 System::Call 'kernel32::OpenMutex(i 2031617, b 0, t "gaim_is_running") i .R0' |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1241 IntCmp $R0 0 done |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1242 MessageBox MB_OK|MB_ICONEXCLAMATION $(GAIM_IS_RUNNING) IDOK |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1243 Abort |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1244 done: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1245 Pop $R0 |
10212
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1246 FunctionEnd |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1247 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1248 Function .onInit |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1249 Push $R0 |
10212
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1250 System::Call 'kernel32::CreateMutexA(i 0, i 0, t "gaim_installer_running") i .r1 ?e' |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1251 Pop $R0 |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1252 StrCmp $R0 0 +3 |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1253 MessageBox MB_OK|MB_ICONEXCLAMATION $(INSTALLER_IS_RUNNING) |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1254 Abort |
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1255 Call RunCheck |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1256 StrCpy $name "Gaim ${GAIM_VERSION}" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1257 StrCpy $GTK_THEME_SEL ${SecGtkWimp} |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1258 StrCpy $SPELLCHECK_SEL "" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1259 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1260 !insertmacro SetSectionFlag ${SecGtkThemes} ${SF_RO} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1261 !insertmacro UnselectSection ${SecGtkThemes} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1262 !insertmacro SelectSection $GTK_THEME_SEL |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1263 !insertmacro SetSectionFlag ${SecSpellCheck} ${SF_RO} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1264 !insertmacro UnselectSection ${SecSpellCheck} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1265 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1266 ;Mark the dictionaries that are already installed as readonly |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1267 Call SelectAndDisableInstalledDictionaries |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1268 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1269 StrCpy $ISSILENT "/NOUI" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1270 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1271 ; GTK installer has two silent states.. one with Message boxes, one without |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1272 ; If gaim installer was run silently, we want to supress gtk installer msg boxes. |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1273 IfSilent 0 set_gtk_normal |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1274 StrCpy $ISSILENT "/S" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1275 set_gtk_normal: |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1276 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1277 Call ParseParameters |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1278 |
7600
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1279 ; Select Language |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1280 IntCmp $LANG_IS_SET 1 skip_lang |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1281 ; Display Language selection dialog |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1282 !insertmacro MUI_LANGDLL_DISPLAY |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1283 skip_lang: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1284 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1285 ; If install path was set on the command, use it. |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1286 StrCmp $INSTDIR "" 0 instdir_done |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1287 |
10511
83736fc2ea50
[gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10212
diff
changeset
|
1288 ; If gaim is currently intalled, we should default to where it is currently installed |
83736fc2ea50
[gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10212
diff
changeset
|
1289 ClearErrors |
83736fc2ea50
[gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10212
diff
changeset
|
1290 ReadRegStr $INSTDIR HKCU "${GAIM_REG_KEY}" "" |
83736fc2ea50
[gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10212
diff
changeset
|
1291 IfErrors +2 |
83736fc2ea50
[gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10212
diff
changeset
|
1292 StrCmp $INSTDIR "" 0 instdir_done |
83736fc2ea50
[gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10212
diff
changeset
|
1293 ReadRegStr $INSTDIR HKLM "${GAIM_REG_KEY}" "" |
83736fc2ea50
[gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10212
diff
changeset
|
1294 IfErrors +2 |
83736fc2ea50
[gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10212
diff
changeset
|
1295 StrCmp $INSTDIR "" 0 instdir_done |
83736fc2ea50
[gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10212
diff
changeset
|
1296 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1297 Call CheckUserInstallRights |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1298 Pop $R0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1299 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1300 StrCmp $R0 "HKLM" 0 user_dir |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1301 StrCpy $INSTDIR "$PROGRAMFILES\Gaim" |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1302 Goto instdir_done |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1303 user_dir: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1304 Push $SMPROGRAMS |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1305 Call GetParent |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1306 Call GetParent |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1307 Pop $R2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1308 StrCpy $INSTDIR "$R2\Gaim" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1309 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1310 instdir_done: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1311 Pop $R0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1312 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1313 |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
1314 Function un.onInit |
10212
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1315 Call un.RunCheck |
10137 | 1316 StrCpy $name "Gaim ${GAIM_VERSION}" |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
1317 |
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
1318 ; Get stored language prefrence |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1319 ReadRegStr $LANGUAGE HKCU ${GAIM_REG_KEY} "${GAIM_REG_LANG}" |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1320 |
6255
386d65dd7f0d
[gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6233
diff
changeset
|
1321 FunctionEnd |
6233
0c64ba470632
[gaim-migrate @ 6726]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6159
diff
changeset
|
1322 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1323 ; This is a modified StartRadioButtons (from Sections.nsh) |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1324 ; The only difference is that it allows for nothing in the group to be selected |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1325 ; In that case, the default variable should be set to "" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1326 !macro StartRadioButtonsUnselectable var |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1327 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1328 !define StartRadioButtons_Var "${var}" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1329 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1330 Push $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1331 Push $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1332 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1333 ;If we have no selection, don't try to unselect it |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1334 StrCmp "${StartRadioButtons_Var}" "" +4 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1335 SectionGetFlags "${StartRadioButtons_Var}" $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1336 IntOp $R1 $R0 & ${SF_SELECTED} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1337 IntOp $R0 $R0 & ${SECTION_OFF} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1338 SectionSetFlags "${StartRadioButtons_Var}" $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1339 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1340 ; If the previous value isn't currently selected, |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1341 ; we don't want to select it at the end |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1342 IntCmp $R1 ${SF_SELECTED} +2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1343 StrCpy "${StartRadioButtons_Var}" "" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1344 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1345 StrCpy $R1 "${StartRadioButtons_Var}" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1346 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1347 !macroend |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1348 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1349 Function .onSelChange |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1350 Push $0 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1351 Push $1 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1352 Push $2 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1353 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1354 !insertmacro StartRadioButtons $GTK_THEME_SEL |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1355 !insertmacro RadioButton ${SecGtkNone} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1356 !insertmacro RadioButton ${SecGtkWimp} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1357 !insertmacro RadioButton ${SecGtkBluecurve} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1358 !insertmacro RadioButton ${SecGtkLighthouseblue} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1359 !insertmacro EndRadioButtons |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1360 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1361 ; Check that at most one of the non-readonly spelling dictionaries are selected |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1362 ; We can't use $R0 or $R1 in this block since they're used in the macros |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1363 !insertmacro StartRadioButtonsUnselectable $SPELLCHECK_SEL |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1364 ; Start with the first language dictionary |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1365 IntOp $2 ${SecSpellCheck} + 1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1366 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1367 start_spellcheck_radio: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1368 SectionGetFlags $2 $0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1369 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1370 IntOp $1 $0 & ${SF_SECGRPEND} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1371 ; If it is the end of the section group, stop |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1372 IntCmp $1 ${SF_SECGRPEND} end_spellcheck_radio |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1373 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1374 IntOp $0 $0 & ${SF_RO} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1375 IntCmp $0 ${SF_RO} after_button_insert |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1376 ; If !readonly, then it is part of the radiobutton group |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1377 !insertmacro RadioButton $2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1378 after_button_insert: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1379 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1380 IntOp $2 $2 + 1 ;Advance to the next section |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1381 Goto start_spellcheck_radio |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1382 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1383 end_spellcheck_radio: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1384 !insertmacro EndRadioButtons |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1385 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1386 Pop $2 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1387 Pop $1 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1388 Pop $0 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1389 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1390 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1391 ; Page enter and exit functions.. |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1392 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1393 !ifndef WITH_GTK |
7600
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1394 Function preWelcomePage |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1395 ; If this installer dosn't have GTK, check whether we need it. |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1396 ; We do this here an not in .onInit because language change in |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1397 ; .onInit doesn't take effect until it is finished. |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1398 Push $R0 |
7600
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1399 Call DoWeNeedGtk |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1400 Pop $R0 |
7600
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1401 Pop $GTK_FOLDER |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1402 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1403 StrCmp $R0 "0" have_gtk need_gtk |
7600
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1404 need_gtk: |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1405 IfSilent skip_mb |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1406 MessageBox MB_OK $(GTK_INSTALLER_NEEDED) IDOK |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1407 skip_mb: |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1408 Quit |
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1409 have_gtk: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1410 Pop $R0 |
7600
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1411 FunctionEnd |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1412 !endif |
7600
f48c6e4db102
[gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7575
diff
changeset
|
1413 |
7572
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
1414 !ifdef WITH_GTK |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1415 Function preGtkDirPage |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1416 Push $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1417 Push $R1 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1418 Call DoWeNeedGtk |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1419 Pop $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1420 Pop $R1 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1421 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1422 StrCmp $R0 "0" have_gtk |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1423 StrCmp $R0 "1" upgrade_gtk |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1424 StrCmp $R0 "2" no_gtk no_gtk |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1425 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1426 ; Don't show dir selector.. Upgrades are done to existing path.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1427 have_gtk: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1428 upgrade_gtk: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1429 Abort |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1430 |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1431 no_gtk: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1432 StrCmp $R1 "NONE" 0 no_gtk_cont |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1433 ; Got no install rights.. |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1434 Abort |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1435 no_gtk_cont: |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1436 ; Suggest path.. |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1437 StrCmp $R1 "HKCU" 0 hklm1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1438 StrCpy $R0 "$SMPROGRAMS" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1439 Push $R0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1440 Call GetParent |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1441 Call GetParent |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1442 Pop $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1443 StrCpy $R0 "$R0\GTK\2.0" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1444 Goto got_path |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1445 hklm1: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1446 StrCpy $R0 "${GTK_DEFAULT_INSTALL_PATH}" |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1447 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1448 got_path: |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1449 StrCpy $name "GTK+ ${GTK_VERSION}" |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1450 StrCpy $GTK_FOLDER $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1451 Pop $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1452 Pop $R0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1453 FunctionEnd |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1454 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1455 Function postGtkDirPage |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1456 Push $R0 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1457 StrCpy $name "Gaim ${GAIM_VERSION}" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1458 Push $GTK_FOLDER |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1459 Call VerifyDir |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1460 Pop $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1461 StrCmp $R0 "0" 0 done |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1462 IfSilent skip_mb |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1463 MessageBox MB_OK $(GTK_BAD_INSTALL_PATH) IDOK |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1464 skip_mb: |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1465 Abort |
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1466 done: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1467 Pop $R0 |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1468 FunctionEnd |
7572
6300424eafbf
[gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7558
diff
changeset
|
1469 !endif |
5332
4d734dbc88dd
[gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5066
diff
changeset
|
1470 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1471 ; GetParameters |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1472 ; input, none |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1473 ; output, top of stack (replaces, with e.g. whatever) |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1474 ; modifies no other variables. |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1475 Function GetParameters |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1476 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1477 Push $R0 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1478 Push $R1 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1479 Push $R2 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1480 Push $R3 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1481 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1482 StrCpy $R2 1 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1483 StrLen $R3 $CMDLINE |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1484 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1485 ;Check for quote or space |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1486 StrCpy $R0 $CMDLINE $R2 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1487 StrCmp $R0 '"' 0 +3 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1488 StrCpy $R1 '"' |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1489 Goto loop |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1490 StrCpy $R1 " " |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1491 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1492 loop: |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1493 IntOp $R2 $R2 + 1 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1494 StrCpy $R0 $CMDLINE 1 $R2 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1495 StrCmp $R0 $R1 get |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1496 StrCmp $R2 $R3 get |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1497 Goto loop |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1498 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1499 get: |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1500 IntOp $R2 $R2 + 1 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1501 StrCpy $R0 $CMDLINE 1 $R2 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1502 StrCmp $R0 " " get |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1503 StrCpy $R0 $CMDLINE "" $R2 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1504 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1505 Pop $R3 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1506 Pop $R2 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1507 Pop $R1 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1508 Exch $R0 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1509 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1510 FunctionEnd |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1511 |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1512 ; StrStr |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1513 ; input, top of stack = string to search for |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1514 ; top of stack-1 = string to search in |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1515 ; output, top of stack (replaces with the portion of the string remaining) |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1516 ; modifies no other variables. |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1517 ; |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1518 ; Usage: |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1519 ; Push "this is a long ass string" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1520 ; Push "ass" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1521 ; Call StrStr |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1522 ; Pop $R0 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1523 ; ($R0 at this point is "ass string") |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1524 |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1525 Function StrStr |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1526 Exch $R1 ; st=haystack,old$R1, $R1=needle |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1527 Exch ; st=old$R1,haystack |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1528 Exch $R2 ; st=old$R1,old$R2, $R2=haystack |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1529 Push $R3 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1530 Push $R4 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1531 Push $R5 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1532 StrLen $R3 $R1 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1533 StrCpy $R4 0 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1534 ; $R1=needle |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1535 ; $R2=haystack |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1536 ; $R3=len(needle) |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1537 ; $R4=cnt |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1538 ; $R5=tmp |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1539 loop: |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1540 StrCpy $R5 $R2 $R3 $R4 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1541 StrCmp $R5 $R1 done |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1542 StrCmp $R5 "" done |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1543 IntOp $R4 $R4 + 1 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1544 Goto loop |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1545 done: |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1546 StrCpy $R1 $R2 "" $R4 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1547 Pop $R5 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1548 Pop $R4 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1549 Pop $R3 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1550 Pop $R2 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1551 Exch $R1 |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1552 FunctionEnd |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1553 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1554 ; |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1555 ; Parse the Command line |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1556 ; |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1557 ; Unattended install command line parameters |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1558 ; /L=Language e.g.: /L=1033 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1559 ; |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1560 Function ParseParameters |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1561 Push $R0 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1562 IntOp $LANG_IS_SET 0 + 0 |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1563 Call GetParameters |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1564 ;Pop $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1565 ;Push $R0 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1566 Push "L=" |
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1567 Call StrStr |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1568 Pop $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1569 StrCmp $R0 "" next |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1570 StrCpy $R0 $R0 4 2 ; Strip first 2 chars of string |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1571 StrCpy $LANGUAGE $R0 |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1572 IntOp $LANG_IS_SET 0 + 1 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1573 next: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1574 Pop $R0 |
7558
908343b14e70
[gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7357
diff
changeset
|
1575 FunctionEnd |
10212
08251403c871
[gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
10137
diff
changeset
|
1576 |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1577 ; GetWindowsVersion |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1578 ; |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1579 ; Based on Yazno's function, http://yazno.tripod.com/powerpimpit/ |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1580 ; Updated by Joost Verburg |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1581 ; |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1582 ; Returns on top of stack |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1583 ; |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1584 ; Windows Version (95, 98, ME, NT x.x, 2000, XP, 2003) |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1585 ; or |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1586 ; '' (Unknown Windows Version) |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1587 ; |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1588 ; Usage: |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1589 ; Call GetWindowsVersion |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1590 ; Pop $R0 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1591 ; |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1592 ; at this point $R0 is "NT 4.0" or whatnot |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1593 Function GetWindowsVersion |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1594 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1595 Push $R0 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1596 Push $R1 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1597 |
12637
101c421bb396
[gaim-migrate @ 14973]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12452
diff
changeset
|
1598 ClearErrors |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1599 ReadRegStr $R0 HKLM \ |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1600 "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1601 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1602 IfErrors 0 lbl_winnt |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1603 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1604 ; we are not NT |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1605 ReadRegStr $R0 HKLM \ |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1606 "SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1607 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1608 StrCpy $R1 $R0 1 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1609 StrCmp $R1 '4' 0 lbl_error |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1610 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1611 StrCpy $R1 $R0 3 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1612 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1613 StrCmp $R1 '4.0' lbl_win32_95 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1614 StrCmp $R1 '4.9' lbl_win32_ME lbl_win32_98 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1615 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1616 lbl_win32_95: |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1617 StrCpy $R0 '95' |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1618 Goto lbl_done |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1619 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1620 lbl_win32_98: |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1621 StrCpy $R0 '98' |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1622 Goto lbl_done |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1623 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1624 lbl_win32_ME: |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1625 StrCpy $R0 'ME' |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1626 Goto lbl_done |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1627 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1628 lbl_winnt: |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1629 StrCpy $R1 $R0 1 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1630 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1631 StrCmp $R1 '3' lbl_winnt_x |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1632 StrCmp $R1 '4' lbl_winnt_x |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1633 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1634 StrCpy $R1 $R0 3 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1635 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1636 StrCmp $R1 '5.0' lbl_winnt_2000 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1637 StrCmp $R1 '5.1' lbl_winnt_XP |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1638 StrCmp $R1 '5.2' lbl_winnt_2003 lbl_error |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1639 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1640 lbl_winnt_x: |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1641 StrCpy $R0 "NT $R0" 6 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1642 Goto lbl_done |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1643 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1644 lbl_winnt_2000: |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1645 Strcpy $R0 '2000' |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1646 Goto lbl_done |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1647 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1648 lbl_winnt_XP: |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1649 Strcpy $R0 'XP' |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1650 Goto lbl_done |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1651 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1652 lbl_winnt_2003: |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1653 Strcpy $R0 '2003' |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1654 Goto lbl_done |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1655 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1656 lbl_error: |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1657 Strcpy $R0 '' |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1658 lbl_done: |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1659 |
10920
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1660 Pop $R1 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1661 Exch $R0 |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1662 FunctionEnd |
6a8440e9edba
[gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
10814
diff
changeset
|
1663 |
11578
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1664 ; SpellChecker Related Functions |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1665 ;------------------------------- |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1666 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1667 ; Convert the a Section index to the language code |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1668 ; Push the section index onto the stack and pop off the language code after the call |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1669 ; This will set the error code, if no match is found |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1670 Function GetLangCodeForSection |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1671 ClearErrors |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1672 Push $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1673 Exch |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1674 Pop $R0 ;This is the section index |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1675 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1676 IntCmp $R0 ${SecSpellCheckBreton} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1677 StrCpy $R0 "br" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1678 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1679 IntCmp $R0 ${SecSpellCheckCatalan} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1680 StrCpy $R0 "ca" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1681 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1682 IntCmp $R0 ${SecSpellCheckCzech} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1683 StrCpy $R0 "cs" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1684 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1685 IntCmp $R0 ${SecSpellCheckWelsh} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1686 StrCpy $R0 "cy" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1687 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1688 IntCmp $R0 ${SecSpellCheckDanish} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1689 StrCpy $R0 "da" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1690 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1691 IntCmp $R0 ${SecSpellCheckGerman} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1692 StrCpy $R0 "de" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1693 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1694 IntCmp $R0 ${SecSpellCheckGreek} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1695 StrCpy $R0 "el" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1696 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1697 IntCmp $R0 ${SecSpellCheckEnglish} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1698 StrCpy $R0 "en" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1699 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1700 IntCmp $R0 ${SecSpellCheckEsperanto} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1701 StrCpy $R0 "eo" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1702 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1703 IntCmp $R0 ${SecSpellCheckSpanish} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1704 StrCpy $R0 "es" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1705 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1706 IntCmp $R0 ${SecSpellCheckFaroese} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1707 StrCpy $R0 "fo" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1708 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1709 IntCmp $R0 ${SecSpellCheckFrench} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1710 StrCpy $R0 "fr" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1711 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1712 IntCmp $R0 ${SecSpellCheckItalian} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1713 StrCpy $R0 "it" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1714 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1715 IntCmp $R0 ${SecSpellCheckDutch} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1716 StrCpy $R0 "nl" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1717 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1718 IntCmp $R0 ${SecSpellCheckNorwegian} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1719 StrCpy $R0 "no" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1720 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1721 IntCmp $R0 ${SecSpellCheckPolish} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1722 StrCpy $R0 "pl" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1723 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1724 IntCmp $R0 ${SecSpellCheckPortuguese} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1725 StrCpy $R0 "pt" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1726 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1727 IntCmp $R0 ${SecSpellCheckRomanian} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1728 StrCpy $R0 "ro" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1729 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1730 IntCmp $R0 ${SecSpellCheckRussian} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1731 StrCpy $R0 "ru" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1732 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1733 IntCmp $R0 ${SecSpellCheckSlovak} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1734 StrCpy $R0 "sk" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1735 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1736 IntCmp $R0 ${SecSpellCheckSwedish} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1737 StrCpy $R0 "sv" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1738 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1739 IntCmp $R0 ${SecSpellCheckUkrainian} 0 +3 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1740 StrCpy $R0 "uk" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1741 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1742 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1743 SetErrors |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1744 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1745 done: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1746 Exch $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1747 FunctionEnd ;GetLangCodeForSection |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1748 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1749 ; Select and Disable any Sections that have currently installed dictionaries |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1750 Function SelectAndDisableInstalledDictionaries |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1751 Push $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1752 Push $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1753 Push $R2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1754 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1755 ; Start with the first language dictionary |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1756 IntOp $R0 ${SecSpellCheck} + 1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1757 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1758 start: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1759 ; If it is the end of the section group, stop |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1760 SectionGetFlags $R0 $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1761 IntOp $R2 $R1 & ${SF_SECGRPEND} |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1762 IntCmp $R2 ${SF_SECGRPEND} done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1763 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1764 Push $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1765 Call GetLangCodeForSection |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1766 Pop $R2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1767 IfErrors end_loop |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1768 ReadRegStr $R2 HKLM "${ASPELL_REG_KEY}-$R2" "" ; Check that the dictionary is installed |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1769 StrCmp $R2 "" end_loop ; If it isn't installed, skip to the next item |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1770 IntOp $R1 $R1 | ${SF_RO} ; Mark Readonly |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1771 IntOp $R1 $R1 | ${SF_SELECTED} ; Select |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1772 SectionSetFlags $R0 $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1773 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1774 end_loop: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1775 IntOp $R0 $R0 + 1 ;Advance to the next section |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1776 Goto start |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1777 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1778 done: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1779 Pop $R2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1780 Pop $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1781 Pop $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1782 FunctionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1783 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1784 Function InstallAspellAndDict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1785 Push $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1786 Exch |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1787 Call GetLangCodeForSection |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1788 Pop $R0 ;This is the language code |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1789 Push $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1790 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1791 IfErrors done ; We weren't able to convert the section to lang code |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1792 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1793 retry: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1794 Call InstallAspell |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1795 Pop $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1796 StrCmp $R1 "" +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1797 StrCmp $R1 "cancel" done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1798 MessageBox MB_RETRYCANCEL "$(GAIM_SPELLCHECK_ERROR) : $R1" IDRETRY retry IDCANCEL done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1799 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1800 retry_dict: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1801 Push $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1802 Call InstallAspellDictionary |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1803 Pop $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1804 StrCmp $R1 "" +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1805 StrCmp $R1 "cancel" done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1806 MessageBox MB_RETRYCANCEL "$(GAIM_SPELLCHECK_DICT_ERROR) : $R1" IDRETRY retry_dict |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1807 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1808 done: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1809 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1810 Pop $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1811 Pop $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1812 FunctionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1813 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1814 Function InstallAspell |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1815 Push $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1816 Push $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1817 Push $R2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1818 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1819 check: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1820 ClearErrors |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1821 ReadRegDWORD $R0 HKLM ${ASPELL_REG_KEY} "AspellVersion" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1822 IntCmp $R0 15 installed |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1823 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1824 ; If this is the check after installation, don't infinite loop on failure |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1825 StrCmp $R1 "$TEMP\aspell_installer.exe" 0 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1826 StrCpy $R0 $(ASPELL_INSTALL_FAILED) |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1827 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1828 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1829 ; We need to download and install aspell |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1830 StrCpy $R1 "$TEMP\aspell_installer.exe" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1831 StrCpy $R2 "${DOWNLOADER_URL}?version=${GAIM_VERSION}&dl_pkg=aspell_core" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1832 DetailPrint "Downloading Aspell... ($R2)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1833 NSISdl::download $R2 $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1834 Pop $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1835 StrCmp $R0 "success" +2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1836 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1837 ExecWait '"$R1"' |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1838 Delete $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1839 Goto check ; Check that it is now installed correctly |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1840 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1841 installed: ;Aspell is currently installed, no error message |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1842 DetailPrint "Aspell is installed" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1843 StrCpy $R0 '' |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1844 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1845 done: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1846 Pop $R2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1847 Pop $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1848 Exch $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1849 FunctionEnd |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1850 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1851 Function InstallAspellDictionary |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1852 Push $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1853 Exch |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1854 Pop $R0 ;This is the language code |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1855 Push $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1856 Push $R2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1857 Push $R3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1858 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1859 check: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1860 ClearErrors |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1861 ReadRegStr $R1 HKLM "${ASPELL_REG_KEY}-$R0" "" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1862 StrCmp $R1 "" 0 installed |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1863 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1864 ; If this is the check after installation, don't infinite loop on failure |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1865 StrCmp $R1 "$TEMP\aspell_dict-$R0.exe" 0 +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1866 StrCpy $R0 $(ASPELL_INSTALL_FAILED) |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1867 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1868 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1869 ; We need to download and install aspell |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1870 StrCpy $R1 "$TEMP\aspell_dict-$R0.exe" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1871 StrCpy $R3 "${DOWNLOADER_URL}?version=${GAIM_VERSION}&dl_pkg=lang_$R0" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1872 DetailPrint "Downloading the Aspell $R0 Dictionary... ($R3)" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1873 NSISdl::download $R3 $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1874 Pop $R3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1875 StrCmp $R3 "success" +3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1876 StrCpy $R0 $R3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1877 Goto done |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1878 ExecWait '"$R1"' |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1879 Delete $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1880 Goto check ; Check that it is now installed correctly |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1881 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1882 installed: ;The dictionary is currently installed, no error message |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1883 DetailPrint "Aspell $R0 Dictionary is installed" |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1884 StrCpy $R0 '' |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1885 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1886 done: |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1887 Pop $R3 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1888 Pop $R2 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1889 Pop $R1 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1890 Exch $R0 |
8b955ffe9584
[gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11260
diff
changeset
|
1891 FunctionEnd |