summaryrefslogtreecommitdiff
path: root/nsis
diff options
context:
space:
mode:
Diffstat (limited to 'nsis')
-rw-r--r--nsis/COPYING.ja.txt420
-rw-r--r--nsis/COPYING.txt420
-rw-r--r--nsis/Makefile.am12
-rw-r--r--nsis/Makefile.in500
-rw-r--r--nsis/README.txt11
-rw-r--r--nsis/compile.bat15
-rw-r--r--nsis/english.nsh71
-rw-r--r--nsis/japanese.nsh71
-rw-r--r--nsis/plugin-updater.nsi173
-rw-r--r--nsis/spanish.nsh72
-rw-r--r--nsis/sylpheed-defs.nsh31
-rw-r--r--nsis/sylpheed.nsi568
-rw-r--r--nsis/update-manager.nsi124
13 files changed, 2488 insertions, 0 deletions
diff --git a/nsis/COPYING.ja.txt b/nsis/COPYING.ja.txt
new file mode 100644
index 0000000..4b13371
--- /dev/null
+++ b/nsis/COPYING.ja.txt
@@ -0,0 +1,420 @@
1Sylpheed is copyrighted 1999-2017 by Hiroyuki Yamamoto and
2Sylpheed Development Team, and distributed under the GNU GPL.
3
4Specific permission is granted for the GPLed code in this distribition to
5be linked to OpenSSL without invoking GPL clause 2(b).
6
7GLib, GTK+, Pango, and LibSylph is distributed under the GNU LGPL.
8
9-------------------------------------------------------------------------------
10 SylFilter - a message filter
11
12 Copyright (C) 2011-2012 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
13 Copyright (C) 2011-2012 Sylpheed Development Team
14
15All rights reserved.
16
17Redistribution and use in source and binary forms, with or without
18modification, are permitted provided that the following conditions are met:
19
20 * Redistributions of source code must retain the above copyright notice,
21 this list of conditions and the following disclaimer.
22 * Redistributions in binary form must reproduce the above copyright notice,
23 this list of conditions and the following disclaimer in the documentation
24 and/or other materials provided with the distribution.
25 * Neither the name of the Sylpheed Development Team nor the names of its
26 contributors may be used to endorse or promote products derived from this
27 software without specific prior written permission.
28
29THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
31LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
32A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
33CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
34EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
35PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
36PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
37LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
38NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
41-------------------------------------------------------------------------------
42bsfilter Copyright (C) 2003, 2004, 2005, 2006 NABEYA Kenichi
43bsfilter is released under the GNU GPL.
44
45--------------------------------------------------------------------------
46 QDBM: Quick Database Manager
47 Copyright (C) 2000-2007 Mikio Hirabayashi
48
49QDBM is released under the terms of the GNU Lesser General Public
50License. See the file COPYING.LGPL.txt for details.
51
52QDBM was written by Mikio Hirabayashi. You can contact the author
53by e-mail to `mikio@fallabs.com'.
54
55-------------------------------------------------------------------------------
56Curl copyright notice
57
58COPYRIGHT AND PERMISSION NOTICE
59
60Copyright (c) 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
61
62All rights reserved.
63
64Permission to use, copy, modify, and distribute this software for any purpose
65with or without fee is hereby granted, provided that the above copyright
66notice and this permission notice appear in all copies.
67
68THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
69IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
70FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
71NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
72DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
73OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
74OR OTHER DEALINGS IN THE SOFTWARE.
75
76Except as contained in this notice, the name of a copyright holder shall not
77be used in advertising or otherwise to promote the sale, use or other dealings
78in this Software without prior written authorization of the copyright holder.
79
80-------------------------------------------------------------------------------
81 GNU GENERAL PUBLIC LICENSE
82 Version 2, June 1991
83
84 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
85 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
86 Everyone is permitted to copy and distribute verbatim copies
87 of this license document, but changing it is not allowed.
88
89 Preamble
90
91 The licenses for most software are designed to take away your
92freedom to share and change it. By contrast, the GNU General Public
93License is intended to guarantee your freedom to share and change free
94software--to make sure the software is free for all its users. This
95General Public License applies to most of the Free Software
96Foundation's software and to any other program whose authors commit to
97using it. (Some other Free Software Foundation software is covered by
98the GNU Library General Public License instead.) You can apply it to
99your programs, too.
100
101 When we speak of free software, we are referring to freedom, not
102price. Our General Public Licenses are designed to make sure that you
103have the freedom to distribute copies of free software (and charge for
104this service if you wish), that you receive source code or can get it
105if you want it, that you can change the software or use pieces of it
106in new free programs; and that you know you can do these things.
107
108 To protect your rights, we need to make restrictions that forbid
109anyone to deny you these rights or to ask you to surrender the rights.
110These restrictions translate to certain responsibilities for you if you
111distribute copies of the software, or if you modify it.
112
113 For example, if you distribute copies of such a program, whether
114gratis or for a fee, you must give the recipients all the rights that
115you have. You must make sure that they, too, receive or can get the
116source code. And you must show them these terms so they know their
117rights.
118
119 We protect your rights with two steps: (1) copyright the software, and
120(2) offer you this license which gives you legal permission to copy,
121distribute and/or modify the software.
122
123 Also, for each author's protection and ours, we want to make certain
124that everyone understands that there is no warranty for this free
125software. If the software is modified by someone else and passed on, we
126want its recipients to know that what they have is not the original, so
127that any problems introduced by others will not reflect on the original
128authors' reputations.
129
130 Finally, any free program is threatened constantly by software
131patents. We wish to avoid the danger that redistributors of a free
132program will individually obtain patent licenses, in effect making the
133program proprietary. To prevent this, we have made it clear that any
134patent must be licensed for everyone's free use or not licensed at all.
135
136 The precise terms and conditions for copying, distribution and
137modification follow.
138
139 GNU GENERAL PUBLIC LICENSE
140 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
141
142 0. This License applies to any program or other work which contains
143a notice placed by the copyright holder saying it may be distributed
144under the terms of this General Public License. The "Program", below,
145refers to any such program or work, and a "work based on the Program"
146means either the Program or any derivative work under copyright law:
147that is to say, a work containing the Program or a portion of it,
148either verbatim or with modifications and/or translated into another
149language. (Hereinafter, translation is included without limitation in
150the term "modification".) Each licensee is addressed as "you".
151
152Activities other than copying, distribution and modification are not
153covered by this License; they are outside its scope. The act of
154running the Program is not restricted, and the output from the Program
155is covered only if its contents constitute a work based on the
156Program (independent of having been made by running the Program).
157Whether that is true depends on what the Program does.
158
159 1. You may copy and distribute verbatim copies of the Program's
160source code as you receive it, in any medium, provided that you
161conspicuously and appropriately publish on each copy an appropriate
162copyright notice and disclaimer of warranty; keep intact all the
163notices that refer to this License and to the absence of any warranty;
164and give any other recipients of the Program a copy of this License
165along with the Program.
166
167You may charge a fee for the physical act of transferring a copy, and
168you may at your option offer warranty protection in exchange for a fee.
169
170 2. You may modify your copy or copies of the Program or any portion
171of it, thus forming a work based on the Program, and copy and
172distribute such modifications or work under the terms of Section 1
173above, provided that you also meet all of these conditions:
174
175 a) You must cause the modified files to carry prominent notices
176 stating that you changed the files and the date of any change.
177
178 b) You must cause any work that you distribute or publish, that in
179 whole or in part contains or is derived from the Program or any
180 part thereof, to be licensed as a whole at no charge to all third
181 parties under the terms of this License.
182
183 c) If the modified program normally reads commands interactively
184 when run, you must cause it, when started running for such
185 interactive use in the most ordinary way, to print or display an
186 announcement including an appropriate copyright notice and a
187 notice that there is no warranty (or else, saying that you provide
188 a warranty) and that users may redistribute the program under
189 these conditions, and telling the user how to view a copy of this
190 License. (Exception: if the Program itself is interactive but
191 does not normally print such an announcement, your work based on
192 the Program is not required to print an announcement.)
193
194These requirements apply to the modified work as a whole. If
195identifiable sections of that work are not derived from the Program,
196and can be reasonably considered independent and separate works in
197themselves, then this License, and its terms, do not apply to those
198sections when you distribute them as separate works. But when you
199distribute the same sections as part of a whole which is a work based
200on the Program, the distribution of the whole must be on the terms of
201this License, whose permissions for other licensees extend to the
202entire whole, and thus to each and every part regardless of who wrote it.
203
204Thus, it is not the intent of this section to claim rights or contest
205your rights to work written entirely by you; rather, the intent is to
206exercise the right to control the distribution of derivative or
207collective works based on the Program.
208
209In addition, mere aggregation of another work not based on the Program
210with the Program (or with a work based on the Program) on a volume of
211a storage or distribution medium does not bring the other work under
212the scope of this License.
213
214 3. You may copy and distribute the Program (or a work based on it,
215under Section 2) in object code or executable form under the terms of
216Sections 1 and 2 above provided that you also do one of the following:
217
218 a) Accompany it with the complete corresponding machine-readable
219 source code, which must be distributed under the terms of Sections
220 1 and 2 above on a medium customarily used for software interchange; or,
221
222 b) Accompany it with a written offer, valid for at least three
223 years, to give any third party, for a charge no more than your
224 cost of physically performing source distribution, a complete
225 machine-readable copy of the corresponding source code, to be
226 distributed under the terms of Sections 1 and 2 above on a medium
227 customarily used for software interchange; or,
228
229 c) Accompany it with the information you received as to the offer
230 to distribute corresponding source code. (This alternative is
231 allowed only for noncommercial distribution and only if you
232 received the program in object code or executable form with such
233 an offer, in accord with Subsection b above.)
234
235The source code for a work means the preferred form of the work for
236making modifications to it. For an executable work, complete source
237code means all the source code for all modules it contains, plus any
238associated interface definition files, plus the scripts used to
239control compilation and installation of the executable. However, as a
240special exception, the source code distributed need not include
241anything that is normally distributed (in either source or binary
242form) with the major components (compiler, kernel, and so on) of the
243operating system on which the executable runs, unless that component
244itself accompanies the executable.
245
246If distribution of executable or object code is made by offering
247access to copy from a designated place, then offering equivalent
248access to copy the source code from the same place counts as
249distribution of the source code, even though third parties are not
250compelled to copy the source along with the object code.
251
252 4. You may not copy, modify, sublicense, or distribute the Program
253except as expressly provided under this License. Any attempt
254otherwise to copy, modify, sublicense or distribute the Program is
255void, and will automatically terminate your rights under this License.
256However, parties who have received copies, or rights, from you under
257this License will not have their licenses terminated so long as such
258parties remain in full compliance.
259
260 5. You are not required to accept this License, since you have not
261signed it. However, nothing else grants you permission to modify or
262distribute the Program or its derivative works. These actions are
263prohibited by law if you do not accept this License. Therefore, by
264modifying or distributing the Program (or any work based on the
265Program), you indicate your acceptance of this License to do so, and
266all its terms and conditions for copying, distributing or modifying
267the Program or works based on it.
268
269 6. Each time you redistribute the Program (or any work based on the
270Program), the recipient automatically receives a license from the
271original licensor to copy, distribute or modify the Program subject to
272these terms and conditions. You may not impose any further
273restrictions on the recipients' exercise of the rights granted herein.
274You are not responsible for enforcing compliance by third parties to
275this License.
276
277 7. If, as a consequence of a court judgment or allegation of patent
278infringement or for any other reason (not limited to patent issues),
279conditions are imposed on you (whether by court order, agreement or
280otherwise) that contradict the conditions of this License, they do not
281excuse you from the conditions of this License. If you cannot
282distribute so as to satisfy simultaneously your obligations under this
283License and any other pertinent obligations, then as a consequence you
284may not distribute the Program at all. For example, if a patent
285license would not permit royalty-free redistribution of the Program by
286all those who receive copies directly or indirectly through you, then
287the only way you could satisfy both it and this License would be to
288refrain entirely from distribution of the Program.
289
290If any portion of this section is held invalid or unenforceable under
291any particular circumstance, the balance of the section is intended to
292apply and the section as a whole is intended to apply in other
293circumstances.
294
295It is not the purpose of this section to induce you to infringe any
296patents or other property right claims or to contest validity of any
297such claims; this section has the sole purpose of protecting the
298integrity of the free software distribution system, which is
299implemented by public license practices. Many people have made
300generous contributions to the wide range of software distributed
301through that system in reliance on consistent application of that
302system; it is up to the author/donor to decide if he or she is willing
303to distribute software through any other system and a licensee cannot
304impose that choice.
305
306This section is intended to make thoroughly clear what is believed to
307be a consequence of the rest of this License.
308
309 8. If the distribution and/or use of the Program is restricted in
310certain countries either by patents or by copyrighted interfaces, the
311original copyright holder who places the Program under this License
312may add an explicit geographical distribution limitation excluding
313those countries, so that distribution is permitted only in or among
314countries not thus excluded. In such case, this License incorporates
315the limitation as if written in the body of this License.
316
317 9. The Free Software Foundation may publish revised and/or new versions
318of the General Public License from time to time. Such new versions will
319be similar in spirit to the present version, but may differ in detail to
320address new problems or concerns.
321
322Each version is given a distinguishing version number. If the Program
323specifies a version number of this License which applies to it and "any
324later version", you have the option of following the terms and conditions
325either of that version or of any later version published by the Free
326Software Foundation. If the Program does not specify a version number of
327this License, you may choose any version ever published by the Free Software
328Foundation.
329
330 10. If you wish to incorporate parts of the Program into other free
331programs whose distribution conditions are different, write to the author
332to ask for permission. For software which is copyrighted by the Free
333Software Foundation, write to the Free Software Foundation; we sometimes
334make exceptions for this. Our decision will be guided by the two goals
335of preserving the free status of all derivatives of our free software and
336of promoting the sharing and reuse of software generally.
337
338 NO WARRANTY
339
340 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
341FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
342OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
343PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
344OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
345MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
346TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
347PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
348REPAIR OR CORRECTION.
349
350 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
351WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
352REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
353INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
354OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
355TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
356YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
357PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
358POSSIBILITY OF SUCH DAMAGES.
359
360 END OF TERMS AND CONDITIONS
361
362 How to Apply These Terms to Your New Programs
363
364 If you develop a new program, and you want it to be of the greatest
365possible use to the public, the best way to achieve this is to make it
366free software which everyone can redistribute and change under these terms.
367
368 To do so, attach the following notices to the program. It is safest
369to attach them to the start of each source file to most effectively
370convey the exclusion of warranty; and each file should have at least
371the "copyright" line and a pointer to where the full notice is found.
372
373 <one line to give the program's name and a brief idea of what it does.>
374 Copyright (C) <year> <name of author>
375
376 This program is free software; you can redistribute it and/or modify
377 it under the terms of the GNU General Public License as published by
378 the Free Software Foundation; either version 2 of the License, or
379 (at your option) any later version.
380
381 This program is distributed in the hope that it will be useful,
382 but WITHOUT ANY WARRANTY; without even the implied warranty of
383 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
384 GNU General Public License for more details.
385
386 You should have received a copy of the GNU General Public License
387 along with this program; if not, write to the Free Software
388 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
389
390
391Also add information on how to contact you by electronic and paper mail.
392
393If the program is interactive, make it output a short notice like this
394when it starts in an interactive mode:
395
396 Gnomovision version 69, Copyright (C) year name of author
397 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
398 This is free software, and you are welcome to redistribute it
399 under certain conditions; type `show c' for details.
400
401The hypothetical commands `show w' and `show c' should show the appropriate
402parts of the General Public License. Of course, the commands you use may
403be called something other than `show w' and `show c'; they could even be
404mouse-clicks or menu items--whatever suits your program.
405
406You should also get your employer (if you work as a programmer) or your
407school, if any, to sign a "copyright disclaimer" for the program, if
408necessary. Here is a sample; alter the names:
409
410 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
411 `Gnomovision' (which makes passes at compilers) written by James Hacker.
412
413 <signature of Ty Coon>, 1 April 1989
414 Ty Coon, President of Vice
415
416This General Public License does not permit incorporating your program into
417proprietary programs. If your program is a subroutine library, you may
418consider it more useful to permit linking proprietary applications with the
419library. If this is what you want to do, use the GNU Library General
420Public License instead of this License.
diff --git a/nsis/COPYING.txt b/nsis/COPYING.txt
new file mode 100644
index 0000000..4b13371
--- /dev/null
+++ b/nsis/COPYING.txt
@@ -0,0 +1,420 @@
1Sylpheed is copyrighted 1999-2017 by Hiroyuki Yamamoto and
2Sylpheed Development Team, and distributed under the GNU GPL.
3
4Specific permission is granted for the GPLed code in this distribition to
5be linked to OpenSSL without invoking GPL clause 2(b).
6
7GLib, GTK+, Pango, and LibSylph is distributed under the GNU LGPL.
8
9-------------------------------------------------------------------------------
10 SylFilter - a message filter
11
12 Copyright (C) 2011-2012 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
13 Copyright (C) 2011-2012 Sylpheed Development Team
14
15All rights reserved.
16
17Redistribution and use in source and binary forms, with or without
18modification, are permitted provided that the following conditions are met:
19
20 * Redistributions of source code must retain the above copyright notice,
21 this list of conditions and the following disclaimer.
22 * Redistributions in binary form must reproduce the above copyright notice,
23 this list of conditions and the following disclaimer in the documentation
24 and/or other materials provided with the distribution.
25 * Neither the name of the Sylpheed Development Team nor the names of its
26 contributors may be used to endorse or promote products derived from this
27 software without specific prior written permission.
28
29THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
31LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
32A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
33CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
34EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
35PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
36PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
37LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
38NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
41-------------------------------------------------------------------------------
42bsfilter Copyright (C) 2003, 2004, 2005, 2006 NABEYA Kenichi
43bsfilter is released under the GNU GPL.
44
45--------------------------------------------------------------------------
46 QDBM: Quick Database Manager
47 Copyright (C) 2000-2007 Mikio Hirabayashi
48
49QDBM is released under the terms of the GNU Lesser General Public
50License. See the file COPYING.LGPL.txt for details.
51
52QDBM was written by Mikio Hirabayashi. You can contact the author
53by e-mail to `mikio@fallabs.com'.
54
55-------------------------------------------------------------------------------
56Curl copyright notice
57
58COPYRIGHT AND PERMISSION NOTICE
59
60Copyright (c) 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
61
62All rights reserved.
63
64Permission to use, copy, modify, and distribute this software for any purpose
65with or without fee is hereby granted, provided that the above copyright
66notice and this permission notice appear in all copies.
67
68THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
69IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
70FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
71NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
72DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
73OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
74OR OTHER DEALINGS IN THE SOFTWARE.
75
76Except as contained in this notice, the name of a copyright holder shall not
77be used in advertising or otherwise to promote the sale, use or other dealings
78in this Software without prior written authorization of the copyright holder.
79
80-------------------------------------------------------------------------------
81 GNU GENERAL PUBLIC LICENSE
82 Version 2, June 1991
83
84 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
85 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
86 Everyone is permitted to copy and distribute verbatim copies
87 of this license document, but changing it is not allowed.
88
89 Preamble
90
91 The licenses for most software are designed to take away your
92freedom to share and change it. By contrast, the GNU General Public
93License is intended to guarantee your freedom to share and change free
94software--to make sure the software is free for all its users. This
95General Public License applies to most of the Free Software
96Foundation's software and to any other program whose authors commit to
97using it. (Some other Free Software Foundation software is covered by
98the GNU Library General Public License instead.) You can apply it to
99your programs, too.
100
101 When we speak of free software, we are referring to freedom, not
102price. Our General Public Licenses are designed to make sure that you
103have the freedom to distribute copies of free software (and charge for
104this service if you wish), that you receive source code or can get it
105if you want it, that you can change the software or use pieces of it
106in new free programs; and that you know you can do these things.
107
108 To protect your rights, we need to make restrictions that forbid
109anyone to deny you these rights or to ask you to surrender the rights.
110These restrictions translate to certain responsibilities for you if you
111distribute copies of the software, or if you modify it.
112
113 For example, if you distribute copies of such a program, whether
114gratis or for a fee, you must give the recipients all the rights that
115you have. You must make sure that they, too, receive or can get the
116source code. And you must show them these terms so they know their
117rights.
118
119 We protect your rights with two steps: (1) copyright the software, and
120(2) offer you this license which gives you legal permission to copy,
121distribute and/or modify the software.
122
123 Also, for each author's protection and ours, we want to make certain
124that everyone understands that there is no warranty for this free
125software. If the software is modified by someone else and passed on, we
126want its recipients to know that what they have is not the original, so
127that any problems introduced by others will not reflect on the original
128authors' reputations.
129
130 Finally, any free program is threatened constantly by software
131patents. We wish to avoid the danger that redistributors of a free
132program will individually obtain patent licenses, in effect making the
133program proprietary. To prevent this, we have made it clear that any
134patent must be licensed for everyone's free use or not licensed at all.
135
136 The precise terms and conditions for copying, distribution and
137modification follow.
138
139 GNU GENERAL PUBLIC LICENSE
140 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
141
142 0. This License applies to any program or other work which contains
143a notice placed by the copyright holder saying it may be distributed
144under the terms of this General Public License. The "Program", below,
145refers to any such program or work, and a "work based on the Program"
146means either the Program or any derivative work under copyright law:
147that is to say, a work containing the Program or a portion of it,
148either verbatim or with modifications and/or translated into another
149language. (Hereinafter, translation is included without limitation in
150the term "modification".) Each licensee is addressed as "you".
151
152Activities other than copying, distribution and modification are not
153covered by this License; they are outside its scope. The act of
154running the Program is not restricted, and the output from the Program
155is covered only if its contents constitute a work based on the
156Program (independent of having been made by running the Program).
157Whether that is true depends on what the Program does.
158
159 1. You may copy and distribute verbatim copies of the Program's
160source code as you receive it, in any medium, provided that you
161conspicuously and appropriately publish on each copy an appropriate
162copyright notice and disclaimer of warranty; keep intact all the
163notices that refer to this License and to the absence of any warranty;
164and give any other recipients of the Program a copy of this License
165along with the Program.
166
167You may charge a fee for the physical act of transferring a copy, and
168you may at your option offer warranty protection in exchange for a fee.
169
170 2. You may modify your copy or copies of the Program or any portion
171of it, thus forming a work based on the Program, and copy and
172distribute such modifications or work under the terms of Section 1
173above, provided that you also meet all of these conditions:
174
175 a) You must cause the modified files to carry prominent notices
176 stating that you changed the files and the date of any change.
177
178 b) You must cause any work that you distribute or publish, that in
179 whole or in part contains or is derived from the Program or any
180 part thereof, to be licensed as a whole at no charge to all third
181 parties under the terms of this License.
182
183 c) If the modified program normally reads commands interactively
184 when run, you must cause it, when started running for such
185 interactive use in the most ordinary way, to print or display an
186 announcement including an appropriate copyright notice and a
187 notice that there is no warranty (or else, saying that you provide
188 a warranty) and that users may redistribute the program under
189 these conditions, and telling the user how to view a copy of this
190 License. (Exception: if the Program itself is interactive but
191 does not normally print such an announcement, your work based on
192 the Program is not required to print an announcement.)
193
194These requirements apply to the modified work as a whole. If
195identifiable sections of that work are not derived from the Program,
196and can be reasonably considered independent and separate works in
197themselves, then this License, and its terms, do not apply to those
198sections when you distribute them as separate works. But when you
199distribute the same sections as part of a whole which is a work based
200on the Program, the distribution of the whole must be on the terms of
201this License, whose permissions for other licensees extend to the
202entire whole, and thus to each and every part regardless of who wrote it.
203
204Thus, it is not the intent of this section to claim rights or contest
205your rights to work written entirely by you; rather, the intent is to
206exercise the right to control the distribution of derivative or
207collective works based on the Program.
208
209In addition, mere aggregation of another work not based on the Program
210with the Program (or with a work based on the Program) on a volume of
211a storage or distribution medium does not bring the other work under
212the scope of this License.
213
214 3. You may copy and distribute the Program (or a work based on it,
215under Section 2) in object code or executable form under the terms of
216Sections 1 and 2 above provided that you also do one of the following:
217
218 a) Accompany it with the complete corresponding machine-readable
219 source code, which must be distributed under the terms of Sections
220 1 and 2 above on a medium customarily used for software interchange; or,
221
222 b) Accompany it with a written offer, valid for at least three
223 years, to give any third party, for a charge no more than your
224 cost of physically performing source distribution, a complete
225 machine-readable copy of the corresponding source code, to be
226 distributed under the terms of Sections 1 and 2 above on a medium
227 customarily used for software interchange; or,
228
229 c) Accompany it with the information you received as to the offer
230 to distribute corresponding source code. (This alternative is
231 allowed only for noncommercial distribution and only if you
232 received the program in object code or executable form with such
233 an offer, in accord with Subsection b above.)
234
235The source code for a work means the preferred form of the work for
236making modifications to it. For an executable work, complete source
237code means all the source code for all modules it contains, plus any
238associated interface definition files, plus the scripts used to
239control compilation and installation of the executable. However, as a
240special exception, the source code distributed need not include
241anything that is normally distributed (in either source or binary
242form) with the major components (compiler, kernel, and so on) of the
243operating system on which the executable runs, unless that component
244itself accompanies the executable.
245
246If distribution of executable or object code is made by offering
247access to copy from a designated place, then offering equivalent
248access to copy the source code from the same place counts as
249distribution of the source code, even though third parties are not
250compelled to copy the source along with the object code.
251
252 4. You may not copy, modify, sublicense, or distribute the Program
253except as expressly provided under this License. Any attempt
254otherwise to copy, modify, sublicense or distribute the Program is
255void, and will automatically terminate your rights under this License.
256However, parties who have received copies, or rights, from you under
257this License will not have their licenses terminated so long as such
258parties remain in full compliance.
259
260 5. You are not required to accept this License, since you have not
261signed it. However, nothing else grants you permission to modify or
262distribute the Program or its derivative works. These actions are
263prohibited by law if you do not accept this License. Therefore, by
264modifying or distributing the Program (or any work based on the
265Program), you indicate your acceptance of this License to do so, and
266all its terms and conditions for copying, distributing or modifying
267the Program or works based on it.
268
269 6. Each time you redistribute the Program (or any work based on the
270Program), the recipient automatically receives a license from the
271original licensor to copy, distribute or modify the Program subject to
272these terms and conditions. You may not impose any further
273restrictions on the recipients' exercise of the rights granted herein.
274You are not responsible for enforcing compliance by third parties to
275this License.
276
277 7. If, as a consequence of a court judgment or allegation of patent
278infringement or for any other reason (not limited to patent issues),
279conditions are imposed on you (whether by court order, agreement or
280otherwise) that contradict the conditions of this License, they do not
281excuse you from the conditions of this License. If you cannot
282distribute so as to satisfy simultaneously your obligations under this
283License and any other pertinent obligations, then as a consequence you
284may not distribute the Program at all. For example, if a patent
285license would not permit royalty-free redistribution of the Program by
286all those who receive copies directly or indirectly through you, then
287the only way you could satisfy both it and this License would be to
288refrain entirely from distribution of the Program.
289
290If any portion of this section is held invalid or unenforceable under
291any particular circumstance, the balance of the section is intended to
292apply and the section as a whole is intended to apply in other
293circumstances.
294
295It is not the purpose of this section to induce you to infringe any
296patents or other property right claims or to contest validity of any
297such claims; this section has the sole purpose of protecting the
298integrity of the free software distribution system, which is
299implemented by public license practices. Many people have made
300generous contributions to the wide range of software distributed
301through that system in reliance on consistent application of that
302system; it is up to the author/donor to decide if he or she is willing
303to distribute software through any other system and a licensee cannot
304impose that choice.
305
306This section is intended to make thoroughly clear what is believed to
307be a consequence of the rest of this License.
308
309 8. If the distribution and/or use of the Program is restricted in
310certain countries either by patents or by copyrighted interfaces, the
311original copyright holder who places the Program under this License
312may add an explicit geographical distribution limitation excluding
313those countries, so that distribution is permitted only in or among
314countries not thus excluded. In such case, this License incorporates
315the limitation as if written in the body of this License.
316
317 9. The Free Software Foundation may publish revised and/or new versions
318of the General Public License from time to time. Such new versions will
319be similar in spirit to the present version, but may differ in detail to
320address new problems or concerns.
321
322Each version is given a distinguishing version number. If the Program
323specifies a version number of this License which applies to it and "any
324later version", you have the option of following the terms and conditions
325either of that version or of any later version published by the Free
326Software Foundation. If the Program does not specify a version number of
327this License, you may choose any version ever published by the Free Software
328Foundation.
329
330 10. If you wish to incorporate parts of the Program into other free
331programs whose distribution conditions are different, write to the author
332to ask for permission. For software which is copyrighted by the Free
333Software Foundation, write to the Free Software Foundation; we sometimes
334make exceptions for this. Our decision will be guided by the two goals
335of preserving the free status of all derivatives of our free software and
336of promoting the sharing and reuse of software generally.
337
338 NO WARRANTY
339
340 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
341FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
342OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
343PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
344OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
345MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
346TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
347PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
348REPAIR OR CORRECTION.
349
350 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
351WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
352REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
353INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
354OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
355TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
356YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
357PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
358POSSIBILITY OF SUCH DAMAGES.
359
360 END OF TERMS AND CONDITIONS
361
362 How to Apply These Terms to Your New Programs
363
364 If you develop a new program, and you want it to be of the greatest
365possible use to the public, the best way to achieve this is to make it
366free software which everyone can redistribute and change under these terms.
367
368 To do so, attach the following notices to the program. It is safest
369to attach them to the start of each source file to most effectively
370convey the exclusion of warranty; and each file should have at least
371the "copyright" line and a pointer to where the full notice is found.
372
373 <one line to give the program's name and a brief idea of what it does.>
374 Copyright (C) <year> <name of author>
375
376 This program is free software; you can redistribute it and/or modify
377 it under the terms of the GNU General Public License as published by
378 the Free Software Foundation; either version 2 of the License, or
379 (at your option) any later version.
380
381 This program is distributed in the hope that it will be useful,
382 but WITHOUT ANY WARRANTY; without even the implied warranty of
383 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
384 GNU General Public License for more details.
385
386 You should have received a copy of the GNU General Public License
387 along with this program; if not, write to the Free Software
388 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
389
390
391Also add information on how to contact you by electronic and paper mail.
392
393If the program is interactive, make it output a short notice like this
394when it starts in an interactive mode:
395
396 Gnomovision version 69, Copyright (C) year name of author
397 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
398 This is free software, and you are welcome to redistribute it
399 under certain conditions; type `show c' for details.
400
401The hypothetical commands `show w' and `show c' should show the appropriate
402parts of the General Public License. Of course, the commands you use may
403be called something other than `show w' and `show c'; they could even be
404mouse-clicks or menu items--whatever suits your program.
405
406You should also get your employer (if you work as a programmer) or your
407school, if any, to sign a "copyright disclaimer" for the program, if
408necessary. Here is a sample; alter the names:
409
410 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
411 `Gnomovision' (which makes passes at compilers) written by James Hacker.
412
413 <signature of Ty Coon>, 1 April 1989
414 Ty Coon, President of Vice
415
416This General Public License does not permit incorporating your program into
417proprietary programs. If your program is a subroutine library, you may
418consider it more useful to permit linking proprietary applications with the
419library. If this is what you want to do, use the GNU Library General
420Public License instead of this License.
diff --git a/nsis/Makefile.am b/nsis/Makefile.am
new file mode 100644
index 0000000..e3d137a
--- /dev/null
+++ b/nsis/Makefile.am
@@ -0,0 +1,12 @@
1EXTRA_DIST = \
2 COPYING.ja.txt \
3 COPYING.txt \
4 README.txt \
5 compile.bat \
6 english.nsh \
7 japanese.nsh \
8 plugin-updater.nsi \
9 spanish.nsh \
10 sylpheed-defs.nsh \
11 sylpheed.nsi \
12 update-manager.nsi
diff --git a/nsis/Makefile.in b/nsis/Makefile.in
new file mode 100644
index 0000000..e3d177b
--- /dev/null
+++ b/nsis/Makefile.in
@@ -0,0 +1,500 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16VPATH = @srcdir@
17am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
62pkgdatadir = $(datadir)/@PACKAGE@
63pkgincludedir = $(includedir)/@PACKAGE@
64pkglibdir = $(libdir)/@PACKAGE@
65pkglibexecdir = $(libexecdir)/@PACKAGE@
66am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
67install_sh_DATA = $(install_sh) -c -m 644
68install_sh_PROGRAM = $(install_sh) -c
69install_sh_SCRIPT = $(install_sh) -c
70INSTALL_HEADER = $(INSTALL_DATA)
71transform = $(program_transform_name)
72NORMAL_INSTALL = :
73PRE_INSTALL = :
74POST_INSTALL = :
75NORMAL_UNINSTALL = :
76PRE_UNINSTALL = :
77POST_UNINSTALL = :
78build_triplet = @build@
79host_triplet = @host@
80target_triplet = @target@
81subdir = nsis
82DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/mkinstalldirs
84ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
85am__aclocal_m4_deps = $(top_srcdir)/ac/aclocal-include.m4 \
86 $(top_srcdir)/ac/gnupg-check-typedef.m4 \
87 $(top_srcdir)/configure.ac
88am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
89 $(ACLOCAL_M4)
90mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
91CONFIG_HEADER = $(top_builddir)/config.h
92CONFIG_CLEAN_FILES =
93CONFIG_CLEAN_VPATH_FILES =
94AM_V_P = $(am__v_P_@AM_V@)
95am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
96am__v_P_0 = false
97am__v_P_1 = :
98AM_V_GEN = $(am__v_GEN_@AM_V@)
99am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
100am__v_GEN_0 = @echo " GEN " $@;
101am__v_GEN_1 =
102AM_V_at = $(am__v_at_@AM_V@)
103am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
104am__v_at_0 = @
105am__v_at_1 =
106SOURCES =
107DIST_SOURCES =
108am__can_run_installinfo = \
109 case $$AM_UPDATE_INFO_DIR in \
110 n|no|NO) false;; \
111 *) (install-info --version) >/dev/null 2>&1;; \
112 esac
113am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
114DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
115ACLOCAL = @ACLOCAL@
116ALLOCA = @ALLOCA@
117AMTAR = @AMTAR@
118AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
119AR = @AR@
120AUTOCONF = @AUTOCONF@
121AUTOHEADER = @AUTOHEADER@
122AUTOMAKE = @AUTOMAKE@
123AWK = @AWK@
124BUILD_REVISION = @BUILD_REVISION@
125CATALOGS = @CATALOGS@
126CATOBJEXT = @CATOBJEXT@
127CC = @CC@
128CCDEPMODE = @CCDEPMODE@
129CFLAGS = @CFLAGS@
130CPP = @CPP@
131CPPFLAGS = @CPPFLAGS@
132CYGPATH_W = @CYGPATH_W@
133DATADIRNAME = @DATADIRNAME@
134DEFS = @DEFS@
135DEPDIR = @DEPDIR@
136DEVEL_VERSION = @DEVEL_VERSION@
137DLLTOOL = @DLLTOOL@
138DSYMUTIL = @DSYMUTIL@
139DUMPBIN = @DUMPBIN@
140ECHO_C = @ECHO_C@
141ECHO_N = @ECHO_N@
142ECHO_T = @ECHO_T@
143EGREP = @EGREP@
144EXEEXT = @EXEEXT@
145EXTRA_VERSION = @EXTRA_VERSION@
146FGREP = @FGREP@
147GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
148GLIB_CFLAGS = @GLIB_CFLAGS@
149GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
150GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
151GLIB_LIBS = @GLIB_LIBS@
152GLIB_MKENUMS = @GLIB_MKENUMS@
153GMOFILES = @GMOFILES@
154GMSGFMT = @GMSGFMT@
155GOBJECT_QUERY = @GOBJECT_QUERY@
156GPGME_CFLAGS = @GPGME_CFLAGS@
157GPGME_CONFIG = @GPGME_CONFIG@
158GPGME_LIBS = @GPGME_LIBS@
159GREP = @GREP@
160GTK_CFLAGS = @GTK_CFLAGS@
161GTK_LIBS = @GTK_LIBS@
162INSTALL = @INSTALL@
163INSTALL_DATA = @INSTALL_DATA@
164INSTALL_PROGRAM = @INSTALL_PROGRAM@
165INSTALL_SCRIPT = @INSTALL_SCRIPT@
166INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
167INSTOBJEXT = @INSTOBJEXT@
168INTLLIBS = @INTLLIBS@
169LD = @LD@
170LDAP_LIBS = @LDAP_LIBS@
171LDFLAGS = @LDFLAGS@
172LEX = @LEX@
173LEXLIB = @LEXLIB@
174LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
175LIBICONV = @LIBICONV@
176LIBOBJS = @LIBOBJS@
177LIBS = @LIBS@
178LIBSYLPH_CFLAGS = @LIBSYLPH_CFLAGS@
179LIBSYLPH_LIBS = @LIBSYLPH_LIBS@
180LIBTOOL = @LIBTOOL@
181LIPO = @LIPO@
182LN_S = @LN_S@
183LTLIBICONV = @LTLIBICONV@
184LTLIBOBJS = @LTLIBOBJS@
185LT_AGE = @LT_AGE@
186LT_CURRENT = @LT_CURRENT@
187LT_RELEASE = @LT_RELEASE@
188LT_REVISION = @LT_REVISION@
189MAINT = @MAINT@
190MAJOR_VERSION = @MAJOR_VERSION@
191MAKEINFO = @MAKEINFO@
192MANIFEST_TOOL = @MANIFEST_TOOL@
193MICRO_VERSION = @MICRO_VERSION@
194MINOR_VERSION = @MINOR_VERSION@
195MKDIR_P = @MKDIR_P@
196MKINSTALLDIRS = @MKINSTALLDIRS@
197MSGFMT = @MSGFMT@
198MSGFMT_OPTS = @MSGFMT_OPTS@
199NM = @NM@
200NMEDIT = @NMEDIT@
201OBJDUMP = @OBJDUMP@
202OBJEXT = @OBJEXT@
203OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
204OPENSSL_LIBS = @OPENSSL_LIBS@
205OTOOL = @OTOOL@
206OTOOL64 = @OTOOL64@
207PACKAGE = @PACKAGE@
208PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
209PACKAGE_NAME = @PACKAGE_NAME@
210PACKAGE_STRING = @PACKAGE_STRING@
211PACKAGE_TARNAME = @PACKAGE_TARNAME@
212PACKAGE_URL = @PACKAGE_URL@
213PACKAGE_VERSION = @PACKAGE_VERSION@
214PATH_SEPARATOR = @PATH_SEPARATOR@
215PKG_CONFIG = @PKG_CONFIG@
216PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
217PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
218POFILES = @POFILES@
219POSUB = @POSUB@
220PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
221PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
222RANLIB = @RANLIB@
223SED = @SED@
224SET_MAKE = @SET_MAKE@
225SHELL = @SHELL@
226STRIP = @STRIP@
227SYLPHEED_LIBS = @SYLPHEED_LIBS@
228USE_NLS = @USE_NLS@
229VERSION = @VERSION@
230WINDRES = @WINDRES@
231XGETTEXT = @XGETTEXT@
232YACC = @YACC@
233YFLAGS = @YFLAGS@
234abs_builddir = @abs_builddir@
235abs_srcdir = @abs_srcdir@
236abs_top_builddir = @abs_top_builddir@
237abs_top_srcdir = @abs_top_srcdir@
238ac_ct_AR = @ac_ct_AR@
239ac_ct_CC = @ac_ct_CC@
240ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
241am__include = @am__include@
242am__leading_dot = @am__leading_dot@
243am__quote = @am__quote@
244am__tar = @am__tar@
245am__untar = @am__untar@
246bindir = @bindir@
247build = @build@
248build_alias = @build_alias@
249build_cpu = @build_cpu@
250build_os = @build_os@
251build_vendor = @build_vendor@
252builddir = @builddir@
253datadir = @datadir@
254datarootdir = @datarootdir@
255docdir = @docdir@
256dvidir = @dvidir@
257exec_prefix = @exec_prefix@
258faqdir = @faqdir@
259host = @host@
260host_alias = @host_alias@
261host_cpu = @host_cpu@
262host_os = @host_os@
263host_vendor = @host_vendor@
264htmldir = @htmldir@
265includedir = @includedir@
266infodir = @infodir@
267install_sh = @install_sh@
268libdir = @libdir@
269libexecdir = @libexecdir@
270localedir = @localedir@
271localstatedir = @localstatedir@
272mandir = @mandir@
273manualdir = @manualdir@
274mkdir_p = @mkdir_p@
275oldincludedir = @oldincludedir@
276pdfdir = @pdfdir@
277plugindir = @plugindir@
278prefix = @prefix@
279program_transform_name = @program_transform_name@
280psdir = @psdir@
281sbindir = @sbindir@
282sharedstatedir = @sharedstatedir@
283srcdir = @srcdir@
284sysconfdir = @sysconfdir@
285target = @target@
286target_alias = @target_alias@
287target_cpu = @target_cpu@
288target_os = @target_os@
289target_vendor = @target_vendor@
290themedir = @themedir@
291top_build_prefix = @top_build_prefix@
292top_builddir = @top_builddir@
293top_srcdir = @top_srcdir@
294EXTRA_DIST = \
295 COPYING.ja.txt \
296 COPYING.txt \
297 README.txt \
298 compile.bat \
299 english.nsh \
300 japanese.nsh \
301 plugin-updater.nsi \
302 spanish.nsh \
303 sylpheed-defs.nsh \
304 sylpheed.nsi \
305 update-manager.nsi
306
307all: all-am
308
309.SUFFIXES:
310$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
311 @for dep in $?; do \
312 case '$(am__configure_deps)' in \
313 *$$dep*) \
314 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
315 && { if test -f $@; then exit 0; else break; fi; }; \
316 exit 1;; \
317 esac; \
318 done; \
319 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign nsis/Makefile'; \
320 $(am__cd) $(top_srcdir) && \
321 $(AUTOMAKE) --foreign nsis/Makefile
322.PRECIOUS: Makefile
323Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
324 @case '$?' in \
325 *config.status*) \
326 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
327 *) \
328 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
329 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
330 esac;
331
332$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
333 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
334
335$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
336 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
337$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
338 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
339$(am__aclocal_m4_deps):
340
341mostlyclean-libtool:
342 -rm -f *.lo
343
344clean-libtool:
345 -rm -rf .libs _libs
346tags TAGS:
347
348ctags CTAGS:
349
350cscope cscopelist:
351
352
353distdir: $(DISTFILES)
354 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
355 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
356 list='$(DISTFILES)'; \
357 dist_files=`for file in $$list; do echo $$file; done | \
358 sed -e "s|^$$srcdirstrip/||;t" \
359 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
360 case $$dist_files in \
361 */*) $(MKDIR_P) `echo "$$dist_files" | \
362 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
363 sort -u` ;; \
364 esac; \
365 for file in $$dist_files; do \
366 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
367 if test -d $$d/$$file; then \
368 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
369 if test -d "$(distdir)/$$file"; then \
370 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
371 fi; \
372 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
373 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
374 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
375 fi; \
376 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
377 else \
378 test -f "$(distdir)/$$file" \
379 || cp -p $$d/$$file "$(distdir)/$$file" \
380 || exit 1; \
381 fi; \
382 done
383check-am: all-am
384check: check-am
385all-am: Makefile
386installdirs:
387install: install-am
388install-exec: install-exec-am
389install-data: install-data-am
390uninstall: uninstall-am
391
392install-am: all-am
393 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
394
395installcheck: installcheck-am
396install-strip:
397 if test -z '$(STRIP)'; then \
398 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
399 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
400 install; \
401 else \
402 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
403 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
404 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
405 fi
406mostlyclean-generic:
407
408clean-generic:
409
410distclean-generic:
411 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
412 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
413
414maintainer-clean-generic:
415 @echo "This command is intended for maintainers to use"
416 @echo "it deletes files that may require special tools to rebuild."
417clean: clean-am
418
419clean-am: clean-generic clean-libtool mostlyclean-am
420
421distclean: distclean-am
422 -rm -f Makefile
423distclean-am: clean-am distclean-generic
424
425dvi: dvi-am
426
427dvi-am:
428
429html: html-am
430
431html-am:
432
433info: info-am
434
435info-am:
436
437install-data-am:
438
439install-dvi: install-dvi-am
440
441install-dvi-am:
442
443install-exec-am:
444
445install-html: install-html-am
446
447install-html-am:
448
449install-info: install-info-am
450
451install-info-am:
452
453install-man:
454
455install-pdf: install-pdf-am
456
457install-pdf-am:
458
459install-ps: install-ps-am
460
461install-ps-am:
462
463installcheck-am:
464
465maintainer-clean: maintainer-clean-am
466 -rm -f Makefile
467maintainer-clean-am: distclean-am maintainer-clean-generic
468
469mostlyclean: mostlyclean-am
470
471mostlyclean-am: mostlyclean-generic mostlyclean-libtool
472
473pdf: pdf-am
474
475pdf-am:
476
477ps: ps-am
478
479ps-am:
480
481uninstall-am:
482
483.MAKE: install-am install-strip
484
485.PHONY: all all-am check check-am clean clean-generic clean-libtool \
486 cscopelist-am ctags-am distclean distclean-generic \
487 distclean-libtool distdir dvi dvi-am html html-am info info-am \
488 install install-am install-data install-data-am install-dvi \
489 install-dvi-am install-exec install-exec-am install-html \
490 install-html-am install-info install-info-am install-man \
491 install-pdf install-pdf-am install-ps install-ps-am \
492 install-strip installcheck installcheck-am installdirs \
493 maintainer-clean maintainer-clean-generic mostlyclean \
494 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
495 tags-am uninstall uninstall-am
496
497
498# Tell versions [3.59,3.63) of GNU make to not export all variables.
499# Otherwise a system limit (for SysV at least) may be exceeded.
500.NOEXPORT:
diff --git a/nsis/README.txt b/nsis/README.txt
new file mode 100644
index 0000000..d056d05
--- /dev/null
+++ b/nsis/README.txt
@@ -0,0 +1,11 @@
1NSIS scripts for Sylpheed installer
2===================================
3
4How to compile installer:
5
61. Install latest version of NSIS.
72. Install NsProcess plug-in into NSIS.
83. Install nsisunz plug-in (http://nsis.sourceforge.net/Nsisunz_plug-in).
94. Make Sylpheed/ bsfilter/ plugins/ folders here.
105. Run compile.bat.
116. If successful, Sylpheed-x.y.z_setup.exe should be made.
diff --git a/nsis/compile.bat b/nsis/compile.bat
new file mode 100644
index 0000000..cd45104
--- /dev/null
+++ b/nsis/compile.bat
@@ -0,0 +1,15 @@
1PATH "C:\Program Files\NSIS";%PATH%
2
3makensis plugin-updater.nsi
4move plugin-updater.exe Sylpheed
5makensis update-manager.nsi
6move update-manager.exe Sylpheed
7makensis sylpheed.nsi
8
9rem makensis /DSYLPHEED_PRO plugin-updater.nsi
10rem move plugin-updater.exe Sylpheed
11rem makensis /DSYLPHEED_PRO update-manager.nsi
12rem move update-manager.exe Sylpheed
13rem makensis /DSYLPHEED_PRO sylpheed.nsi
14
15pause
diff --git a/nsis/english.nsh b/nsis/english.nsh
new file mode 100644
index 0000000..a715ca8
--- /dev/null
+++ b/nsis/english.nsh
@@ -0,0 +1,71 @@
1LicenseLangString license ${LANG_ENGLISH} "COPYING.txt"
2LangString readme ${LANG_ENGLISH} "Show README"
3LangString jump ${LANG_ENGLISH} "Show ${INST_NAME}'s Website"
4LangString plugins ${LANG_ENGLISH} "Sylpheed Plug-ins"
5LangString attachment_tool_plugin ${LANG_ENGLISH} "attachment_tool"
6LangString autoenc_plugin ${LANG_ENGLISH} "autoenc plugin"
7LangString desktop_shortcut ${LANG_ENGLISH} "Shortcut for Desktop"
8LangString quick_shortcut ${LANG_ENGLISH} "Shortcut for Quick Launch"
9LangString handler ${LANG_ENGLISH} "Register associations"
10LangString sylpheed_description ${LANG_ENGLISH} "Sylpheed itself"
11LangString plugins_description ${LANG_ENGLISH} "Plug-ins for Sylpheed"
12LangString sylpheed_pro_description ${LANG_ENGLISH} "Sylpheed Pro Full-text Search Plug-in"
13LangString attachment_tool_plugin_description ${LANG_ENGLISH} "attachment_tool plugin"
14LangString autoenc_plugin_description ${LANG_ENGLISH} "autoenc plugin"
15LangString sylfilter_description ${LANG_ENGLISH} "SylFilter bayesian spam filter"
16LangString bsfilter_description ${LANG_ENGLISH} "bsfilter bayesian spam filter"
17LangString desktop_shortcut_description ${LANG_ENGLISH} "Create shortcut for Desktop (current user only)"
18LangString quick_shortcut_description ${LANG_ENGLISH} "Create shortcut for Quick Launch (current user only)"
19LangString handler_description ${LANG_ENGLISH} "Start Sylpheed when a mailto: link \
20 is clicked on Web browser etc., or an eml file is opened"
21LangString un_sylpheed_description ${LANG_ENGLISH} "Sylpheed itself"
22LangString un_plugins_description ${LANG_ENGLISH} "Plug-ins for Sylpheed"
23LangString un_sylpheed_pro_description ${LANG_ENGLISH} "Sylpheed Pro Full-text Search Plug-in"
24LangString un_attachment_tool_plugin_description ${LANG_ENGLISH} "attachment_tool plugin"
25LangString un_autoenc_plugin_description ${LANG_ENGLISH} "autoenc plugin"
26LangString un_sylfilter_description ${LANG_ENGLISH} "SylFilter bayesian spam filter"
27LangString un_bsfilter_description ${LANG_ENGLISH} "bsfilter bayesian spam filter"
28LangString un_desktop_shortcut_description ${LANG_ENGLISH} "Delete shortcut for Desktop (current user only)"
29LangString un_quick_shortcut_description ${LANG_ENGLISH} "Delete shortcut for Quick Launch (current user only)"
30LangString delete_caution ${LANG_ENGLISH} "Sylpheed is already installed. $\n$\nClick `OK` to remove the \
31 previous version or `Cancel` to cancel this upgrade."
32LangString app_running ${LANG_ENGLISH} "Sylpheed is running. Please quit Sylpheed before installing."
33LangString app_running_uninst ${LANG_ENGLISH} "Sylpheed is running. Please quit Sylpheed before uninstalling."
34
35LangString sylpheed_manual_lnk ${LANG_ENGLISH} "Sylpheed Manual"
36LangString sylpheed_debug_mode_lnk ${LANG_ENGLISH} "Sylpheed (debug mode)"
37LangString sylpheed_safe_mode_lnk ${LANG_ENGLISH} "Sylpheed (safe mode)"
38LangString sylpheed_all_quit_lnk ${LANG_ENGLISH} "Sylpheed All Quit"
39LangString sylpheed_homepage_lnk ${LANG_ENGLISH} "Sylpheed Homepage"
40LangString uninstall_lnk ${LANG_ENGLISH} "Uninstall"
41
42LangString downloading ${LANG_ENGLISH} "Downloading %s"
43LangString connecting ${LANG_ENGLISH} "Connecting ..."
44LangString second ${LANG_ENGLISH} " (1 second remaining)"
45LangString minute ${LANG_ENGLISH} " (1 minute remaining)"
46LangString hour ${LANG_ENGLISH} " (1 hour remaining)"
47LangString seconds ${LANG_ENGLISH} " (%u seconds remaining)"
48LangString minutes ${LANG_ENGLISH} " (%u minutes remaining)"
49LangString hours ${LANG_ENGLISH} " (%u hours remaining)"
50LangString progress ${LANG_ENGLISH} "%skB (%d%%) of %skB @ %u.%01ukB/s"
51LangString download_failed ${LANG_ENGLISH} "Download Failed:"
52LangString update_confirm ${LANG_ENGLISH} "Update $(^NameDA)?"
53LangString kill_and_update_confirm ${LANG_ENGLISH} "Quit Sylpheed, and update $(^NameDA)?"
54LangString un_confirmpage_text_top ${LANG_ENGLISH} "$(^NameDA) will be uninstalled from the following folder. $_CLICK$\r$\n* The user data which exists in $APPDATA\${PRODUCT_NAME} will not be deleted."
55LangString MUI_UNTEXT_FINISH_INFO_TEXT ${LANG_ENGLISH} "$(^NameDA) has been uninstalled from your computer.$\r$\n$\r$\nClick Finish to close this wizard."
56;--------------------------------
57; Localized strings for use with nsisunz
58; The '%f' in the string is replaced with the filename on run-time.
59; "%c" and "%u" is replaced with compressed size and uncompressed size
60; respectively.
61LangString plugin_updater_nsisunz_text ${LANG_ENGLISH} "Extract: %f (%c -> %u)"
62LangString plugin_updater_completed_text ${LANG_ENGLISH} "Plugin update completed!"
63LangString plugin_updater_header ${LANG_ENGLISH} "Plugin Updater"
64LangString plugin_updater_header_description ${LANG_ENGLISH} "Select plugins to update"
65LangString plugin_updater_must_select ${LANG_ENGLISH} "You must select at least one plugin!"
66LangString plugin_updater_extracting ${LANG_ENGLISH} "Extracting"
67LangString plugin_updater_extracting_files ${LANG_ENGLISH} "Extracting files"
68LangString plugin_updater_extracted ${LANG_ENGLISH} "Extracted"
69LangString plugin_updater_extracted_description ${LANG_ENGLISH} "Thes files has been extracted"
70LangString plugin_updater_extraction_aborted ${LANG_ENGLISH} "Extraction aborted"
71LangString plugin_updater_extraction_aborted_description ${LANG_ENGLISH} "The extraction process was aborted"
diff --git a/nsis/japanese.nsh b/nsis/japanese.nsh
new file mode 100644
index 0000000..a93b604
--- /dev/null
+++ b/nsis/japanese.nsh
@@ -0,0 +1,71 @@
1LicenseLangString license ${LANG_JAPANESE} "COPYING.ja.txt"
2LangString readme ${LANG_JAPANESE} "README‚ð•\ަ"
3LangString jump ${LANG_JAPANESE} "${INST_NAME}‚ÌWebƒTƒCƒg‚ð•\ަ‚·‚é"
4LangString plugins ${LANG_JAPANESE} "Sylpheed ƒvƒ‰ƒOƒCƒ“"
5LangString attachment_tool_plugin ${LANG_JAPANESE} "attachment_tool"
6LangString autoenc_plugin ${LANG_JAPANESE} "autoencƒvƒ‰ƒOƒCƒ“"
7LangString desktop_shortcut ${LANG_JAPANESE} "ƒfƒXƒNƒgƒbƒv‚̃Vƒ‡�[ƒgƒJƒbƒg"
8LangString quick_shortcut ${LANG_JAPANESE} "ƒNƒCƒbƒN‹N“®‚̃Vƒ‡�[ƒgƒJƒbƒg"
9LangString handler ${LANG_JAPANESE} "ŠÖ˜A•t‚¯‚Ì“o˜^"
10LangString sylpheed_description ${LANG_JAPANESE} "Sylpheed–{‘̂ł·"
11LangString plugins_description ${LANG_JAPANESE} "Sylpheed—p‚̃vƒ‰ƒOƒCƒ“"
12LangString sylpheed_pro_description ${LANG_JAPANESE} "Sylpheed Pro ‘S•¶ŒŸ�õƒvƒ‰ƒOƒCƒ“"
13LangString attachment_tool_plugin_description ${LANG_JAPANESE} "attachment_tool ƒvƒ‰ƒOƒCƒ“"
14LangString autoenc_plugin_description ${LANG_JAPANESE} "“Y•tƒtƒ@ƒCƒ‹Ž©“®ˆÃ�†‰»ƒvƒ‰ƒOƒCƒ“"
15LangString sylfilter_description ${LANG_JAPANESE} "SylFilter –À˜fƒ��[ƒ‹ƒtƒBƒ‹ƒ^"
16LangString bsfilter_description ${LANG_JAPANESE} "bsfilter –À˜fƒ��[ƒ‹ƒtƒBƒ‹ƒ^"
17LangString desktop_shortcut_description ${LANG_JAPANESE} "ƒfƒXƒNƒgƒbƒv‚ɃVƒ‡�[ƒgƒJƒbƒg‚ð�ì�¬‚µ‚Ü‚·(Œ»�݂̃†�[ƒU‚Ì‚Ý)"
18LangString quick_shortcut_description ${LANG_JAPANESE} "ƒNƒCƒbƒN‹N“®‚ɃVƒ‡�[ƒgƒJƒbƒg‚ð�ì�¬‚µ‚Ü‚·(Œ»�݂̃†�[ƒU‚Ì‚Ý)"
19LangString handler_description ${LANG_JAPANESE} "Webƒuƒ‰ƒEƒU‚ȂǂŠmailto: ‚ÌƒŠƒ“ƒN‚ðƒNƒŠƒbƒN‚µ‚½�ê�‡�A\
20‚Ü‚½emlƒtƒ@ƒCƒ‹‚ðŠJ‚¢‚½�ê�‡�ASylpheed‚ð‹N“®‚·‚邿‚¤‚É�ݒ肵‚Ü‚·"
21LangString un_sylpheed_description ${LANG_JAPANESE} "Sylpheed–{‘̂ł·"
22LangString un_plugins_description ${LANG_JAPANESE} "Sylpheed—p‚̃vƒ‰ƒOƒCƒ“"
23LangString un_sylpheed_pro_description ${LANG_JAPANESE} "Sylpheed Pro ‘S•¶ŒŸ�õƒvƒ‰ƒOƒCƒ“"
24LangString un_attachment_tool_plugin_description ${LANG_JAPANESE} "attachment_tool ƒvƒ‰ƒOƒCƒ“"
25LangString un_autoenc_plugin_description ${LANG_JAPANESE} "“Y•tƒtƒ@ƒCƒ‹Ž©“®ˆÃ�†‰»ƒvƒ‰ƒOƒCƒ“"
26LangString un_sylfilter_description ${LANG_JAPANESE} "SylFilter –À˜fƒ��[ƒ‹ƒtƒBƒ‹ƒ^"
27LangString un_bsfilter_description ${LANG_JAPANESE} "bsfilter –À˜fƒ��[ƒ‹ƒtƒBƒ‹ƒ^"
28LangString un_desktop_shortcut_description ${LANG_JAPANESE} "ƒfƒXƒNƒgƒbƒv‚̃Vƒ‡�[ƒgƒJƒbƒg‚ð�í�œ‚µ‚Ü‚·(Œ»�݂̃†�[ƒU‚Ì‚Ý)"
29LangString un_quick_shortcut_description ${LANG_JAPANESE} "ƒNƒCƒbƒN‹N“®‚̃Vƒ‡�[ƒgƒJƒbƒg‚ð�í�œ‚µ‚Ü‚·(Œ»�݂̃†�[ƒU‚Ì‚Ý)"
30LangString delete_caution ${LANG_JAPANESE} "${PRODUCT_NAME} ‚ª‚·‚łɃCƒ“ƒXƒg�[ƒ‹‚³‚ê‚Ä‚¢‚Ü‚·�B$\n$\nOK ‚ðƒNƒŠƒbƒN‚·‚邯\
31ƒCƒ“ƒXƒg�[ƒ‹‚³‚ê‚Ä‚¢‚éƒo�[ƒWƒ‡ƒ“‚ð�í�œ‚µ�A ƒLƒƒƒ“ƒZƒ‹ ‚ðƒNƒŠƒbƒN‚·‚邯ƒCƒ“ƒXƒg�[ƒ‹‚𒆎~‚µ‚Ü‚·�B"
32LangString app_running ${LANG_JAPANESE} "${PRODUCT_NAME} ‚ª‹N“®’†‚Å‚·�BƒCƒ“ƒXƒg�[ƒ‹‚Ì‘O‚É ${PRODUCT_NAME} ‚ð�I—¹‚µ‚Ä‚­‚¾‚³‚¢�B"
33LangString app_running_uninst ${LANG_JAPANESE} "${PRODUCT_NAME} ‚ª‹N“®’†‚Å‚·�BƒAƒ“ƒCƒ“ƒXƒg�[ƒ‹‚Ì‘O‚É ${PRODUCT_NAME} ‚ð�I—¹‚µ‚Ä‚­‚¾‚³‚¢�B"
34
35LangString sylpheed_manual_lnk ${LANG_JAPANESE} "Sylpheed ƒ}ƒjƒ…ƒAƒ‹"
36LangString sylpheed_debug_mode_lnk ${LANG_JAPANESE} "Sylpheed (ƒfƒoƒbƒOƒ‚�[ƒh)"
37LangString sylpheed_safe_mode_lnk ${LANG_JAPANESE} "Sylpheed (ƒZ�[ƒtƒ‚�[ƒh)"
38LangString sylpheed_all_quit_lnk ${LANG_JAPANESE} "Sylpheed ‘S�I—¹"
39LangString sylpheed_homepage_lnk ${LANG_JAPANESE} "Sylpheed ƒz�[ƒ€ƒy�[ƒW"
40LangString uninstall_lnk ${LANG_JAPANESE} "ƒAƒ“ƒCƒ“ƒXƒg�[ƒ‹"
41
42LangString downloading ${LANG_JAPANESE} "%s‚ðƒ_ƒEƒ“ƒ��[ƒh’†"
43LangString connecting ${LANG_JAPANESE} "�Ú‘±’† ..."
44LangString second ${LANG_JAPANESE} " (Žc‚è 1 •b)"
45LangString minute ${LANG_JAPANESE} " (Žc‚è 1 •ª)"
46LangString hour ${LANG_JAPANESE} " (Žc‚è 1 ŽžŠÔ)"
47LangString seconds ${LANG_JAPANESE} " (Žc‚è %u •b)"
48LangString minutes ${LANG_JAPANESE} " (Žc‚è %u •ª)"
49LangString hours ${LANG_JAPANESE} " (Žc‚è %u ŽžŠÔ)"
50LangString progress ${LANG_JAPANESE} "%skB (%d%%) of %skB @ %u.%01ukB/s"
51LangString download_failed ${LANG_JAPANESE} "ƒ_ƒEƒ“ƒ��[ƒhޏ”s:"
52LangString update_confirm ${LANG_JAPANESE} "$(^NameDA)‚ðƒAƒbƒvƒf�[ƒg‚µ‚Ü‚·‚©?"
53LangString kill_and_update_confirm ${LANG_JAPANESE} "Sylpheed‚ð�I—¹‚µ‚Ä�A$(^NameDA)‚ðƒAƒbƒvƒf�[ƒg‚µ‚Ü‚·‚©?"
54LangString un_confirmpage_text_top ${LANG_JAPANESE} "$(^NameDA)‚Í�AˆÈ‰º‚̃tƒHƒ‹ƒ_‚©‚çƒAƒ“ƒCƒ“ƒXƒg�[ƒ‹‚³‚ê‚Ü‚·�B$_CLICK$\r$\n�¦ $APPDATA\${PRODUCT_NAME} ‚É‚ ‚郆�[ƒU‚̃f�[ƒ^‚Í�í�œ‚³‚ê‚Ü‚¹‚ñ�B"
55LangString MUI_UNTEXT_FINISH_INFO_TEXT ${LANG_JAPANESE} "$(^NameDA)‚Í�A‚±‚̃Rƒ“ƒsƒ…�[ƒ^‚©‚çƒAƒ“ƒCƒ“ƒXƒg�[ƒ‹‚³‚ê‚Ü‚µ‚½�B$\r$\n$\r$\nƒEƒBƒU�[ƒh‚ð•‚¶‚é‚É‚Í [Š®—¹] ‚ð‰Ÿ‚µ‚Ä‚­‚¾‚³‚¢�B"
56;--------------------------------
57; Localized strings for use with nsisunz
58; The '%f' in the string is replaced with the filename on run-time.
59; "%c" and "%u" is replaced with compressed size and uncompressed size
60; respectively.
61LangString plugin_updater_nsisunz_text ${LANG_JAPANESE} "“WŠJ: %f (%c -> %u)"
62LangString plugin_updater_completed_text ${LANG_JAPANESE} "ƒvƒ‰ƒOƒCƒ“‚̃Aƒbƒvƒf�[ƒg‚ªŠ®—¹‚µ‚Ü‚µ‚½�B"
63LangString plugin_updater_header ${LANG_JAPANESE} "ƒvƒ‰ƒOƒCƒ“ƒAƒbƒvƒf�[ƒ^�["
64LangString plugin_updater_header_description ${LANG_JAPANESE} "�X�V‚·‚éƒvƒ‰ƒOƒCƒ“‚ð‘I‘ð‚µ‚Ä‚­‚¾‚³‚¢"
65LangString plugin_updater_must_select ${LANG_JAPANESE} "�­‚È‚­‚Æ‚à1ŒÂƒvƒ‰ƒOƒCƒ“‚ð‘I‘ð‚µ‚Ä‚­‚¾‚³‚¢�B"
66LangString plugin_updater_extracting ${LANG_JAPANESE} "“WŠJ’†"
67LangString plugin_updater_extracting_files ${LANG_JAPANESE} "ƒtƒ@ƒCƒ‹‚ð“WŠJ’†"
68LangString plugin_updater_extracted ${LANG_JAPANESE} "“WŠJŠ®—¹"
69LangString plugin_updater_extracted_description ${LANG_JAPANESE} "ƒtƒ@ƒCƒ‹‚ð“WŠJ‚µ‚Ü‚µ‚½�B"
70LangString plugin_updater_extraction_aborted ${LANG_JAPANESE} "“WŠJ’†Ž~"
71LangString plugin_updater_extraction_aborted_description ${LANG_JAPANESE} "“WŠJ�ˆ—�‚𒆎~‚µ‚Ü‚µ‚½�B"
diff --git a/nsis/plugin-updater.nsi b/nsis/plugin-updater.nsi
new file mode 100644
index 0000000..efb4b15
--- /dev/null
+++ b/nsis/plugin-updater.nsi
@@ -0,0 +1,173 @@
1; Dependencies:
2; - nsisunz.dll Plug-in
3; - InstallOptions.dll Plug-in
4;
5; usage: plugin-updater.exe /ini 'path\to\some-install-options.ini'
6;--------------------------------
7
8!include "sylpheed-defs.nsh"
9
10SetCompressor /SOLID lzma
11
12;--------------------------------
13
14!include "MUI.nsh"
15!include "Sections.nsh"
16!include "FileFunc.nsh"
17!include "LogicLib.nsh"
18
19; location of nsisunz.dll
20!addplugindir "."
21
22; MUI Settings
23!define MUI_ABORTWARNING
24!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install-blue.ico"
25!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall-blue.ico"
26
27;--------------------------------
28
29!define INSTALL_OPTIONS_INI "$R2"
30!define TEMP1 $R3 ;Temp variable
31
32OutFile "plugin-updater.exe"
33Name "${PRODUCT_NAME} Plugin Updater"
34Caption "$(^Name)"
35ShowInstDetails show
36CompletedText "$(plugin_updater_completed_text)"
37BrandingText "${INST_NAME} ${INST_VERSION}"
38
39; $INSTDIR
40InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
41InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
42
43;Things that need to be extracted on startup (keep these lines before any File command!)
44;Only useful for BZIP2 compression
45;Use ReserveFile for your own InstallOptions INI files too!
46
47ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
48
49RequestExecutionLevel admin
50XPStyle on
51
52;Order of pages
53Page custom SetCustom ValidateCustom ": Select update plugins" ;Custom page. InstallOptions gets called in SetCustom.
54!define MUI_PAGE_HEADER_TEXT "$(plugin_updater_extracting)"
55!define MUI_PAGE_HEADER_SUBTEXT "$(plugin_updater_extracting_files)"
56!define MUI_INSTFILESPAGE_FINISHHEADER_TEXT "$(plugin_updater_extracted)"
57!define MUI_INSTFILESPAGE_FINISHHEADER_SUBTEXT "$(plugin_updater_extracted_description)"
58!define MUI_INSTFILESPAGE_ABORTHEADER_TEXT "$(plugin_updater_extraction_aborted)"
59!define MUI_INSTFILESPAGE_ABORTHEADER_SUBTEXT "$(plugin_updater_extraction_aborted_description)"
60; Instfiles page
61!insertmacro MUI_PAGE_INSTFILES
62
63;--------------------------------
64; Language files
65!insertmacro MUI_LANGUAGE "English" # ${LANG_ENGLISH}
66!insertmacro MUI_LANGUAGE "Spanish" # ${LANG_SPANISH}
67!insertmacro MUI_LANGUAGE "Japanese" # ${LANG_JAPANESE}
68
69!include "English.nsh"
70!include "Spanish.nsh"
71!include "Japanese.nsh"
72;--------------------------------
73
74Var field
75Var NumFields
76Var URL
77Var basename
78Var name
79Var archive
80
81Section "Components"
82
83 ;Get Install Options dialog user input
84
85 ;DetailPrint "TEMP=$TEMP"
86
87 ReadINIStr $NumFields "${INSTALL_OPTIONS_INI}" "Settings" "NumFields"
88 ;DetailPrint "NumFields=$NumFields"
89
90 StrCpy $field 1
91 ${While} $field < $NumFields ; >
92 IntOp $field $field + 1
93 ReadINIStr ${TEMP1} "${INSTALL_OPTIONS_INI}" "Field $field" "State"
94 StrCmp ${TEMP1} 0 skip
95 ReadINIStr $URL "${INSTALL_OPTIONS_INI}" "Field $field" "URL"
96 ReadINIStr $basename "${INSTALL_OPTIONS_INI}" "Field $field" "basename"
97 ReadINIStr $name "${INSTALL_OPTIONS_INI}" "Field $field" "name"
98 ;DetailPrint "Field $field State=${TEMP1}"
99 ;DetailPrint "Field $field URL=$URL"
100 ;DetailPrint "Field $field basename=$basename"
101 ;DetailPrint "Field $field name=$name"
102 StrCpy $archive "$TEMP\sylpheed-plugin-$basename.zip"
103
104 DetailPrint "$name:"
105 DetailPrint "Downloading from $URL"
106 DetailPrint " to $archive"
107 NSISdl::download \
108 /TRANSLATE2 "$(downloading)" "$(connecting)" "$(second)" "$(minute)" "$(hour)" "$(seconds)" "$(minutes)" "$(hours)" "$(progress)" \
109 /TIMEOUT=30000 "$URL" "$archive"
110 Pop $0
111 StrCmp "$0" "success" download_ok
112 DetailPrint "$(download_failed) $0"
113 Abort
114 download_ok:
115
116 SetOutPath "$INSTDIR"
117 nsisunz::UnzipToLog /text "$(plugin_updater_nsisunz_text)" "$archive" "$INSTDIR"
118
119 ; Always check for errors. Everything else than "success" means an error.
120 Pop $0
121 StrCmp $0 "success" extract_ok
122 Abort "$0"
123 extract_ok:
124
125 skip:
126 ${EndWhile}
127
128SectionEnd
129
130
131Function .onInit
132 InitPluginsDir
133
134 ${GetParameters} $R0
135 ${GetOptions} "$R0" "/ini" "${INSTALL_OPTIONS_INI}"
136
137 StrCmp "${INSTALL_OPTIONS_INI}" "" 0 ini_option_found
138 MessageBox MB_ICONEXCLAMATION|MB_OK "usage: plugin-updater.exe /ini 'path\to\some-install-options.ini'"
139 Abort
140 ini_option_found:
141FunctionEnd
142
143Function SetCustom
144 ;Display the InstallOptions dialog
145
146 !insertmacro MUI_HEADER_TEXT "$(plugin_updater_header)" "$(plugin_updater_header_description)"
147
148 Push ${TEMP1}
149
150 InstallOptions::dialog "${INSTALL_OPTIONS_INI}"
151 Pop ${TEMP1}
152
153 Pop ${TEMP1}
154
155FunctionEnd
156
157Function ValidateCustom
158
159 ReadINIStr $NumFields "${INSTALL_OPTIONS_INI}" "Settings" "NumFields"
160
161 StrCpy $field 1
162 ${While} $field < $NumFields ; >
163 IntOp $field $field + 1
164 ReadINIStr ${TEMP1} "${INSTALL_OPTIONS_INI}" "Field $field" "State"
165 StrCmp ${TEMP1} 1 done
166 ${EndWhile}
167
168 MessageBox MB_ICONEXCLAMATION|MB_OK "$(plugin_updater_must_select)"
169 Abort
170
171 done:
172
173FunctionEnd
diff --git a/nsis/spanish.nsh b/nsis/spanish.nsh
new file mode 100644
index 0000000..9a1b6af
--- /dev/null
+++ b/nsis/spanish.nsh
@@ -0,0 +1,72 @@
1LicenseLangString license ${LANG_SPANISH} "COPYING.txt"
2LangString readme ${LANG_SPANISH} "Ver README"
3LangString jump ${LANG_SPANISH} "Ver la página web de ${INST_NAME}"
4LangString plugins ${LANG_SPANISH} "Sylpheed Plug-ins"
5LangString attachment_tool_plugin ${LANG_SPANISH} "attachment_tool"
6LangString autoenc_plugin ${LANG_SPANISH} "autoenc plugin"
7LangString desktop_shortcut ${LANG_SPANISH} "Acceso directo en el escritorio"
8LangString quick_shortcut ${LANG_SPANISH} "Acceso directo en la barra rápida"
9LangString handler ${LANG_SPANISH} "Mantener asociado al protocolo mailto:"
10LangString sylpheed_description ${LANG_SPANISH} "el propio Sylpheed"
11LangString plugins_description ${LANG_SPANISH} "Plug-ins for Sylpheed"
12LangString sylpheed_pro_description ${LANG_SPANISH} "Sylpheed Pro Full-text Search Plug-in"
13LangString attachment_tool_plugin_description ${LANG_SPANISH} "attachment_tool Plug-in"
14LangString autoenc_plugin_description ${LANG_SPANISH} "autoenc Plug-in"
15LangString sylfilter_description ${LANG_SPANISH} "SylFilter bayesian spam filter"
16LangString bsfilter_description ${LANG_SPANISH} "bsfilter bayesian spam filter"
17LangString desktop_shortcut_description ${LANG_SPANISH} "Se realizó el acceso directo al escritorio."
18LangString quick_shortcut_description ${LANG_SPANISH} "Se realizó el acceso directo a la barra rápida. "
19LangString handler_description ${LANG_SPANISH} "Se iniciará Sylpheed cuando se haga clic en \
20 los enlaces mailto: del navegador web y similares."
21LangString un_sylpheed_description ${LANG_SPANISH} "el propio Sylpheed"
22LangString un_plugins_description ${LANG_SPANISH} "Plug-ins for Sylpheed"
23LangString un_sylpheed_pro_description ${LANG_SPANISH} "Sylpheed Pro Full-text Search Plug-in"
24LangString un_attachment_tool_plugin_description ${LANG_SPANISH} "attachment_tool Plug-in"
25LangString un_autoenc_plugin_description ${LANG_SPANISH} "autoenc Plug-in"
26LangString un_sylfilter_description ${LANG_SPANISH} "SylFilter bayesian spam filter"
27LangString un_bsfilter_description ${LANG_SPANISH} "bsfilter bayesian spam filter"
28LangString un_desktop_shortcut_description ${LANG_SPANISH} "Delete shortcut for Desktop (current user only)"
29LangString un_quick_shortcut_description ${LANG_SPANISH} "Delete shortcut for Quick Launch (current user only)"
30LangString delete_caution ${LANG_SPANISH} "${PRODUCT_NAME} ya está instalado. $\n$\nPulse «Aceptar» para \
31 eliminar la versión anterior o «Cancelar» para cancelar la actualización. $\n$\n\
32 Tenga en cuenta que todos los ficheros existentes en $INSTDIR serán eliminados. "
33LangString app_running ${LANG_SPANISH} "Sylpheed is running. Please quit Sylpheed before installing."
34LangString app_running_uninst ${LANG_SPANISH} "Sylpheed is running. Please quit Sylpheed before uninstalling."
35
36LangString sylpheed_manual_lnk ${LANG_SPANISH} "Sylpheed Manual"
37LangString sylpheed_debug_mode_lnk ${LANG_SPANISH} "Sylpheed (debug mode)"
38LangString sylpheed_safe_mode_lnk ${LANG_SPANISH} "Sylpheed (safe mode)"
39LangString sylpheed_all_quit_lnk ${LANG_SPANISH} "Sylpheed All Quit"
40LangString sylpheed_homepage_lnk ${LANG_SPANISH} "Sylpheed Homepage"
41LangString uninstall_lnk ${LANG_SPANISH} "Uninstall"
42
43LangString downloading ${LANG_SPANISH} "Downloading %s"
44LangString connecting ${LANG_SPANISH} "Connecting ..."
45LangString second ${LANG_SPANISH} " (1 second remaining)"
46LangString minute ${LANG_SPANISH} " (1 minute remaining)"
47LangString hour ${LANG_SPANISH} " (1 hour remaining)"
48LangString seconds ${LANG_SPANISH} " (%u seconds remaining)"
49LangString minutes ${LANG_SPANISH} " (%u minutes remaining)"
50LangString hours ${LANG_SPANISH} " (%u hours remaining)"
51LangString progress ${LANG_SPANISH} "%skB (%d%%) of %skB @ %u.%01ukB/s"
52LangString download_failed ${LANG_SPANISH} "Download Failed:"
53LangString update_confirm ${LANG_SPANISH} "Update $(^NameDA)?"
54LangString kill_and_update_confirm ${LANG_SPANISH} "Quit Sylpheed, and update $(^NameDA)?"
55LangString un_confirmpage_text_top ${LANG_SPANISH} "$(^NameDA) will be uninstalled from the following folder. $_CLICK$\r$\n* The user data which exists in $APPDATA\${PRODUCT_NAME} will not be deleted."
56LangString MUI_UNTEXT_FINISH_INFO_TEXT ${LANG_SPANISH} "$(^NameDA) ha sido desinstalado de su sistema.$\r$\n$\r$\nPresione Terminar para cerrar este asistente."
57;--------------------------------
58; Localized strings for use with nsisunz
59; The '%f' in the string is replaced with the filename on run-time.
60; "%c" and "%u" is replaced with compressed size and uncompressed size
61; respectively.
62LangString plugin_updater_nsisunz_text ${LANG_SPANISH} "Extract: %f (%c -> %u)"
63LangString plugin_updater_completed_text ${LANG_SPANISH} "Plugin update completed!"
64LangString plugin_updater_header ${LANG_SPANISH} "Plugin Updater"
65LangString plugin_updater_header_description ${LANG_SPANISH} "Select plugins to update"
66LangString plugin_updater_must_select ${LANG_SPANISH} "You must select at least one plugin!"
67LangString plugin_updater_extracting ${LANG_SPANISH} "Extracting"
68LangString plugin_updater_extracting_files ${LANG_SPANISH} "Extracting files"
69LangString plugin_updater_extracted ${LANG_SPANISH} "Extracted"
70LangString plugin_updater_extracted_description ${LANG_SPANISH} "Thes files has been extracted"
71LangString plugin_updater_extraction_aborted ${LANG_SPANISH} "Extraction aborted"
72LangString plugin_updater_extraction_aborted_description ${LANG_SPANISH} "The extraction process was aborted"
diff --git a/nsis/sylpheed-defs.nsh b/nsis/sylpheed-defs.nsh
new file mode 100644
index 0000000..2e0aea0
--- /dev/null
+++ b/nsis/sylpheed-defs.nsh
@@ -0,0 +1,31 @@
1;!define SYLPHEED_PRO
2;!define HAVE_AUTOENC_PLUGIN
3
4!define PRODUCT_NAME "Sylpheed"
5!define PRODUCT_VERSION "3.7"
6
7!ifdef SYLPHEED_PRO
8!define PRODUCT_PUBLISHER "SRA OSS, Inc. Japan"
9!define PRODUCT_WEB_SITE "http://www.sraoss.co.jp/sylpheed-pro/"
10!else
11!define PRODUCT_PUBLISHER "Hiroyuki Yamamoto"
12!define PRODUCT_WEB_SITE "http://sylpheed.sraoss.jp/"
13!endif
14
15!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\sylpheed.exe"
16!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
17!define PRODUCT_UNINST_ROOT_KEY "HKLM"
18!define MEMENTO_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
19!define MEMENTO_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
20
21!ifdef SYLPHEED_PRO
22!define INST_NAME "Sylpheed Pro"
23!define INST_VERSION "2.6"
24!define INST_FILENAME "Sylpheed_Pro"
25!else
26!define INST_NAME ${PRODUCT_NAME}
27!define INST_VERSION ${PRODUCT_VERSION}
28!define INST_FILENAME ${PRODUCT_NAME}
29!endif
30
31!define ORIG_WEB_SITE "http://sylpheed.sraoss.jp/"
diff --git a/nsis/sylpheed.nsi b/nsis/sylpheed.nsi
new file mode 100644
index 0000000..86ae32a
--- /dev/null
+++ b/nsis/sylpheed.nsi
@@ -0,0 +1,568 @@
1; Script generated by the HM NIS Edit Script Wizard.
2; Modified by Ikuya Awashiro <ikuya@fruitsbasket.info>
3; Modified by Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
4
5; This script requires NsProcess plugin:
6; http://nsis.sourceforge.net/NsProcess_plugin
7
8!include "sylpheed-defs.nsh"
9
10SetCompressor /SOLID lzma
11
12!include "nsProcess.nsh"
13!include "Memento.nsh"
14
15; MUI 1.67 compatible ------
16!include "MUI.nsh"
17!include "Sections.nsh"
18!include "LogicLib.nsh"
19
20; MUI Settings
21!define MUI_ABORTWARNING
22!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install-blue.ico"
23!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall-blue.ico"
24
25; Welcome page
26!insertmacro MUI_PAGE_WELCOME
27; License page
28!define MUI_LICENSEPAGE_RADIOBUTTONS
29!insertmacro MUI_PAGE_LICENSE $(license)
30; Components page
31!insertmacro MUI_PAGE_COMPONENTS
32; Directory page
33!insertmacro MUI_PAGE_DIRECTORY
34; Instfiles page
35!insertmacro MUI_PAGE_INSTFILES
36; Finish page
37;!define MUI_FINISHPAGE_RUN "$INSTDIR\sylpheed.exe"
38;!define MUI_FINISHPAGE_RUN_NOTCHECKED
39!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README.txt"
40;!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README-win32.txt"
41;!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README-win32-ja.txt"
42!define MUI_FINISHPAGE_SHOWREADME_FUNCTION "ShowReadme"
43!define MUI_FINISHPAGE_SHOWREADME_TEXT "$(readme)"
44!define MUI_FINISHPAGE_LINK "$(jump)"
45!define MUI_FINISHPAGE_LINK_LOCATION ${PRODUCT_WEB_SITE}
46!insertmacro MUI_PAGE_FINISH
47
48; Uninstaller pages
49!insertmacro MUI_UNPAGE_WELCOME
50!define MUI_UNCONFIRMPAGE_TEXT_TOP "$(un_confirmpage_text_top)"
51!insertmacro MUI_UNPAGE_CONFIRM
52!insertmacro MUI_UNPAGE_COMPONENTS
53!insertmacro MUI_UNPAGE_INSTFILES
54!insertmacro MUI_UNPAGE_FINISH
55
56; Language files
57!insertmacro MUI_LANGUAGE "English" # ${LANG_ENGLISH}
58!insertmacro MUI_LANGUAGE "Spanish" # ${LANG_SPANISH}
59!insertmacro MUI_LANGUAGE "Japanese" # ${LANG_JAPANESE}
60
61; Reserve files
62!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
63ReserveFile "${NSISDIR}\Plugins\nsProcess.dll"
64
65; MUI end ------
66
67!include "English.nsh"
68!include "Spanish.nsh"
69!include "Japanese.nsh"
70
71Var ISSILENT
72
73;Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
74;OutFile "${PRODUCT_NAME}-${PRODUCT_VERSION}_setup.exe"
75Name "${INST_NAME} ${INST_VERSION}"
76OutFile "${INST_FILENAME}-${INST_VERSION}_setup.exe"
77InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
78InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
79RequestExecutionLevel admin
80ShowInstDetails hide
81ShowUnInstDetails hide
82XPStyle on
83BrandingText "${INST_NAME} ${INST_VERSION}"
84
85${MementoSection} "!Sylpheed" sec_sylpheed
86 SetShellVarContext all
87 SectionIn RO
88 SetOutPath "$INSTDIR"
89 File /r "Sylpheed\"
90 CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}"
91
92 ${If} $LANGUAGE = "${LANG_JAPANESE}"
93 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_manual_lnk).lnk" "$INSTDIR\doc\manual\ja\Sylpheed.html"
94 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\README.lnk" "$INSTDIR\README-win32-ja.txt"
95 File /oname=README.txt "Sylpheed\README-win32-ja.txt"
96 ${ElseIf} $LANGUAGE = "${LANG_SPANISH}"
97 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_manual_lnk).lnk" "$INSTDIR\doc\manual\en\Sylpheed.html"
98 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\README.lnk" "$INSTDIR\README-win32-es.txt"
99 File /oname=README.txt "Sylpheed\README-win32-es.txt"
100 ${Else}
101 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_manual_lnk).lnk" "$INSTDIR\doc\manual\en\Sylpheed.html"
102 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\README.lnk" "$INSTDIR\README-win32.txt"
103 File /oname=README.txt "Sylpheed\README-win32.txt"
104 ${EndIf}
105
106 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Sylpheed.lnk" "$INSTDIR\sylpheed.exe"
107 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_debug_mode_lnk).lnk" "$INSTDIR\sylpheed.exe" "--debug"
108 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_safe_mode_lnk).lnk" "$INSTDIR\sylpheed.exe" "--safe-mode"
109 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_all_quit_lnk).lnk" "$INSTDIR\sylpheed.exe" "--exit"
110 WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${ORIG_WEB_SITE}"
111 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_homepage_lnk).lnk" "$INSTDIR\${PRODUCT_NAME}.url"
112 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\$(uninstall_lnk).lnk" "$INSTDIR\uninst.exe"
113${MementoSectionEnd}
114
115SectionGroup /e "$(plugins)" sec_plugins
116
117!ifdef SYLPHEED_PRO
118${MementoSection} "Sylpheed Pro" sec_sylpheed_pro
119 SetShellVarContext all
120 SetOutPath "$INSTDIR"
121 File /r "Sylpheed-Pro\"
122 WriteIniStr "$INSTDIR\${INST_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
123 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Sylpheed Pro Homepage.lnk" "$INSTDIR\${INST_NAME}.url"
124 CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Sylpheed Pro Manual.lnk" "$INSTDIR\doc\manual\sylpheed-pro\ja\search-plugin.html"
125${MementoSectionEnd}
126!endif
127
128${MementoSection} "$(attachment_tool_plugin)" sec_attachment_tool_plugin
129 SetOutPath "$INSTDIR\plugins"
130 File "plugins\plugins\attachment_tool.dll"
131 SetOutPath "$INSTDIR\doc\plugins"
132 File "plugins\doc\plugins\README.attachment_tool.txt"
133${MementoSectionEnd}
134
135!ifdef HAVE_AUTOENC_PLUGIN
136${MementoSection} "$(autoenc_plugin)" sec_autoenc_plugin
137 SetOutPath "$INSTDIR"
138 File /r "autoenc\"
139${MementoSectionEnd}
140!endif
141
142SectionGroupEnd
143
144${MementoSection} "sylfilter" sec_sylfilter
145 SetOutPath "$INSTDIR"
146 File /r "sylfilter\"
147${MementoSectionEnd}
148
149${MementoSection} "bsfilter" sec_bsfilter
150 SetOutPath "$INSTDIR"
151 File /r "bsfilter\"
152${MementoSectionEnd}
153
154${MementoSection} "$(desktop_shortcut)" sec_desktop_shortcut
155 SetShellVarContext current
156 CreateShortCut "$DESKTOP\Sylpheed.lnk" "$INSTDIR\sylpheed.exe"
157${MementoSectionEnd}
158
159${MementoUnselectedSection} "$(quick_shortcut)" sec_quick_shortcut
160 SetShellVarContext current
161 CreateShortCut "$QUICKLAUNCH\Sylpheed.lnk" "$INSTDIR\sylpheed.exe"
162${MementoSectionEnd}
163
164${MementoSection} "$(handler)" sec_handler
165 ; HKLM
166 ; .eml
167 WriteRegStr HKLM "Software\Classes\Sylpheed.EML" "" "Sylpheed Message"
168 WriteRegDWORD HKLM "Software\Classes\Sylpheed.EML" "EditFlags" 0x00000002
169 WriteRegStr HKLM "Software\Classes\Sylpheed.EML" "FriendlyTypeName" "Sylpheed Message"
170 WriteRegStr HKLM "Software\Classes\Sylpheed.EML\DefaultIcon" "" "$INSTDIR\sylpheed.exe,0"
171 WriteRegStr HKLM "Software\Classes\Sylpheed.EML\shell\open\command" "" "$\"$INSTDIR\sylpheed.exe$\" --open $\"%1$\""
172
173 ; mailto:
174 WriteRegStr HKLM "Software\Classes\mailto" "" "URL:MailTo Protocol"
175 WriteRegDWORD HKLM "Software\Classes\mailto" "EditFlags" 0x00000002
176 WriteRegStr HKLM "Software\Classes\mailto" "FriendlyTypeName" "Sylpheed MailTo"
177 WriteRegStr HKLM "Software\Classes\mailto" "URL Protocol" ""
178 WriteRegStr HKLM "Software\Classes\mailto\DefaultIcon" "" "$INSTDIR\sylpheed.exe,0"
179 WriteRegStr HKLM "Software\Classes\mailto\shell\open\command" "" "$\"$INSTDIR\sylpheed.exe$\" --compose $\"%1$\""
180
181 WriteRegStr HKLM "Software\Classes\Sylpheed.Url.MailTo" "" "URL:MailTo Protocol"
182 WriteRegDWORD HKLM "Software\Classes\Sylpheed.Url.MailTo" "EditFlags" 0x00000002
183 WriteRegStr HKLM "Software\Classes\Sylpheed.Url.MailTo" "FriendlyTypeName" "Sylpheed MailTo"
184 WriteRegStr HKLM "Software\Classes\Sylpheed.Url.MailTo" "URL Protocol" ""
185 WriteRegStr HKLM "Software\Classes\Sylpheed.Url.MailTo\DefaultIcon" "" "$INSTDIR\sylpheed.exe,0"
186 WriteRegStr HKLM "Software\Classes\Sylpheed.Url.MailTo\shell\open\command" "" "$\"$INSTDIR\sylpheed.exe$\" --compose $\"%1$\""
187
188 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed" "" "Sylpheed"
189 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\DefaultIcon" "" "$INSTDIR\sylpheed.exe,0"
190 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\Protocols\mailto" "" "URL:MailTo Protocol"
191 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\Protocols\mailto" "URL Protocol" ""
192 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\Protocols\mailto\DefaultIcon" "" "$INSTDIR\sylpheed.exe,0"
193 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\Protocols\mailto\shell\open\command" "" "$\"$INSTDIR\sylpheed.exe$\" --compose $\"%1$\""
194 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\shell\open\command" "" "$\"$INSTDIR\sylpheed.exe$\""
195
196 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\Capabilities" "ApplicationName" "Sylpheed"
197 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\Capabilities" "ApplicationIcon" "$INSTDIR\sylpheed.exe,0"
198 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\Capabilities" "ApplicationDescription" "Sylpheed - lightweight and user-friendly e-mail client"
199 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\Capabilities\FileAssociations" ".eml" "Sylpheed.EML"
200 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\Capabilities\URLAssociations" "mailto" "Sylpheed.Url.MailTo"
201 WriteRegStr HKLM "Software\Clients\Mail\Sylpheed\Capabilities\StartMenu" "Mail" "Sylpheed"
202
203 WriteRegStr HKLM "Software\RegisteredApplications" "Sylpheed" "SOFTWARE\Clients\Mail\Sylpheed\Capabilities"
204
205 ; HKCU
206 WriteRegStr HKCU "Software\Clients\Mail" "" "Sylpheed"
207
208 WriteRegStr HKCU "Software\Microsoft\Windows\Shell\Associations\URLAssociations\mailto\UserChoice" "Progid" "Sylpheed.Url.MailTo"
209 DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.eml\UserChoice"
210 WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.eml\UserChoice" "Progid" "Sylpheed.EML"
211
212 ; .eml
213 WriteRegStr HKCU "Software\Classes\.eml" "" "Sylpheed.EML"
214
215 WriteRegStr HKCU "Software\Classes\Sylpheed.EML" "" "Sylpheed Message"
216 WriteRegDWORD HKCU "Software\Classes\Sylpheed.EML" "EditFlags" 0x00000002
217 WriteRegStr HKCU "Software\Classes\Sylpheed.EML" "FriendlyTypeName" "Sylpheed Message"
218 WriteRegStr HKCU "Software\Classes\Sylpheed.EML\DefaultIcon" "" "$INSTDIR\sylpheed.exe,0"
219 WriteRegStr HKCU "Software\Classes\Sylpheed.EML\shell\open\command" "" "$\"$INSTDIR\sylpheed.exe$\" --open $\"%1$\""
220
221 ; mailto:
222 WriteRegStr HKCU "Software\Classes\mailto" "" "URL:MailTo Protocol"
223 WriteRegDWORD HKCU "Software\Classes\mailto" "EditFlags" 0x00000002
224 WriteRegStr HKCU "Software\Classes\mailto" "FriendlyTypeName" "Sylpheed MailTo"
225 WriteRegStr HKCU "Software\Classes\mailto" "URL Protocol" ""
226 WriteRegStr HKCU "Software\Classes\mailto\DefaultIcon" "" "$INSTDIR\sylpheed.exe,0"
227 WriteRegStr HKCU "Software\Classes\mailto\shell\open\command" "" "$\"$INSTDIR\sylpheed.exe$\" --compose $\"%1$\""
228
229 WriteRegStr HKCU "Software\Classes\Sylpheed.Url.MailTo" "" "URL:MailTo Protocol"
230 WriteRegDWORD HKCU "Software\Classes\Sylpheed.Url.MailTo" "EditFlags" 0x00000002
231 WriteRegStr HKCU "Software\Classes\Sylpheed.Url.MailTo" "FriendlyTypeName" "Sylpheed MailTo"
232 WriteRegStr HKCU "Software\Classes\Sylpheed.Url.MailTo" "URL Protocol" ""
233 WriteRegStr HKCU "Software\Classes\Sylpheed.Url.MailTo\DefaultIcon" "" "$INSTDIR\sylpheed.exe,0"
234 WriteRegStr HKCU "Software\Classes\Sylpheed.Url.MailTo\shell\open\command" "" "$\"$INSTDIR\sylpheed.exe$\" --compose $\"%1$\""
235${MementoSectionEnd}
236
237${MementoSectionDone}
238
239Section -Post
240 WriteUninstaller "$INSTDIR\uninst.exe"
241 WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\sylpheed.exe"
242 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
243 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
244 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\sylpheed.exe"
245 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
246 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
247 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
248SectionEnd
249
250Section "!un.Sylpheed" sec_un_sylpheed
251 SetShellVarContext all
252 Delete "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_manual_lnk).lnk"
253 Delete "$SMPROGRAMS\${PRODUCT_NAME}\README.lnk"
254 Delete "$SMPROGRAMS\${PRODUCT_NAME}\Sylpheed.lnk"
255 Delete "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_debug_mode_lnk).lnk"
256 Delete "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_safe_mode_lnk).lnk"
257 Delete "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_all_quit_lnk).lnk"
258 Delete "$SMPROGRAMS\${PRODUCT_NAME}\$(sylpheed_homepage_lnk).lnk"
259 Delete "$SMPROGRAMS\${PRODUCT_NAME}\$(uninstall_lnk).lnk"
260 SetShellVarContext current
261
262 Delete "$INSTDIR\curl.exe"
263 Delete "$INSTDIR\gpgme-w32spawn.exe"
264 Delete "$INSTDIR\gspawn-win32-helper-console.exe"
265 Delete "$INSTDIR\gspawn-win32-helper.exe"
266 Delete "$INSTDIR\iconv.dll"
267 Delete "$INSTDIR\intl.dll"
268 Delete "$INSTDIR\jpeg62.dll"
269 Delete "$INSTDIR\libasprintf-0.dll"
270 Delete "$INSTDIR\libassuan-0.dll"
271 Delete "$INSTDIR\libatk-1.0-0.dll"
272 Delete "$INSTDIR\libcairo-2.dll"
273 Delete "$INSTDIR\libcompface.dll"
274 Delete "$INSTDIR\libeay32.dll"
275 Delete "$INSTDIR\libffi-6.dll"
276 Delete "$INSTDIR\libgdk-win32-2.0-0.dll"
277 Delete "$INSTDIR\libgdk_pixbuf-2.0-0.dll"
278 Delete "$INSTDIR\libgio-2.0-0.dll"
279 Delete "$INSTDIR\libglib-2.0-0.dll"
280 Delete "$INSTDIR\libgmodule-2.0-0.dll"
281 Delete "$INSTDIR\libgobject-2.0-0.dll"
282 Delete "$INSTDIR\libgpg-error-0.dll"
283 Delete "$INSTDIR\libgpgme-11.dll"
284 Delete "$INSTDIR\libgthread-2.0-0.dll"
285 Delete "$INSTDIR\libgtk-win32-2.0-0.dll"
286 Delete "$INSTDIR\libonig.dll"
287 Delete "$INSTDIR\libpango-1.0-0.dll"
288 Delete "$INSTDIR\libpangocairo-1.0-0.dll"
289 Delete "$INSTDIR\libpangowin32-1.0-0.dll"
290 Delete "$INSTDIR\libpng14-14.dll"
291 Delete "$INSTDIR\libsylph-0-1.dll"
292 Delete "$INSTDIR\libsylpheed-plugin-0-1.dll"
293 Delete "$INSTDIR\ssleay32.dll"
294 Delete "$INSTDIR\sylpheed.exe"
295 Delete "$INSTDIR\wabread.exe"
296 Delete "$INSTDIR\zlib1.dll"
297
298 Delete "$INSTDIR\README-win32-es.txt"
299 Delete "$INSTDIR\README-win32-ja.txt"
300 Delete "$INSTDIR\README-win32.txt"
301 Delete "$INSTDIR\README.txt"
302
303 Delete "$INSTDIR\sample-sylpheed.ini"
304
305 Delete "$INSTDIR\sylpheed-128x128.png"
306 Delete "$INSTDIR\sylpheed-64x64.png"
307 Delete "$INSTDIR\sylpheed-mailto-protocol_admin.reg"
308 Delete "$INSTDIR\sylpheed-mailto-protocol_user.reg"
309 Delete "$INSTDIR\sylpheed.png"
310 Delete "$INSTDIR\${PRODUCT_NAME}.url"
311
312 Delete "$INSTDIR\plugin-updater.exe"
313 Delete "$INSTDIR\update-manager.exe"
314 Delete "$INSTDIR\uninst.exe"
315
316 RMDir /r "$INSTDIR\doc"
317 RMDir /r "$INSTDIR\etc"
318 RMDir /r "$INSTDIR\lib"
319 RMDir /r "$INSTDIR\share\locale"
320 RMDir /r "$INSTDIR\share\themes"
321 RMDir "$INSTDIR\share"
322SectionEnd
323
324SectionGroup /e "un.$(plugins)" sec_un_plugins
325
326!ifdef SYLPHEED_PRO
327Section "un.Sylpheed Pro" sec_un_sylpheed_pro
328 SetShellVarContext all
329 Delete "$SMPROGRAMS\${PRODUCT_NAME}\Sylpheed Pro Homepage.lnk"
330 Delete "$SMPROGRAMS\${PRODUCT_NAME}\Sylpheed Pro Manual.lnk"
331 SetShellVarContext current
332
333 ; Sylpheed Pro components
334 Delete "$INSTDIR\bzip2.dll"
335 Delete "$INSTDIR\dbimport-ext.exe"
336 Delete "$INSTDIR\dts-indexer.exe"
337 Delete "$INSTDIR\libarchive2.dll"
338 Delete "$INSTDIR\libmecab.dll"
339 Delete "$INSTDIR\libpq.dll"
340 Delete "$INSTDIR\mecabrc"
341 Delete "$INSTDIR\Sylpheed Pro.url"
342 Delete "$INSTDIR\plugins\dbimport.dll"
343 Delete "$INSTDIR\plugins\scheduler.dll"
344 RMDir /r "$INSTDIR\dic"
345 RMDir /r "$INSTDIR\pgsql"
346 RMDir /r "$INSTDIR\pgsql83"
347 RMDir /r "$INSTDIR\share\sylpheed-pro"
348 RMDir "$INSTDIR\share"
349SectionEnd
350!endif
351
352Section "un.$(attachment_tool_plugin)" sec_un_attachment_tool_plugin
353 Delete "$INSTDIR\plugins\attachment_tool.dll"
354 Delete "$INSTDIR\doc\plugins\README.attachment_tool.txt"
355SectionEnd
356
357!ifdef HAVE_AUTOENC_PLUGIN
358Section "un.$(autoenc_plugin)" sec_un_autoenc_plugin
359 Delete "$INSTDIR\plugins\autoenc.dll"
360 Delete "$INSTDIR\doc\autoenc\COPYING.txt"
361 Delete "$INSTDIR\doc\autoenc\README.autoenc.txt"
362 Delete "$INSTDIR\doc\autoenc\LICENSE.7-zip.txt"
363 RMDir "$INSTDIR\doc\autoenc"
364 Delete "$INSTDIR\7z.dll"
365 Delete "$INSTDIR\7z.exe"
366SectionEnd
367!endif
368
369SectionGroupEnd
370
371Section "un.sylfilter" sec_un_sylfilter
372 ; sylfilter components
373 Delete "$INSTDIR\sylfilter.exe"
374 Delete "$INSTDIR\sylfilter-cui.exe"
375SectionEnd
376
377Section "un.bsfilter" sec_un_bsfilter
378 ; bsfilter components
379 Delete "$INSTDIR\bsfilter"
380 Delete "$INSTDIR\bsfilterw.exe"
381SectionEnd
382
383Section "un.$(desktop_shortcut)" sec_un_desktop_shortcut
384 SetShellVarContext current
385 Delete "$DESKTOP\Sylpheed.lnk"
386SectionEnd
387
388Section "un.$(quick_shortcut)" sec_un_quick_shortcut
389 SetShellVarContext current
390 Delete "$QUICKLAUNCH\Sylpheed.lnk"
391SectionEnd
392
393Section "-un.install"
394 SetShellVarContext all
395 RMDir "$SMPROGRAMS\Sylpheed"
396 SetShellVarContext current
397
398 ; remove plug-ins dir only when empty
399 RMDir "$INSTDIR\plugins"
400 RMDir "$INSTDIR"
401
402 DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
403 DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_DIR_REGKEY}"
404 DeleteRegKey HKLM "Software\Classes\Sylpheed.EML"
405 DeleteRegKey HKLM "Software\Classes\Sylpheed.Url.MailTo"
406 DeleteRegKey HKLM "Software\Clients\Mail\Sylpheed"
407 DeleteRegValue HKLM "Software\RegisteredApplications" "Sylpheed"
408 DeleteRegKey HKCU "Software\Classes\Sylpheed.EML"
409 DeleteRegKey HKCU "Software\Classes\Sylpheed.Url.MailTo"
410 DeleteRegKey ${MEMENTO_REGISTRY_ROOT} "${MEMENTO_REGISTRY_KEY}"
411
412 SetAutoClose true
413SectionEnd
414
415; Section descriptions
416!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
417 !insertmacro MUI_DESCRIPTION_TEXT ${sec_sylpheed} "$(sylpheed_description)"
418 !insertmacro MUI_DESCRIPTION_TEXT ${sec_plugins} "$(plugins_description)"
419!ifdef SYLPHEED_PRO
420 !insertmacro MUI_DESCRIPTION_TEXT ${sec_sylpheed_pro} "$(sylpheed_pro_description)"
421!endif
422 !insertmacro MUI_DESCRIPTION_TEXT ${sec_attachment_tool_plugin} "$(attachment_tool_plugin_description)"
423!ifdef HAVE_AUTOENC_PLUGIN
424 !insertmacro MUI_DESCRIPTION_TEXT ${sec_autoenc_plugin} "$(autoenc_plugin_description)"
425!endif
426 !insertmacro MUI_DESCRIPTION_TEXT ${sec_sylfilter} "$(sylfilter_description)"
427 !insertmacro MUI_DESCRIPTION_TEXT ${sec_bsfilter} "$(bsfilter_description)"
428 !insertmacro MUI_DESCRIPTION_TEXT ${sec_desktop_shortcut} "$(desktop_shortcut_description)"
429 !insertmacro MUI_DESCRIPTION_TEXT ${sec_quick_shortcut} "$(quick_shortcut_description)"
430 !insertmacro MUI_DESCRIPTION_TEXT ${sec_handler} "$(handler_description)"
431!insertmacro MUI_FUNCTION_DESCRIPTION_END
432!insertmacro MUI_UNFUNCTION_DESCRIPTION_BEGIN
433 !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_sylpheed} "$(un_sylpheed_description)"
434 !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_plugins} "$(un_plugins_description)"
435!ifdef SYLPHEED_PRO
436 !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_sylpheed_pro} "$(un_sylpheed_pro_description)"
437!endif
438 !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_attachment_tool_plugin} "$(un_attachment_tool_plugin_description)"
439!ifdef HAVE_AUTOENC_PLUGIN
440 !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_autoenc_plugin} "$(un_autoenc_plugin_description)"
441!endif
442 !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_sylfilter} "$(un_sylfilter_description)"
443 !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_bsfilter} "$(un_bsfilter_description)"
444 !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_desktop_shortcut} "$(un_desktop_shortcut_description)"
445 !insertmacro MUI_DESCRIPTION_TEXT ${sec_un_quick_shortcut} "$(un_quick_shortcut_description)"
446 ; handler is not uninstallable.
447!insertmacro MUI_UNFUNCTION_DESCRIPTION_END
448
449Function .onInit
450 ${MementoSectionRestore}
451
452 StrCpy $1 ${sec_sylpheed}
453
454; Prevent install while Sylpheed is running
455check_app_running:
456 ${nsProcess::FindProcess} "sylpheed.exe" $R0
457 StrCmp $R0 "0" 0 +3
458 MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "$(app_running)" IDOK check_app_running
459 Abort
460
461; Auto-uninstall old before installing new
462; http://nsis.sourceforge.net/Auto-uninstall_old_before_installing_new
463 ReadRegStr $R0 HKLM \
464 "${PRODUCT_UNINST_KEY}" "UninstallString"
465 StrCmp $R0 "" done_
466
467 MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
468 "$(delete_caution)" \
469 /SD IDOK \
470 IDOK uninst
471 Abort
472
473;Run the uninstaller
474uninst:
475 ClearErrors
476 StrCpy $ISSILENT "/S"
477 IfSilent +2
478 StrCpy $ISSILENT ""
479 ExecWait '$R0 $ISSILENT _?=$INSTDIR' ;Do not copy the uninstaller to a temp file
480
481 IfErrors no_remove_uninstaller done_
482 no_remove_uninstaller:
483 Abort
484
485; label "done" used in MementoSectionRestore
486done_:
487FunctionEnd
488
489Function .onInstSuccess
490 ${MementoSectionSave}
491FunctionEnd
492
493Function .onSelChange
494 !insertmacro StartRadioButtons $1
495 !insertmacro RadioButton ${sec_sylpheed}
496 !insertmacro EndRadioButtons
497FunctionEnd
498
499Function un.onInit
500check_app_running:
501 ; Prevent uninstall while Sylpheed is running
502 ${nsProcess::FindProcess} "sylpheed.exe" $R0
503 StrCmp $R0 "0" 0 +3
504 MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "$(app_running_uninst)" IDOK check_app_running
505 Abort
506
507 ${nsProcess::KillProcess} "sylpheed.exe" $R0
508 ${nsProcess::KillProcess} "dts-indexer.exe" $R0
509 ${nsProcess::KillProcess} "postgres.exe" $R0
510
511 SetShellVarContext current
512
513 IfFileExists "$INSTDIR\sylpheed.exe" sylpheed_file_exists
514 !insertmacro UnselectSection ${sec_un_sylpheed}
515 sylpheed_file_exists:
516 !insertmacro SetSectionFlag ${sec_un_sylpheed} ${SF_RO}
517
518!ifdef SYLPHEED_PRO
519 IfFileExists "$INSTDIR\plugins\dbimport.dll" sylpheed_pro_file_exists
520 !insertmacro UnselectSection ${sec_un_sylpheed_pro}
521 !insertmacro SetSectionFlag ${sec_un_sylpheed_pro} ${SF_RO}
522 sylpheed_pro_file_exists:
523!endif
524
525 IfFileExists "$INSTDIR\plugins\attachment_tool.dll" attachment_tool_plugin_file_exists
526 !insertmacro UnselectSection ${sec_un_attachment_tool_plugin}
527 !insertmacro SetSectionFlag ${sec_un_attachment_tool_plugin} ${SF_RO}
528 attachment_tool_plugin_file_exists:
529
530!ifdef HAVE_AUTOENC_PLUGIN
531 IfFileExists "$INSTDIR\plugins\autoenc.dll" autoenc_plugin_file_exists
532 !insertmacro UnselectSection ${sec_un_autoenc_plugin}
533 !insertmacro SetSectionFlag ${sec_un_autoenc_plugin} ${SF_RO}
534 autoenc_plugin_file_exists:
535!endif
536
537 IfFileExists "$INSTDIR\sylfilter.exe" sylfilter_file_exists
538 !insertmacro UnselectSection ${sec_un_sylfilter}
539 !insertmacro SetSectionFlag ${sec_un_sylfilter} ${SF_RO}
540 sylfilter_file_exists:
541
542 IfFileExists "$INSTDIR\bsfilter" bsfilter_file_exists
543 !insertmacro UnselectSection ${sec_un_bsfilter}
544 !insertmacro SetSectionFlag ${sec_un_bsfilter} ${SF_RO}
545 bsfilter_file_exists:
546
547 SetShellVarContext current
548 IfFileExists "$DESKTOP\Sylpheed.lnk" desktop_shortcut_file_exists
549 !insertmacro UnselectSection ${sec_un_desktop_shortcut}
550 !insertmacro SetSectionFlag ${sec_un_desktop_shortcut} ${SF_RO}
551 desktop_shortcut_file_exists:
552
553 SetShellVarContext current
554 IfFileExists "$QUICKLAUNCH\Sylpheed.lnk" quick_shortcut_file_exists
555 !insertmacro UnselectSection ${sec_un_quick_shortcut}
556 !insertmacro SetSectionFlag ${sec_un_quick_shortcut} ${SF_RO}
557 quick_shortcut_file_exists:
558FunctionEnd
559
560Function ShowReadme
561 ExecShell open "$INSTDIR\README.txt"
562!ifdef SYLPHEED_PRO
563 ${If} $LANGUAGE = "${LANG_JAPANESE}"
564 IfFileExists "$INSTDIR\doc\manual\sylpheed-pro\ja\search-plugin.html" 0 +2
565 ExecShell open "$INSTDIR\doc\manual\sylpheed-pro\ja\search-plugin.html"
566 ${EndIf}
567!endif
568FunctionEnd
diff --git a/nsis/update-manager.nsi b/nsis/update-manager.nsi
new file mode 100644
index 0000000..f79a8a6
--- /dev/null
+++ b/nsis/update-manager.nsi
@@ -0,0 +1,124 @@
1;--------------------------------
2
3!include "sylpheed-defs.nsh"
4
5SetCompressor /SOLID lzma
6
7;--------------------------------
8
9!include "nsProcess.nsh"
10
11!include "MUI.nsh"
12!include "Sections.nsh"
13!include "FileFunc.nsh"
14
15; MUI Settings
16!define MUI_ABORTWARNING
17!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install-blue.ico"
18!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall-blue.ico"
19
20; Welcome page
21;!insertmacro MUI_PAGE_WELCOME
22; License page
23;!define MUI_LICENSEPAGE_RADIOBUTTONS
24;!insertmacro MUI_PAGE_LICENSE $(license)
25; Components page
26;!insertmacro MUI_PAGE_COMPONENTS
27; Directory page
28;!insertmacro MUI_PAGE_DIRECTORY
29; Instfiles page
30!insertmacro MUI_PAGE_INSTFILES
31; Finish page
32;!define MUI_FINISHPAGE_RUN "$INSTDIR\sylpheed.exe"
33;!define MUI_FINISHPAGE_RUN_NOTCHECKED
34!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README.txt"
35;!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README-win32.txt"
36;!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README-win32-ja.txt"
37!define MUI_FINISHPAGE_SHOWREADME_FUNCTION "ShowReadme"
38!define MUI_FINISHPAGE_SHOWREADME_TEXT "$(readme)"
39!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
40!define MUI_FINISHPAGE_LINK "$(jump)"
41!define MUI_FINISHPAGE_LINK_LOCATION ${PRODUCT_WEB_SITE}
42!insertmacro MUI_PAGE_FINISH
43
44; Language files
45!insertmacro MUI_LANGUAGE "English" # ${LANG_ENGLISH}
46!insertmacro MUI_LANGUAGE "Spanish" # ${LANG_SPANISH}
47!insertmacro MUI_LANGUAGE "Japanese" # ${LANG_JAPANESE}
48
49!include "English.nsh"
50!include "Spanish.nsh"
51!include "Japanese.nsh"
52;--------------------------------
53
54Caption "$(^Name) Update Manager"
55Name "${PRODUCT_NAME}"
56OutFile "update-manager.exe"
57InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
58InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
59
60RequestExecutionLevel admin
61
62ShowInstDetails hide
63XPStyle on
64BrandingText "${INST_NAME} ${INST_VERSION}"
65
66!define TEMP_INSTALLER_PATH "$TEMP\${PRODUCT_NAME}_setup.exe"
67
68Section "Download"
69; SetOutPath "$TEMP"
70
71 ${GetParameters} $R0
72 ${GetOptions} "$R0" "/uri" $1
73
74 StrCmp "$1" "" 0 uri_option_found
75 DetailPrint "usage: update-manager.exe /uri 'http://example.com/Sylpheed-VER_setup.exe'"
76 DetailPrint "or update-manager.exe /uri path\to\Sylpheed-VER_setup.exe"
77 Abort
78 uri_option_found:
79
80 IfFileExists "$1" copy_file
81
82 DetailPrint "Downloading $1"
83 NSISdl::download \
84 /TRANSLATE2 "$(downloading)" "$(connecting)" "$(second)" "$(minute)" "$(hour)" "$(seconds)" "$(minutes)" "$(hours)" "$(progress)" \
85 /TIMEOUT=30000 "$1" "${TEMP_INSTALLER_PATH}"
86 Pop $0
87 StrCmp "$0" "success" download_ok
88 DetailPrint "$(download_failed) $0"
89 Abort
90
91
92 copy_file:
93 CopyFiles "$1" "${TEMP_INSTALLER_PATH}"
94 Goto download_ok
95
96 download_ok:
97SectionEnd
98
99Section "Exec Installer"
100 ${nsProcess::FindProcess} "sylpheed.exe" $R0
101 StrCmp $R0 "0" 0 +3
102 MessageBox MB_ICONQUESTION|MB_YESNO "$(kill_and_update_confirm)" /SD IDYES IDYES +2
103 Abort
104
105 ExecWait "$INSTDIR\sylpheed.exe --exit" $R0
106
107 ; Wait for sylpheed.exe quit completely
108 ${nsProcess::FindProcess} "sylpheed.exe" $R0
109 StrCmp $R0 "0" 0 wait_done
110 Sleep 1000
111 ${nsProcess::FindProcess} "sylpheed.exe" $R0
112 StrCmp $R0 "0" 0 wait_done
113 Sleep 1000
114 ${nsProcess::FindProcess} "sylpheed.exe" $R0
115 StrCmp $R0 "0" 0 wait_done
116 Sleep 1000
117
118 wait_done:
119 ExecWait '"${TEMP_INSTALLER_PATH}" /S' $0
120SectionEnd
121
122Function ShowReadme
123 ExecShell open "$INSTDIR\README.txt"
124FunctionEnd