pidgin/win32/nsis/pidgin-installer.nsi

Tue, 06 Oct 2009 03:33:27 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Tue, 06 Oct 2009 03:33:27 +0000
changeset 28624
b287044cda0e
parent 28562
624fed1d4f8e
child 28922
5f7d25fdcdb7
child 29531
6c6d5606a625
permissions
-rw-r--r--

Add the Entrust.net Secure Server CA (taken from Debian's set). Closes #10247.

15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1 ; Installer script for win32 Pidgin
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
2 ; Original Author: Herman Bloggs <hermanator12002@yahoo.com>
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
3 ; Updated By: Daniel Atallah <daniel_atallah@yahoo.com>
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
4
27647
acbefee0cd14 Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <datallah@pidgin.im>
parents: 27360
diff changeset
5 ; NOTE: this .NSI script is intended for NSIS 2.27+
8388
243f2eeca134 [gaim-migrate @ 9116]
Herman Bloggs <herman@bluedigits.com>
parents: 8183
diff changeset
6 ;
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
7
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
8 ;--------------------------------
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
9 ;Global Variables
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
10 Var name
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 ISSILENT
9902
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
13 Var STARTUP_RUN_KEY
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
14 Var SPELLCHECK_SEL
28381
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
15 Var LANGUAGE_SET
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
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
24 OutFile "pidgin-${PIDGIN_VERSION}.exe"
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
25 !else
5931
6bd53176fdcf [gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents: 5396
diff changeset
26 !ifdef DEBUG
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
27 OutFile "pidgin-${PIDGIN_VERSION}-debug.exe"
5931
6bd53176fdcf [gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents: 5396
diff changeset
28 !else
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
29 OutFile "pidgin-${PIDGIN_VERSION}-no-gtk.exe"
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
30 !endif
5931
6bd53176fdcf [gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents: 5396
diff changeset
31 !endif
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
32
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
33 SetCompressor /SOLID lzma
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
34 ShowInstDetails show
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
35 ShowUninstDetails show
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
36 SetDateSave on
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
37
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
38 ; $name and $INSTDIR are set in .onInit function..
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
39
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
40 !include "MUI.nsh"
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
41 !include "Sections.nsh"
17462
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
42 !include "WinVer.nsh"
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
43 !include "LogicLib.nsh"
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
44
14439
adecc0185ad7 [gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents: 14438
diff changeset
45 !include "FileFunc.nsh"
adecc0185ad7 [gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents: 14438
diff changeset
46 !insertmacro GetParameters
adecc0185ad7 [gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents: 14438
diff changeset
47 !insertmacro GetOptions
adecc0185ad7 [gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents: 14438
diff changeset
48 !insertmacro GetParent
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
49
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
50 !include "WordFunc.nsh"
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
51 !insertmacro VersionCompare
15857
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
52 !insertmacro WordFind
22947
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
53 !insertmacro un.WordFind
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
54
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
55 ;--------------------------------
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
56 ;Defines
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
57
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
58 !define PIDGIN_NSIS_INCLUDE_PATH "."
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
59 !define PIDGIN_INSTALLER_DEPS "..\..\..\..\win32-dev\pidgin-inst-deps"
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
60
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
61 ; Remove these and the stuff that uses them at some point
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
62 !define OLD_GAIM_REG_KEY "SOFTWARE\gaim"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
63 !define OLD_GAIM_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gaim"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
64 !define OLD_GAIM_UNINST_EXE "gaim-uninst.exe"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
65
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
66 !define PIDGIN_REG_KEY "SOFTWARE\pidgin"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
67 !define PIDGIN_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Pidgin"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
68
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
69 !define HKLM_APP_PATHS_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\pidgin.exe"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
70 !define STARTUP_RUN_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
71 !define PIDGIN_UNINST_EXE "pidgin-uninst.exe"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
72
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
73 !define GTK_MIN_VERSION "2.6.10"
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
74 !define GTK_REG_KEY "SOFTWARE\GTK\2.0"
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
75 !define PERL_REG_KEY "SOFTWARE\Perl"
23915
b62601fd6e7d Update the Perl plugin loader to work with Perl 5.10.
Daniel Atallah <datallah@pidgin.im>
parents: 23900
diff changeset
76 !define PERL_DLL "perl510.dll"
11260
963271ddae2b [gaim-migrate @ 13437]
Steve Láposi <ronin_hun@users.sourceforge.net>
parents: 11103
diff changeset
77 !define GTK_DEFAULT_INSTALL_PATH "$COMMONFILES\GTK\2.0"
28381
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
78 !define GTK_RUNTIME_INSTALLER "..\..\..\..\gtk_installer\gtk-runtime-${GTK_INSTALL_VERSION}*.exe"
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
79
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
80 !define ASPELL_REG_KEY "SOFTWARE\Aspell"
16305
b2aa56593869 Remove GTK+ theme selection from installer. The next GTK+ runtime installer will contain a theme selector utility.
Daniel Atallah <datallah@pidgin.im>
parents: 16272
diff changeset
81 !define DOWNLOADER_URL "http://pidgin.im/win32/download_redir.php"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
82
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
83 ;--------------------------------
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
84 ;Version resource
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
85 VIProductVersion "${PIDGIN_PRODUCT_VERSION}"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
86 VIAddVersionKey "ProductName" "Pidgin"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
87 VIAddVersionKey "FileVersion" "${PIDGIN_VERSION}"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
88 VIAddVersionKey "ProductVersion" "${PIDGIN_VERSION}"
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
89 VIAddVersionKey "LegalCopyright" ""
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
90 !ifdef WITH_GTK
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
91 VIAddVersionKey "FileDescription" "Pidgin Installer (w/ GTK+ Installer)"
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
92 !else
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
93 !ifdef DEBUG
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
94 VIAddVersionKey "FileDescription" "Pidgin Installer (Debug Version)"
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
95 !else
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
96 VIAddVersionKey "FileDescription" "Pidgin Installer (w/o GTK+ Installer)"
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
97 !endif
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
98 !endif
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
99
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
100 ;--------------------------------
17462
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
101 ;Reserve files used in .onInit
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
102 ;for faster start-up
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
103 ReserveFile "${NSISDIR}\Plugins\System.dll"
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
104 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
105 !insertmacro MUI_RESERVEFILE_LANGDLL
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
106
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
107 ;--------------------------------
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
108 ;Modern UI Configuration
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
109
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
110 !define MUI_ICON ".\pixmaps\pidgin-install.ico"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
111 !define MUI_UNICON ".\pixmaps\pidgin-install.ico"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
112 !define MUI_WELCOMEFINISHPAGE_BITMAP ".\pixmaps\pidgin-intro.bmp"
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
113 !define MUI_HEADERIMAGE
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
114 !define MUI_HEADERIMAGE_BITMAP ".\pixmaps\pidgin-header.bmp"
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
115
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
116 ; Alter License section
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
117 !define MUI_LICENSEPAGE_BUTTON $(PIDGIN_LICENSE_BUTTON)
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
118 !define MUI_LICENSEPAGE_TEXT_BOTTOM $(PIDGIN_LICENSE_BOTTOM_TEXT)
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
119
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
120 !define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
121 !define MUI_LANGDLL_REGISTRY_KEY ${PIDGIN_REG_KEY}
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
122 !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
123
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
124 !define MUI_COMPONENTSPAGE_SMALLDESC
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
125 !define MUI_ABORTWARNING
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 ;Finish Page config
16830
a3e3d4f63c11 Don't automatically proceed to the installer's "Finished" page - allow the log to be reviewed and make the user choose to move on. (Fixes #456).
Daniel Atallah <datallah@pidgin.im>
parents: 16829
diff changeset
128 !define MUI_FINISHPAGE_NOAUTOCLOSE
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
129 !define MUI_FINISHPAGE_RUN "$INSTDIR\pidgin.exe"
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
130 !define MUI_FINISHPAGE_RUN_NOTCHECKED
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
131 !define MUI_FINISHPAGE_LINK $(PIDGIN_FINISH_VISIT_WEB_SITE)
17752
7e6c1a58c002 Fix win32 installer finishpage URL. (this is fixed in the 2.0.2 installer too)
Daniel Atallah <datallah@pidgin.im>
parents: 17733
diff changeset
132 !define MUI_FINISHPAGE_LINK_LOCATION "http://pidgin.im"
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
133
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
134 ;--------------------------------
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
135 ;Pages
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
136
7600
279abfe7721f [gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents: 7575
diff changeset
137 !define MUI_PAGE_CUSTOMFUNCTION_PRE preWelcomePage
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
138 !insertmacro MUI_PAGE_WELCOME
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
139 !insertmacro MUI_PAGE_LICENSE "../../../COPYING"
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
140 !insertmacro MUI_PAGE_COMPONENTS
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
141
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
142 !ifdef WITH_GTK
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
143 ; GTK+ install dir page
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
144 !define MUI_PAGE_CUSTOMFUNCTION_PRE preGtkDirPage
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
145 !define MUI_PAGE_CUSTOMFUNCTION_LEAVE postGtkDirPage
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
146 !define MUI_DIRECTORYPAGE_VARIABLE $GTK_FOLDER
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
147 !insertmacro MUI_PAGE_DIRECTORY
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
148 !endif
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
149
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
150 ; Pidgin install dir page
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
151 !insertmacro MUI_PAGE_DIRECTORY
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
152
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
153 !insertmacro MUI_PAGE_INSTFILES
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
154 !insertmacro MUI_PAGE_FINISH
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
155
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
156 !insertmacro MUI_UNPAGE_WELCOME
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
157 !insertmacro MUI_UNPAGE_CONFIRM
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
158 !insertmacro MUI_UNPAGE_INSTFILES
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
159 !insertmacro MUI_UNPAGE_FINISH
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
160
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
161 ;--------------------------------
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
162 ;Languages
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
163
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
164 ;; English goes first because its the default. The rest are
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
165 ;; in alphabetical order (at least the strings actually displayed
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
166 ;; will be).
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
167
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
168 !insertmacro MUI_LANGUAGE "English"
6913
63ece2ac54b6 [gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents: 6912
diff changeset
169
16780
61599ad98e2e Add the Afrikaans translation from Friedel Wolff to the win32 installer (while humming 'De La Rey') now that NSIS 2.26 has been released and inclues an Afrikaans translation.
Daniel Atallah <datallah@pidgin.im>
parents: 16602
diff changeset
170 !insertmacro MUI_LANGUAGE "Afrikaans"
10095
c1ec2845a7c7 [gaim-migrate @ 11114]
Herman Bloggs <herman@bluedigits.com>
parents: 9960
diff changeset
171 !insertmacro MUI_LANGUAGE "Albanian"
20167
c1ff9d556f16 Enable the new Arabic windows installer translation.
Daniel Atallah <datallah@pidgin.im>
parents: 19979
diff changeset
172 !insertmacro MUI_LANGUAGE "Arabic"
19979
6f348ca86569 Add Basque translation to win32 installer from Mikel Pascual Aldabaldetreku. Fixes #2880.
Daniel Atallah <datallah@pidgin.im>
parents: 19851
diff changeset
173 !insertmacro MUI_LANGUAGE "Basque"
6913
63ece2ac54b6 [gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents: 6912
diff changeset
174 !insertmacro MUI_LANGUAGE "Bulgarian"
9956
a9ee0f79ffc7 [gaim-migrate @ 10856]
Herman Bloggs <herman@bluedigits.com>
parents: 9902
diff changeset
175 !insertmacro MUI_LANGUAGE "Catalan"
7626
f75416e3937c [gaim-migrate @ 8250]
Herman Bloggs <herman@bluedigits.com>
parents: 7600
diff changeset
176 !insertmacro MUI_LANGUAGE "Czech"
7924
ec3b83b9c56b [gaim-migrate @ 8593]
Herman Bloggs <herman@bluedigits.com>
parents: 7626
diff changeset
177 !insertmacro MUI_LANGUAGE "Danish"
6913
63ece2ac54b6 [gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents: 6912
diff changeset
178 !insertmacro MUI_LANGUAGE "SimpChinese"
63ece2ac54b6 [gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents: 6912
diff changeset
179 !insertmacro MUI_LANGUAGE "TradChinese"
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
180 !insertmacro MUI_LANGUAGE "German"
7575
35d089f53176 [gaim-migrate @ 8191]
Herman Bloggs <herman@bluedigits.com>
parents: 7572
diff changeset
181 !insertmacro MUI_LANGUAGE "Spanish"
19414
e96cbe3a659b New Persian win32 installer translation from Elnaz Sarbar. Fixes 2273.
Daniel Atallah <datallah@pidgin.im>
parents: 18671
diff changeset
182 !insertmacro MUI_LANGUAGE "Farsi"
e96cbe3a659b New Persian win32 installer translation from Elnaz Sarbar. Fixes 2273.
Daniel Atallah <datallah@pidgin.im>
parents: 18671
diff changeset
183 !insertmacro MUI_LANGUAGE "Finnish"
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
184 !insertmacro MUI_LANGUAGE "French"
8388
243f2eeca134 [gaim-migrate @ 9116]
Herman Bloggs <herman@bluedigits.com>
parents: 8183
diff changeset
185 !insertmacro MUI_LANGUAGE "Hebrew"
6913
63ece2ac54b6 [gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents: 6912
diff changeset
186 !insertmacro MUI_LANGUAGE "Italian"
8183
7615409e7c1c [gaim-migrate @ 8902]
Herman Bloggs <herman@bluedigits.com>
parents: 8180
diff changeset
187 !insertmacro MUI_LANGUAGE "Japanese"
6913
63ece2ac54b6 [gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents: 6912
diff changeset
188 !insertmacro MUI_LANGUAGE "Korean"
13182
c734956839ff [gaim-migrate @ 15544]
Daniel Atallah <datallah@pidgin.im>
parents: 13067
diff changeset
189 !insertmacro MUI_LANGUAGE "Kurdish"
13564
0bde4529a7d8 [gaim-migrate @ 15942]
Daniel Atallah <datallah@pidgin.im>
parents: 13563
diff changeset
190 !insertmacro MUI_LANGUAGE "Lithuanian"
6913
63ece2ac54b6 [gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents: 6912
diff changeset
191 !insertmacro MUI_LANGUAGE "Hungarian"
63ece2ac54b6 [gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents: 6912
diff changeset
192 !insertmacro MUI_LANGUAGE "Dutch"
8567
80fd332369b9 [gaim-migrate @ 9314]
Herman Bloggs <herman@bluedigits.com>
parents: 8388
diff changeset
193 !insertmacro MUI_LANGUAGE "Norwegian"
8126
d1d67e1f4f55 [gaim-migrate @ 8830]
Herman Bloggs <herman@bluedigits.com>
parents: 8099
diff changeset
194 !insertmacro MUI_LANGUAGE "Polish"
6290
ab8d99eec250 [gaim-migrate @ 6789]
Herman Bloggs <herman@bluedigits.com>
parents: 6277
diff changeset
195 !insertmacro MUI_LANGUAGE "PortugueseBR"
7215
69a142e6ea66 [gaim-migrate @ 7784]
Herman Bloggs <herman@bluedigits.com>
parents: 7214
diff changeset
196 !insertmacro MUI_LANGUAGE "Portuguese"
6951
81cb641692cf [gaim-migrate @ 7498]
Herman Bloggs <herman@bluedigits.com>
parents: 6948
diff changeset
197 !insertmacro MUI_LANGUAGE "Romanian"
8099
690e8ae9d03a [gaim-migrate @ 8799]
Herman Bloggs <herman@bluedigits.com>
parents: 7924
diff changeset
198 !insertmacro MUI_LANGUAGE "Russian"
6913
63ece2ac54b6 [gaim-migrate @ 7460]
Herman Bloggs <herman@bluedigits.com>
parents: 6912
diff changeset
199 !insertmacro MUI_LANGUAGE "Serbian"
9561
91d63f61aa59 [gaim-migrate @ 10397]
Herman Bloggs <herman@bluedigits.com>
parents: 9139
diff changeset
200 !insertmacro MUI_LANGUAGE "Slovak"
9115
4afc232900e5 [gaim-migrate @ 9892]
Herman Bloggs <herman@bluedigits.com>
parents: 8567
diff changeset
201 !insertmacro MUI_LANGUAGE "Slovenian"
6559
eae45d3e67e6 [gaim-migrate @ 7081]
Herman Bloggs <herman@bluedigits.com>
parents: 6491
diff changeset
202 !insertmacro MUI_LANGUAGE "Swedish"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
203
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
204 ;--------------------------------
6233
d12a0c4e40a0 [gaim-migrate @ 6726]
Herman Bloggs <herman@bluedigits.com>
parents: 6159
diff changeset
205 ;Translations
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
206
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
207 !define PIDGIN_DEFAULT_LANGFILE "${PIDGIN_NSIS_INCLUDE_PATH}\translations\english.nsh"
7572
976d5883ef99 [gaim-migrate @ 8188]
Herman Bloggs <herman@bluedigits.com>
parents: 7558
diff changeset
208
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
209 !include "${PIDGIN_NSIS_INCLUDE_PATH}\langmacros.nsh"
7572
976d5883ef99 [gaim-migrate @ 8188]
Herman Bloggs <herman@bluedigits.com>
parents: 7558
diff changeset
210
16780
61599ad98e2e Add the Afrikaans translation from Friedel Wolff to the win32 installer (while humming 'De La Rey') now that NSIS 2.26 has been released and inclues an Afrikaans translation.
Daniel Atallah <datallah@pidgin.im>
parents: 16602
diff changeset
211 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "AFRIKAANS" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\afrikaans.nsh"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
212 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ALBANIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\albanian.nsh"
20167
c1ff9d556f16 Enable the new Arabic windows installer translation.
Daniel Atallah <datallah@pidgin.im>
parents: 19979
diff changeset
213 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ARABIC" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\arabic.nsh"
19979
6f348ca86569 Add Basque translation to win32 installer from Mikel Pascual Aldabaldetreku. Fixes #2880.
Daniel Atallah <datallah@pidgin.im>
parents: 19851
diff changeset
214 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "BASQUE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\basque.nsh"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
215 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "BULGARIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\bulgarian.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
216 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "CATALAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\catalan.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
217 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "CZECH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\czech.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
218 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "DANISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\danish.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
219 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "DUTCH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\dutch.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
220 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ENGLISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\english.nsh"
19414
e96cbe3a659b New Persian win32 installer translation from Elnaz Sarbar. Fixes 2273.
Daniel Atallah <datallah@pidgin.im>
parents: 18671
diff changeset
221 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "FARSI" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\persian.nsh"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
222 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "FINNISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\finnish.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
223 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "FRENCH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\french.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
224 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "GERMAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\german.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
225 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "HEBREW" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\hebrew.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
226 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "HUNGARIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\hungarian.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
227 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ITALIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\italian.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
228 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "JAPANESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\japanese.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
229 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "KOREAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\korean.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
230 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "KURDISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\kurdish.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
231 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "LITHUANIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\lithuanian.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
232 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "NORWEGIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\norwegian.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
233 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "POLISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\polish.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
234 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "PORTUGUESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\portuguese.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
235 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "PORTUGUESEBR" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\portuguese-br.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
236 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "ROMANIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\romanian.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
237 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "RUSSIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\russian.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
238 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SERBIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\serbian-latin.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
239 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SIMPCHINESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\simp-chinese.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
240 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SLOVAK" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\slovak.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
241 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SLOVENIAN" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\slovenian.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
242 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SPANISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\spanish.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
243 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "SWEDISH" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\swedish.nsh"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
244 !insertmacro PIDGIN_MACRO_INCLUDE_LANGFILE "TRADCHINESE" "${PIDGIN_NSIS_INCLUDE_PATH}\translations\trad-chinese.nsh"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
245
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
246 ;--------------------------------
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
247 ;Reserve Files
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
248 ; Only need this if using bzip2 compression
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
249
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
250 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
251 !insertmacro MUI_RESERVEFILE_LANGDLL
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
252 ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
253
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
254
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
255 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
256 ;; Start Install Sections ;;
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
257 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
258
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
259 ;--------------------------------
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
260 ;Uninstall any old version of Pidgin (or Gaim)
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
261
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
262 Section -SecUninstallOldPidgin
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
263 ; Check install rights..
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
264 Call CheckUserInstallRights
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
265 Pop $R0
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
266
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
267 ;First try to uninstall Pidgin
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
268 StrCpy $R4 ${PIDGIN_REG_KEY}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
269 StrCpy $R5 ${PIDGIN_UNINSTALL_KEY}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
270 StrCpy $R6 ${PIDGIN_UNINST_EXE}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
271 StrCpy $R7 "Pidgin"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
272
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
273 start_comparison:
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
274 ;If pidgin is currently set to run on startup,
9902
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
275 ; 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
276 ; so we can put it back after installing the new version
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
277 ClearErrors
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
278 ReadRegStr $STARTUP_RUN_KEY HKCU "${STARTUP_RUN_KEY}" $R7
9902
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
279 IfErrors +3
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
280 StrCpy $STARTUP_RUN_KEY "HKCU"
16829
d5827c7efbae Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents: 16817
diff changeset
281 Goto +5
14438
b552f0964484 [gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents: 14351
diff changeset
282 ClearErrors
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
283 ReadRegStr $STARTUP_RUN_KEY HKLM "${STARTUP_RUN_KEY}" $R7
9902
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
284 IfErrors +2
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
285 StrCpy $STARTUP_RUN_KEY "HKLM"
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
286
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
287 StrCmp $R0 "HKLM" compare_hklm
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
288 StrCmp $R0 "HKCU" compare_hkcu done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
289
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
290 compare_hkcu:
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
291 ReadRegStr $R1 HKCU $R4 ""
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
292 ReadRegStr $R2 HKCU $R4 "Version"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
293 ReadRegStr $R3 HKCU "$R5" "UninstallString"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
294 Goto try_uninstall
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
295
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
296 compare_hklm:
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
297 ReadRegStr $R1 HKLM $R4 ""
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
298 ReadRegStr $R2 HKLM $R4 "Version"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
299 ReadRegStr $R3 HKLM "$R5" "UninstallString"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
300
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
301 ; If a previous version exists, remove it
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
302 try_uninstall:
16829
d5827c7efbae Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents: 16817
diff changeset
303 StrCmp $R1 "" no_version_found
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
304 ; Version key started with 0.60a3. Prior versions can't be
16817
6ebf286c04b2 Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <datallah@pidgin.im>
parents: 16780
diff changeset
305 ; automatically uninstalled.
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
306 StrCmp $R2 "" uninstall_problem
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
307 ; Check if we have uninstall string..
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
308 IfFileExists $R3 0 uninstall_problem
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
309 ; Have uninstall string, go ahead and uninstall.
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
310 SetOverwrite on
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
311 ; Need to copy uninstaller outside of the install dir
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
312 ClearErrors
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
313 CopyFiles /SILENT $R3 "$TEMP\$R6"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
314 SetOverwrite off
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
315 IfErrors uninstall_problem
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
316 ; Ready to uninstall..
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
317 ClearErrors
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
318 ExecWait '"$TEMP\$R6" /S _?=$R1'
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
319 IfErrors exec_error
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
320 Delete "$TEMP\$R6"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
321 Goto done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
322
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
323 exec_error:
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
324 Delete "$TEMP\$R6"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
325 Goto uninstall_problem
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
326
16829
d5827c7efbae Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents: 16817
diff changeset
327 no_version_found:
d5827c7efbae Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents: 16817
diff changeset
328 ;We've already tried to fallback to an old gaim instance
d5827c7efbae Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents: 16817
diff changeset
329 StrCmp $R7 "Gaim" done
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
330 ; If we couldn't uninstall Pidgin, try to uninstall Gaim
16829
d5827c7efbae Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents: 16817
diff changeset
331 StrCpy $STARTUP_RUN_KEY "NONE"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
332 StrCpy $R4 ${OLD_GAIM_REG_KEY}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
333 StrCpy $R5 ${OLD_GAIM_UNINSTALL_KEY}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
334 StrCpy $R6 ${OLD_GAIM_UNINST_EXE}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
335 StrCpy $R7 "Gaim"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
336 Goto start_comparison
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
337
16829
d5827c7efbae Fix some installer issues (#416, #433)
Daniel Atallah <datallah@pidgin.im>
parents: 16817
diff changeset
338 uninstall_problem:
14438
b552f0964484 [gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents: 14351
diff changeset
339 ; We can't uninstall. Either the user must manually uninstall or we ignore and reinstall over it.
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
340 MessageBox MB_OKCANCEL $(PIDGIN_PROMPT_CONTINUE_WITHOUT_UNINSTALL) /SD IDOK IDOK done
14438
b552f0964484 [gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents: 14351
diff changeset
341 Quit
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
342 done:
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
343 SectionEnd
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
344
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
345
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
346 ;--------------------------------
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
347 ;GTK+ Runtime Install Section
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
348
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
349 !ifdef WITH_GTK
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
350 Section $(GTK_SECTION_TITLE) SecGtk
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
351
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
352 Call CheckUserInstallRights
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
353 Pop $R1
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
354
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
355 SetOutPath $TEMP
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
356 SetOverwrite on
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
357 File /oname=gtk-runtime.exe ${GTK_RUNTIME_INSTALLER}
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
358 SetOverwrite off
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 Call DoWeNeedGtk
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
361 Pop $R0
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
362 Pop $R6
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
363
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
364 StrCmp $R0 "0" have_gtk
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
365 StrCmp $R0 "1" upgrade_gtk
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
366 StrCmp $R0 "2" upgrade_gtk
16817
6ebf286c04b2 Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <datallah@pidgin.im>
parents: 16780
diff changeset
367 ;StrCmp $R0 "3" no_gtk no_gtk
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
368
17752
7e6c1a58c002 Fix win32 installer finishpage URL. (this is fixed in the 2.0.2 installer too)
Daniel Atallah <datallah@pidgin.im>
parents: 17733
diff changeset
369 ;no_gtk:
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
370 StrCmp $R1 "NONE" gtk_no_install_rights
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
371 ClearErrors
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
372 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
373 IfErrors gtk_install_error done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
374
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
375 upgrade_gtk:
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
376 StrCpy $GTK_FOLDER $R6
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
377 StrCmp $R0 "2" +2 ; Upgrade isn't optional
14438
b552f0964484 [gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents: 14351
diff changeset
378 MessageBox MB_YESNO $(GTK_UPGRADE_PROMPT) /SD IDYES IDNO done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
379 ClearErrors
23929
e075e486d4bf Fix the win32 installer not to cause messageboxes in the gtk installer when
Daniel Atallah <datallah@pidgin.im>
parents: 23915
diff changeset
380 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
381 IfErrors gtk_install_error done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
382
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
383 gtk_install_error:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
384 Delete "$TEMP\gtk-runtime.exe"
14438
b552f0964484 [gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents: 14351
diff changeset
385 MessageBox MB_OK $(GTK_INSTALL_ERROR) /SD IDOK
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
386 Quit
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
387
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
388 have_gtk:
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
389 StrCpy $GTK_FOLDER $R6
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
390 StrCmp $R1 "NONE" done ; If we have no rights, we can't re-install
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
391 ; 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
392 ClearErrors
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
393 ExecWait '"$TEMP\gtk-runtime.exe" /L=$LANGUAGE $ISSILENT'
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
394 IfErrors gtk_install_error
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
395 Goto done
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
396
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
397 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
398 ; end got_install rights
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
399
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
400 gtk_no_install_rights:
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
401 ; Install GTK+ to Pidgin install dir
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
402 StrCpy $GTK_FOLDER $INSTDIR
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
403 ClearErrors
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
404 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
405 IfErrors gtk_install_error
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
406 SetOverwrite on
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
407 ClearErrors
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
408 CopyFiles /FILESONLY "$GTK_FOLDER\bin\*.dll" $GTK_FOLDER
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
409 SetOverwrite off
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
410 IfErrors gtk_install_error
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
411 Delete "$GTK_FOLDER\bin\*.dll"
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
412 Goto done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
413 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
414 ; end gtk_no_install_rights
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
415
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
416 done:
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
417 Delete "$TEMP\gtk-runtime.exe"
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
418 SectionEnd ; end of GTK+ section
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
419 !endif
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
420
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
421 ;--------------------------------
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
422 ;Pidgin Install Section
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
423
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
424 Section $(PIDGIN_SECTION_TITLE) SecPidgin
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
425 SectionIn 1 RO
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
426
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
427 ; Check install rights..
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
428 Call CheckUserInstallRights
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
429 Pop $R0
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
430
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
431 ; Get GTK+ lib dir if we have it..
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
432
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
433 StrCmp $R0 "NONE" pidgin_none
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
434 StrCmp $R0 "HKLM" pidgin_hklm pidgin_hkcu
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
435
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
436 pidgin_hklm:
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
437 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
438 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "" "$INSTDIR\pidgin.exe"
6422
95b4b1acdb18 [gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents: 6300
diff changeset
439 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R1\bin"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
440 WriteRegStr HKLM ${PIDGIN_REG_KEY} "" "$INSTDIR"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
441 WriteRegStr HKLM ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}"
17722
0e6a85627c70 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents: 17645
diff changeset
442 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayName" "Pidgin"
0e6a85627c70 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents: 17645
diff changeset
443 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "DisplayVersion" "${PIDGIN_VERSION}"
0e6a85627c70 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents: 17645
diff changeset
444 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "HelpLink" "http://developer.pidgin.im/wiki/Using Pidgin"
0e6a85627c70 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents: 17645
diff changeset
445 WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoModify" 1
0e6a85627c70 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents: 17645
diff changeset
446 WriteRegDWORD HKLM "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
447 WriteRegStr HKLM "${PIDGIN_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${PIDGIN_UNINST_EXE}"
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
448 ; 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
449 SetShellVarContext "all"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
450 Goto pidgin_install_files
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
451
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
452 pidgin_hkcu:
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
453 ReadRegStr $R1 HKCU ${GTK_REG_KEY} "Path"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
454 StrCmp $R1 "" 0 +2
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
455 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path"
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
456
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
457 WriteRegStr HKCU ${PIDGIN_REG_KEY} "" "$INSTDIR"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
458 WriteRegStr HKCU ${PIDGIN_REG_KEY} "Version" "${PIDGIN_VERSION}"
17722
0e6a85627c70 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents: 17645
diff changeset
459 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayName" "Pidgin"
0e6a85627c70 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents: 17645
diff changeset
460 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "DisplayVersion" "${PIDGIN_VERSION}"
0e6a85627c70 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents: 17645
diff changeset
461 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "HelpLink" "http://developer.pidgin.im/wiki/Using Pidgin"
0e6a85627c70 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents: 17645
diff changeset
462 WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoModify" 1
0e6a85627c70 Clean up information displayed in the Add/Remove Programs section on Windows. Fixes #1646.
Daniel Atallah <datallah@pidgin.im>
parents: 17645
diff changeset
463 WriteRegDWORD HKCU "${PIDGIN_UNINSTALL_KEY}" "NoRepair" 1
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
464 WriteRegStr HKCU "${PIDGIN_UNINSTALL_KEY}" "UninstallString" "$INSTDIR\${PIDGIN_UNINST_EXE}"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
465 Goto pidgin_install_files
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
466
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
467 pidgin_none:
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
468 ReadRegStr $R1 HKLM ${GTK_REG_KEY} "Path"
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
469
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
470 pidgin_install_files:
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
471 SetOutPath "$INSTDIR"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
472 ; Pidgin files
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
473 SetOverwrite on
16309
347c01a71e7c Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents: 16305
diff changeset
474
347c01a71e7c Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents: 16305
diff changeset
475 ;Delete old liboscar and libjabber since they tend to be problematic
347c01a71e7c Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents: 16305
diff changeset
476 Delete "$INSTDIR\plugins\liboscar.dll"
347c01a71e7c Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents: 16305
diff changeset
477 Delete "$INSTDIR\plugins\libjabber.dll"
347c01a71e7c Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents: 16305
diff changeset
478
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
479 File /r ..\..\..\${PIDGIN_INSTALL_DIR}\*.*
5931
6bd53176fdcf [gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents: 5396
diff changeset
480 !ifdef DEBUG
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
481 File "${PIDGIN_INSTALLER_DEPS}\exchndl.dll"
5931
6bd53176fdcf [gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents: 5396
diff changeset
482 !endif
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
483
6848
ca91f08b60df [gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents: 6816
diff changeset
484 ; Install shfolder.dll if need be..
ca91f08b60df [gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents: 6816
diff changeset
485 SearchPath $R4 "shfolder.dll"
ca91f08b60df [gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents: 6816
diff changeset
486 StrCmp $R4 "" 0 got_shfolder
ca91f08b60df [gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents: 6816
diff changeset
487 SetOutPath "$SYSDIR"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
488 File "${PIDGIN_INSTALLER_DEPS}\shfolder.dll"
6848
ca91f08b60df [gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents: 6816
diff changeset
489 SetOutPath "$INSTDIR"
ca91f08b60df [gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents: 6816
diff changeset
490 got_shfolder:
ca91f08b60df [gaim-migrate @ 7393]
Herman Bloggs <herman@bluedigits.com>
parents: 6816
diff changeset
491
14665
e05842f7fe43 [gaim-migrate @ 17331]
Daniel Atallah <datallah@pidgin.im>
parents: 14516
diff changeset
492 ; 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
493 ReadRegStr $R2 HKLM ${PERL_REG_KEY} ""
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6650
diff changeset
494 StrCmp $R2 "" 0 perl_exists
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6650
diff changeset
495 ReadRegStr $R2 HKCU ${PERL_REG_KEY} ""
14665
e05842f7fe43 [gaim-migrate @ 17331]
Daniel Atallah <datallah@pidgin.im>
parents: 14516
diff changeset
496 StrCmp $R2 "" perl_done perl_exists
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
497
6816
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6650
diff changeset
498 perl_exists:
14665
e05842f7fe43 [gaim-migrate @ 17331]
Daniel Atallah <datallah@pidgin.im>
parents: 14516
diff changeset
499 IfFileExists "$R2\bin\${PERL_DLL}" 0 perl_done
6816
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6650
diff changeset
500 StrCmp $R0 "HKLM" 0 perl_done
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6650
diff changeset
501 ReadRegStr $R3 HKLM "${HKLM_APP_PATHS_KEY}" "Path"
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6650
diff changeset
502 WriteRegStr HKLM "${HKLM_APP_PATHS_KEY}" "Path" "$R3;$R2\bin"
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6650
diff changeset
503
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6650
diff changeset
504 perl_done:
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6650
diff changeset
505
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
506 ; If this is under NT4, delete the SILC support stuff
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
507 ; there is a bug that will prevent any account from connecting
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
508 ; See https://lists.silcnet.org/pipermail/silc-devel/2005-January/001588.html
23899
41f495e3b1a1 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <datallah@pidgin.im>
parents: 23189
diff changeset
509 ; Also, remove the GSSAPI SASL plugin and associated files as they aren't
41f495e3b1a1 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <datallah@pidgin.im>
parents: 23189
diff changeset
510 ; compatible with NT4.
17462
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
511 ${If} ${IsNT}
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
512 ${AndIf} ${IsWinNT4}
23899
41f495e3b1a1 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <datallah@pidgin.im>
parents: 23189
diff changeset
513 ;SILC
17462
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
514 Delete "$INSTDIR\plugins\libsilc.dll"
19684
cb06b0123bd5 Upgrade the win32 build to use version 1.1.2 of the SILC toolkit.
Daniel Atallah <datallah@pidgin.im>
parents: 19668
diff changeset
515 Delete "$INSTDIR\libsilcclient-1-1-2.dll"
cb06b0123bd5 Upgrade the win32 build to use version 1.1.2 of the SILC toolkit.
Daniel Atallah <datallah@pidgin.im>
parents: 19668
diff changeset
516 Delete "$INSTDIR\libsilc-1-1-2.dll"
23899
41f495e3b1a1 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <datallah@pidgin.im>
parents: 23189
diff changeset
517 ;GSSAPI
41f495e3b1a1 Don't install the GSSAPI SASL plugin on NT4 as it isn't compatible. Fixes #6399.
Daniel Atallah <datallah@pidgin.im>
parents: 23189
diff changeset
518 Delete "$INSTDIR\sasl2\saslGSSAPI.dll"
17462
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
519 ${EndIf}
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
520
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
521 SetOutPath "$INSTDIR"
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
522
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
523 ; If we don't have install rights we're done
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
524 StrCmp $R0 "NONE" done
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
525 SetOverwrite off
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
526
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
527 ; write out uninstaller
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
528 SetOverwrite on
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
529 WriteUninstaller "$INSTDIR\${PIDGIN_UNINST_EXE}"
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
530 SetOverwrite off
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
531
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
532 ; If we previously had pidgin set up to run on startup, make it do so again
9902
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
533 StrCmp $STARTUP_RUN_KEY "HKCU" +1 +2
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
534 WriteRegStr HKCU "${STARTUP_RUN_KEY}" "Pidgin" "$INSTDIR\pidgin.exe"
9902
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
535 StrCmp $STARTUP_RUN_KEY "HKLM" +1 +2
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
536 WriteRegStr HKLM "${STARTUP_RUN_KEY}" "Pidgin" "$INSTDIR\pidgin.exe"
9902
289987279ba2 [gaim-migrate @ 10794]
Mark Doliner <markdoliner@pidgin.im>
parents: 9890
diff changeset
537
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
538 done:
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
539 SectionEnd ; end of default Pidgin section
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
540
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
541 ;--------------------------------
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
542 ;Shortcuts
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
543
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
544 SectionGroup /e $(PIDGIN_SHORTCUTS_SECTION_TITLE) SecShortcuts
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
545 Section /o $(PIDGIN_DESKTOP_SHORTCUT_SECTION_TITLE) SecDesktopShortcut
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
546 SetOverwrite on
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
547 CreateShortCut "$DESKTOP\Pidgin.lnk" "$INSTDIR\pidgin.exe"
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
548 SetOverwrite off
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
549 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
550 Section $(PIDGIN_STARTMENU_SHORTCUT_SECTION_TITLE) SecStartMenuShortcut
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
551 SetOverwrite on
17289
6412ffdd74dd Don't put the Pidgin startmenu entry in a subdirectory. This violates the MS guidelines and (more importantly) it is pointless and annoying. Fixes #1188
Daniel Atallah <datallah@pidgin.im>
parents: 16831
diff changeset
552 CreateShortCut "$SMPROGRAMS\Pidgin.lnk" "$INSTDIR\pidgin.exe"
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
553 SetOverwrite off
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
554 SectionEnd
15045
d587829617f4 [gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents: 15031
diff changeset
555 SectionGroupEnd
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
556
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
557 ;--------------------------------
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
558 ;URI Handling
22947
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
559
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
560 !macro URI_SECTION proto
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
561 Section /o "${proto}:" SecURI_${proto}
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
562 Push "${proto}"
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
563 Call RegisterURIHandler
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
564 SectionEnd
22947
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
565 !macroend
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
566 SectionGroup /e $(URI_HANDLERS_SECTION_TITLE) SecURIHandlers
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
567 !insertmacro URI_SECTION "aim"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
568 !insertmacro URI_SECTION "msnim"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
569 !insertmacro URI_SECTION "myim"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
570 !insertmacro URI_SECTION "ymsgr"
28136
a3b6446eb2c4 Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <darkrain42@pidgin.im>
parents: 28020
diff changeset
571 !insertmacro URI_SECTION "xmpp"
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
572 SectionGroupEnd
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
573
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
574 ;--------------------------------
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
575 ;Spell Checking
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
576
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
577 SectionGroup /e $(PIDGIN_SPELLCHECK_SECTION_TITLE) SecSpellCheck
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
578 Section /o $(PIDGIN_SPELLCHECK_BRETON) SecSpellCheckBreton
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
579 Push ${SecSpellCheckBreton}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
580 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
581 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
582 Section /o $(PIDGIN_SPELLCHECK_CATALAN) SecSpellCheckCatalan
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
583 Push ${SecSpellCheckCatalan}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
584 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
585 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
586 Section /o $(PIDGIN_SPELLCHECK_CZECH) SecSpellCheckCzech
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
587 Push ${SecSpellCheckCzech}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
588 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
589 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
590 Section /o $(PIDGIN_SPELLCHECK_WELSH) SecSpellCheckWelsh
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
591 Push ${SecSpellCheckWelsh}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
592 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
593 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
594 Section /o $(PIDGIN_SPELLCHECK_DANISH) SecSpellCheckDanish
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
595 Push ${SecSpellCheckDanish}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
596 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
597 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
598 Section /o $(PIDGIN_SPELLCHECK_GERMAN) SecSpellCheckGerman
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
599 Push ${SecSpellCheckGerman}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
600 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
601 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
602 Section /o $(PIDGIN_SPELLCHECK_GREEK) SecSpellCheckGreek
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
603 Push ${SecSpellCheckGreek}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
604 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
605 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
606 Section /o $(PIDGIN_SPELLCHECK_ENGLISH) SecSpellCheckEnglish
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
607 Push ${SecSpellCheckEnglish}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
608 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
609 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
610 Section /o $(PIDGIN_SPELLCHECK_ESPERANTO) SecSpellCheckEsperanto
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
611 Push ${SecSpellCheckEsperanto}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
612 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
613 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
614 Section /o $(PIDGIN_SPELLCHECK_SPANISH) SecSpellCheckSpanish
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
615 Push ${SecSpellCheckSpanish}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
616 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
617 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
618 Section /o $(PIDGIN_SPELLCHECK_FAROESE) SecSpellCheckFaroese
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
619 Push ${SecSpellCheckFaroese}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
620 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
621 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
622 Section /o $(PIDGIN_SPELLCHECK_FRENCH) SecSpellCheckFrench
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
623 Push ${SecSpellCheckFrench}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
624 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
625 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
626 Section /o $(PIDGIN_SPELLCHECK_ITALIAN) SecSpellCheckItalian
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
627 Push ${SecSpellCheckItalian}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
628 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
629 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
630 Section /o $(PIDGIN_SPELLCHECK_DUTCH) SecSpellCheckDutch
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
631 Push ${SecSpellCheckDutch}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
632 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
633 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
634 Section /o $(PIDGIN_SPELLCHECK_NORWEGIAN) SecSpellCheckNorwegian
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
635 Push ${SecSpellCheckNorwegian}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
636 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
637 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
638 Section /o $(PIDGIN_SPELLCHECK_POLISH) SecSpellCheckPolish
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
639 Push ${SecSpellCheckPolish}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
640 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
641 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
642 Section /o $(PIDGIN_SPELLCHECK_PORTUGUESE) SecSpellCheckPortuguese
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
643 Push ${SecSpellCheckPortuguese}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
644 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
645 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
646 Section /o $(PIDGIN_SPELLCHECK_ROMANIAN) SecSpellCheckRomanian
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
647 Push ${SecSpellCheckRomanian}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
648 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
649 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
650 Section /o $(PIDGIN_SPELLCHECK_RUSSIAN) SecSpellCheckRussian
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
651 Push ${SecSpellCheckRussian}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
652 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
653 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
654 Section /o $(PIDGIN_SPELLCHECK_SLOVAK) SecSpellCheckSlovak
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
655 Push ${SecSpellCheckSlovak}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
656 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
657 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
658 Section /o $(PIDGIN_SPELLCHECK_SWEDISH) SecSpellCheckSwedish
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
659 Push ${SecSpellCheckSwedish}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
660 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
661 SectionEnd
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
662 Section /o $(PIDGIN_SPELLCHECK_UKRAINIAN) SecSpellCheckUkrainian
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
663 Push ${SecSpellCheckUkrainian}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
664 Call InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
665 SectionEnd
15045
d587829617f4 [gaim-migrate @ 17762]
Daniel Atallah <datallah@pidgin.im>
parents: 15031
diff changeset
666 SectionGroupEnd
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
667
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
668 ;--------------------------------
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
669 ;Uninstaller Section
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
670
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
671
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
672 Section Uninstall
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
673 Call un.CheckUserInstallRights
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
674 Pop $R0
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
675 StrCmp $R0 "NONE" no_rights
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
676 StrCmp $R0 "HKCU" try_hkcu try_hklm
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
677
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
678 try_hkcu:
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
679 ReadRegStr $R0 HKCU ${PIDGIN_REG_KEY} ""
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
680 StrCmp $R0 $INSTDIR 0 cant_uninstall
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
681 ; HKCU install path matches our INSTDIR so uninstall
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
682 DeleteRegKey HKCU ${PIDGIN_REG_KEY}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
683 DeleteRegKey HKCU "${PIDGIN_UNINSTALL_KEY}"
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
684 Goto cont_uninstall
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
685
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
686 try_hklm:
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
687 ReadRegStr $R0 HKLM ${PIDGIN_REG_KEY} ""
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
688 StrCmp $R0 $INSTDIR 0 try_hkcu
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
689 ; HKLM install path matches our INSTDIR so uninstall
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
690 DeleteRegKey HKLM ${PIDGIN_REG_KEY}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
691 DeleteRegKey HKLM "${PIDGIN_UNINSTALL_KEY}"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
692 DeleteRegKey HKLM "${HKLM_APP_PATHS_KEY}"
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
693 ; Sets start menu and desktop scope to all users..
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
694 SetShellVarContext "all"
4126
99bff42f4a47 [gaim-migrate @ 4343]
Herman Bloggs <herman@bluedigits.com>
parents: 3989
diff changeset
695
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
696 cont_uninstall:
6090
348fcb77d3cf [gaim-migrate @ 6549]
Herman Bloggs <herman@bluedigits.com>
parents: 5931
diff changeset
697 ; The WinPrefs plugin may have left this behind..
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
698 DeleteRegValue HKCU "${STARTUP_RUN_KEY}" "Pidgin"
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
699 DeleteRegValue HKLM "${STARTUP_RUN_KEY}" "Pidgin"
22947
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
700 ; Remove Language preference info
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
701 DeleteRegValue HKCU "${PIDGIN_REG_KEY}" "Installer Language"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
702
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
703 ; Remove any URI handlers
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
704 ; I can't think of an easy way to maintain a list in a single place
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
705 Push "aim"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
706 Call un.UnregisterURIHandler
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
707 Push "msnim"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
708 Call un.UnregisterURIHandler
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
709 Push "myim"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
710 Call un.UnregisterURIHandler
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
711 Push "ymsgr"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
712 Call un.UnregisterURIHandler
28136
a3b6446eb2c4 Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <darkrain42@pidgin.im>
parents: 28020
diff changeset
713 Push "xmpp"
a3b6446eb2c4 Add support for XMPP URIs on Windows. Closes #2326.
Paul Aurich <darkrain42@pidgin.im>
parents: 28020
diff changeset
714 Call un.UnregisterURIHandler
6090
348fcb77d3cf [gaim-migrate @ 6549]
Herman Bloggs <herman@bluedigits.com>
parents: 5931
diff changeset
715
25672
5c28e0c93492 Add a second chain of SSL certificates now necessary for OSCAR SSL
Paul Aurich <darkrain42@pidgin.im>
parents: 25550
diff changeset
716 Delete "$INSTDIR\ca-certs\America_Online_Root_Certification_Authority_1.pem"
5c28e0c93492 Add a second chain of SSL certificates now necessary for OSCAR SSL
Paul Aurich <darkrain42@pidgin.im>
parents: 25550
diff changeset
717 Delete "$INSTDIR\ca-certs\AOL_Member_CA.pem"
23900
9424d2f88d96 Uninstall the CAcert certs in the win32 uninstaller.
Daniel Atallah <datallah@pidgin.im>
parents: 23899
diff changeset
718 Delete "$INSTDIR\ca-certs\CAcert_Class3.pem"
9424d2f88d96 Uninstall the CAcert certs in the win32 uninstaller.
Daniel Atallah <datallah@pidgin.im>
parents: 23899
diff changeset
719 Delete "$INSTDIR\ca-certs\CAcert_Root.pem"
28624
b287044cda0e Add the Entrust.net Secure Server CA (taken from Debian's set). Closes #10247.
Paul Aurich <darkrain42@pidgin.im>
parents: 28562
diff changeset
720 Delete "$INSTDIR\ca-certs\Entrust.net_Secure_Server_CA.pem"
19668
2071903c58e4 Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents: 19627
diff changeset
721 Delete "$INSTDIR\ca-certs\Equifax_Secure_CA.pem"
27833
21dd169273d2 Add the twitter.com CA cert. Fixes 9264.
Paul Aurich <darkrain42@pidgin.im>
parents: 27826
diff changeset
722 Delete "$INSTDIR\ca-certs\Equifax_Secure_Global_eBusiness_CA-1.pem"
19705
aaa5bcae3261 Add mingw makefile to the dist. Update uninstaller for new certs.
Daniel Atallah <datallah@pidgin.im>
parents: 19684
diff changeset
723 Delete "$INSTDIR\ca-certs\GTE_CyberTrust_Global_Root.pem"
25274
f1bd7294c950 Delete MSN cert when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 24249
diff changeset
724 Delete "$INSTDIR\ca-certs\Microsoft_Internet_Authority.pem"
21393
36adbec26643 Delete Microsoft_Secure_Server_Authority.pem when uninstalling on win32
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20167
diff changeset
725 Delete "$INSTDIR\ca-certs\Microsoft_Secure_Server_Authority.pem"
27188
888112948549 Add the StartCom root that the XMPP ICA will start using this year.
Paul Aurich <darkrain42@pidgin.im>
parents: 25728
diff changeset
726 Delete "$INSTDIR\ca-certs\StartCom_Certification_Authority.pem"
22048
be245d92600e Add the StartCom Free SSL Certificate Authority certificate (as used by
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21971
diff changeset
727 Delete "$INSTDIR\ca-certs\StartCom_Free_SSL_CA.pem"
28020
Paul Aurich <darkrain42@pidgin.im>
parents: 28019
diff changeset
728 Delete "$INSTDIR\ca-certs\Thawte_Premium_Server_CA.pem"
Paul Aurich <darkrain42@pidgin.im>
parents: 28019
diff changeset
729 Delete "$INSTDIR\ca-certs\VeriSign_Class3_Extended_Validation_CA.pem"
19705
aaa5bcae3261 Add mingw makefile to the dist. Update uninstaller for new certs.
Daniel Atallah <datallah@pidgin.im>
parents: 19684
diff changeset
730 Delete "$INSTDIR\ca-certs\Verisign_Class3_Primary_CA.pem"
24191
6e13f808537e Update win32 installer for cert changes.
Daniel Atallah <datallah@pidgin.im>
parents: 23935
diff changeset
731 Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem"
28020
Paul Aurich <darkrain42@pidgin.im>
parents: 28019
diff changeset
732 Delete "$INSTDIR\ca-certs\VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5_2.pem"
25517
979335790670 Add new cert to the Windows uninstaller per datallah's request
Paul Aurich <darkrain42@pidgin.im>
parents: 25274
diff changeset
733 Delete "$INSTDIR\ca-certs\VeriSign_International_Server_Class_3_CA.pem"
19668
2071903c58e4 Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents: 19627
diff changeset
734 Delete "$INSTDIR\ca-certs\Verisign_RSA_Secure_Server_CA.pem"
2071903c58e4 Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents: 19627
diff changeset
735 RMDir "$INSTDIR\ca-certs"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
736 RMDir /r "$INSTDIR\locale"
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
737 RMDir /r "$INSTDIR\pixmaps"
15236
b0b173741baf [gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents: 15144
diff changeset
738 Delete "$INSTDIR\plugins\autoaccept.dll"
b0b173741baf [gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents: 15144
diff changeset
739 Delete "$INSTDIR\plugins\buddynote.dll"
b0b173741baf [gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents: 15144
diff changeset
740 Delete "$INSTDIR\plugins\convcolors.dll"
9565
c824ac72974f [gaim-migrate @ 10404]
Herman Bloggs <herman@bluedigits.com>
parents: 9561
diff changeset
741 Delete "$INSTDIR\plugins\extplacement.dll"
19851
48abddbe6b78 Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents: 19705
diff changeset
742 Delete "$INSTDIR\plugins\gtkbuddynote.dll"
6476
92d08d220cd1 [gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents: 6447
diff changeset
743 Delete "$INSTDIR\plugins\history.dll"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
744 Delete "$INSTDIR\plugins\iconaway.dll"
6476
92d08d220cd1 [gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents: 6447
diff changeset
745 Delete "$INSTDIR\plugins\idle.dll"
17733
722e93eb392e Build and distribute the joinpart plugin on win32.
Daniel Atallah <datallah@pidgin.im>
parents: 17722
diff changeset
746 Delete "$INSTDIR\plugins\joinpart.dll"
15031
c45aa1667620 [gaim-migrate @ 17748]
Daniel Atallah <datallah@pidgin.im>
parents: 14929
diff changeset
747 Delete "$INSTDIR\plugins\libaim.dll"
17614
82ea9e17d6b0 Add the bonjour prpl to the win32 uninstaller.
Daniel Atallah <datallah@pidgin.im>
parents: 17462
diff changeset
748 Delete "$INSTDIR\plugins\libbonjour.dll"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
749 Delete "$INSTDIR\plugins\libgg.dll"
15031
c45aa1667620 [gaim-migrate @ 17748]
Daniel Atallah <datallah@pidgin.im>
parents: 14929
diff changeset
750 Delete "$INSTDIR\plugins\libicq.dll"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
751 Delete "$INSTDIR\plugins\libirc.dll"
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
752 Delete "$INSTDIR\plugins\libmsn.dll"
19627
27519ded92c5 Add MySpaceIM to the Windows build, though I can't verify this works
Kevin Stange <kstange@pidgin.im>
parents: 19624
diff changeset
753 Delete "$INSTDIR\plugins\libmyspace.dll"
9570
8b3f38824cd3 [gaim-migrate @ 10413]
Herman Bloggs <herman@bluedigits.com>
parents: 9565
diff changeset
754 Delete "$INSTDIR\plugins\libnapster.dll"
9139
98408fc7521c [gaim-migrate @ 9923]
Herman Bloggs <herman@bluedigits.com>
parents: 9115
diff changeset
755 Delete "$INSTDIR\plugins\libnovell.dll"
14887
067f351ad90a [gaim-migrate @ 17592]
Daniel Atallah <datallah@pidgin.im>
parents: 14854
diff changeset
756 Delete "$INSTDIR\plugins\libqq.dll"
11103
a85505cc7ea0 [gaim-migrate @ 13143]
Richard Laager <rlaager@pidgin.im>
parents: 11090
diff changeset
757 Delete "$INSTDIR\plugins\libsametime.dll"
a85505cc7ea0 [gaim-migrate @ 13143]
Richard Laager <rlaager@pidgin.im>
parents: 11090
diff changeset
758 Delete "$INSTDIR\plugins\libsilc.dll"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
759 Delete "$INSTDIR\plugins\libsimple.dll"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
760 Delete "$INSTDIR\plugins\libtoc.dll"
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
761 Delete "$INSTDIR\plugins\libyahoo.dll"
27647
acbefee0cd14 Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <datallah@pidgin.im>
parents: 27360
diff changeset
762 Delete "$INSTDIR\plugins\libyahoojp.dll"
16309
347c01a71e7c Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents: 16305
diff changeset
763 Delete "$INSTDIR\plugins\libxmpp.dll"
14297
c1788b3112fd [gaim-migrate @ 16917]
Richard Laager <rlaager@pidgin.im>
parents: 13810
diff changeset
764 Delete "$INSTDIR\plugins\log_reader.dll"
15236
b0b173741baf [gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents: 15144
diff changeset
765 Delete "$INSTDIR\plugins\markerline.dll"
b0b173741baf [gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents: 15144
diff changeset
766 Delete "$INSTDIR\plugins\newline.dll"
13067
f455a2ca30a9 [gaim-migrate @ 15429]
Daniel Atallah <datallah@pidgin.im>
parents: 13037
diff changeset
767 Delete "$INSTDIR\plugins\notify.dll"
15236
b0b173741baf [gaim-migrate @ 17960]
Daniel Atallah <datallah@pidgin.im>
parents: 15144
diff changeset
768 Delete "$INSTDIR\plugins\offlinemsg.dll"
7352
715b973d34e2 [gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents: 7215
diff changeset
769 Delete "$INSTDIR\plugins\perl.dll"
19851
48abddbe6b78 Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents: 19705
diff changeset
770 Delete "$INSTDIR\plugins\pidginrc.dll"
13037
e5fd3ea2ad98 [gaim-migrate @ 15396]
Daniel Atallah <datallah@pidgin.im>
parents: 12922
diff changeset
771 Delete "$INSTDIR\plugins\psychic.dll"
7600
279abfe7721f [gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents: 7575
diff changeset
772 Delete "$INSTDIR\plugins\relnot.dll"
23167
d542424833f9 applied changes from ae9d7912dfb7c1627441484bfe471dd4d370d346
Daniel Atallah <datallah@pidgin.im>
parents: 22947
diff changeset
773 Delete "$INSTDIR\plugins\sendbutton.dll"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
774 Delete "$INSTDIR\plugins\spellchk.dll"
7352
715b973d34e2 [gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents: 7215
diff changeset
775 Delete "$INSTDIR\plugins\ssl-nss.dll"
715b973d34e2 [gaim-migrate @ 7943]
Herman Bloggs <herman@bluedigits.com>
parents: 7215
diff changeset
776 Delete "$INSTDIR\plugins\ssl.dll"
6476
92d08d220cd1 [gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents: 6447
diff changeset
777 Delete "$INSTDIR\plugins\statenotify.dll"
8099
690e8ae9d03a [gaim-migrate @ 8799]
Herman Bloggs <herman@bluedigits.com>
parents: 7924
diff changeset
778 Delete "$INSTDIR\plugins\tcl.dll"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
779 Delete "$INSTDIR\plugins\ticker.dll"
6476
92d08d220cd1 [gaim-migrate @ 6987]
Herman Bloggs <herman@bluedigits.com>
parents: 6447
diff changeset
780 Delete "$INSTDIR\plugins\timestamp.dll"
12922
5c9dd678da15 [gaim-migrate @ 15275]
Daniel Atallah <datallah@pidgin.im>
parents: 12644
diff changeset
781 Delete "$INSTDIR\plugins\timestamp_format.dll"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
782 Delete "$INSTDIR\plugins\win2ktrans.dll"
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
783 Delete "$INSTDIR\plugins\winprefs.dll"
24195
c8c6f34b091d Build the XMPP Console plugin by default on windows too.
Daniel Atallah <datallah@pidgin.im>
parents: 24191
diff changeset
784 Delete "$INSTDIR\plugins\xmppconsole.dll"
27360
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents: 27188
diff changeset
785 Delete "$INSTDIR\plugins\xmppdisco.dll"
27665
00196a586c45 Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents: 27647
diff changeset
786 RMDir /r "$INSTDIR\plugins\perl"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
787 RMDir "$INSTDIR\plugins"
21395
e5bb2b0df509 Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21393
diff changeset
788 RMDir /r "$INSTDIR\sasl2"
19851
48abddbe6b78 Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents: 19705
diff changeset
789 Delete "$INSTDIR\sounds\purple\alert.wav"
48abddbe6b78 Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents: 19705
diff changeset
790 Delete "$INSTDIR\sounds\purple\login.wav"
48abddbe6b78 Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents: 19705
diff changeset
791 Delete "$INSTDIR\sounds\purple\logout.wav"
48abddbe6b78 Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents: 19705
diff changeset
792 Delete "$INSTDIR\sounds\purple\receive.wav"
48abddbe6b78 Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents: 19705
diff changeset
793 Delete "$INSTDIR\sounds\purple\send.wav"
48abddbe6b78 Make the uninstaller remove everything it installs.
Daniel Atallah <datallah@pidgin.im>
parents: 19705
diff changeset
794 RMDir "$INSTDIR\sounds\purple"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
795 RMDir "$INSTDIR\sounds"
15138
45cef2c7d3b6 [gaim-migrate @ 17860]
Daniel Atallah <datallah@pidgin.im>
parents: 15047
diff changeset
796 Delete "$INSTDIR\freebl3.dll"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
797 Delete "$INSTDIR\idletrack.dll"
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
798 Delete "$INSTDIR\libgtkspell.dll"
16309
347c01a71e7c Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents: 16305
diff changeset
799 Delete "$INSTDIR\libjabber.dll"
21395
e5bb2b0df509 Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21393
diff changeset
800 Delete "$INSTDIR\libmeanwhile-1.dll"
15031
c45aa1667620 [gaim-migrate @ 17748]
Daniel Atallah <datallah@pidgin.im>
parents: 14929
diff changeset
801 Delete "$INSTDIR\liboscar.dll"
15816
6fb46b27dedc More installer stuff.
Daniel Atallah <datallah@pidgin.im>
parents: 15815
diff changeset
802 Delete "$INSTDIR\libpurple.dll"
21395
e5bb2b0df509 Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21393
diff changeset
803 Delete "$INSTDIR\libsasl.dll"
e5bb2b0df509 Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21393
diff changeset
804 Delete "$INSTDIR\libsilc-1-1-2.dll"
e5bb2b0df509 Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21393
diff changeset
805 Delete "$INSTDIR\libsilcclient-1-1-2.dll"
13810
e63ac6c6ed1d [gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents: 13564
diff changeset
806 Delete "$INSTDIR\libxml2.dll"
27647
acbefee0cd14 Fix win32 build for yahoo/yahoojp split.
Daniel Atallah <datallah@pidgin.im>
parents: 27360
diff changeset
807 Delete "$INSTDIR\libymsg.dll"
6973
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
808 Delete "$INSTDIR\nspr4.dll"
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
809 Delete "$INSTDIR\nss3.dll"
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
810 Delete "$INSTDIR\nssckbi.dll"
21395
e5bb2b0df509 Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21393
diff changeset
811 Delete "$INSTDIR\pidgin.dll"
15816
6fb46b27dedc More installer stuff.
Daniel Atallah <datallah@pidgin.im>
parents: 15815
diff changeset
812 Delete "$INSTDIR\pidgin.exe"
6973
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
813 Delete "$INSTDIR\plc4.dll"
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
814 Delete "$INSTDIR\plds4.dll"
19668
2071903c58e4 Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents: 19627
diff changeset
815 Delete "$INSTDIR\smime3.dll"
6973
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
816 Delete "$INSTDIR\softokn3.dll"
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
817 Delete "$INSTDIR\ssl3.dll"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
818 Delete "$INSTDIR\${PIDGIN_UNINST_EXE}"
6973
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
819 !ifdef DEBUG
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
820 Delete "$INSTDIR\exchndl.dll"
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
821 !endif
14798
3a48e094d216 [gaim-migrate @ 17492]
Daniel Atallah <datallah@pidgin.im>
parents: 14745
diff changeset
822 Delete "$INSTDIR\install.log"
6973
96afadc10b8d [gaim-migrate @ 7525]
Herman Bloggs <herman@bluedigits.com>
parents: 6951
diff changeset
823
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
824 ;Try to remove Pidgin install dir (only if empty)
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
825 RMDir "$INSTDIR"
3853
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
826
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
827 ; Shortcuts..
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
828 Delete "$DESKTOP\Pidgin.lnk"
25728
1985dd712828 Backport 1ae2b55502a0afd8f28918fc4726683c52e998e9 (#8985 - Remove Start Menu shortcut when unistalling)
Daniel Atallah <datallah@pidgin.im>
parents: 25672
diff changeset
829 Delete "$SMPROGRAMS\Pidgin.lnk"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
830
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
831 Goto done
4897
b957d7e1ab16 [gaim-migrate @ 5229]
Herman Bloggs <herman@bluedigits.com>
parents: 4857
diff changeset
832
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
833 cant_uninstall:
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
834 MessageBox MB_OK $(un.PIDGIN_UNINSTALL_ERROR_1) /SD IDOK
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
835 Quit
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
836
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
837 no_rights:
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
838 MessageBox MB_OK $(un.PIDGIN_UNINSTALL_ERROR_2) /SD IDOK
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
839 Quit
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
840
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
841 done:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
842 SectionEnd ; end of uninstall section
3853
510f497172b5 [gaim-migrate @ 4005]
Herman Bloggs <herman@bluedigits.com>
parents: 3849
diff changeset
843
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
844 ;--------------------------------
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
845 ;Descriptions
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
846 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
847 !insertmacro MUI_DESCRIPTION_TEXT ${SecPidgin} \
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
848 $(PIDGIN_SECTION_DESCRIPTION)
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
849 !ifdef WITH_GTK
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
850 !insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} \
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
851 $(GTK_SECTION_DESCRIPTION)
5383
b9835d165626 [gaim-migrate @ 5759]
Herman Bloggs <herman@bluedigits.com>
parents: 5332
diff changeset
852 !endif
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
853
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
854 !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
855 $(PIDGIN_SHORTCUTS_SECTION_DESCRIPTION)
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
856 !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
857 $(PIDGIN_DESKTOP_SHORTCUT_DESC)
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10814
diff changeset
858 !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
859 $(PIDGIN_STARTMENU_SHORTCUT_DESC)
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
860
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
861 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheck} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
862 $(PIDGIN_SPELLCHECK_SECTION_DESCRIPTION)
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
863 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckBreton} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
864 "$(PIDGIN_SPELLCHECK_BRETON) (862kb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
865 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckCatalan} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
866 "$(PIDGIN_SPELLCHECK_CATALAN) (3.9Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
867 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckCzech} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
868 "$(PIDGIN_SPELLCHECK_CZECH) (17Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
869 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckWelsh} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
870 "$(PIDGIN_SPELLCHECK_WELSH) (4.2Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
871 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckDanish} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
872 "$(PIDGIN_SPELLCHECK_DANISH) (6.9Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
873 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckGerman} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
874 "$(PIDGIN_SPELLCHECK_GERMAN) (5.4Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
875 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckGreek} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
876 "$(PIDGIN_SPELLCHECK_GREEK) (7.1Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
877 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckEnglish} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
878 "$(PIDGIN_SPELLCHECK_ENGLISH) (2.3Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
879 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckEsperanto} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
880 "$(PIDGIN_SPELLCHECK_ESPERANTO) (5.7Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
881 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSpanish} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
882 "$(PIDGIN_SPELLCHECK_SPANISH) (7.0Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
883 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckFaroese} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
884 "$(PIDGIN_SPELLCHECK_FAROESE) (913kb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
885 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckFrench} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
886 "$(PIDGIN_SPELLCHECK_FRENCH) (9.3Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
887 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckItalian} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
888 "$(PIDGIN_SPELLCHECK_ITALIAN) (770kb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
889 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckDutch} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
890 "$(PIDGIN_SPELLCHECK_DUTCH) (3.7Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
891 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckNorwegian} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
892 "$(PIDGIN_SPELLCHECK_NORWEGIAN) (3.2Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
893 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckPolish} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
894 "$(PIDGIN_SPELLCHECK_POLISH) (9.3Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
895 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckPortuguese} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
896 "$(PIDGIN_SPELLCHECK_PORTUGUESE) (5.5Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
897 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckRomanian} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
898 "$(PIDGIN_SPELLCHECK_ROMANIAN) (906kb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
899 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckRussian} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
900 "$(PIDGIN_SPELLCHECK_RUSSIAN) (11Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
901 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSlovak} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
902 "$(PIDGIN_SPELLCHECK_SLOVAK) (8.0Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
903 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckSwedish} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
904 "$(PIDGIN_SPELLCHECK_SWEDISH) (2.2Mb)"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
905 !insertmacro MUI_DESCRIPTION_TEXT ${SecSpellCheckUkrainian} \
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
906 "$(PIDGIN_SPELLCHECK_UKRAINIAN) (12Mb)"
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
907 !insertmacro MUI_FUNCTION_DESCRIPTION_END
5332
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 ;--------------------------------
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
910 ;Functions
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
911
15857
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
912 ; Default the URI handler checkboxes if Pidgin is the current handler or if there is no handler
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
913 Function SelectURIHandlerSelections
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
914 Push $R0
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
915 Push $R1
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
916 Push $R2
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
917 Push $R3
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
918
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
919 ; Start with the first URI handler
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
920 IntOp $R0 ${SecURIHandlers} + 1
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
921
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
922 start:
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
923 ; If it is the end of the section group, stop
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
924 SectionGetFlags $R0 $R1
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
925 IntOp $R2 $R1 & ${SF_SECGRPEND}
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
926 IntCmp $R2 ${SF_SECGRPEND} done
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
927
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
928 SectionGetText $R0 $R2
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
929 ;Strip the trailing ':'
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
930 StrLen $R3 $R2
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
931 IntOp $R3 $R3 - 1
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
932 StrCpy $R2 $R2 $R3
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
933
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
934 ClearErrors
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
935 ReadRegStr $R3 HKCR "$R2" ""
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
936 IfErrors default_on ;there is no current handler
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
937
22947
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
938 Push $R2
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
939 Call CheckIfPidginIsCurrentURIHandler
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
940 Pop $R3
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
941
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
942 ; If Pidgin isn't the current handler, we don't steal it automatically
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
943 IntCmp $R3 0 end_loop
15857
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
944
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
945 ;We default the URI handler checkbox on
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
946 default_on:
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
947 IntOp $R1 $R1 | ${SF_SELECTED} ; Select
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
948 SectionSetFlags $R0 $R1
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
949
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
950 end_loop:
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
951 IntOp $R0 $R0 + 1 ;Advance to the next section
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
952 Goto start
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
953
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
954 done:
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
955 Pop $R3
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
956 Pop $R2
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
957 Pop $R1
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
958 Pop $R0
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
959 FunctionEnd ;SelectURIHandlerSections
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
960
22947
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
961 ; Check if Pidgin is the current handler
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
962 ; Returns a boolean on the stack
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
963 !macro CheckIfPidginIsCurrentURIHandlerMacro UN
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
964 Function ${UN}CheckIfPidginIsCurrentURIHandler
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
965 Exch $R0
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
966 ClearErrors
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
967
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
968 ReadRegStr $R0 HKCR "$R0\shell\Open\command" ""
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
969 IfErrors 0 +3
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
970 IntOp $R0 0 + 0
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
971 Goto done
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
972
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
973 !ifdef __UNINSTALL__
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
974 ${un.WordFind} "$R0" "pidgin.exe" "E+1{" $R0
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
975 !else
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
976 ${WordFind} "$R0" "pidgin.exe" "E+1{" $R0
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
977 !endif
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
978 IntOp $R0 0 + 1
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
979 IfErrors 0 +2
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
980 IntOp $R0 0 + 0
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
981
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
982 done:
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
983 Exch $R0
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
984 FunctionEnd
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
985 !macroend
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
986 !insertmacro CheckIfPidginIsCurrentURIHandlerMacro ""
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
987 !insertmacro CheckIfPidginIsCurrentURIHandlerMacro "un."
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
988
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
989 ; If Pidgin is the current URI handler for the specified protocol, remove it.
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
990 Function un.UnregisterURIHandler
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
991 Exch $R0
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
992 Push $R1
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
993
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
994 Push $R0
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
995 Call un.CheckIfPidginIsCurrentURIHandler
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
996 Pop $R1
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
997
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
998 ; If Pidgin isn't the current handler, leave it as-is
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
999 IntCmp $R1 0 done
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1000
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1001 ;Unregister the URI handler
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1002 DetailPrint "Unregistering $R0 URI Handler"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1003 DeleteRegKey HKCR "$R0"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1004
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1005 done:
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1006 Pop $R1
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1007 Pop $R0
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1008 FunctionEnd
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
1009
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
1010 Function RegisterURIHandler
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
1011 Exch $R0
22947
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1012 DetailPrint "Registering $R0 URI Handler"
15857
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1013 DeleteRegKey HKCR "$R0"
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1014 WriteRegStr HKCR "$R0" "" "URL:$R0"
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1015 WriteRegStr HKCR "$R0" "URL Protocol" ""
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1016 WriteRegStr HKCR "$R0\DefaultIcon" "" "$INSTDIR\pidgin.exe"
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1017 WriteRegStr HKCR "$R0\shell" "" ""
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1018 WriteRegStr HKCR "$R0\shell\Open" "" ""
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1019 WriteRegStr HKCR "$R0\shell\Open\command" "" "$INSTDIR\pidgin.exe --protocolhandler=%1"
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
1020 Pop $R0
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
1021 FunctionEnd
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
1022
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
1023
13392
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1024 !macro CheckUserInstallRightsMacro UN
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1025 Function ${UN}CheckUserInstallRights
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1026 Push $0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1027 Push $1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1028 ClearErrors
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1029 UserInfo::GetName
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1030 IfErrors Win9x
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1031 Pop $0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1032 UserInfo::GetAccountType
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1033 Pop $1
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1034
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1035 StrCmp $1 "Admin" 0 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1036 StrCpy $1 "HKLM"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1037 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1038 StrCmp $1 "Power" 0 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1039 StrCpy $1 "HKLM"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1040 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1041 StrCmp $1 "User" 0 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1042 StrCpy $1 "HKCU"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1043 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1044 StrCmp $1 "Guest" 0 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1045 StrCpy $1 "NONE"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1046 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1047 ; Unknown error
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1048 StrCpy $1 "NONE"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1049 Goto done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1050
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1051 Win9x:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1052 StrCpy $1 "HKLM"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1053
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1054 done:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1055 Exch $1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1056 Exch
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1057 Pop $0
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1058 FunctionEnd
13392
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1059 !macroend
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1060 !insertmacro CheckUserInstallRightsMacro ""
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1061 !insertmacro CheckUserInstallRightsMacro "un."
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 ;
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1064 ; Usage:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1065 ; Push $0 ; Path string
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1066 ; Call VerifyDir
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1067 ; Pop $0 ; 0 - Bad path 1 - Good path
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1068 ;
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1069 Function VerifyDir
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1070 Exch $0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1071 Push $1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1072 Push $2
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1073 Loop:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1074 IfFileExists $0 dir_exists
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1075 StrCpy $1 $0 ; save last
14439
adecc0185ad7 [gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents: 14438
diff changeset
1076 ${GetParent} $0 $0
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1077 StrLen $2 $0
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1078 ; IfFileExists "C:" on xp returns true and on win2k returns false
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1079 ; So we're done in such a case..
9960
5144be791c3b [gaim-migrate @ 10868]
Luke Schierer <lschiere@pidgin.im>
parents: 9956
diff changeset
1080 IntCmp $2 2 loop_done
5144be791c3b [gaim-migrate @ 10868]
Luke Schierer <lschiere@pidgin.im>
parents: 9956
diff changeset
1081 ; GetParent of "C:" returns ""
5144be791c3b [gaim-migrate @ 10868]
Luke Schierer <lschiere@pidgin.im>
parents: 9956
diff changeset
1082 IntCmp $2 0 loop_done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1083 Goto Loop
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1084
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1085 loop_done:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1086 StrCpy $1 "$0\GaImFooB"
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1087 ; Check if we can create dir on this drive..
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1088 ClearErrors
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1089 CreateDirectory $1
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1090 IfErrors DirBad DirGood
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1091
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1092 dir_exists:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1093 ClearErrors
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1094 FileOpen $1 "$0\pidginfoo.bar" w
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1095 IfErrors PathBad PathGood
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1096
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1097 DirGood:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1098 RMDir $1
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1099 Goto PathGood1
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1100
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1101 DirBad:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1102 RMDir $1
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1103 Goto PathBad1
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1104
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1105 PathBad:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1106 FileClose $1
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1107 Delete "$0\pidginfoo.bar"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1108 PathBad1:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1109 StrCpy $0 "0"
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1110 Push $0
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1111 Goto done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1112
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1113 PathGood:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1114 FileClose $1
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1115 Delete "$0\pidginfoo.bar"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1116 PathGood1:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1117 StrCpy $0 "1"
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1118 Push $0
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1119
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1120 done:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1121 Exch 3 ; The top of the stack contains the output variable
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1122 Pop $0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1123 Pop $2
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1124 Pop $1
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1125 FunctionEnd
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1126
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1127 Function .onVerifyInstDir
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1128 Push $0
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1129 Push $INSTDIR
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1130 Call VerifyDir
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1131 Pop $0
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1132 StrCmp $0 "0" 0 dir_good
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1133 Pop $0
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1134 Abort
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1135
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1136 dir_good:
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1137 Pop $0
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1138 FunctionEnd
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1139
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1140 ;
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1141 ; Usage:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1142 ; Call DoWeNeedGtk
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1143 ; First Pop:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1144 ; 0 - We have the correct version
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1145 ; Second Pop: Key where Version was found
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1146 ; 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
1147 ; 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
1148 ; 2 - We have an old version that needs to be upgraded
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1149 ; Second Pop: HKLM or HKCU depending on where GTK was found.
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1150 ; 3 - We don't have Gtk+ at all
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1151 ; Second Pop: "NONE, HKLM or HKCU" depending on our rights..
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1152 ;
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1153 Function DoWeNeedGtk
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1154 ; Logic should be:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1155 ; - Check what user rights we have (HKLM or HKCU)
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1156 ; - If HKLM rights..
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1157 ; - Only check HKLM key for GTK+
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1158 ; - If installed to HKLM, check it and return.
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1159 ; - If HKCU rights..
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1160 ; - First check HKCU key for GTK+
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1161 ; - if good or bad exists stop and ret.
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1162 ; - If no hkcu gtk+ install, check HKLM
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1163 ; - 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
1164 ; - If no rights
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1165 ; - Check HKLM
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1166 Push $0
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1167 Push $1
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1168 Push $2
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1169 Push $3
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1170
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1171 Call CheckUserInstallRights
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1172 Pop $1
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1173 StrCmp $1 "HKLM" check_hklm
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1174 StrCmp $1 "HKCU" check_hkcu check_hklm
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1175 check_hkcu:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1176 ReadRegStr $0 HKCU ${GTK_REG_KEY} "Version"
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1177 StrCpy $2 "HKCU"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1178 StrCmp $0 "" check_hklm have_gtk
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1179
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1180 check_hklm:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1181 ReadRegStr $0 HKLM ${GTK_REG_KEY} "Version"
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1182 StrCpy $2 "HKLM"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1183 StrCmp $0 "" no_gtk have_gtk
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1184
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1185 have_gtk:
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
1186 ; GTK+ is already installed; check version.
21418
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1187 ; Change this to not even run the GTK installer if this version is already installed.
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1188 ${VersionCompare} ${GTK_INSTALL_VERSION} $0 $3
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1189 IntCmp $3 1 +1 good_version good_version
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1190 ${VersionCompare} ${GTK_MIN_VERSION} $0 $3
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1191
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1192 ; 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
1193 StrCmp $1 "NONE" no_gtk ; if no rights.. can't upgrade
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1194 StrCmp $1 "HKCU" 0 +2 ; if HKLM can upgrade..
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1195 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
1196 Push $2
16602
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1197 IntCmp $3 1 +3
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1198 Push "1" ; Optional Upgrade
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1199 Goto done
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1200 Push "2" ; Mandatory Upgrade
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1201 Goto done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1202
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1203 good_version:
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1204 StrCmp $2 "HKLM" have_hklm_gtk have_hkcu_gtk
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1205 have_hkcu_gtk:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1206 ; Have HKCU version
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1207 ReadRegStr $0 HKCU ${GTK_REG_KEY} "Path"
6422
95b4b1acdb18 [gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents: 6300
diff changeset
1208 Goto good_version_cont
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1209
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1210 have_hklm_gtk:
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1211 ReadRegStr $0 HKLM ${GTK_REG_KEY} "Path"
6422
95b4b1acdb18 [gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents: 6300
diff changeset
1212 Goto good_version_cont
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1213
6422
95b4b1acdb18 [gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents: 6300
diff changeset
1214 good_version_cont:
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1215 Push $0 ; The path to existing GTK+
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1216 Push "0"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1217 Goto done
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1218
6422
95b4b1acdb18 [gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents: 6300
diff changeset
1219 no_gtk:
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1220 Push $1 ; our rights
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1221 Push "3"
6422
95b4b1acdb18 [gaim-migrate @ 6930]
Herman Bloggs <herman@bluedigits.com>
parents: 6300
diff changeset
1222 Goto done
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1223
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1224 done:
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1225 ; The top two items on the stack are what we want to return
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15819
diff changeset
1226 Exch 4
16602
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1227 Pop $1
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1228 Exch 4
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1229 Pop $0
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1230 Pop $3
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1231 Pop $2
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1232 FunctionEnd
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1233
13392
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1234
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1235 !macro RunCheckMacro UN
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1236 Function ${UN}RunCheck
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1237 Push $R0
21971
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1238 Push $R1
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1239
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1240 IntOp $R1 0 + 0
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1241 retry_runcheck:
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1242 ; Close the Handle (needed if we're retrying)
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1243 IntCmp $R1 0 +2
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1244 System::Call 'kernel32::CloseHandle(i $R1) i .R1'
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1245 System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_is_running") i .R1 ?e'
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1246 Pop $R0
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1247 IntCmp $R0 0 +3 ;This could check for ERROR_ALREADY_EXISTS(183), but lets just assume
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1248 MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(PIDGIN_IS_RUNNING) /SD IDCANCEL IDRETRY retry_runcheck
10212
9a9c18b72773 [gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents: 10137
diff changeset
1249 Abort
21971
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1250
22236
d6762c285789 Don't keep a handle to the "pidgin_is_running" mutex in the installer - this causes the uninstaller to fail. There probably is a better solution, but this works for now.
Daniel Atallah <datallah@pidgin.im>
parents: 22174
diff changeset
1251 ; Close the Handle (If we don't do this, the uninstaller called from within will fail)
d6762c285789 Don't keep a handle to the "pidgin_is_running" mutex in the installer - this causes the uninstaller to fail. There probably is a better solution, but this works for now.
Daniel Atallah <datallah@pidgin.im>
parents: 22174
diff changeset
1252 ; This is not optimal because there is a (small) window of time when a new process could start
d6762c285789 Don't keep a handle to the "pidgin_is_running" mutex in the installer - this causes the uninstaller to fail. There probably is a better solution, but this works for now.
Daniel Atallah <datallah@pidgin.im>
parents: 22174
diff changeset
1253 System::Call 'kernel32::CloseHandle(i $R1) i .R1'
d6762c285789 Don't keep a handle to the "pidgin_is_running" mutex in the installer - this causes the uninstaller to fail. There probably is a better solution, but this works for now.
Daniel Atallah <datallah@pidgin.im>
parents: 22174
diff changeset
1254
21971
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1255 Pop $R1
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1256 Pop $R0
10212
9a9c18b72773 [gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents: 10137
diff changeset
1257 FunctionEnd
13392
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1258 !macroend
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1259 !insertmacro RunCheckMacro ""
65d549e23d0d [gaim-migrate @ 15764]
David Everly
parents: 13182
diff changeset
1260 !insertmacro RunCheckMacro "un."
10212
9a9c18b72773 [gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents: 10137
diff changeset
1261
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1262 Function .onInit
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1263 Push $R0
21418
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1264 Push $R1
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1265 Push $R2
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1266 Push $R3 ; This is only used for the Parameters throughout the function
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1267
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1268 ${GetParameters} $R3
21971
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1269
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1270 IntOp $R1 0 + 0
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1271 retry_runcheck:
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1272 ; Close the Handle (needed if we're retrying)
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1273 IntCmp $R1 0 +2
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1274 System::Call 'kernel32::CloseHandle(i $R1) i .R1'
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1275 System::Call 'kernel32::CreateMutexA(i 0, i 0, t "pidgin_installer_running") i .R1 ?e'
10212
9a9c18b72773 [gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents: 10137
diff changeset
1276 Pop $R0
21971
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1277 IntCmp $R0 0 +3 ;This could check for ERROR_ALREADY_EXISTS(183), but lets just assume
e00e0d55d129 Allow the user to Retry if Pidgin is running when they start the installer. Fixes #4355
Daniel Atallah <datallah@pidgin.im>
parents: 21418
diff changeset
1278 MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(INSTALLER_IS_RUNNING) /SD IDCANCEL IDRETRY retry_runcheck
10212
9a9c18b72773 [gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents: 10137
diff changeset
1279 Abort
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1280
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1281 ; Allow installer to run even if pidgin is running via "/NOPIDGINRUNCHECK=1"
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1282 ; This is useful for testing
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1283 ClearErrors
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1284 ${GetOptions} "$R3" "/NOPIDGINRUNCHECK=" $R1
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1285 IfErrors 0 +2
10212
9a9c18b72773 [gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents: 10137
diff changeset
1286 Call RunCheck
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1287
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1288 StrCpy $name "Pidgin ${PIDGIN_VERSION}"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1289 StrCpy $SPELLCHECK_SEL ""
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1290
15818
1ff837dbed01 Installer updates
Daniel Atallah <datallah@pidgin.im>
parents: 15817
diff changeset
1291 ;Try to copy the old Gaim installer Lang Reg. key
22947
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1292 ;(remove it after we're done to prevent this being done more than once)
15818
1ff837dbed01 Installer updates
Daniel Atallah <datallah@pidgin.im>
parents: 15817
diff changeset
1293 ClearErrors
1ff837dbed01 Installer updates
Daniel Atallah <datallah@pidgin.im>
parents: 15817
diff changeset
1294 ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "Installer Language"
1ff837dbed01 Installer updates
Daniel Atallah <datallah@pidgin.im>
parents: 15817
diff changeset
1295 IfErrors 0 +5
1ff837dbed01 Installer updates
Daniel Atallah <datallah@pidgin.im>
parents: 15817
diff changeset
1296 ClearErrors
22947
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1297 ReadRegStr $R0 HKCU "${OLD_GAIM_REG_KEY}" "Installer Language"
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1298 IfErrors +3
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1299 DeleteRegValue HKCU "${OLD_GAIM_REG_KEY}" "Installer Language"
15818
1ff837dbed01 Installer updates
Daniel Atallah <datallah@pidgin.im>
parents: 15817
diff changeset
1300 WriteRegStr HKCU "${PIDGIN_REG_KEY}" "Installer Language" "$R0"
1ff837dbed01 Installer updates
Daniel Atallah <datallah@pidgin.im>
parents: 15817
diff changeset
1301
16817
6ebf286c04b2 Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <datallah@pidgin.im>
parents: 16780
diff changeset
1302 !insertmacro SetSectionFlag ${SecSpellCheck} ${SF_RO}
6ebf286c04b2 Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <datallah@pidgin.im>
parents: 16780
diff changeset
1303 !insertmacro UnselectSection ${SecSpellCheck}
6ebf286c04b2 Fix #470 (change spellchecker language to not select every language)
Daniel Atallah <datallah@pidgin.im>
parents: 16780
diff changeset
1304
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1305 ;Mark the dictionaries that are already installed as readonly
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1306 Call SelectAndDisableInstalledDictionaries
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1307
15857
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1308 ;Preselect the URI handlers as appropriate
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1309 Call SelectURIHandlerSelections
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1310
18671
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1311 ;Preselect the "shortcuts" checkboxes according to the previous installation
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1312 ClearErrors
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1313 ;Make sure that there was a previous installation
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1314 ReadRegStr $R0 HKCU "${PIDGIN_REG_KEY}" "Installer Language"
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1315 IfErrors done_preselecting_shortcuts
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1316 ;Does the Desktop shortcut exist?
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1317 GetFileTime "$DESKTOP\Pidgin.lnk" $R0 $R0
19414
e96cbe3a659b New Persian win32 installer translation from Elnaz Sarbar. Fixes 2273.
Daniel Atallah <datallah@pidgin.im>
parents: 18671
diff changeset
1318 IfErrors +1 +5
18671
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1319 ClearErrors
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1320 SetShellVarContext "all"
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1321 GetFileTime "$DESKTOP\Pidgin.lnk" $R0 $R0
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1322 IfErrors preselect_startmenu_shortcut ;Desktop Shortcut if off by default
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1323 !insertmacro SelectSection ${SecDesktopShortcut}
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1324 preselect_startmenu_shortcut:
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1325 ;Reset ShellVarContext because we may have changed it
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1326 SetShellVarContext "current"
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1327 ClearErrors
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1328 ;Does the StartMenu shortcut exist?
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1329 GetFileTime "$SMPROGRAMS\Pidgin.lnk" $R0 $R0
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1330 IfErrors +1 done_preselecting_shortcuts ;StartMenu Shortcut is on by default
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1331 ClearErrors
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1332 SetShellVarContext "all"
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1333 GetFileTime "$SMPROGRAMS\Pidgin.lnk" $R0 $R0
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1334 IfErrors +1 done_preselecting_shortcuts ;StartMenu Shortcut is on by default
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1335 !insertmacro UnselectSection ${SecStartMenuShortcut}
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1336 done_preselecting_shortcuts:
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1337 ;Reset ShellVarContext because we may have changed it
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1338 SetShellVarContext "current"
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1339
23929
e075e486d4bf Fix the win32 installer not to cause messageboxes in the gtk installer when
Daniel Atallah <datallah@pidgin.im>
parents: 23915
diff changeset
1340 StrCpy $ISSILENT "/S"
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1341 ; GTK installer has two silent states - one with Message boxes, one without
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1342 ; If pidgin installer was run silently, we want to supress gtk installer msg boxes.
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1343 IfSilent 0 +2
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1344 StrCpy $ISSILENT "/NOUI"
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1345
28381
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1346 StrCpy $LANGUAGE_SET "0"
14439
adecc0185ad7 [gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents: 14438
diff changeset
1347 ClearErrors
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1348 ${GetOptions} "$R3" "/L=" $R1
28562
624fed1d4f8e Fix a silly regression that I introduced in 449a0d08f21daa4dbd903ee361d544ae7703ce24 where the win32 installer language selection would no longer work correctly. Fixes #10243.
Daniel Atallah <datallah@pidgin.im>
parents: 28381
diff changeset
1349 IfErrors +4
21418
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1350 StrCpy $LANGUAGE $R1
28381
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1351 StrCpy $LANGUAGE_SET "1"
14929
a71c59193f9d [gaim-migrate @ 17636]
Daniel Atallah <datallah@pidgin.im>
parents: 14887
diff changeset
1352 Goto skip_lang
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1353
7600
279abfe7721f [gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents: 7575
diff changeset
1354 ; Select Language
279abfe7721f [gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents: 7575
diff changeset
1355 ; Display Language selection dialog
28562
624fed1d4f8e Fix a silly regression that I introduced in 449a0d08f21daa4dbd903ee361d544ae7703ce24 where the win32 installer language selection would no longer work correctly. Fixes #10243.
Daniel Atallah <datallah@pidgin.im>
parents: 28381
diff changeset
1356 !define MUI_LANGDLL_ALWAYSSHOW
7600
279abfe7721f [gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents: 7575
diff changeset
1357 !insertmacro MUI_LANGDLL_DISPLAY
279abfe7721f [gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents: 7575
diff changeset
1358 skip_lang:
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1359
21418
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1360 ClearErrors
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1361 ${GetOptions} "$R3" "/DS=" $R1
22174
6069ae2cd571 Fix an issue where the Start Menu shortcut wasn't selected by default when not installed. Fixes #4489.
Daniel Atallah <datallah@pidgin.im>
parents: 22048
diff changeset
1362 IfErrors +8
21418
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1363 SectionGetFlags ${SecDesktopShortcut} $R2
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1364 StrCmp "1" $R1 0 +2
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1365 IntOp $R2 $R2 | ${SF_SELECTED}
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1366 StrCmp "0" $R1 0 +3
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1367 IntOp $R1 ${SF_SELECTED} ~
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1368 IntOp $R2 $R2 & $R1
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1369 SectionSetFlags ${SecDesktopShortcut} $R2
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1370
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1371 ClearErrors
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1372 ${GetOptions} "$R3" "/SMS=" $R1
22174
6069ae2cd571 Fix an issue where the Start Menu shortcut wasn't selected by default when not installed. Fixes #4489.
Daniel Atallah <datallah@pidgin.im>
parents: 22048
diff changeset
1373 IfErrors +8
21418
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1374 SectionGetFlags ${SecStartMenuShortcut} $R2
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1375 StrCmp "1" $R1 0 +2
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1376 IntOp $R2 $R2 | ${SF_SELECTED}
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1377 StrCmp "0" $R1 0 +3
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1378 IntOp $R1 ${SF_SELECTED} ~
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1379 IntOp $R2 $R2 & $R1
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1380 SectionSetFlags ${SecStartMenuShortcut} $R2
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1381
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1382 ; If install path was set on the command, use it.
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1383 StrCmp $INSTDIR "" 0 instdir_done
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1384
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1385 ; If pidgin or gaim is currently installed, we should default to where it is currently installed
10511
0a0bd0d33904 [gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents: 10212
diff changeset
1386 ClearErrors
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1387 ReadRegStr $INSTDIR HKCU "${PIDGIN_REG_KEY}" ""
10511
0a0bd0d33904 [gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents: 10212
diff changeset
1388 IfErrors +2
0a0bd0d33904 [gaim-migrate @ 11809]
Daniel Atallah <datallah@pidgin.im>
parents: 10212
diff changeset
1389 StrCmp $INSTDIR "" 0 instdir_done
14438
b552f0964484 [gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents: 14351
diff changeset
1390 ClearErrors
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1391 ReadRegStr $INSTDIR HKLM "${PIDGIN_REG_KEY}" ""
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1392 IfErrors +2
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1393 StrCmp $INSTDIR "" 0 instdir_done
15857
bcde5b8d9b0d Default the URI Handler checkboxes in the installer appropriately (if pidgin is the current handler or if there is no current handler). Also, don't use the previous Gaim installation directory as the default new directory for Pidgin (perhaps it would be smart to use something like ...\blah\Pidgin if gaim was installed in ...\blah\Gaim, but I'm not sure it is worth the effort).
Daniel Atallah <datallah@pidgin.im>
parents: 15856
diff changeset
1394
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1395 Call CheckUserInstallRights
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1396 Pop $R0
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1397
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1398 StrCmp $R0 "HKLM" 0 user_dir
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1399 StrCpy $INSTDIR "$PROGRAMFILES\Pidgin"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1400 Goto instdir_done
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1401 user_dir:
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1402 Push $SMPROGRAMS
14439
adecc0185ad7 [gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents: 14438
diff changeset
1403 ${GetParent} $SMPROGRAMS $R2
adecc0185ad7 [gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents: 14438
diff changeset
1404 ${GetParent} $R2 $R2
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1405 StrCpy $INSTDIR "$R2\Pidgin"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1406
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1407 instdir_done:
16602
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1408 ;LogSet on
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1409 Pop $R3
21418
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1410 Pop $R2
e1291490635e Add /DS=[0,1] and /SMS=[0,1] to the win32 installer for enabling and disabling the Desktop Shortcut and Start Menu Shortcut respectively. Fixes #3814.
Daniel Atallah <datallah@pidgin.im>
parents: 21395
diff changeset
1411 Pop $R1
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1412 Pop $R0
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1413 FunctionEnd
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1414
28381
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1415 Function .onInstSuccess
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1416 ; NSIS doesn't appear to save the language when in Silent Mode, so we do so manually
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1417 IfSilent 0 done
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1418
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1419 StrCmp $LANGUAGE_SET "0" done
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1420
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1421 WriteRegStr "${MUI_LANGDLL_REGISTRY_ROOT}" "${MUI_LANGDLL_REGISTRY_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" $LANGUAGE
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1422
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1423 done:
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1424 FunctionEnd
449a0d08f21d Explicitly save the language when using the silent installer (if it is explicitly set). NSIS doesn\'t do this for us. Fixes #8658.
Daniel Atallah <datallah@pidgin.im>
parents: 28136
diff changeset
1425
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
1426 Function un.onInit
10212
9a9c18b72773 [gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents: 10137
diff changeset
1427 Call un.RunCheck
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1428 StrCpy $name "Pidgin ${PIDGIN_VERSION}"
22947
163e225750ad Remove the stored installer language selection when uninstalling.
Daniel Atallah <datallah@pidgin.im>
parents: 22236
diff changeset
1429 ;LogSet on
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
1430
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
1431 ; Get stored language preference
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14512
diff changeset
1432 !insertmacro MUI_UNGETLANGUAGE
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1433
6255
ed38c707623b [gaim-migrate @ 6751]
Herman Bloggs <herman@bluedigits.com>
parents: 6233
diff changeset
1434 FunctionEnd
6233
d12a0c4e40a0 [gaim-migrate @ 6726]
Herman Bloggs <herman@bluedigits.com>
parents: 6159
diff changeset
1435
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1436 ; Page enter and exit functions..
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1437
15047
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1438 Function preWelcomePage
16602
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1439 Push $R0
15047
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1440
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1441 !ifndef WITH_GTK
7600
279abfe7721f [gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents: 7575
diff changeset
1442 ; If this installer dosn't have GTK, check whether we need it.
18671
1d1c09b15a12 Preselect the Desktop and Startmenu shortcuts in the installer based on the previous installation (if there is one). Fixes #1620.
Daniel Atallah <datallah@pidgin.im>
parents: 17752
diff changeset
1443 ; We do this here and not in .onInit because language change in
7600
279abfe7721f [gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents: 7575
diff changeset
1444 ; .onInit doesn't take effect until it is finished.
15047
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1445 Call DoWeNeedGtk
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1446 Pop $R0
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1447 Pop $GTK_FOLDER
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1448
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1449 IntCmp $R0 1 done done
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1450 MessageBox MB_OK $(GTK_INSTALLER_NEEDED) /SD IDOK
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1451 Quit
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1452
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1453 done:
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1454
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1455 !else
16602
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1456 Push $R1
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1457 Push $R2
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1458
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1459 Call DoWeNeedGtk
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1460 Pop $R0
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1461 Pop $R2
24249
c49ccf386628 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <datallah@pidgin.im>
parents: 24248
diff changeset
1462 IntCmp $R0 1 gtk_selection_done gtk_not_mandatory
c49ccf386628 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <datallah@pidgin.im>
parents: 24248
diff changeset
1463 ; Make the GTK+ Section RO if it is required.
16602
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1464 !insertmacro SetSectionFlag ${SecGtk} ${SF_RO}
24249
c49ccf386628 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <datallah@pidgin.im>
parents: 24248
diff changeset
1465 Goto gtk_selection_done
16602
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1466 gtk_not_mandatory:
24249
c49ccf386628 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <datallah@pidgin.im>
parents: 24248
diff changeset
1467 ; Don't select the GTK+ section if we already have this version or newer installed
c49ccf386628 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <datallah@pidgin.im>
parents: 24248
diff changeset
1468 !insertmacro UnselectSection ${SecGtk}
c49ccf386628 Don't select the GTK+ checkbox if the current version or a new er version is
Daniel Atallah <datallah@pidgin.im>
parents: 24248
diff changeset
1469 gtk_selection_done:
15047
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1470
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1471 ; If on Win95/98/ME warn them that the GTK+ version wont work
17462
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
1472 ${Unless} ${IsNT}
15047
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1473 !insertmacro UnselectSection ${SecGtk}
16602
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1474 !insertmacro SetSectionFlag ${SecGtk} ${SF_RO}
15047
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1475 MessageBox MB_OK $(GTK_WINDOWS_INCOMPATIBLE) /SD IDOK
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1476 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
1477 Quit
17462
593f36ca27bc Patch from Amir Szekely to make the installer start up faster and use NSIS' built-in Windows version checking. Fixes #1289 (Thanks, Amir)
Daniel Atallah <datallah@pidgin.im>
parents: 17289
diff changeset
1478 ${EndIf}
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1479
15047
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1480 done:
16602
e26771ee55df Remove unused strings cruft from the installer that were left over from when it dealt with the GTK+ theme (It seems like I already did this before). Also, make installing GTK+ optional if it is already installed.
Daniel Atallah <datallah@pidgin.im>
parents: 16309
diff changeset
1481 Pop $R2
15047
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1482 Pop $R1
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1483 !endif
6064684b3eeb [gaim-migrate @ 17764]
Daniel Atallah <datallah@pidgin.im>
parents: 15045
diff changeset
1484 Pop $R0
7600
279abfe7721f [gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents: 7575
diff changeset
1485 FunctionEnd
279abfe7721f [gaim-migrate @ 8222]
Herman Bloggs <herman@bluedigits.com>
parents: 7575
diff changeset
1486
7572
976d5883ef99 [gaim-migrate @ 8188]
Herman Bloggs <herman@bluedigits.com>
parents: 7558
diff changeset
1487 !ifdef WITH_GTK
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1488 Function preGtkDirPage
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1489 Push $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1490 Push $R1
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1491 Call DoWeNeedGtk
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1492 Pop $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1493 Pop $R1
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1494
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1495 IntCmp $R0 2 +2 +2 no_gtk
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1496 StrCmp $R0 "3" no_gtk no_gtk
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1497
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1498 ; 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
1499 Pop $R1
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1500 Pop $R0
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1501 Abort
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1502
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1503 no_gtk:
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1504 StrCmp $R1 "NONE" 0 no_gtk_cont
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1505 ; Got no install rights..
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1506 Pop $R1
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1507 Pop $R0
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1508 Abort
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1509 no_gtk_cont:
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1510 ; Suggest path..
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1511 StrCmp $R1 "HKCU" 0 hklm1
14439
adecc0185ad7 [gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents: 14438
diff changeset
1512 ${GetParent} $SMPROGRAMS $R0
adecc0185ad7 [gaim-migrate @ 17083]
Daniel Atallah <datallah@pidgin.im>
parents: 14438
diff changeset
1513 ${GetParent} $R0 $R0
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1514 StrCpy $R0 "$R0\GTK\2.0"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1515 Goto got_path
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1516 hklm1:
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1517 StrCpy $R0 "${GTK_DEFAULT_INSTALL_PATH}"
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1518
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1519 got_path:
14854
0a2391b774a4 [gaim-migrate @ 17557]
Daniel Atallah <datallah@pidgin.im>
parents: 14798
diff changeset
1520 StrCpy $name "GTK+ ${GTK_INSTALL_VERSION}"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1521 StrCpy $GTK_FOLDER $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1522 Pop $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1523 Pop $R0
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1524 FunctionEnd
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1525
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1526 Function postGtkDirPage
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1527 Push $R0
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1528 StrCpy $name "Pidgin ${PIDGIN_VERSION}"
7558
a99729c4010a [gaim-migrate @ 8172]
Herman Bloggs <herman@bluedigits.com>
parents: 7357
diff changeset
1529 Push $GTK_FOLDER
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1530 Call VerifyDir
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1531 Pop $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1532 StrCmp $R0 "0" 0 done
14438
b552f0964484 [gaim-migrate @ 17082]
Daniel Atallah <datallah@pidgin.im>
parents: 14351
diff changeset
1533 MessageBox MB_OK $(GTK_BAD_INSTALL_PATH) /SD IDOK
14512
7584322a65a2 [gaim-migrate @ 17164]
Daniel Atallah <datallah@pidgin.im>
parents: 14439
diff changeset
1534 Pop $R0
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1535 Abort
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1536 done:
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1537 Pop $R0
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1538 FunctionEnd
7572
976d5883ef99 [gaim-migrate @ 8188]
Herman Bloggs <herman@bluedigits.com>
parents: 7558
diff changeset
1539 !endif
5332
0cfb8232fa21 [gaim-migrate @ 5705]
Herman Bloggs <herman@bluedigits.com>
parents: 5066
diff changeset
1540
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1541 ; SpellChecker Related Functions
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1542 ;-------------------------------
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 ; Convert the a Section index to the language code
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1545 ; 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
1546 ; This will set the error code, if no match is found
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1547 Function GetLangCodeForSection
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1548 ClearErrors
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1549 Push $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1550 Exch
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1551 Pop $R0 ;This is the section index
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1552
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1553 IntCmp $R0 ${SecSpellCheckBreton} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1554 StrCpy $R0 "br"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1555 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1556 IntCmp $R0 ${SecSpellCheckCatalan} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1557 StrCpy $R0 "ca"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1558 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1559 IntCmp $R0 ${SecSpellCheckCzech} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1560 StrCpy $R0 "cs"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1561 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1562 IntCmp $R0 ${SecSpellCheckWelsh} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1563 StrCpy $R0 "cy"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1564 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1565 IntCmp $R0 ${SecSpellCheckDanish} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1566 StrCpy $R0 "da"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1567 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1568 IntCmp $R0 ${SecSpellCheckGerman} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1569 StrCpy $R0 "de"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1570 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1571 IntCmp $R0 ${SecSpellCheckGreek} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1572 StrCpy $R0 "el"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1573 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1574 IntCmp $R0 ${SecSpellCheckEnglish} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1575 StrCpy $R0 "en"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1576 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1577 IntCmp $R0 ${SecSpellCheckEsperanto} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1578 StrCpy $R0 "eo"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1579 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1580 IntCmp $R0 ${SecSpellCheckSpanish} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1581 StrCpy $R0 "es"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1582 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1583 IntCmp $R0 ${SecSpellCheckFaroese} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1584 StrCpy $R0 "fo"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1585 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1586 IntCmp $R0 ${SecSpellCheckFrench} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1587 StrCpy $R0 "fr"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1588 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1589 IntCmp $R0 ${SecSpellCheckItalian} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1590 StrCpy $R0 "it"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1591 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1592 IntCmp $R0 ${SecSpellCheckDutch} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1593 StrCpy $R0 "nl"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1594 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1595 IntCmp $R0 ${SecSpellCheckNorwegian} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1596 StrCpy $R0 "no"
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 IntCmp $R0 ${SecSpellCheckPolish} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1599 StrCpy $R0 "pl"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1600 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1601 IntCmp $R0 ${SecSpellCheckPortuguese} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1602 StrCpy $R0 "pt"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1603 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1604 IntCmp $R0 ${SecSpellCheckRomanian} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1605 StrCpy $R0 "ro"
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 IntCmp $R0 ${SecSpellCheckRussian} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1608 StrCpy $R0 "ru"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1609 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1610 IntCmp $R0 ${SecSpellCheckSlovak} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1611 StrCpy $R0 "sk"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1612 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1613 IntCmp $R0 ${SecSpellCheckSwedish} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1614 StrCpy $R0 "sv"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1615 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1616 IntCmp $R0 ${SecSpellCheckUkrainian} 0 +3 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1617 StrCpy $R0 "uk"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1618 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1619
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1620 SetErrors
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1621
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1622 done:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1623 Exch $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1624 FunctionEnd ;GetLangCodeForSection
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1625
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1626 ; Select and Disable any Sections that have currently installed dictionaries
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1627 Function SelectAndDisableInstalledDictionaries
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1628 Push $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1629 Push $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1630 Push $R2
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1631
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1632 ; Start with the first language dictionary
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1633 IntOp $R0 ${SecSpellCheck} + 1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1634
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1635 start:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1636 ; If it is the end of the section group, stop
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1637 SectionGetFlags $R0 $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1638 IntOp $R2 $R1 & ${SF_SECGRPEND}
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1639 IntCmp $R2 ${SF_SECGRPEND} done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1640
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1641 Push $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1642 Call GetLangCodeForSection
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1643 Pop $R2
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1644 IfErrors end_loop
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1645 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
1646 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
1647 IntOp $R1 $R1 | ${SF_RO} ; Mark Readonly
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1648 IntOp $R1 $R1 | ${SF_SELECTED} ; Select
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1649 SectionSetFlags $R0 $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1650
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1651 end_loop:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1652 IntOp $R0 $R0 + 1 ;Advance to the next section
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1653 Goto start
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1654
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1655 done:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1656 Pop $R2
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1657 Pop $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1658 Pop $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1659 FunctionEnd
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1660
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1661 Function InstallAspellAndDict
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1662 Push $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1663 Exch
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1664 Call GetLangCodeForSection
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1665 Pop $R0 ;This is the language code
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1666 Push $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1667
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1668 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
1669
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1670 retry:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1671 Call InstallAspell
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1672 Pop $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1673 StrCmp $R1 "" +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1674 StrCmp $R1 "cancel" done
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1675 MessageBox MB_RETRYCANCEL "$(PIDGIN_SPELLCHECK_ERROR) : $R1" /SD IDCANCEL IDRETRY retry IDCANCEL done
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1676
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1677 retry_dict:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1678 Push $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1679 Call InstallAspellDictionary
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1680 Pop $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1681 StrCmp $R1 "" +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1682 StrCmp $R1 "cancel" done
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1683 MessageBox MB_RETRYCANCEL "$(PIDGIN_SPELLCHECK_DICT_ERROR) : $R1" /SD IDCANCEL IDRETRY retry_dict
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1684
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1685 done:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1686
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1687 Pop $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1688 Pop $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1689 FunctionEnd
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1690
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1691 Function InstallAspell
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1692 Push $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1693 Push $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1694 Push $R2
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1695
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1696 check:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1697 ClearErrors
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1698 ReadRegDWORD $R0 HKLM ${ASPELL_REG_KEY} "AspellVersion"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1699 IntCmp $R0 15 installed
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1700
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1701 ; 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
1702 StrCmp $R1 "$TEMP\aspell_installer.exe" 0 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1703 StrCpy $R0 $(ASPELL_INSTALL_FAILED)
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1704 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1705
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1706 ; We need to download and install aspell
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1707 StrCpy $R1 "$TEMP\aspell_installer.exe"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1708 StrCpy $R2 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}&dl_pkg=aspell_core"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1709 DetailPrint "Downloading Aspell... ($R2)"
16831
b6cea07c51de Bump the spellchecking download timeout to 10 seconds.
Daniel Atallah <datallah@pidgin.im>
parents: 16830
diff changeset
1710 NSISdl::download /TIMEOUT=10000 $R2 $R1
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1711 Pop $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1712 StrCmp $R0 "success" +2
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1713 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1714 ExecWait '"$R1"'
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1715 Delete $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1716 Goto check ; Check that it is now installed correctly
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1717
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1718 installed: ;Aspell is currently installed, no error message
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1719 DetailPrint "Aspell is installed"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1720 StrCpy $R0 ''
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1721
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1722 done:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1723 Pop $R2
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1724 Pop $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1725 Exch $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1726 FunctionEnd
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1727
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1728 Function InstallAspellDictionary
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1729 Push $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1730 Exch
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1731 Pop $R0 ;This is the language code
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1732 Push $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1733 Push $R2
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1734 Push $R3
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1735 Push $R4
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1736
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1737 check:
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1738 ClearErrors
13532
610313290908 [gaim-migrate @ 15908]
Daniel Atallah <datallah@pidgin.im>
parents: 13392
diff changeset
1739 ReadRegStr $R2 HKLM "${ASPELL_REG_KEY}-$R0" ""
610313290908 [gaim-migrate @ 15908]
Daniel Atallah <datallah@pidgin.im>
parents: 13392
diff changeset
1740 StrCmp $R2 "" 0 installed
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1741
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1742 ; 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
1743 StrCmp $R1 "$TEMP\aspell_dict-$R0.exe" 0 +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1744 StrCpy $R0 $(ASPELL_INSTALL_FAILED)
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1745 Goto done
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1746
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1747 ; We need to download and install aspell
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1748 StrCpy $R1 "$TEMP\aspell_dict-$R0.exe"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15425
diff changeset
1749 StrCpy $R3 "${DOWNLOADER_URL}?version=${PIDGIN_VERSION}&dl_pkg=lang_$R0"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1750 DetailPrint "Downloading the Aspell $R0 Dictionary... ($R3)"
16831
b6cea07c51de Bump the spellchecking download timeout to 10 seconds.
Daniel Atallah <datallah@pidgin.im>
parents: 16830
diff changeset
1751 NSISdl::download /TIMEOUT=10000 $R3 $R1
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1752 Pop $R3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1753 StrCmp $R3 "success" +3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1754 StrCpy $R0 $R3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1755 Goto done
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1756 ; Use a specific temporary $OUTDIR for each dictionary because the installer doesn't clean up after itself
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1757 StrCpy $R4 "$OUTDIR"
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1758 SetOutPath "$TEMP\aspell_dict-$R0"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1759 ExecWait '"$R1"'
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1760 SetOutPath "$R4"
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1761 RMDir /r "$TEMP\aspell_dict-$R0"
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1762 Delete $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1763 Goto check ; Check that it is now installed correctly
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1764
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1765 installed: ;The dictionary is currently installed, no error message
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1766 DetailPrint "Aspell $R0 Dictionary is installed"
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1767 StrCpy $R0 ''
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1768
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1769 done:
25550
2354ce28434c Work around the buggy Aspell dictionary installers by cleaning up after them.
Daniel Atallah <datallah@pidgin.im>
parents: 25517
diff changeset
1770 Pop $R4
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1771 Pop $R3
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1772 Pop $R2
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1773 Pop $R1
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1774 Exch $R0
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 11260
diff changeset
1775 FunctionEnd

mercurial