annotate gaim-installer.nsi @ 15268:132db06150ca

[gaim-migrate @ 18058] * Nathan and I decided that there's no reason for having the if (value != old_value) checks in the setters; it's a convention which makes sense in my 'native' Objective-C but is silly here. * Fixed a return in g_return_val_if_fail(): gaim_notify_user_info_entry_get_type() returns a GaimNotifyUserInfoEntryType, not a pointer. committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 26 Dec 2006 19:22:03 +0000
parents 0f5124855240
children d9ef62fb7e7b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
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
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
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 ISSILENT
9902
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
14 Var STARTUP_RUN_KEY
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
15 Var SPELLCHECK_SEL
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
16
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
17 ;--------------------------------
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
18 ;Configuration
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
19
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
20 ;The name var is set in .onInit
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
21 Name $name
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
22
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
23 !ifdef WITH_GTK
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
24 OutFile "gaim-${GAIM_VERSION}.exe"
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
25 !else
5931
8b5dd7117f56 [gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5396
diff changeset
26 !ifdef DEBUG
8b5dd7117f56 [gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5396
diff changeset
27 OutFile "gaim-${GAIM_VERSION}-debug.exe"
8b5dd7117f56 [gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5396
diff changeset
28 !else
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
29 OutFile "gaim-${GAIM_VERSION}-no-gtk.exe"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
30 !endif
5931
8b5dd7117f56 [gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5396
diff changeset
31 !endif
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
32
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
33 SetCompressor /SOLID lzma
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
34 ShowInstDetails show
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
35 ShowUninstDetails show
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
36 SetDateSave on
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
37
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
38 ; $name and $INSTDIR are set in .onInit function..
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
39
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
40 !include "MUI.nsh"
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
41 !include "Sections.nsh"
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
42
14377
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
43 !include "FileFunc.nsh"
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
44 !insertmacro GetParameters
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
45 !insertmacro GetOptions
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
46 !insertmacro GetParent
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
47
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
48 !include "WordFunc.nsh"
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
49 !insertmacro VersionCompare
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
50
14736
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
51 !include "TextFunc.nsh"
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
52 !insertmacro ConfigWriteS
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
53
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
54 ;--------------------------------
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
55 ;Defines
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
56
14289
d10386bc5bc9 [gaim-migrate @ 16977]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
57 !define GAIM_NSIS_INCLUDE_PATH ".\gtk\win32\nsis"
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
58 !define GAIM_INSTALLER_DEPS "..\win32-dev\gaim-inst-deps"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
59
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
60 !define GAIM_REG_KEY "SOFTWARE\gaim"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
61 !define GAIM_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
62 !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
63 !define GAIM_STARTUP_RUN_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
64 !define GAIM_UNINST_EXE "gaim-uninst.exe"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
65
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
66 !define GTK_MIN_VERSION "2.6.10"
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
67 !define GTK_INSTALL_VERSION "2.10.6"
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
68 !define GTK_REG_KEY "SOFTWARE\GTK\2.0"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
69 !define PERL_REG_KEY "SOFTWARE\Perl"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
70 !define PERL_DLL "perl58.dll"
11260
fd4aba9dab9d [gaim-migrate @ 13437]
Richard Laager <rlaager@wiktel.com>
parents: 11103
diff changeset
71 !define GTK_DEFAULT_INSTALL_PATH "$COMMONFILES\GTK\2.0"
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
72 !define GTK_RUNTIME_INSTALLER "..\gtk_installer\gtk-runtime*.exe"
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
73
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
74 !define ASPELL_REG_KEY "SOFTWARE\Aspell"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
75 !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
76
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
77 ;--------------------------------
14454
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
78 ;Version resource
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
79 VIProductVersion "${GAIM_PRODUCT_VERSION}"
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
80 VIAddVersionKey "ProductName" "Gaim"
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
81 VIAddVersionKey "FileVersion" "${GAIM_VERSION}"
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
82 VIAddVersionKey "ProductVersion" "${GAIM_VERSION}"
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
83 VIAddVersionKey "LegalCopyright" ""
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
84 !ifdef WITH_GTK
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
85 VIAddVersionKey "FileDescription" "Gaim Installer (w/ GTK+ Installer)"
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
86 !else
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
87 !ifdef DEBUG
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
88 VIAddVersionKey "FileDescription" "Gaim Installer (Debug Version)"
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
89 !else
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
90 VIAddVersionKey "FileDescription" "Gaim Installer (w/o GTK+ Installer)"
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
91 !endif
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
92 !endif
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
93
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
94 ;--------------------------------
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
95 ;Modern UI Configuration
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
96
14289
d10386bc5bc9 [gaim-migrate @ 16977]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
97 !define MUI_ICON ".\gtk\pixmaps\gaim-install.ico"
d10386bc5bc9 [gaim-migrate @ 16977]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
98 !define MUI_UNICON ".\gtk\pixmaps\gaim-install.ico"
d10386bc5bc9 [gaim-migrate @ 16977]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
99 !define MUI_WELCOMEFINISHPAGE_BITMAP ".\gtk\win32\nsis\gaim-intro.bmp"
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
100 !define MUI_HEADERIMAGE
14289
d10386bc5bc9 [gaim-migrate @ 16977]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14241
diff changeset
101 !define MUI_HEADERIMAGE_BITMAP ".\gtk\win32\nsis\gaim-header.bmp"
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
102
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
103 ; Alter License section
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
104 !define MUI_LICENSEPAGE_BUTTON $(GAIM_LICENSE_BUTTON)
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
105 !define MUI_LICENSEPAGE_TEXT_BOTTOM $(GAIM_LICENSE_BOTTOM_TEXT)
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
106
14454
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
107 !define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
108 !define MUI_LANGDLL_REGISTRY_KEY ${GAIM_REG_KEY}
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
109 !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
110
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
111 !define MUI_COMPONENTSPAGE_SMALLDESC
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
112 !define MUI_ABORTWARNING
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
113
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
114 ;Finish Page config
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
115 !define MUI_FINISHPAGE_RUN "$INSTDIR\gaim.exe"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
116 !define MUI_FINISHPAGE_RUN_NOTCHECKED
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
117 !define MUI_FINISHPAGE_LINK $(GAIM_FINISH_VISIT_WEB_SITE)
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
118 !define MUI_FINISHPAGE_LINK_LOCATION "http://gaim.sourceforge.net/win32"
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
119
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
120 ;--------------------------------
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
121 ;Pages
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
122
7600
f48c6e4db102 [gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7575
diff changeset
123 !define MUI_PAGE_CUSTOMFUNCTION_PRE preWelcomePage
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
124 !insertmacro MUI_PAGE_WELCOME
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
125 !insertmacro MUI_PAGE_LICENSE "./COPYING"
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
126 !insertmacro MUI_PAGE_COMPONENTS
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
127
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
128 !ifdef WITH_GTK
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
129 ; GTK+ install dir page
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
130 !define MUI_PAGE_CUSTOMFUNCTION_PRE preGtkDirPage
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
131 !define MUI_PAGE_CUSTOMFUNCTION_LEAVE postGtkDirPage
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
132 !define MUI_DIRECTORYPAGE_VARIABLE $GTK_FOLDER
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
133 !insertmacro MUI_PAGE_DIRECTORY
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
134 !endif
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
135
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
136 ; Gaim install dir page
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
137 !insertmacro MUI_PAGE_DIRECTORY
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
138
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
139 !insertmacro MUI_PAGE_INSTFILES
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
140 !insertmacro MUI_PAGE_FINISH
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
141
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
142 !insertmacro MUI_UNPAGE_WELCOME
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
143 !insertmacro MUI_UNPAGE_CONFIRM
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
144 !insertmacro MUI_UNPAGE_INSTFILES
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
145 !insertmacro MUI_UNPAGE_FINISH
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
146
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
147 ;--------------------------------
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
148 ;Languages
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
149
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
150 ;; English goes first because its the default. The rest are
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
151 ;; in alphabetical order (at least the strings actually displayed
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
152 ;; will be).
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
153
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
154 !insertmacro MUI_LANGUAGE "English"
6913
44933354ecad [gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6912
diff changeset
155
10095
b28f9be379b3 [gaim-migrate @ 11114]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9960
diff changeset
156 !insertmacro MUI_LANGUAGE "Albanian"
6913
44933354ecad [gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6912
diff changeset
157 !insertmacro MUI_LANGUAGE "Bulgarian"
9956
a448265e09d8 [gaim-migrate @ 10856]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9902
diff changeset
158 !insertmacro MUI_LANGUAGE "Catalan"
7626
2fb83607becf [gaim-migrate @ 8250]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7600
diff changeset
159 !insertmacro MUI_LANGUAGE "Czech"
7924
cb400cd78961 [gaim-migrate @ 8593]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7626
diff changeset
160 !insertmacro MUI_LANGUAGE "Danish"
6913
44933354ecad [gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6912
diff changeset
161 !insertmacro MUI_LANGUAGE "SimpChinese"
44933354ecad [gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6912
diff changeset
162 !insertmacro MUI_LANGUAGE "TradChinese"
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
163 !insertmacro MUI_LANGUAGE "German"
7575
df5f8c339c38 [gaim-migrate @ 8191]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7572
diff changeset
164 !insertmacro MUI_LANGUAGE "Spanish"
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
165 !insertmacro MUI_LANGUAGE "French"
8388
c08d9b0dbd29 [gaim-migrate @ 9116]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 8183
diff changeset
166 !insertmacro MUI_LANGUAGE "Hebrew"
6913
44933354ecad [gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6912
diff changeset
167 !insertmacro MUI_LANGUAGE "Italian"
8183
ab0fce369327 [gaim-migrate @ 8902]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 8180
diff changeset
168 !insertmacro MUI_LANGUAGE "Japanese"
6913
44933354ecad [gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6912
diff changeset
169 !insertmacro MUI_LANGUAGE "Korean"
13181
1ac07e52c76a [gaim-migrate @ 15544]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13067
diff changeset
170 !insertmacro MUI_LANGUAGE "Kurdish"
13563
856c9ce8bf11 [gaim-migrate @ 15942]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13562
diff changeset
171 !insertmacro MUI_LANGUAGE "Lithuanian"
6913
44933354ecad [gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6912
diff changeset
172 !insertmacro MUI_LANGUAGE "Hungarian"
44933354ecad [gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6912
diff changeset
173 !insertmacro MUI_LANGUAGE "Dutch"
8567
d92a7574473c [gaim-migrate @ 9314]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 8388
diff changeset
174 !insertmacro MUI_LANGUAGE "Norwegian"
8126
b6458d4ce101 [gaim-migrate @ 8830]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 8099
diff changeset
175 !insertmacro MUI_LANGUAGE "Polish"
6290
976d9ad5d77a [gaim-migrate @ 6789]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6277
diff changeset
176 !insertmacro MUI_LANGUAGE "PortugueseBR"
7215
fa011d609c54 [gaim-migrate @ 7784]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7214
diff changeset
177 !insertmacro MUI_LANGUAGE "Portuguese"
6951
54deff9eec41 [gaim-migrate @ 7498]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6948
diff changeset
178 !insertmacro MUI_LANGUAGE "Romanian"
8099
40163e984818 [gaim-migrate @ 8799]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7924
diff changeset
179 !insertmacro MUI_LANGUAGE "Russian"
6913
44933354ecad [gaim-migrate @ 7460]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6912
diff changeset
180 !insertmacro MUI_LANGUAGE "Serbian"
9561
3ff773e92747 [gaim-migrate @ 10397]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9139
diff changeset
181 !insertmacro MUI_LANGUAGE "Slovak"
9115
f55f93a975f2 [gaim-migrate @ 9892]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 8567
diff changeset
182 !insertmacro MUI_LANGUAGE "Slovenian"
8179
3fa28787e571 [gaim-migrate @ 8896]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 8178
diff changeset
183 !insertmacro MUI_LANGUAGE "Finnish"
6559
8dba07c335e9 [gaim-migrate @ 7081]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6491
diff changeset
184 !insertmacro MUI_LANGUAGE "Swedish"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
185
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
186 ;--------------------------------
6233
0c64ba470632 [gaim-migrate @ 6726]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6159
diff changeset
187 ;Translations
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
188
7572
6300424eafbf [gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7558
diff changeset
189 !define GAIM_DEFAULT_LANGFILE "${GAIM_NSIS_INCLUDE_PATH}\translations\english.nsh"
6300424eafbf [gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7558
diff changeset
190
6300424eafbf [gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7558
diff changeset
191 !include "${GAIM_NSIS_INCLUDE_PATH}\langmacros.nsh"
6300424eafbf [gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7558
diff changeset
192
10095
b28f9be379b3 [gaim-migrate @ 11114]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9960
diff changeset
193 !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
194 !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
195 !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
196 !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
197 !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
198 !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
199 !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
200 !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
201 !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
202 !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
203 !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
204 !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
205 !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
206 !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
207 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "KOREAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\korean.nsh"
13181
1ac07e52c76a [gaim-migrate @ 15544]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13067
diff changeset
208 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "KURDISH" "${GAIM_NSIS_INCLUDE_PATH}\translations\kurdish.nsh"
13562
b222050ab804 [gaim-migrate @ 15941]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13531
diff changeset
209 !insertmacro GAIM_MACRO_INCLUDE_LANGFILE "LITHUANIAN" "${GAIM_NSIS_INCLUDE_PATH}\translations\lithuanian.nsh"
8567
d92a7574473c [gaim-migrate @ 9314]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 8388
diff changeset
210 !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
211 !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
212 !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
213 !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
214 !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
215 !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
216 !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
217 !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
218 !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
219 !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
220 !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
221 !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
222 !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
223
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
224 ;--------------------------------
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
225 ;Reserve Files
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
226 ; Only need this if using bzip2 compression
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
227
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
228 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
229 !insertmacro MUI_RESERVEFILE_LANGDLL
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
230 ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
231
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
232
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
233 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
234 ;; Start Install Sections ;;
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
235 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
236
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
237 ;--------------------------------
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
238 ;Uninstall any old version of Gaim
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
239
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
240 Section -SecUninstallOldGaim
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
241 ; Check install rights..
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
242 Call CheckUserInstallRights
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
243 Pop $R0
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
244
9902
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
245 ;If gaim is currently set to run on startup,
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
246 ; save the section of the Registry where the setting is before uninstalling,
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
247 ; so we can put it back after installing the new version
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
248 ClearErrors
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
249 ReadRegStr $STARTUP_RUN_KEY HKCU "${GAIM_STARTUP_RUN_KEY}" "Gaim"
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
250 IfErrors +3
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
251 StrCpy $STARTUP_RUN_KEY "HKCU"
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
252 Goto +4
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
253 ClearErrors
9902
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
254 ReadRegStr $STARTUP_RUN_KEY HKLM "${GAIM_STARTUP_RUN_KEY}" "Gaim"
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
255 IfErrors +2
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
256 StrCpy $STARTUP_RUN_KEY "HKLM"
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
257
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
258 StrCmp $R0 "HKLM" gaim_hklm
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
259 StrCmp $R0 "HKCU" gaim_hkcu done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
260
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
261 gaim_hkcu:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
262 ReadRegStr $R1 HKCU ${GAIM_REG_KEY} ""
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
263 ReadRegStr $R2 HKCU ${GAIM_REG_KEY} "Version"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
264 ReadRegStr $R3 HKCU "${GAIM_UNINSTALL_KEY}" "UninstallString"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
265 Goto try_uninstall
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 gaim_hklm:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
268 ReadRegStr $R1 HKLM ${GAIM_REG_KEY} ""
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
269 ReadRegStr $R2 HKLM ${GAIM_REG_KEY} "Version"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
270 ReadRegStr $R3 HKLM "${GAIM_UNINSTALL_KEY}" "UninstallString"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
271
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
272 ; If previous version exists .. remove
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
273 try_uninstall:
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
274 StrCmp $R1 "" done
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
275 ; 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
276 ; automaticlly uninstalled.
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
277 StrCmp $R2 "" uninstall_problem
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
278 ; Check if we have uninstall string..
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
279 IfFileExists $R3 0 uninstall_problem
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
280 ; Have uninstall string.. go ahead and uninstall.
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
281 SetOverwrite on
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
282 ; Need to copy uninstaller outside of the install dir
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
283 ClearErrors
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
284 CopyFiles /SILENT $R3 "$TEMP\${GAIM_UNINST_EXE}"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
285 SetOverwrite off
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
286 IfErrors uninstall_problem
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
287 ; Ready to uninstall..
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
288 ClearErrors
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
289 ExecWait '"$TEMP\${GAIM_UNINST_EXE}" /S _?=$R1'
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
290 IfErrors exec_error
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
291 Delete "$TEMP\${GAIM_UNINST_EXE}"
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
292 Goto done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
293
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
294 exec_error:
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
295 Delete "$TEMP\${GAIM_UNINST_EXE}"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
296 Goto uninstall_problem
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
297
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
298 uninstall_problem:
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
299 ; We can't uninstall. Either the user must manually uninstall or we ignore and reinstall over it.
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
300 MessageBox MB_OKCANCEL $(GAIM_PROMPT_CONTINUE_WITHOUT_UNINSTALL) /SD IDOK IDOK done
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
301 Quit
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
302 done:
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
303 SectionEnd
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
304
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
305
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 ;GTK+ Runtime Install Section
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
308
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
309 !ifdef WITH_GTK
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
310 Section $(GTK_SECTION_TITLE) SecGtk
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
311 SectionIn 1 RO
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
312
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
313 Call CheckUserInstallRights
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
314 Pop $R1
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
315
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
316 SetOutPath $TEMP
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
317 SetOverwrite on
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
318 File /oname=gtk-runtime.exe ${GTK_RUNTIME_INSTALLER}
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
319 SetOverwrite off
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
320
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
321 Call DoWeNeedGtk
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
322 Pop $R0
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
323 Pop $R6
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
324
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
325 StrCmp $R0 "0" have_gtk
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
326 StrCmp $R0 "1" upgrade_gtk
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
327 StrCmp $R0 "2" upgrade_gtk
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
328 StrCmp $R0 "3" no_gtk no_gtk
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
329
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
330 no_gtk:
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
331 StrCmp $R1 "NONE" gtk_no_install_rights
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
332 ClearErrors
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
333 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT /D=$GTK_FOLDER'
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
334 IfErrors gtk_install_error done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
335
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
336 upgrade_gtk:
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
337 StrCpy $GTK_FOLDER $R6
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
338 StrCmp $R0 "2" +2 ; Upgrade isn't optional
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
339 MessageBox MB_YESNO $(GTK_UPGRADE_PROMPT) /SD IDYES IDNO done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
340 ClearErrors
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
341 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE /S /D=$GTK_FOLDER'
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
342 IfErrors gtk_install_error done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
343
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
344 gtk_install_error:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
345 Delete "$TEMP\gtk-runtime.exe"
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
346 MessageBox MB_OK $(GTK_INSTALL_ERROR) /SD IDOK
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
347 Quit
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
348
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
349 have_gtk:
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
350 StrCpy $GTK_FOLDER $R6
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
351 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
352 ; 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
353 ClearErrors
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
354 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT'
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
355 IfErrors gtk_install_error
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
356 Goto done
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
357
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
358 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
359 ; end got_install rights
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
360
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
361 gtk_no_install_rights:
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
362 ; Install GTK+ to Gaim install dir
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
363 StrCpy $GTK_FOLDER $INSTDIR
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 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
366 IfErrors gtk_install_error
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
367 SetOverwrite on
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
368 ClearErrors
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
369 CopyFiles /FILESONLY "$GTK_FOLDER\bin\*.dll" $GTK_FOLDER
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
370 SetOverwrite off
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
371 IfErrors gtk_install_error
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
372 Delete "$GTK_FOLDER\bin\*.dll"
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
373 Goto done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
374 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
375 ; end gtk_no_install_rights
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
376
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
377 done:
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
378 Delete "$TEMP\gtk-runtime.exe"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
379 SectionEnd ; end of GTK+ section
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
380 !endif
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
381
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
382 ;--------------------------------
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
383 ;Gaim Install Section
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
384
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
385 Section $(GAIM_SECTION_TITLE) SecGaim
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
386 SectionIn 1 RO
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 ; Check install rights..
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
389 Call CheckUserInstallRights
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
390 Pop $R0
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
391
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
392 ; Get GTK+ lib dir if we have it..
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
393
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
394 StrCmp $R0 "NONE" gaim_none
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
395 StrCmp $R0 "HKLM" gaim_hklm gaim_hkcu
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
396
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
397 gaim_hklm:
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
398 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path"
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
399 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "" "$INSTDIR\gaim.exe"
6422
468bbb5fbc29 [gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6300
diff changeset
400 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R1\bin"
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
401 WriteRegStr HKLM ${GAIM_REG_KEY} "" "$INSTDIR"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
402 WriteRegStr HKLM ${GAIM_REG_KEY} "Version" "${GAIM_VERSION}"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
403 WriteRegStr HKLM "${GAIM_UNINSTALL_KEY}" "DisplayName" $(GAIM_UNINSTALL_DESC)
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
404 WriteRegStr HKLM "${GAIM_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${GAIM_UNINST_EXE}"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
405 ; 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
406 SetShellVarContext "all"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
407 Goto gaim_install_files
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
408
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
409 gaim_hkcu:
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
410 ReadRegStr $R1 HKCU ${GTK_REG_KEY} "Path"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
411 StrCmp $R1 "" 0 gaim_hkcu1
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
412 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
413 gaim_hkcu1:
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
414 WriteRegStr HKCU ${GAIM_REG_KEY} "" "$INSTDIR"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
415 WriteRegStr HKCU ${GAIM_REG_KEY} "Version" "${GAIM_VERSION}"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
416 WriteRegStr HKCU "${GAIM_UNINSTALL_KEY}" "DisplayName" $(GAIM_UNINSTALL_DESC)
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
417 WriteRegStr HKCU "${GAIM_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${GAIM_UNINST_EXE}"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
418 Goto gaim_install_files
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
419
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
420 gaim_none:
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
421 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
422
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
423 gaim_install_files:
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
424 SetOutPath "$INSTDIR"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
425 ; Gaim files
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
426 SetOverwrite on
15082
133af8458cbd [gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15076
diff changeset
427 File /r ${GAIM_INSTALL_DIR}\*.*
5931
8b5dd7117f56 [gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5396
diff changeset
428 !ifdef DEBUG
6854
9e1bd25afa88 [gaim-migrate @ 7399]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6848
diff changeset
429 File "${GAIM_INSTALLER_DEPS}\exchndl.dll"
5931
8b5dd7117f56 [gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5396
diff changeset
430 !endif
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
431
6848
060aa79a733e [gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
432 ; Install shfolder.dll if need be..
060aa79a733e [gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
433 SearchPath $R4 "shfolder.dll"
060aa79a733e [gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
434 StrCmp $R4 "" 0 got_shfolder
060aa79a733e [gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
435 SetOutPath "$SYSDIR"
6854
9e1bd25afa88 [gaim-migrate @ 7399]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6848
diff changeset
436 File "${GAIM_INSTALLER_DEPS}\shfolder.dll"
6848
060aa79a733e [gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
437 SetOutPath "$INSTDIR"
060aa79a733e [gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
438 got_shfolder:
060aa79a733e [gaim-migrate @ 7393]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6816
diff changeset
439
14603
f63d095dc421 [gaim-migrate @ 17331]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14454
diff changeset
440 ; Check if Perl is installed, if so add it to the AppPaths
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
441 ReadRegStr $R2 HKLM ${PERL_REG_KEY} ""
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
442 StrCmp $R2 "" 0 perl_exists
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
443 ReadRegStr $R2 HKCU ${PERL_REG_KEY} ""
14603
f63d095dc421 [gaim-migrate @ 17331]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14454
diff changeset
444 StrCmp $R2 "" perl_done perl_exists
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
445
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
446 perl_exists:
14603
f63d095dc421 [gaim-migrate @ 17331]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14454
diff changeset
447 IfFileExists "$R2\bin\${PERL_DLL}" 0 perl_done
6816
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
448 StrCmp $R0 "HKLM" 0 perl_done
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
449 ReadRegStr $R3 HKLM "${HKLM_APP_PATHS_KEY}" "Path"
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
450 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R3;$R2\bin"
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
451
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
452 perl_done:
5aeba37b303c [gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6650
diff changeset
453
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
454 ; If this is under NT4, delete the SILC support stuff
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
455 ; 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
456 ; 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
457 Call GetWindowsVersion
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
458 Pop $R2
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
459 StrCmp $R2 "NT 4.0" +1 +4
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
460 Delete "$INSTDIR\plugins\libsilc.dll"
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
461 Delete "$INSTDIR\silcclient.dll"
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
462 Delete "$INSTDIR\silc.dll"
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
463
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
464 SetOutPath "$INSTDIR"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
465
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
466 ; If we don't have install rights.. we're done
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
467 StrCmp $R0 "NONE" done
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
468 SetOverwrite off
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
469
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
470 ; write out uninstaller
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
471 SetOverwrite on
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
472 WriteUninstaller "$INSTDIR\${GAIM_UNINST_EXE}"
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
473 SetOverwrite off
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
474
9902
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
475 ; If we previously had gaim setup to run on startup, make it do so again
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
476 StrCmp $STARTUP_RUN_KEY "HKCU" +1 +2
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
477 WriteRegStr HKCU "${GAIM_STARTUP_RUN_KEY}" "Gaim" "$INSTDIR\gaim.exe"
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
478 StrCmp $STARTUP_RUN_KEY "HKLM" +1 +2
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
479 WriteRegStr HKLM "${GAIM_STARTUP_RUN_KEY}" "Gaim" "$INSTDIR\gaim.exe"
b0f2c9c0d23b [gaim-migrate @ 10794]
Mark Doliner <mark@kingant.net>
parents: 9890
diff changeset
480
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
481 done:
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
482 SectionEnd ; end of default Gaim section
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
483
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
484 ;--------------------------------
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
485 ;Shortcuts
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
486
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
487 SectionGroup /e $(GAIM_SHORTCUTS_SECTION_TITLE) SecShortcuts
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
488 Section /o $(GAIM_DESKTOP_SHORTCUT_SECTION_TITLE) SecDesktopShortcut
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
489 SetOverwrite on
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
490 CreateShortCut "$DESKTOP\Gaim.lnk" "$INSTDIR\gaim.exe"
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
491 SetOverwrite off
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
492 SectionEnd
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
493 Section $(GAIM_STARTMENU_SHORTCUT_SECTION_TITLE) SecStartMenuShortcut
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
494 SetOverwrite on
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
495 CreateDirectory "$SMPROGRAMS\Gaim"
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
496 CreateShortCut "$SMPROGRAMS\Gaim\Gaim.lnk" "$INSTDIR\gaim.exe"
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
497 SetOverwrite off
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
498 SectionEnd
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
499 SectionGroupEnd
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
500
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
501 ;--------------------------------
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
502 ;GTK+ Themes
3860
d0897828bd0d [gaim-migrate @ 4012]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3853
diff changeset
503
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
504 SectionGroup /e $(GTK_THEMES_SECTION_TITLE) SecGtkThemes
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
505 Section /o $(GTK_NOTHEME_SECTION_TITLE) SecGtkNone
14736
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
506 Push "Raleigh"
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
507 Call WriteGtkThemeConfig
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
508 SectionEnd
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
509
7352
af0e0b4d0c32 [gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7215
diff changeset
510 Section $(GTK_WIMP_SECTION_TITLE) SecGtkWimp
14736
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
511 Push "MS-Windows"
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
512 Call WriteGtkThemeConfig
7352
af0e0b4d0c32 [gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7215
diff changeset
513 SectionEnd
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
514
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
515 Section /o $(GTK_BLUECURVE_SECTION_TITLE) SecGtkBluecurve
14736
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
516 Push "Bluecurve"
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
517 Call WriteGtkThemeConfig
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
518 SectionEnd
3860
d0897828bd0d [gaim-migrate @ 4012]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3853
diff changeset
519
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
520 Section /o $(GTK_LIGHTHOUSEBLUE_SECTION_TITLE) SecGtkLighthouseblue
14736
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
521 Push "Lighthouseblue"
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
522 Call WriteGtkThemeConfig
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
523 SectionEnd
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
524 SectionGroupEnd
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
525
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
526 ;--------------------------------
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
527 ;Spell Checking
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
528
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
529 SectionGroup /e $(GAIM_SPELLCHECK_SECTION_TITLE) SecSpellCheck
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
530 Section /o $(GAIM_SPELLCHECK_BRETON) SecSpellCheckBreton
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
531 Push ${SecSpellCheckBreton}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
532 Call InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
533 SectionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
534 Section /o $(GAIM_SPELLCHECK_CATALAN) SecSpellCheckCatalan
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
535 Push ${SecSpellCheckCatalan}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
536 Call InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
537 SectionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
538 Section /o $(GAIM_SPELLCHECK_CZECH) SecSpellCheckCzech
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
539 Push ${SecSpellCheckCzech}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
540 Call InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
541 SectionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
542 Section /o $(GAIM_SPELLCHECK_WELSH) SecSpellCheckWelsh
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
543 Push ${SecSpellCheckWelsh}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
544 Call InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
545 SectionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
546 Section /o $(GAIM_SPELLCHECK_DANISH) SecSpellCheckDanish
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
547 Push ${SecSpellCheckDanish}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
548 Call InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
549 SectionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
550 Section /o $(GAIM_SPELLCHECK_GERMAN) SecSpellCheckGerman
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
551 Push ${SecSpellCheckGerman}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
552 Call InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
553 SectionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
554 Section /o $(GAIM_SPELLCHECK_GREEK) SecSpellCheckGreek
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
555 Push ${SecSpellCheckGreek}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
556 Call InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
557 SectionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
558 Section /o $(GAIM_SPELLCHECK_ENGLISH) SecSpellCheckEnglish
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
559 Push ${SecSpellCheckEnglish}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
560 Call InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
561 SectionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
562 Section /o $(GAIM_SPELLCHECK_ESPERANTO) SecSpellCheckEsperanto
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
563 Push ${SecSpellCheckEsperanto}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
564 Call InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
565 SectionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
566 Section /o $(GAIM_SPELLCHECK_SPANISH) SecSpellCheckSpanish
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
567 Push ${SecSpellCheckSpanish}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
568 Call InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
569 SectionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
570 Section /o $(GAIM_SPELLCHECK_FAROESE) SecSpellCheckFaroese
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
571 Push ${SecSpellCheckFaroese}
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_FRENCH) SecSpellCheckFrench
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
575 Push ${SecSpellCheckFrench}
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_ITALIAN) SecSpellCheckItalian
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
579 Push ${SecSpellCheckItalian}
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_DUTCH) SecSpellCheckDutch
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
583 Push ${SecSpellCheckDutch}
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_NORWEGIAN) SecSpellCheckNorwegian
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
587 Push ${SecSpellCheckNorwegian}
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_POLISH) SecSpellCheckPolish
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
591 Push ${SecSpellCheckPolish}
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_PORTUGUESE) SecSpellCheckPortuguese
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
595 Push ${SecSpellCheckPortuguese}
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_ROMANIAN) SecSpellCheckRomanian
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
599 Push ${SecSpellCheckRomanian}
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_RUSSIAN) SecSpellCheckRussian
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
603 Push ${SecSpellCheckRussian}
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_SLOVAK) SecSpellCheckSlovak
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
607 Push ${SecSpellCheckSlovak}
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_SWEDISH) SecSpellCheckSwedish
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
611 Push ${SecSpellCheckSwedish}
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_UKRAINIAN) SecSpellCheckUkrainian
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
615 Push ${SecSpellCheckUkrainian}
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
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
618 SectionGroupEnd
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
619
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
620 ;--------------------------------
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
621 ;Uninstaller Section
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
622
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
623
3630
9682c0e022c6 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
624 Section Uninstall
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
625 Call un.CheckUserInstallRights
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
626 Pop $R0
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
627 StrCmp $R0 "NONE" no_rights
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
628 StrCmp $R0 "HKCU" try_hkcu try_hklm
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
629
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
630 try_hkcu:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
631 ReadRegStr $R0 HKCU ${GAIM_REG_KEY} ""
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
632 StrCmp $R0 $INSTDIR 0 cant_uninstall
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
633 ; HKCU install path matches our INSTDIR.. so uninstall
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
634 DeleteRegKey HKCU ${GAIM_REG_KEY}
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
635 DeleteRegKey HKCU "${GAIM_UNINSTALL_KEY}"
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
636 Goto cont_uninstall
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
637
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
638 try_hklm:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
639 ReadRegStr $R0 HKLM ${GAIM_REG_KEY} ""
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
640 StrCmp $R0 $INSTDIR 0 try_hkcu
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
641 ; HKLM install path matches our INSTDIR.. so uninstall
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
642 DeleteRegKey HKLM ${GAIM_REG_KEY}
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
643 DeleteRegKey HKLM "${GAIM_UNINSTALL_KEY}"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
644 DeleteRegKey HKLM "${HKLM_APP_PATHS_KEY}"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
645 ; Sets start menu and desktop scope to all users..
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
646 SetShellVarContext "all"
4126
e8f2fdf78662 [gaim-migrate @ 4343]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3989
diff changeset
647
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
648 cont_uninstall:
6090
44930abebe0d [gaim-migrate @ 6549]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5931
diff changeset
649 ; The WinPrefs plugin may have left this behind..
44930abebe0d [gaim-migrate @ 6549]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5931
diff changeset
650 DeleteRegValue HKCU "${GAIM_STARTUP_RUN_KEY}" "Gaim"
44930abebe0d [gaim-migrate @ 6549]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5931
diff changeset
651 DeleteRegValue HKLM "${GAIM_STARTUP_RUN_KEY}" "Gaim"
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
652 ; Remove Language preference info
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
653 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
654
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
655 RMDir /r "$INSTDIR\locale"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
656 RMDir /r "$INSTDIR\pixmaps"
6973
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
657 RMDir /r "$INSTDIR\perlmod"
15174
0f5124855240 [gaim-migrate @ 17960]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15082
diff changeset
658 Delete "$INSTDIR\plugins\autoaccept.dll"
0f5124855240 [gaim-migrate @ 17960]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15082
diff changeset
659 Delete "$INSTDIR\plugins\autoreply.dll"
0f5124855240 [gaim-migrate @ 17960]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15082
diff changeset
660 Delete "$INSTDIR\plugins\buddynote.dll"
0f5124855240 [gaim-migrate @ 17960]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15082
diff changeset
661 Delete "$INSTDIR\plugins\convcolors.dll"
9565
c60809a33460 [gaim-migrate @ 10404]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9561
diff changeset
662 Delete "$INSTDIR\plugins\extplacement.dll"
12452
bfa21679fef5 [gaim-migrate @ 14761]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11962
diff changeset
663 Delete "$INSTDIR\plugins\gaimrc.dll"
6476
1325c207d159 [gaim-migrate @ 6987]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6447
diff changeset
664 Delete "$INSTDIR\plugins\history.dll"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
665 Delete "$INSTDIR\plugins\iconaway.dll"
6476
1325c207d159 [gaim-migrate @ 6987]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6447
diff changeset
666 Delete "$INSTDIR\plugins\idle.dll"
14969
43f692951d49 [gaim-migrate @ 17748]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14867
diff changeset
667 Delete "$INSTDIR\plugins\libaim.dll"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
668 Delete "$INSTDIR\plugins\libgg.dll"
14969
43f692951d49 [gaim-migrate @ 17748]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14867
diff changeset
669 Delete "$INSTDIR\plugins\libicq.dll"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
670 Delete "$INSTDIR\plugins\libirc.dll"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
671 Delete "$INSTDIR\plugins\libjabber.dll"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
672 Delete "$INSTDIR\plugins\libmsn.dll"
9570
24f84b7ffe8e [gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9565
diff changeset
673 Delete "$INSTDIR\plugins\libnapster.dll"
9139
89a1cfea74e5 [gaim-migrate @ 9923]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9115
diff changeset
674 Delete "$INSTDIR\plugins\libnovell.dll"
14825
a02c29df922f [gaim-migrate @ 17592]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14792
diff changeset
675 Delete "$INSTDIR\plugins\libqq.dll"
11103
d0baed7a3d10 [gaim-migrate @ 13143]
Richard Laager <rlaager@wiktel.com>
parents: 11090
diff changeset
676 Delete "$INSTDIR\plugins\libsametime.dll"
d0baed7a3d10 [gaim-migrate @ 13143]
Richard Laager <rlaager@wiktel.com>
parents: 11090
diff changeset
677 Delete "$INSTDIR\plugins\libsilc.dll"
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
678 Delete "$INSTDIR\plugins\libsimple.dll"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
679 Delete "$INSTDIR\plugins\libtoc.dll"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
680 Delete "$INSTDIR\plugins\libyahoo.dll"
14235
a54ff7cafc2a [gaim-migrate @ 16917]
Richard Laager <rlaager@wiktel.com>
parents: 13808
diff changeset
681 Delete "$INSTDIR\plugins\log_reader.dll"
15174
0f5124855240 [gaim-migrate @ 17960]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15082
diff changeset
682 Delete "$INSTDIR\plugins\markerline.dll"
0f5124855240 [gaim-migrate @ 17960]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15082
diff changeset
683 Delete "$INSTDIR\plugins\newline.dll"
13067
9aa0536fe83c [gaim-migrate @ 15429]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13037
diff changeset
684 Delete "$INSTDIR\plugins\notify.dll"
15174
0f5124855240 [gaim-migrate @ 17960]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15082
diff changeset
685 Delete "$INSTDIR\plugins\offlinemsg.dll"
7352
af0e0b4d0c32 [gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7215
diff changeset
686 Delete "$INSTDIR\plugins\perl.dll"
13037
655d82876854 [gaim-migrate @ 15396]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12922
diff changeset
687 Delete "$INSTDIR\plugins\psychic.dll"
7600
f48c6e4db102 [gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7575
diff changeset
688 Delete "$INSTDIR\plugins\relnot.dll"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
689 Delete "$INSTDIR\plugins\spellchk.dll"
7352
af0e0b4d0c32 [gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7215
diff changeset
690 Delete "$INSTDIR\plugins\ssl-nss.dll"
af0e0b4d0c32 [gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7215
diff changeset
691 Delete "$INSTDIR\plugins\ssl.dll"
6476
1325c207d159 [gaim-migrate @ 6987]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6447
diff changeset
692 Delete "$INSTDIR\plugins\statenotify.dll"
8099
40163e984818 [gaim-migrate @ 8799]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7924
diff changeset
693 Delete "$INSTDIR\plugins\tcl.dll"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
694 Delete "$INSTDIR\plugins\ticker.dll"
6476
1325c207d159 [gaim-migrate @ 6987]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6447
diff changeset
695 Delete "$INSTDIR\plugins\timestamp.dll"
12922
7324922a8849 [gaim-migrate @ 15275]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12644
diff changeset
696 Delete "$INSTDIR\plugins\timestamp_format.dll"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
697 Delete "$INSTDIR\plugins\win2ktrans.dll"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
698 Delete "$INSTDIR\plugins\winprefs.dll"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
699 RMDir "$INSTDIR\plugins"
13067
9aa0536fe83c [gaim-migrate @ 15429]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13037
diff changeset
700 Delete "$INSTDIR\sounds\gaim\alert.wav"
9aa0536fe83c [gaim-migrate @ 15429]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13037
diff changeset
701 Delete "$INSTDIR\sounds\gaim\login.wav"
9aa0536fe83c [gaim-migrate @ 15429]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13037
diff changeset
702 Delete "$INSTDIR\sounds\gaim\logout.wav"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
703 Delete "$INSTDIR\sounds\gaim\receive.wav"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
704 Delete "$INSTDIR\sounds\gaim\send.wav"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
705 RMDir "$INSTDIR\sounds\gaim"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
706 RMDir "$INSTDIR\sounds"
15076
7ca4a6820154 [gaim-migrate @ 17860]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14985
diff changeset
707 Delete "$INSTDIR\freebl3.dll"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
708 Delete "$INSTDIR\gaim.exe"
14241
c54ea2572de9 [gaim-migrate @ 16923]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14235
diff changeset
709 Delete "$INSTDIR\gtkgaim.dll"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
710 Delete "$INSTDIR\idletrack.dll"
14241
c54ea2572de9 [gaim-migrate @ 16923]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14235
diff changeset
711 Delete "$INSTDIR\libgaim.dll"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
712 Delete "$INSTDIR\libgtkspell.dll"
14969
43f692951d49 [gaim-migrate @ 17748]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14867
diff changeset
713 Delete "$INSTDIR\liboscar.dll"
12644
db5241525e53 [gaim-migrate @ 14981]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12637
diff changeset
714 Delete "$INSTDIR\libmeanwhile-1.dll"
13808
34d086c78a0d [gaim-migrate @ 16234]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13563
diff changeset
715 Delete "$INSTDIR\libxml2.dll"
6973
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
716 Delete "$INSTDIR\nspr4.dll"
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
717 Delete "$INSTDIR\nss3.dll"
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
718 Delete "$INSTDIR\nssckbi.dll"
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
719 Delete "$INSTDIR\plc4.dll"
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
720 Delete "$INSTDIR\plds4.dll"
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
721 Delete "$INSTDIR\silc.dll"
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
722 Delete "$INSTDIR\silcclient.dll"
6973
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
723 Delete "$INSTDIR\softokn3.dll"
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
724 Delete "$INSTDIR\ssl3.dll"
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
725 Delete "$INSTDIR\${GAIM_UNINST_EXE}"
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
726 !ifdef DEBUG
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
727 Delete "$INSTDIR\exchndl.dll"
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
728 !endif
14736
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
729 Delete "$INSTDIR\install.log"
6973
969474e79e98 [gaim-migrate @ 7525]
uid99490
parents: 6951
diff changeset
730
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
731 ;Try to remove Gaim install dir .. if empty
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
732 RMDir "$INSTDIR"
3853
eddcb3a8c74e [gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3849
diff changeset
733
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
734 ; Shortcuts..
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
735 RMDir /r "$SMPROGRAMS\Gaim"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
736 Delete "$DESKTOP\Gaim.lnk"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
737
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
738 Goto done
4897
65a0a360e8c4 [gaim-migrate @ 5229]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 4857
diff changeset
739
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
740 cant_uninstall:
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
741 MessageBox MB_OK $(un.GAIM_UNINSTALL_ERROR_1) /SD IDOK
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
742 Quit
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
743
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
744 no_rights:
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
745 MessageBox MB_OK $(un.GAIM_UNINSTALL_ERROR_2) /SD IDOK
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
746 Quit
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
747
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
748 done:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
749 SectionEnd ; end of uninstall section
3853
eddcb3a8c74e [gaim-migrate @ 4005]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 3849
diff changeset
750
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
751 ;--------------------------------
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
752 ;Descriptions
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
753 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
754 !insertmacro MUI_DESCRIPTION_TEXT ${SecGaim} \
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
755 $(GAIM_SECTION_DESCRIPTION)
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
756 !ifdef WITH_GTK
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
757 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} \
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
758 $(GTK_SECTION_DESCRIPTION)
5383
e44333671363 [gaim-migrate @ 5759]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5332
diff changeset
759 !endif
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
760 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkThemes} \
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
761 $(GTK_THEMES_SECTION_DESCRIPTION)
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
762 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkNone} \
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
763 $(GTK_NO_THEME_DESC)
7352
af0e0b4d0c32 [gaim-migrate @ 7943]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7215
diff changeset
764 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkWimp} \
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
765 $(GTK_WIMP_THEME_DESC)
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
766 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkBluecurve} \
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
767 $(GTK_BLUECURVE_THEME_DESC)
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
768 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkLighthouseblue} \
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
769 $(GTK_LIGHTHOUSEBLUE_THEME_DESC)
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
770
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
771 !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} \
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
772 $(GAIM_SHORTCUTS_SECTION_DESCRIPTION)
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
773 !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} \
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
774 $(GAIM_DESKTOP_SHORTCUT_DESC)
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
775 !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} \
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
776 $(GAIM_STARTMENU_SHORTCUT_DESC)
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
777
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
778 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheck} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
779 $(GAIM_SPELLCHECK_SECTION_DESCRIPTION)
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
780 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckBreton} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
781 "$(GAIM_SPELLCHECK_BRETON) (862kb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
782 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckCatalan} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
783 "$(GAIM_SPELLCHECK_CATALAN) (3.9Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
784 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckCzech} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
785 "$(GAIM_SPELLCHECK_CZECH) (17Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
786 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckWelsh} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
787 "$(GAIM_SPELLCHECK_WELSH) (4.2Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
788 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckDanish} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
789 "$(GAIM_SPELLCHECK_DANISH) (6.9Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
790 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckGerman} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
791 "$(GAIM_SPELLCHECK_GERMAN) (5.4Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
792 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckGreek} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
793 "$(GAIM_SPELLCHECK_GREEK) (7.1Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
794 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckEnglish} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
795 "$(GAIM_SPELLCHECK_ENGLISH) (2.3Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
796 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckEsperanto} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
797 "$(GAIM_SPELLCHECK_ESPERANTO) (5.7Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
798 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSpanish} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
799 "$(GAIM_SPELLCHECK_SPANISH) (7.0Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
800 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckFaroese} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
801 "$(GAIM_SPELLCHECK_FAROESE) (913kb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
802 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckFrench} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
803 "$(GAIM_SPELLCHECK_FRENCH) (9.3Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
804 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckItalian} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
805 "$(GAIM_SPELLCHECK_ITALIAN) (770kb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
806 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckDutch} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
807 "$(GAIM_SPELLCHECK_DUTCH) (3.7Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
808 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckNorwegian} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
809 "$(GAIM_SPELLCHECK_NORWEGIAN) (3.2Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
810 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckPolish} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
811 "$(GAIM_SPELLCHECK_POLISH) (9.3Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
812 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckPortuguese} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
813 "$(GAIM_SPELLCHECK_PORTUGUESE) (5.5Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
814 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckRomanian} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
815 "$(GAIM_SPELLCHECK_ROMANIAN) (906kb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
816 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckRussian} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
817 "$(GAIM_SPELLCHECK_RUSSIAN) (11Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
818 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSlovak} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
819 "$(GAIM_SPELLCHECK_SLOVAK) (8.0Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
820 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSwedish} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
821 "$(GAIM_SPELLCHECK_SWEDISH) (2.2Mb)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
822 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckUkrainian} \
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
823 "$(GAIM_SPELLCHECK_UKRAINIAN) (12Mb)"
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
824 !insertmacro MUI_FUNCTION_DESCRIPTION_END
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
825
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
826 ;--------------------------------
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
827 ;Functions
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
828
14736
d1eb55b1b28d [gaim-migrate @ 17492]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14683
diff changeset
829 Function WriteGtkThemeConfig
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
830 Exch $0
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
831 Push $1
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
832 Push $2
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
833 Push $3
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
834
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
835 Call CheckUserInstallRights
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
836 Pop $2
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
837 StrCmp $2 "HKLM" 0 user_theme
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
838
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
839 ; Global Theme
14985
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
840 ClearErrors
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
841 ReadRegStr $2 HKLM ${GTK_REG_KEY} "Path"
14985
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
842 IfErrors user_theme
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
843 StrCpy $3 "$2\etc\gtk-2.0\gtkrc"
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
844 Goto update_theme
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
845 user_theme:
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
846 StrCpy $3 "$PROFILE\.gtkrc-2.0"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
847
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
848 update_theme:
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
849 IfFileExists $3 0 new_file
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
850 ${ConfigWriteS} $3 "gtk-theme-name =" " $\"$0$\"" $1
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
851 Goto done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
852
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
853 new_file:
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
854 FileOpen $1 $3 w
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
855 FileWrite $1 "gtk-theme-name = $\"$0$\""
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
856 FileClose $1
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
857
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
858 done:
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
859 Pop $3
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
860 Pop $2
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
861 Pop $1
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
862 Pop $0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
863 FunctionEnd
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
864
13391
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
865 !macro CheckUserInstallRightsMacro UN
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
866 Function ${UN}CheckUserInstallRights
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
867 Push $0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
868 Push $1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
869 ClearErrors
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
870 UserInfo::GetName
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
871 IfErrors Win9x
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
872 Pop $0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
873 UserInfo::GetAccountType
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
874 Pop $1
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
875
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
876 StrCmp $1 "Admin" 0 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
877 StrCpy $1 "HKLM"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
878 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
879 StrCmp $1 "Power" 0 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
880 StrCpy $1 "HKLM"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
881 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
882 StrCmp $1 "User" 0 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
883 StrCpy $1 "HKCU"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
884 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
885 StrCmp $1 "Guest" 0 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
886 StrCpy $1 "NONE"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
887 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
888 ; Unknown error
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
889 StrCpy $1 "NONE"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
890 Goto done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
891
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
892 Win9x:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
893 StrCpy $1 "HKLM"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
894
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
895 done:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
896 Exch $1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
897 Exch
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
898 Pop $0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
899 FunctionEnd
13391
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
900 !macroend
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
901 !insertmacro CheckUserInstallRightsMacro ""
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
902 !insertmacro CheckUserInstallRightsMacro "un."
5332
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 ; Usage:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
906 ; Push $0 ; Path string
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
907 ; Call VerifyDir
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
908 ; Pop $0 ; 0 - Bad path 1 - Good path
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
909 ;
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
910 Function VerifyDir
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
911 Exch $0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
912 Push $1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
913 Push $2
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
914 Loop:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
915 IfFileExists $0 dir_exists
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
916 StrCpy $1 $0 ; save last
14377
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
917 ${GetParent} $0 $0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
918 StrLen $2 $0
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
919 ; IfFileExists "C:" on xp returns true and on win2k returns false
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
920 ; So we're done in such a case..
9960
faf9ccf3e0d5 [gaim-migrate @ 10868]
Luke Schierer <lschiere@pidgin.im>
parents: 9956
diff changeset
921 IntCmp $2 2 loop_done
faf9ccf3e0d5 [gaim-migrate @ 10868]
Luke Schierer <lschiere@pidgin.im>
parents: 9956
diff changeset
922 ; GetParent of "C:" returns ""
faf9ccf3e0d5 [gaim-migrate @ 10868]
Luke Schierer <lschiere@pidgin.im>
parents: 9956
diff changeset
923 IntCmp $2 0 loop_done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
924 Goto Loop
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
925
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
926 loop_done:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
927 StrCpy $1 "$0\GaImFooB"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
928 ; Check if we can create dir on this drive..
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
929 ClearErrors
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
930 CreateDirectory $1
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
931 IfErrors DirBad DirGood
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
932
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
933 dir_exists:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
934 ClearErrors
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
935 FileOpen $1 "$0\gaimfoo.bar" w
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
936 IfErrors PathBad PathGood
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
937
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
938 DirGood:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
939 RMDir $1
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
940 Goto PathGood1
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
941
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
942 DirBad:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
943 RMDir $1
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
944 Goto PathBad1
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
945
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
946 PathBad:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
947 FileClose $1
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
948 Delete "$0\gaimfoo.bar"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
949 PathBad1:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
950 StrCpy $0 "0"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
951 Push $0
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
952 Goto done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
953
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
954 PathGood:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
955 FileClose $1
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
956 Delete "$0\gaimfoo.bar"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
957 PathGood1:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
958 StrCpy $0 "1"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
959 Push $0
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
960
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
961 done:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
962 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
963 Pop $0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
964 Pop $2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
965 Pop $1
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
966 FunctionEnd
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
967
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
968 Function .onVerifyInstDir
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
969 Push $0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
970 Push $INSTDIR
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
971 Call VerifyDir
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
972 Pop $0
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
973 StrCmp $0 "0" 0 dir_good
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
974 Pop $0
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
975 Abort
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
976
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
977 dir_good:
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
978 Pop $0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
979 FunctionEnd
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 ;
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
982 ; Usage:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
983 ; Call DoWeNeedGtk
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
984 ; First Pop:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
985 ; 0 - We have the correct version
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
986 ; Second Pop: Key where Version was found
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
987 ; 1 - We have an old version that should work, prompt user for optional upgrade
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
988 ; Second Pop: HKLM or HKCU depending on where GTK was found.
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
989 ; 2 - We have an old version that needs to be upgraded
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
990 ; Second Pop: HKLM or HKCU depending on where GTK was found.
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
991 ; 3 - We don't have Gtk+ at all
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
992 ; Second Pop: "NONE, HKLM or HKCU" depending on our rights..
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
993 ;
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
994 Function DoWeNeedGtk
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
995 ; Logic should be:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
996 ; - Check what user rights we have (HKLM or HKCU)
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
997 ; - If HKLM rights..
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
998 ; - Only check HKLM key for GTK+
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
999 ; - If installed to HKLM, check it and return.
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1000 ; - If HKCU rights..
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1001 ; - First check HKCU key for GTK+
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1002 ; - if good or bad exists stop and ret.
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1003 ; - If no hkcu gtk+ install, check HKLM
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1004 ; - 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
1005 ; - If no rights
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1006 ; - Check HKLM
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1007 Push $0
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1008 Push $1
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1009 Push $2
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1010 Push $3
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1011
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1012 Call CheckUserInstallRights
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1013 Pop $1
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1014 StrCmp $1 "HKLM" check_hklm
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1015 StrCmp $1 "HKCU" check_hkcu check_hklm
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1016 check_hkcu:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1017 ReadRegStr $0 HKCU ${GTK_REG_KEY} "Version"
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1018 StrCpy $2 "HKCU"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1019 StrCmp $0 "" check_hklm have_gtk
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1020
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1021 check_hklm:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1022 ReadRegStr $0 HKLM ${GTK_REG_KEY} "Version"
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1023 StrCpy $2 "HKLM"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1024 StrCmp $0 "" no_gtk have_gtk
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1025
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1026 have_gtk:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1027 ; GTK+ is already installed.. check version.
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1028 ${VersionCompare} ${GTK_INSTALL_VERSION} $0 $3
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1029 IntCmp $3 1 +1 good_version good_version
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1030 ${VersionCompare} ${GTK_MIN_VERSION} $0 $3
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1031
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1032 ; Bad version. If hklm ver and we have hkcu or no rights.. return no gtk
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1033 StrCmp $1 "NONE" no_gtk ; if no rights.. can't upgrade
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1034 StrCmp $1 "HKCU" 0 +2 ; if HKLM can upgrade..
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1035 StrCmp $2 "HKLM" no_gtk ; have hkcu rights.. if found hklm ver can't upgrade..
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1036 Push $2
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1037 IntCmp $3 1 +3
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1038 Push "1" ; Optional Upgrade
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1039 Goto done
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1040 Push "2" ; Mandatory Upgrade
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1041 Goto done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1042
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1043 good_version:
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1044 StrCmp $2 "HKLM" have_hklm_gtk have_hkcu_gtk
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1045 have_hkcu_gtk:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1046 ; Have HKCU version
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1047 ReadRegStr $0 HKCU ${GTK_REG_KEY} "Path"
6422
468bbb5fbc29 [gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6300
diff changeset
1048 Goto good_version_cont
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1049
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1050 have_hklm_gtk:
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1051 ReadRegStr $0 HKLM ${GTK_REG_KEY} "Path"
6422
468bbb5fbc29 [gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6300
diff changeset
1052 Goto good_version_cont
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1053
6422
468bbb5fbc29 [gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6300
diff changeset
1054 good_version_cont:
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1055 Push $0 ; The path to existing GTK+
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1056 Push "0"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1057 Goto done
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1058
6422
468bbb5fbc29 [gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6300
diff changeset
1059 no_gtk:
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1060 Push $1 ; our rights
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1061 Push "3"
6422
468bbb5fbc29 [gaim-migrate @ 6930]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6300
diff changeset
1062 Goto done
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1063
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1064 done:
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1065 ; The top two items on the stack are what we want to return
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1066 Exch 4
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1067 Pop $0
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1068 Exch 4
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1069 Pop $3
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1070 Pop $2
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1071 Pop $1
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1072 FunctionEnd
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1073
13391
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
1074
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
1075 !macro RunCheckMacro UN
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
1076 Function ${UN}RunCheck
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1077 Push $R0
10212
08251403c871 [gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 10137
diff changeset
1078 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
1079 IntCmp $R0 0 done
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1080 MessageBox MB_OK|MB_ICONEXCLAMATION $(GAIM_IS_RUNNING) /SD IDOK
10212
08251403c871 [gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 10137
diff changeset
1081 Abort
08251403c871 [gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 10137
diff changeset
1082 done:
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1083 Pop $R0
10212
08251403c871 [gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 10137
diff changeset
1084 FunctionEnd
13391
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
1085 !macroend
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
1086 !insertmacro RunCheckMacro ""
5d2bde0687ed [gaim-migrate @ 15764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13181
diff changeset
1087 !insertmacro RunCheckMacro "un."
10212
08251403c871 [gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 10137
diff changeset
1088
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1089 Function .onInit
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1090 Push $R0
10212
08251403c871 [gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 10137
diff changeset
1091 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
1092 Pop $R0
08251403c871 [gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 10137
diff changeset
1093 StrCmp $R0 0 +3
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
1094 MessageBox MB_OK|MB_ICONEXCLAMATION $(INSTALLER_IS_RUNNING) /SD IDOK
10212
08251403c871 [gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 10137
diff changeset
1095 Abort
08251403c871 [gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 10137
diff changeset
1096 Call RunCheck
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1097 StrCpy $name "Gaim ${GAIM_VERSION}"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1098 StrCpy $GTK_THEME_SEL ${SecGtkWimp}
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1099 StrCpy $SPELLCHECK_SEL ""
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1100
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1101 !insertmacro SetSectionFlag ${SecGtkThemes} ${SF_RO}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1102 !insertmacro UnselectSection ${SecGtkThemes}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1103 !insertmacro SelectSection $GTK_THEME_SEL
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1104 !insertmacro SetSectionFlag ${SecSpellCheck} ${SF_RO}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1105 !insertmacro UnselectSection ${SecSpellCheck}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1106
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1107 ;Mark the dictionaries that are already installed as readonly
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1108 Call SelectAndDisableInstalledDictionaries
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1109
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1110 StrCpy $ISSILENT "/NOUI"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1111
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1112 ; 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
1113 ; 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
1114 IfSilent 0 set_gtk_normal
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1115 StrCpy $ISSILENT "/S"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1116 set_gtk_normal:
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1117
14377
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
1118 ${GetParameters} $R0
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
1119 ClearErrors
14867
1072720fc35f [gaim-migrate @ 17636]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14825
diff changeset
1120 ${GetOptions} $R0 "/L=" $R0
1072720fc35f [gaim-migrate @ 17636]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14825
diff changeset
1121 IfErrors +3
1072720fc35f [gaim-migrate @ 17636]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14825
diff changeset
1122 StrCpy $LANGUAGE $R0
1072720fc35f [gaim-migrate @ 17636]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14825
diff changeset
1123 Goto skip_lang
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1124
7600
f48c6e4db102 [gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7575
diff changeset
1125 ; Select Language
f48c6e4db102 [gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7575
diff changeset
1126 ; Display Language selection dialog
f48c6e4db102 [gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7575
diff changeset
1127 !insertmacro MUI_LANGDLL_DISPLAY
f48c6e4db102 [gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7575
diff changeset
1128 skip_lang:
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1129
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1130 ; If install path was set on the command, use it.
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1131 StrCmp $INSTDIR "" 0 instdir_done
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1132
10511
83736fc2ea50 [gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10212
diff changeset
1133 ; 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
1134 ClearErrors
83736fc2ea50 [gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10212
diff changeset
1135 ReadRegStr $INSTDIR HKCU "${GAIM_REG_KEY}" ""
83736fc2ea50 [gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10212
diff changeset
1136 IfErrors +2
83736fc2ea50 [gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10212
diff changeset
1137 StrCmp $INSTDIR "" 0 instdir_done
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
1138 ClearErrors
10511
83736fc2ea50 [gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10212
diff changeset
1139 ReadRegStr $INSTDIR HKLM "${GAIM_REG_KEY}" ""
83736fc2ea50 [gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10212
diff changeset
1140 IfErrors +2
83736fc2ea50 [gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10212
diff changeset
1141 StrCmp $INSTDIR "" 0 instdir_done
83736fc2ea50 [gaim-migrate @ 11809]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10212
diff changeset
1142
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1143 Call CheckUserInstallRights
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1144 Pop $R0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1145
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1146 StrCmp $R0 "HKLM" 0 user_dir
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1147 StrCpy $INSTDIR "$PROGRAMFILES\Gaim"
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1148 Goto instdir_done
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1149 user_dir:
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1150 Push $SMPROGRAMS
14377
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
1151 ${GetParent} $SMPROGRAMS $R2
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
1152 ${GetParent} $R2 $R2
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1153 StrCpy $INSTDIR "$R2\Gaim"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1154
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1155 instdir_done:
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1156 Pop $R0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1157 FunctionEnd
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1158
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
1159 Function un.onInit
10212
08251403c871 [gaim-migrate @ 11336]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 10137
diff changeset
1160 Call un.RunCheck
10137
94167af56ace [gaim-migrate @ 11206]
Mark Doliner <mark@kingant.net>
parents: 10095
diff changeset
1161 StrCpy $name "Gaim ${GAIM_VERSION}"
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
1162
14454
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
1163 ; Get stored language preference
22cb019456bd [gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14450
diff changeset
1164 !insertmacro MUI_UNGETLANGUAGE
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1165
6255
386d65dd7f0d [gaim-migrate @ 6751]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6233
diff changeset
1166 FunctionEnd
6233
0c64ba470632 [gaim-migrate @ 6726]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 6159
diff changeset
1167
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1168 ; This is a modified StartRadioButtons (from Sections.nsh)
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1169 ; 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
1170 ; In that case, the default variable should be set to ""
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1171 !macro StartRadioButtonsUnselectable var
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1172
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1173 !define StartRadioButtons_Var "${var}"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1174
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1175 Push $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1176 Push $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1177
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1178 ;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
1179 StrCmp "${StartRadioButtons_Var}" "" +4
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1180 SectionGetFlags "${StartRadioButtons_Var}" $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1181 IntOp $R1 $R0 & ${SF_SELECTED}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1182 IntOp $R0 $R0 & ${SECTION_OFF}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1183 SectionSetFlags "${StartRadioButtons_Var}" $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1184
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1185 ; If the previous value isn't currently selected,
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1186 ; we don't want to select it at the end
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1187 IntCmp $R1 ${SF_SELECTED} +2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1188 StrCpy "${StartRadioButtons_Var}" ""
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1189
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1190 StrCpy $R1 "${StartRadioButtons_Var}"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1191
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1192 !macroend
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1193
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1194 Function .onSelChange
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1195 Push $0
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1196 Push $1
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1197 Push $2
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1198
14983
8186cb621d2b [gaim-migrate @ 17762]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14969
diff changeset
1199 !insertmacro StartRadioButtonsUnselectable $GTK_THEME_SEL
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1200 !insertmacro RadioButton ${SecGtkNone}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1201 !insertmacro RadioButton ${SecGtkWimp}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1202 !insertmacro RadioButton ${SecGtkBluecurve}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1203 !insertmacro RadioButton ${SecGtkLighthouseblue}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1204 !insertmacro EndRadioButtons
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1205
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1206 ; 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
1207 ; 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
1208 !insertmacro StartRadioButtonsUnselectable $SPELLCHECK_SEL
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1209 ; Start with the first language dictionary
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1210 IntOp $2 ${SecSpellCheck} + 1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1211
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1212 start_spellcheck_radio:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1213 SectionGetFlags $2 $0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1214
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1215 IntOp $1 $0 & ${SF_SECGRPEND}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1216 ; If it is the end of the section group, stop
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1217 IntCmp $1 ${SF_SECGRPEND} end_spellcheck_radio
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1218
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1219 IntOp $0 $0 & ${SF_RO}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1220 IntCmp $0 ${SF_RO} after_button_insert
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1221 ; If !readonly, then it is part of the radiobutton group
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1222 !insertmacro RadioButton $2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1223 after_button_insert:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1224
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1225 IntOp $2 $2 + 1 ;Advance to the next section
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1226 Goto start_spellcheck_radio
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1227
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1228 end_spellcheck_radio:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1229 !insertmacro EndRadioButtons
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1230
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1231 Pop $2
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1232 Pop $1
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1233 Pop $0
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1234 FunctionEnd
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1235
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1236 ; Page enter and exit functions..
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1237
14985
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1238 Function preWelcomePage
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1239 Push R0
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1240
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1241 !ifndef WITH_GTK
7600
f48c6e4db102 [gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7575
diff changeset
1242 ; 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
1243 ; 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
1244 ; .onInit doesn't take effect until it is finished.
14985
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1245 Call DoWeNeedGtk
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1246 Pop $R0
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1247 Pop $GTK_FOLDER
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1248
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1249 IntCmp $R0 1 done done
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1250 MessageBox MB_OK $(GTK_INSTALLER_NEEDED) /SD IDOK
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1251 Quit
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1252
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1253 done:
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1254
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1255 !else
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1256 Push R1
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1257
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1258 ; If on Win95/98/ME warn them that the GTK+ version wont work
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1259 Call GetWindowsVersion
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1260 Pop $R1
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1261 StrCmp $R1 "95" win_ver_bad
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1262 StrCmp $R1 "98" win_ver_bad
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1263 StrCmp $R1 "ME" win_ver_bad
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1264 Goto done
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1265
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1266 win_ver_bad:
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1267 !insertmacro UnselectSection ${SecGtk}
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1268 !insertmacro SetSectionFlag ${SecGtkNone} ${SF_RO}
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1269 !insertmacro UnselectSection ${SecGtkNone}
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1270 !insertmacro SetSectionFlag ${SecGtkWimp} ${SF_RO}
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1271 !insertmacro UnselectSection ${SecGtkWimp}
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1272 !insertmacro SetSectionFlag ${SecGtkBluecurve} ${SF_RO}
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1273 !insertmacro UnselectSection ${SecGtkBluecurve}
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1274 !insertmacro SetSectionFlag ${SecGtkLighthouseblue} ${SF_RO}
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1275 !insertmacro UnselectSection ${SecGtkLighthouseblue}
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1276 MessageBox MB_OK $(GTK_WINDOWS_INCOMPATIBLE) /SD IDOK
7600
f48c6e4db102 [gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7575
diff changeset
1277 Call DoWeNeedGtk
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1278 Pop $R0
14985
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1279 Pop $R1
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1280 IntCmp $R0 1 done done ; Upgrade isn't optional - abort if we don't have a suitable version
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1281 Quit
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1282
14985
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1283 done:
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1284 Pop $R1
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1285 !endif
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1286 Pop $R0
7600
f48c6e4db102 [gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7575
diff changeset
1287 FunctionEnd
f48c6e4db102 [gaim-migrate @ 8222]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7575
diff changeset
1288
7572
6300424eafbf [gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7558
diff changeset
1289 !ifdef WITH_GTK
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1290 Function preGtkDirPage
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1291 Push $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1292 Push $R1
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1293 Call DoWeNeedGtk
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1294 Pop $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1295 Pop $R1
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1296
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1297 IntCmp $R0 2 +2 +2 no_gtk
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1298 StrCmp $R0 "3" no_gtk no_gtk
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1299
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1300 ; Don't show dir selector.. Upgrades are done to existing path..
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1301 Pop $R1
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1302 Pop $R0
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1303 Abort
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1304
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1305 no_gtk:
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1306 StrCmp $R1 "NONE" 0 no_gtk_cont
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1307 ; Got no install rights..
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1308 Pop $R1
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1309 Pop $R0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1310 Abort
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1311 no_gtk_cont:
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1312 ; Suggest path..
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1313 StrCmp $R1 "HKCU" 0 hklm1
14377
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
1314 ${GetParent} $SMPROGRAMS $R0
f5f2c3948b48 [gaim-migrate @ 17083]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14376
diff changeset
1315 ${GetParent} $R0 $R0
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1316 StrCpy $R0 "$R0\GTK\2.0"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1317 Goto got_path
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1318 hklm1:
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1319 StrCpy $R0 "${GTK_DEFAULT_INSTALL_PATH}"
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1320
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1321 got_path:
14792
242f948ee707 [gaim-migrate @ 17557]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14736
diff changeset
1322 StrCpy $name "GTK+ ${GTK_INSTALL_VERSION}"
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1323 StrCpy $GTK_FOLDER $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1324 Pop $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1325 Pop $R0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1326 FunctionEnd
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1327
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1328 Function postGtkDirPage
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1329 Push $R0
7558
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1330 StrCpy $name "Gaim ${GAIM_VERSION}"
908343b14e70 [gaim-migrate @ 8172]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7357
diff changeset
1331 Push $GTK_FOLDER
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1332 Call VerifyDir
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1333 Pop $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1334 StrCmp $R0 "0" 0 done
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
1335 MessageBox MB_OK $(GTK_BAD_INSTALL_PATH) /SD IDOK
14450
1a01b1dae517 [gaim-migrate @ 17164]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14377
diff changeset
1336 Pop $R0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1337 Abort
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1338 done:
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1339 Pop $R0
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1340 FunctionEnd
7572
6300424eafbf [gaim-migrate @ 8188]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 7558
diff changeset
1341 !endif
5332
4d734dbc88dd [gaim-migrate @ 5705]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 5066
diff changeset
1342
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1343 ; GetWindowsVersion
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1344 ;
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1345 ; Based on Yazno's function, http://yazno.tripod.com/powerpimpit/
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1346 ; Updated by Joost Verburg
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1347 ;
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1348 ; Returns on top of stack
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1349 ;
14985
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1350 ; Windows Version (95, 98, ME, NT x.x, 2000, XP, 2003, Vista)
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1351 ; or
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1352 ; '' (Unknown Windows Version)
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1353 ;
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1354 ; Usage:
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1355 ; Call GetWindowsVersion
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1356 ; Pop $R0
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1357 ;
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1358 ; at this point $R0 is "NT 4.0" or whatnot
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1359 Function GetWindowsVersion
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1360
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1361 Push $R0
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1362 Push $R1
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1363
12637
101c421bb396 [gaim-migrate @ 14973]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12452
diff changeset
1364 ClearErrors
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1365 ReadRegStr $R0 HKLM \
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1366 "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1367
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1368 IfErrors 0 lbl_winnt
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1369
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1370 ; we are not NT
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1371 ReadRegStr $R0 HKLM \
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1372 "SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1373
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1374 StrCpy $R1 $R0 1
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1375 StrCmp $R1 '4' 0 lbl_error
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1376
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1377 StrCpy $R1 $R0 3
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1378
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1379 StrCmp $R1 '4.0' lbl_win32_95
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1380 StrCmp $R1 '4.9' lbl_win32_ME lbl_win32_98
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1381
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1382 lbl_win32_95:
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1383 StrCpy $R0 '95'
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1384 Goto lbl_done
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1385
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1386 lbl_win32_98:
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1387 StrCpy $R0 '98'
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1388 Goto lbl_done
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1389
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1390 lbl_win32_ME:
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1391 StrCpy $R0 'ME'
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1392 Goto lbl_done
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1393
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1394 lbl_winnt:
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1395 StrCpy $R1 $R0 1
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1396
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1397 StrCmp $R1 '3' lbl_winnt_x
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1398 StrCmp $R1 '4' lbl_winnt_x
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1399
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1400 StrCpy $R1 $R0 3
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1401
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1402 StrCmp $R1 '5.0' lbl_winnt_2000
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1403 StrCmp $R1 '5.1' lbl_winnt_XP
14985
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1404 StrCmp $R1 '5.2' lbl_winnt_2003
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1405 StrCmp $R1 '6.0' lbl_winnt_vista lbl_error
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1406
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1407 lbl_winnt_x:
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1408 StrCpy $R0 "NT $R0" 6
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1409 Goto lbl_done
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1410
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1411 lbl_winnt_2000:
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1412 Strcpy $R0 '2000'
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1413 Goto lbl_done
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1414
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1415 lbl_winnt_XP:
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1416 Strcpy $R0 'XP'
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1417 Goto lbl_done
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1418
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1419 lbl_winnt_2003:
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1420 Strcpy $R0 '2003'
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1421 Goto lbl_done
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1422
14985
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1423 lbl_winnt_vista:
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1424 Strcpy $R0 'Vista'
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1425 Goto lbl_done
6bdcfafc2259 [gaim-migrate @ 17764]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14983
diff changeset
1426
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1427 lbl_error:
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1428 Strcpy $R0 ''
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1429 lbl_done:
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1430
10920
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1431 Pop $R1
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1432 Exch $R0
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1433 FunctionEnd
6a8440e9edba [gaim-migrate @ 12686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
1434
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1435 ; SpellChecker Related Functions
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1436 ;-------------------------------
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1437
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1438 ; Convert the a Section index to the language code
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1439 ; 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
1440 ; 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
1441 Function GetLangCodeForSection
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1442 ClearErrors
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1443 Push $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1444 Exch
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1445 Pop $R0 ;This is the section index
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1446
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1447 IntCmp $R0 ${SecSpellCheckBreton} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1448 StrCpy $R0 "br"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1449 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1450 IntCmp $R0 ${SecSpellCheckCatalan} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1451 StrCpy $R0 "ca"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1452 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1453 IntCmp $R0 ${SecSpellCheckCzech} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1454 StrCpy $R0 "cs"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1455 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1456 IntCmp $R0 ${SecSpellCheckWelsh} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1457 StrCpy $R0 "cy"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1458 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1459 IntCmp $R0 ${SecSpellCheckDanish} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1460 StrCpy $R0 "da"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1461 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1462 IntCmp $R0 ${SecSpellCheckGerman} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1463 StrCpy $R0 "de"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1464 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1465 IntCmp $R0 ${SecSpellCheckGreek} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1466 StrCpy $R0 "el"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1467 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1468 IntCmp $R0 ${SecSpellCheckEnglish} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1469 StrCpy $R0 "en"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1470 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1471 IntCmp $R0 ${SecSpellCheckEsperanto} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1472 StrCpy $R0 "eo"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1473 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1474 IntCmp $R0 ${SecSpellCheckSpanish} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1475 StrCpy $R0 "es"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1476 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1477 IntCmp $R0 ${SecSpellCheckFaroese} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1478 StrCpy $R0 "fo"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1479 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1480 IntCmp $R0 ${SecSpellCheckFrench} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1481 StrCpy $R0 "fr"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1482 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1483 IntCmp $R0 ${SecSpellCheckItalian} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1484 StrCpy $R0 "it"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1485 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1486 IntCmp $R0 ${SecSpellCheckDutch} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1487 StrCpy $R0 "nl"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1488 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1489 IntCmp $R0 ${SecSpellCheckNorwegian} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1490 StrCpy $R0 "no"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1491 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1492 IntCmp $R0 ${SecSpellCheckPolish} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1493 StrCpy $R0 "pl"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1494 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1495 IntCmp $R0 ${SecSpellCheckPortuguese} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1496 StrCpy $R0 "pt"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1497 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1498 IntCmp $R0 ${SecSpellCheckRomanian} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1499 StrCpy $R0 "ro"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1500 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1501 IntCmp $R0 ${SecSpellCheckRussian} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1502 StrCpy $R0 "ru"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1503 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1504 IntCmp $R0 ${SecSpellCheckSlovak} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1505 StrCpy $R0 "sk"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1506 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1507 IntCmp $R0 ${SecSpellCheckSwedish} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1508 StrCpy $R0 "sv"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1509 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1510 IntCmp $R0 ${SecSpellCheckUkrainian} 0 +3 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1511 StrCpy $R0 "uk"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1512 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1513
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1514 SetErrors
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1515
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1516 done:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1517 Exch $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1518 FunctionEnd ;GetLangCodeForSection
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1519
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1520 ; Select and Disable any Sections that have currently installed dictionaries
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1521 Function SelectAndDisableInstalledDictionaries
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1522 Push $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1523 Push $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1524 Push $R2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1525
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1526 ; Start with the first language dictionary
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1527 IntOp $R0 ${SecSpellCheck} + 1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1528
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1529 start:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1530 ; If it is the end of the section group, stop
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1531 SectionGetFlags $R0 $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1532 IntOp $R2 $R1 & ${SF_SECGRPEND}
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1533 IntCmp $R2 ${SF_SECGRPEND} done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1534
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1535 Push $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1536 Call GetLangCodeForSection
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1537 Pop $R2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1538 IfErrors end_loop
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1539 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
1540 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
1541 IntOp $R1 $R1 | ${SF_RO} ; Mark Readonly
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1542 IntOp $R1 $R1 | ${SF_SELECTED} ; Select
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1543 SectionSetFlags $R0 $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1544
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1545 end_loop:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1546 IntOp $R0 $R0 + 1 ;Advance to the next section
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1547 Goto start
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1548
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1549 done:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1550 Pop $R2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1551 Pop $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1552 Pop $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1553 FunctionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1554
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1555 Function InstallAspellAndDict
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1556 Push $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1557 Exch
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1558 Call GetLangCodeForSection
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1559 Pop $R0 ;This is the language code
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1560 Push $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1561
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1562 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
1563
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1564 retry:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1565 Call InstallAspell
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1566 Pop $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1567 StrCmp $R1 "" +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1568 StrCmp $R1 "cancel" done
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
1569 MessageBox MB_RETRYCANCEL "$(GAIM_SPELLCHECK_ERROR) : $R1" /SD IDCANCEL IDRETRY retry IDCANCEL done
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1570
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1571 retry_dict:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1572 Push $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1573 Call InstallAspellDictionary
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1574 Pop $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1575 StrCmp $R1 "" +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1576 StrCmp $R1 "cancel" done
14376
b2d0b4ca2cf3 [gaim-migrate @ 17082]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 14289
diff changeset
1577 MessageBox MB_RETRYCANCEL "$(GAIM_SPELLCHECK_DICT_ERROR) : $R1" /SD IDCANCEL IDRETRY retry_dict
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1579 done:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1580
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1581 Pop $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1582 Pop $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1583 FunctionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1584
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1585 Function InstallAspell
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1586 Push $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1587 Push $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1588 Push $R2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1589
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1590 check:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1591 ClearErrors
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1592 ReadRegDWORD $R0 HKLM ${ASPELL_REG_KEY} "AspellVersion"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1593 IntCmp $R0 15 installed
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1594
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1595 ; 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
1596 StrCmp $R1 "$TEMP\aspell_installer.exe" 0 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1597 StrCpy $R0 $(ASPELL_INSTALL_FAILED)
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1598 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1599
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1600 ; We need to download and install aspell
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1601 StrCpy $R1 "$TEMP\aspell_installer.exe"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1602 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
1603 DetailPrint "Downloading Aspell... ($R2)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1604 NSISdl::download $R2 $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1605 Pop $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1606 StrCmp $R0 "success" +2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1607 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1608 ExecWait '"$R1"'
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1609 Delete $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1610 Goto check ; Check that it is now installed correctly
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1611
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1612 installed: ;Aspell is currently installed, no error message
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1613 DetailPrint "Aspell is installed"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1614 StrCpy $R0 ''
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1615
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1616 done:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1617 Pop $R2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1618 Pop $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1619 Exch $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1620 FunctionEnd
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1621
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1622 Function InstallAspellDictionary
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1623 Push $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1624 Exch
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1625 Pop $R0 ;This is the language code
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1626 Push $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1627 Push $R2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1628 Push $R3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1629
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1630 check:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1631 ClearErrors
13531
703e5ba8fb82 [gaim-migrate @ 15908]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13391
diff changeset
1632 ReadRegStr $R2 HKLM "${ASPELL_REG_KEY}-$R0" ""
703e5ba8fb82 [gaim-migrate @ 15908]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 13391
diff changeset
1633 StrCmp $R2 "" 0 installed
11578
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1634
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1635 ; 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
1636 StrCmp $R1 "$TEMP\aspell_dict-$R0.exe" 0 +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1637 StrCpy $R0 $(ASPELL_INSTALL_FAILED)
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1638 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1639
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1640 ; We need to download and install aspell
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1641 StrCpy $R1 "$TEMP\aspell_dict-$R0.exe"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1642 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
1643 DetailPrint "Downloading the Aspell $R0 Dictionary... ($R3)"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1644 NSISdl::download $R3 $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1645 Pop $R3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1646 StrCmp $R3 "success" +3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1647 StrCpy $R0 $R3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1648 Goto done
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1649 ExecWait '"$R1"'
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1650 Delete $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1651 Goto check ; Check that it is now installed correctly
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1652
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1653 installed: ;The dictionary is currently installed, no error message
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1654 DetailPrint "Aspell $R0 Dictionary is installed"
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1655 StrCpy $R0 ''
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1656
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1657 done:
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1658 Pop $R3
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1659 Pop $R2
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1660 Pop $R1
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1661 Exch $R0
8b955ffe9584 [gaim-migrate @ 13847]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11260
diff changeset
1662 FunctionEnd