gaim-installer.nsi

Wed, 12 Nov 2008 05:14:03 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Wed, 12 Nov 2008 05:14:03 +0000
branch
gaim
changeset 20471
1966704b3e42
parent 15425
c0961da59074
permissions
-rw-r--r--

merge of '77693555855fe9cd3215414f79964dba346cc5fa'
and '19a87e98e5857ad0289f2c760d460f7f1dbbb42d'

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

mercurial