diff --git a/LICENSE.txt b/LICENSE.txt
index bbc5423d43c2b3ab87ca8c126968718ab53d4af3..002fc1862b005f069381d1196b60a90886a4e3d9 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -80,9 +80,10 @@ Public domain except as listed below:
 
 
 Installer:
-   Launch4j 2.0.RC3:
-   Copyright (C) 2005 Grzegorz Kowal
-   See licenses/LICENSE-GPLv2.txt
+   Launch4j 3.0.1:
+   Copyright (c) 2004, 2008 Grzegorz Kowal
+   See licenses/LICENSE-Launch4j.txt (in binary packages)
+   See installer/lib/launch4j/LICENSE.txt (in source packages)
    The following projects are used by Launch4j...
 	MinGW binutils (http://www.mingw.org/)
 
diff --git a/build.xml b/build.xml
index d9f833f9e054640ad524fc56c9820e2c528a39ce..8d4685653c66462cf9e2de7dac4445650b2cd586 100644
--- a/build.xml
+++ b/build.xml
@@ -380,6 +380,13 @@
         <copy todir="pkg-temp/licenses/" >
           <fileset dir="licenses/" />
         </copy>
+        <!--
+              The license in launch4j/ is a BSD license for launch4j
+              The license in launch4j/head is a MIT license for the code that is actually wrapped around the jars
+              So we include the MIT one in our binary package
+         -->
+        <copy file="installer/lib/launch4j/head/LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-Launch4j.txt" />
+        <!--  Not sure if these are used or should be included -->
         <copy file="installer/lib/launch4j/lib/foxtrot.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-Foxtrot.txt" />
         <copy file="installer/lib/launch4j/lib/JGoodies.Forms.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-JGoodies-Forms.txt" />
         <copy file="installer/lib/launch4j/lib/JGoodies.Looks.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-JGoodies-Looks.txt" />
diff --git a/installer/lib/launch4j/LICENSE.txt b/installer/lib/launch4j/LICENSE.txt
index 3912109b5cd65a68039d473c11c9f7ac2303e06d..82223322f56d405651d07754a4bde682ef441d4b 100644
--- a/installer/lib/launch4j/LICENSE.txt
+++ b/installer/lib/launch4j/LICENSE.txt
@@ -1,340 +1,30 @@
-		    GNU GENERAL PUBLIC LICENSE
-		       Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-                       51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-			    Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users.  This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it.  (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.)  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-  To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have.  You must make sure that they, too, receive or can get the
-source code.  And you must show them these terms so they know their
-rights.
-
-  We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-  Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software.  If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary.  To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-		    GNU GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License.  The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language.  (Hereinafter, translation is included without limitation in
-the term "modification".)  Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-  1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-  2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any
-    part thereof, to be licensed as a whole at no charge to all third
-    parties under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a
-    notice that there is no warranty (or else, saying that you provide
-    a warranty) and that users may redistribute the program under
-    these conditions, and telling the user how to view a copy of this
-    License.  (Exception: if the Program itself is interactive but
-    does not normally print such an announcement, your work based on
-    the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable
-    source code, which must be distributed under the terms of Sections
-    1 and 2 above on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your
-    cost of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer
-    to distribute corresponding source code.  (This alternative is
-    allowed only for noncommercial distribution and only if you
-    received the program in object code or executable form with such
-    an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it.  For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable.  However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License.  Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-  5. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Program or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-  6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
-  7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded.  In such case, this License incorporates
-the limitation as if written in the body of this License.
-
-  9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation.  If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-  10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission.  For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this.  Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
-			    NO WARRANTY
-
-  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
-		     END OF TERMS AND CONDITIONS
-
-	    How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-  <signature of Ty Coon>, 1 April 1989
-  Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Library General
-Public License instead of this License.
+Launch4j (http://launch4j.sourceforge.net/)
+Cross-platform Java application wrapper for creating Windows native executables.
+
+Copyright (c) 2004, 2008 Grzegorz Kowal
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright notice,
+      this list of conditions and the following disclaimer in the documentation
+      and/or other materials provided with the distribution.
+    * Neither the name of the Launch4j nor the names of its contributors
+      may be used to endorse or promote products derived from this software without
+      specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/installer/lib/launch4j/README-i2p.txt b/installer/lib/launch4j/README-i2p.txt
new file mode 100644
index 0000000000000000000000000000000000000000..44b3d1908a64ae9007f6eae20855843555f8df27
--- /dev/null
+++ b/installer/lib/launch4j/README-i2p.txt
@@ -0,0 +1,13 @@
+This is launch4j 3.0.1 2008-07-20.
+The license is BSD for launch4j and MIT for the wrapper code in head/
+
+Changelog is in web/changelog.html
+We upgraded to get support for 64-bit JRE on 64-bit windows.
+
+The previous version was 2.0-RC3 2005-08-13.
+The license was GPLv2 for launch4j and LGPLv2.1 for the wrapper code in head/
+
+The bin/ld.exe and bin/windres.exe files were contributed by
+i2p users so the i2p installer could be built on windows.
+
+They have not been updated for 3.0.1.
diff --git a/installer/lib/launch4j/bin/COPYING b/installer/lib/launch4j/bin/COPYING
deleted file mode 100644
index 60549be514af76c5db0c17ce6bbe01b2f81e2d9e..0000000000000000000000000000000000000000
--- a/installer/lib/launch4j/bin/COPYING
+++ /dev/null
@@ -1,340 +0,0 @@
-		    GNU GENERAL PUBLIC LICENSE
-		       Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-			    Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users.  This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it.  (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.)  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-  To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have.  You must make sure that they, too, receive or can get the
-source code.  And you must show them these terms so they know their
-rights.
-
-  We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-  Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software.  If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary.  To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-		    GNU GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License.  The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language.  (Hereinafter, translation is included without limitation in
-the term "modification".)  Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-  1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-  2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any
-    part thereof, to be licensed as a whole at no charge to all third
-    parties under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a
-    notice that there is no warranty (or else, saying that you provide
-    a warranty) and that users may redistribute the program under
-    these conditions, and telling the user how to view a copy of this
-    License.  (Exception: if the Program itself is interactive but
-    does not normally print such an announcement, your work based on
-    the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable
-    source code, which must be distributed under the terms of Sections
-    1 and 2 above on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your
-    cost of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer
-    to distribute corresponding source code.  (This alternative is
-    allowed only for noncommercial distribution and only if you
-    received the program in object code or executable form with such
-    an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it.  For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable.  However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License.  Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-  5. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Program or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-  6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
-  7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded.  In such case, this License incorporates
-the limitation as if written in the body of this License.
-
-  9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation.  If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-  10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission.  For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this.  Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
-			    NO WARRANTY
-
-  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
-		     END OF TERMS AND CONDITIONS
-
-	    How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) 19yy  <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) 19yy name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-  <signature of Ty Coon>, 1 April 1989
-  Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Library General
-Public License instead of this License.
diff --git a/installer/lib/launch4j/build.xml b/installer/lib/launch4j/build.xml
index 767e7c59271a9dfac33f24e3aef5fe6620ea52b2..a7682ce0c01291e267bfb8f40b11699be3c9a342 100644
--- a/installer/lib/launch4j/build.xml
+++ b/installer/lib/launch4j/build.xml
@@ -1,102 +1,62 @@
-<project name="launch4j" default="compile" basedir=".">
-	<property name="versionNumber" value="2.0.0.0" />
-	<property name="version" value="2.0.RC3" />
-	<property name="src" location="src" />
-	<property name="lib" location="lib" />
-	<property name="build" location="build" />
-	<property name="dist" location="${user.home}/dist/${ant.project.name}" />
-	<property name="jar" location="./${ant.project.name}.jar" />
-	<property name="launch4j.dir" location="." />
-	<property name="javac.compilerargs" value="" />
-
-	<path id="dist.classpath">
-		<pathelement path="${build}" />
-		<fileset dir="${lib}">
-			<include name="**/*.jar" />
-		</fileset>
-	</path>
-
-	<target name="init">
-		<tstamp />
-		<mkdir dir="${build}" />
-		<mkdir dir="${dist}" />
-	</target>
-
-	<target name="compile" depends="init" description="compile the source">
-		<javac srcdir="${src}" destdir="${build}" classpathref="dist.classpath" source="1.4" debug="on" />
-			<compilerarg line="${javac.compilerargs}" />
-		</javac>
-		<copy todir="${build}/images">
-			<fileset dir="${src}/images">
-				<include name="**/*" />
-			</fileset>
-		</copy>
-	</target>
-
-	<target name="jar" depends="compile" description="create jar">
-		<fileset dir="${lib}" id="lib.dist.fileset">
-			<include name="**/*.jar" />
-		</fileset>
-		<pathconvert pathsep=" " property="dist.classpath" refid="lib.dist.fileset">
-			<map from="${lib}" to="./lib" />
-		</pathconvert>
-		<!-- Put everything in ${build} into a jar file -->
-		<jar jarfile="${jar}">
-			<fileset dir="${build}" includes="**/*" />
-			<manifest>
-				<attribute name="Main-Class" value="net.sf.launch4j.Main" />
-				<attribute name="Class-Path" value=". ${dist.classpath}" />
-			</manifest>
-		</jar>
-		<jar jarfile="./launcher.jar">
-			<fileset dir="${build}" includes="net/sf/launch4j/Launcher.class" />
-			<manifest>
-				<attribute name="Main-Class" value="net.sf.launch4j.Launcher" />
-				<attribute name="Class-Path" value=". ./${ant.project.name}.jar ${dist.classpath}" />
-			</manifest>
-		</jar>
-	</target>
-
-	<target name="demo" depends="jar" description="build the demos">
-		<ant dir="./demo/ConsoleApp" inheritAll="false" />
-		<ant dir="./demo/SimpleApp" inheritAll="false" />
-	</target>
-
-	<target name="dist.linux" depends="jar" description="generate the Linux distribution">
-		<!-- changes executables to default mode!
-				<tar tarfile="${dist}/${ant.project.name}-${version}-linux.tgz" basedir="."
-				compression="gzip" excludes="**/build/** **/CVS/** **/*.exe"/> -->
-		<exec executable="tar" failonerror="true">
-			<arg line="-czC .. --exclude build --exclude CVS --exclude *.bat --exclude *.exe --exclude launch4j/l4j --exclude launch4j/launcher.jar -f ${dist}/${ant.project.name}-${version}-linux.tgz ./launch4j" />
-		</exec>
-	</target>
-
-	<target name="dist.win32" depends="jar" description="generate the Windows distribution">
-		<taskdef name="launch4j" classname="net.sf.launch4j.ant.Launch4jTask" classpath="${build}:./lib/xstream.jar" />
-		<launch4j configFile="./l4j/launch4j.xml"
-			fileVersion="${versionNumber}" txtFileVersion="${version}"
-			productVersion="${versionNumber}" txtProductVersion="${version}" />
-		<launch4j configFile="./l4j/launch4jc.xml"
-			fileVersion="${versionNumber}" txtFileVersion="${version}"
-			productVersion="${versionNumber}" txtProductVersion="${version}" />
-		<zip destfile="${dist}/${ant.project.name}-${version}-win32.zip">
-			<zipfileset dir="." prefix="launch4j" excludes="**/build/** **/CVS/** bin/ld bin/windres l4j/** launch4j launcher.jar" />
-		</zip>
-	</target>
-
-	<target name="dist" depends="demo, dist.linux, dist.win32, clean" description="generate all distributions" />
-
-	<target name="clean" description="clean up">
-		<delete file="${jar}" />
-		<delete file="./launcher.jar" />
-		<delete>
-			<fileset dir="." includes="*.exe"/>
-		</delete>
-		<ant dir="./demo/ConsoleApp" target="clean" inheritAll="false" />
-		<ant dir="./demo/SimpleApp" target="clean" inheritAll="false" />
-	</target>
-
-	<target name="clean.all" depends="clean" description="clean up">
-		<delete dir="${build}" />
-	</target>
-</project>
+<project name="launch4j" default="compile" basedir=".">
+	<property name="src" location="src" />
+	<property name="lib" location="lib" />
+	<property name="build" location="build" />
+	<property name="jar" location="./${ant.project.name}.jar" />
+	<property name="launch4j.dir" location="." />
+
+	<path id="dist.classpath">
+		<pathelement path="${build}" />
+		<fileset dir="${lib}">
+			<include name="**/*.jar" />
+		</fileset>
+	</path>
+
+	<target name="init">
+		<tstamp />
+		<mkdir dir="${build}" />
+	</target>
+
+	<target name="compile" depends="init" description="compile the source">
+		<javac srcdir="${src}" destdir="${build}" classpathref="dist.classpath" source="1.4" debug="on" />
+		<copy todir="${build}/images">
+			<fileset dir="${src}/images">
+				<include name="**/*" />
+			</fileset>
+		</copy>
+		<copy todir="${build}">
+			<fileset dir="${src}">
+				<include name="**/*.properties" />
+			</fileset>
+		</copy>
+	</target>
+
+	<target name="jar" depends="compile" description="create jar">
+		<fileset dir="${lib}" id="lib.dist.fileset">
+			<include name="**/*.jar" />
+		</fileset>
+		<pathconvert pathsep=" " property="dist.classpath" refid="lib.dist.fileset">
+			<map from="${lib}" to="./lib" />
+		</pathconvert>
+		<!-- Put everything in ${build} into a jar file -->
+		<jar jarfile="${jar}">
+			<fileset dir="${build}" excludes="**/messages_es.properties" />
+			<manifest>
+				<attribute name="Main-Class" value="net.sf.launch4j.Main" />
+				<attribute name="Class-Path" value=". ${dist.classpath}" />
+			</manifest>
+		</jar>
+	</target>
+
+	<target name="demo" depends="jar" description="build the demos">
+		<ant dir="./demo/ConsoleApp" inheritAll="false" />
+		<ant dir="./demo/SimpleApp" inheritAll="false" />
+	</target>
+
+	<target name="clean" description="clean up">
+		<delete dir="${build}" />
+		<delete file="${jar}" />
+		<ant dir="./demo/ConsoleApp" target="clean" inheritAll="false" />
+		<ant dir="./demo/SimpleApp" target="clean" inheritAll="false" />
+	</target>
+</project>
diff --git a/installer/lib/launch4j/demo/ConsoleApp/.cvsignore b/installer/lib/launch4j/demo/ConsoleApp/.cvsignore
deleted file mode 100644
index 378eac25d311703f3f2cd456d8036da525cd0366..0000000000000000000000000000000000000000
--- a/installer/lib/launch4j/demo/ConsoleApp/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-build
diff --git a/installer/lib/launch4j/demo/ConsoleApp/ConsoleApp.jar b/installer/lib/launch4j/demo/ConsoleApp/ConsoleApp.jar
index 59b3e8b7e8c5caf8061dfdbed26320285af26d53..6d4b126e6f18ac46a55cfc07e6d4fd2f590ee98d 100644
Binary files a/installer/lib/launch4j/demo/ConsoleApp/ConsoleApp.jar and b/installer/lib/launch4j/demo/ConsoleApp/ConsoleApp.jar differ
diff --git a/installer/lib/launch4j/demo/ConsoleApp/build.xml b/installer/lib/launch4j/demo/ConsoleApp/build.xml
index b06bb133ae088928094d0942280519939019e183..5f3473da651a7b357502d96cdeab147fc549bf62 100644
--- a/installer/lib/launch4j/demo/ConsoleApp/build.xml
+++ b/installer/lib/launch4j/demo/ConsoleApp/build.xml
@@ -1,59 +1,57 @@
 <project name="ConsoleApp" default="exe" basedir=".">
-	<property name="src" location="src"/>
-	<property name="lib"  location="lib"/>
-	<property name="build" location="build"/>
+	<property name="src" location="src" />
+	<property name="lib" location="lib" />
+	<property name="build" location="build" />
 	<property name="launch4j.dir" location="../.." />
 
 	<path id="dist.classpath">
-	       	<pathelement path="${build}"/>
+		<pathelement path="${build}" />
 		<fileset dir="${lib}">
-		       	<include name="**/*.jar"/>
-	      	</fileset>
+			<include name="**/*.jar" />
+		</fileset>
 	</path>
 
 	<target name="init">
-		<tstamp/>
-		<mkdir dir="${build}"/>
+		<tstamp />
+		<mkdir dir="${build}" />
 	</target>
 
 	<target name="compile" depends="init" description="compile the source">
-		<javac srcdir="${src}"  destdir="${build}"  classpathref="dist.classpath"  debug="on"/>
+		<javac srcdir="${src}" destdir="${build}" classpathref="dist.classpath" source="1.4" debug="on" />
 	</target>
 
 	<target name="jar" depends="compile" description="create the jar">
 		<fileset dir="${lib}" id="lib.dist.fileset">
-			<include name="**/*.jar"/>
+			<include name="**/*.jar" />
 		</fileset>
 		<pathconvert pathsep=" " property="dist.classpath" refid="lib.dist.fileset">
-			<map from="${lib}" to=".\lib"/>
+			<map from="${lib}" to=".\lib" />
 		</pathconvert>
 		<!-- Put everything in ${build} into a jar file -->
 		<jar jarfile="${ant.project.name}.jar">
-    			<fileset dir="${build}" includes="**/*"/>
+			<fileset dir="${build}" includes="**/*" />
 			<manifest>
 				<!-- SET YOUR MAIN CLASS HERE -->
-        	        	<attribute name="Main-Class" value="net.sf.launch4j.example.ConsoleApp"/>
-	        	        <attribute name="Class-Path" value=". ${dist.classpath}"/>
+				<attribute name="Main-Class" value="net.sf.launch4j.example.ConsoleApp" />
+				<attribute name="Class-Path" value=". ${dist.classpath}" />
 			</manifest>
 		</jar>
 	</target>
 
 	<target name="exe" depends="jar">
-		<taskdef name="launch4j"
-		  classname="net.sf.launch4j.ant.Launch4jTask"
-		  classpath="${launch4j.dir}/launch4j.jar
+		<taskdef name="launch4j" classname="net.sf.launch4j.ant.Launch4jTask" classpath="${launch4j.dir}/launch4j.jar
 		    :${launch4j.dir}/lib/xstream.jar" />
 		<launch4j>
-		  <config headerType="1" jar="ConsoleApp.jar" outfile="ConsoleApp.exe"
-		  	  errTitle="ConsoleApp" chdir="." customProcName="true" icon="l4j/ConsoleApp.ico">
-		    <jre minVersion="1.4.0" />
-		  </config>
+			<config headerType="console" jar="ConsoleApp.jar" outfile="ConsoleApp.exe" errTitle="ConsoleApp" chdir="." customProcName="true" icon="l4j/ConsoleApp.ico">
+				<singleInstance mutexName="net.sf.launch4j.example.ConsoleApp" />
+				<jre minVersion="1.4.0" />
+			</config>
 		</launch4j>
 	</target>
 
-	<target name="clean" description="clean up" >
-		<delete dir="${build}"/>
-		<delete file="${ant.project.name}.jar"/>
-		<delete file="${ant.project.name}.exe"/>
+	<target name="clean" description="clean up">
+		<delete dir="${build}" />
+		<delete file="${ant.project.name}.jar" />
+		<delete file="${ant.project.name}.exe" />
 	</target>
 </project>
diff --git a/installer/lib/launch4j/demo/ConsoleApp/src/net/sf/launch4j/example/ConsoleApp.java b/installer/lib/launch4j/demo/ConsoleApp/src/net/sf/launch4j/example/ConsoleApp.java
index 94fc33dd61acc00d500e8e9aae8cfeff1ba62e9d..eb1398c2c5f1b434e4071705efd597056fccfc1f 100644
--- a/installer/lib/launch4j/demo/ConsoleApp/src/net/sf/launch4j/example/ConsoleApp.java
+++ b/installer/lib/launch4j/demo/ConsoleApp/src/net/sf/launch4j/example/ConsoleApp.java
@@ -1,57 +1,72 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-package net.sf.launch4j.example;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class ConsoleApp {
-    public static void main(String[] args) {
-		StringBuffer sb = new StringBuffer("Hello World!\n\nJava version: ");
-		sb.append(System.getProperty("java.version"));
-		sb.append("\nJava home: ");
-		sb.append(System.getProperty("java.home"));
-		sb.append("\nCurrent dir: ");
-		sb.append(System.getProperty("user.dir"));
-		if (args.length > 0) {
-			sb.append("\nArgs: ");
-			for (int i = 0; i < args.length; i++) {
-				sb.append(args[i]);
-				sb.append(' ');
-			}
-		}
-		sb.append("\n\nEnter a line of text, Ctrl-C to stop.\n\n>");
-		System.out.print(sb.toString());
-		try {
-			BufferedReader is = new BufferedReader(new InputStreamReader(System.in));
-			String line;
-			while ((line = is.readLine()) != null) {
-				System.out.print("You wrote: " + line + "\n\n>");
-			}
-			is.close();
-		} catch (IOException e) {
-			System.err.print(e);
-		}
-    }
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+package net.sf.launch4j.example;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class ConsoleApp {
+    public static void main(String[] args) {
+		StringBuffer sb = new StringBuffer("Hello World!\n\nJava version: ");
+		sb.append(System.getProperty("java.version"));
+		sb.append("\nJava home: ");
+		sb.append(System.getProperty("java.home"));
+		sb.append("\nCurrent dir: ");
+		sb.append(System.getProperty("user.dir"));
+		if (args.length > 0) {
+			sb.append("\nArgs: ");
+			for (int i = 0; i < args.length; i++) {
+				sb.append(args[i]);
+				sb.append(' ');
+			}
+		}
+		sb.append("\n\nEnter a line of text, Ctrl-C to stop.\n\n>");
+		System.out.print(sb.toString());
+		try {
+			BufferedReader is = new BufferedReader(new InputStreamReader(System.in));
+			String line;
+			while ((line = is.readLine()) != null && !line.equalsIgnoreCase("quit")) {
+				System.out.print("You wrote: " + line + "\n\n>");
+			}
+			is.close();
+			System.exit(123);
+		} catch (IOException e) {
+			System.err.print(e);
+		}
+    }
+}
diff --git a/installer/lib/launch4j/demo/LICENSE.txt b/installer/lib/launch4j/demo/LICENSE.txt
index 3912109b5cd65a68039d473c11c9f7ac2303e06d..d6d6bb5eac1d05a3f36435ca63f4a3c0319dc62e 100644
--- a/installer/lib/launch4j/demo/LICENSE.txt
+++ b/installer/lib/launch4j/demo/LICENSE.txt
@@ -1,340 +1,30 @@
-		    GNU GENERAL PUBLIC LICENSE
-		       Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-                       51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-			    Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users.  This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it.  (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.)  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-  To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have.  You must make sure that they, too, receive or can get the
-source code.  And you must show them these terms so they know their
-rights.
-
-  We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-  Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software.  If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary.  To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-		    GNU GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License.  The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language.  (Hereinafter, translation is included without limitation in
-the term "modification".)  Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-  1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-  2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any
-    part thereof, to be licensed as a whole at no charge to all third
-    parties under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a
-    notice that there is no warranty (or else, saying that you provide
-    a warranty) and that users may redistribute the program under
-    these conditions, and telling the user how to view a copy of this
-    License.  (Exception: if the Program itself is interactive but
-    does not normally print such an announcement, your work based on
-    the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable
-    source code, which must be distributed under the terms of Sections
-    1 and 2 above on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your
-    cost of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer
-    to distribute corresponding source code.  (This alternative is
-    allowed only for noncommercial distribution and only if you
-    received the program in object code or executable form with such
-    an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it.  For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable.  However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License.  Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-  5. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Program or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-  6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
-  7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded.  In such case, this License incorporates
-the limitation as if written in the body of this License.
-
-  9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation.  If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-  10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission.  For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this.  Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
-			    NO WARRANTY
-
-  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
-		     END OF TERMS AND CONDITIONS
-
-	    How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-  <signature of Ty Coon>, 1 April 1989
-  Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Library General
-Public License instead of this License.
+Launch4j (http://launch4j.sourceforge.net/)
+Cross-platform Java application wrapper for creating Windows native executables.
+
+Copyright (c) 2004, 2007 Grzegorz Kowal
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright notice,
+      this list of conditions and the following disclaimer in the documentation
+      and/or other materials provided with the distribution.
+    * Neither the name of the Launch4j nor the names of its contributors
+      may be used to endorse or promote products derived from this software without
+      specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/installer/lib/launch4j/demo/SimpleApp/SimpleApp.jar b/installer/lib/launch4j/demo/SimpleApp/SimpleApp.jar
new file mode 100644
index 0000000000000000000000000000000000000000..f02c6133b7d38955cf3503afb1d6142265f91f67
Binary files /dev/null and b/installer/lib/launch4j/demo/SimpleApp/SimpleApp.jar differ
diff --git a/installer/lib/launch4j/demo/SimpleApp/build.xml b/installer/lib/launch4j/demo/SimpleApp/build.xml
new file mode 100644
index 0000000000000000000000000000000000000000..82f4b49980b648884565c14095faec83490d7659
--- /dev/null
+++ b/installer/lib/launch4j/demo/SimpleApp/build.xml
@@ -0,0 +1,52 @@
+<project name="SimpleApp" default="exe" basedir=".">
+	<property name="src" location="src" />
+	<property name="lib" location="lib" />
+	<property name="build" location="build" />
+	<property name="launch4j.dir" location="../.." />
+
+	<path id="dist.classpath">
+		<pathelement path="${build}" />
+		<fileset dir="${lib}">
+			<include name="**/*.jar" />
+		</fileset>
+	</path>
+
+	<target name="init">
+		<tstamp />
+		<mkdir dir="${build}" />
+	</target>
+
+	<target name="compile" depends="init" description="compile the source">
+		<javac srcdir="${src}" destdir="${build}" classpathref="dist.classpath" source="1.4" debug="on" />
+	</target>
+
+	<target name="jar" depends="compile" description="create the jar">
+		<fileset dir="${lib}" id="lib.dist.fileset">
+			<include name="**/*.jar" />
+		</fileset>
+		<pathconvert pathsep=" " property="dist.classpath" refid="lib.dist.fileset">
+			<map from="${lib}" to=".\lib" />
+		</pathconvert>
+		<!-- Put everything in ${build} into a jar file -->
+		<jar jarfile="${ant.project.name}.jar">
+			<fileset dir="${build}" includes="**/*" />
+			<manifest>
+				<!-- SET YOUR MAIN CLASS HERE -->
+				<attribute name="Main-Class" value="net.sf.launch4j.example.SimpleApp" />
+				<attribute name="Class-Path" value=". ${dist.classpath}" />
+			</manifest>
+		</jar>
+	</target>
+
+	<target name="exe" depends="jar">
+		<taskdef name="launch4j" classname="net.sf.launch4j.ant.Launch4jTask" classpath="${launch4j.dir}/launch4j.jar
+		    :${launch4j.dir}/lib/xstream.jar" />
+		<launch4j configFile="./l4j/SimpleApp.xml" />
+	</target>
+
+	<target name="clean" description="clean up">
+		<delete dir="${build}" />
+		<delete file="${ant.project.name}.jar" />
+		<delete file="${ant.project.name}.exe" />
+	</target>
+</project>
diff --git a/installer/lib/launch4j/demo/SimpleApp/l4j/SimpleApp.ico b/installer/lib/launch4j/demo/SimpleApp/l4j/SimpleApp.ico
new file mode 100644
index 0000000000000000000000000000000000000000..cc4c540e2d1b1556444bfddf1ce9f32aa1f5e94c
Binary files /dev/null and b/installer/lib/launch4j/demo/SimpleApp/l4j/SimpleApp.ico differ
diff --git a/installer/lib/launch4j/demo/SimpleApp/l4j/SimpleApp.xml b/installer/lib/launch4j/demo/SimpleApp/l4j/SimpleApp.xml
new file mode 100644
index 0000000000000000000000000000000000000000..9a7dc940a6256b234068fe652976551bf4b47e69
--- /dev/null
+++ b/installer/lib/launch4j/demo/SimpleApp/l4j/SimpleApp.xml
@@ -0,0 +1,18 @@
+<launch4jConfig>
+  <headerType>gui</headerType>
+  <jar>../SimpleApp.jar</jar>
+  <outfile>../SimpleApp.exe</outfile>
+  <errTitle>SimpleApp</errTitle>
+  <chdir>.</chdir>
+  <customProcName>true</customProcName>
+  <icon>SimpleApp.ico</icon>
+  <jre>
+    <minVersion>1.4.0</minVersion>
+  </jre>
+  <splash>
+    <file>splash.bmp</file>
+    <waitForWindow>true</waitForWindow>
+    <timeout>60</timeout>
+    <timeoutErr>true</timeoutErr>
+  </splash>
+</launch4jConfig>
\ No newline at end of file
diff --git a/installer/lib/launch4j/demo/SimpleApp/l4j/splash.bmp b/installer/lib/launch4j/demo/SimpleApp/l4j/splash.bmp
new file mode 100644
index 0000000000000000000000000000000000000000..88d7bbf10fd2f2c7ba629802767be3cc4fecfcf9
Binary files /dev/null and b/installer/lib/launch4j/demo/SimpleApp/l4j/splash.bmp differ
diff --git a/installer/lib/launch4j/demo/SimpleApp/lib/readme.txt b/installer/lib/launch4j/demo/SimpleApp/lib/readme.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ef44ded3a1a894a305c6078aa094af0cdff04f59
--- /dev/null
+++ b/installer/lib/launch4j/demo/SimpleApp/lib/readme.txt
@@ -0,0 +1,8 @@
+Put your jar libs here and the build script will include them
+in the classpath stored inside the jar manifest.
+In order to run your application move the output exe file from
+the dist directory to the same level as lib. 
+
+SimpleApp.exe
+lib/
+lib/xml.jar
diff --git a/installer/lib/launch4j/demo/SimpleApp/readme.txt b/installer/lib/launch4j/demo/SimpleApp/readme.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fa38dc8bd2f390f6d821902fc4d0dbd8b99e1306
--- /dev/null
+++ b/installer/lib/launch4j/demo/SimpleApp/readme.txt
@@ -0,0 +1 @@
+To build the example application set JAVA_HOME and ANT_HOME environment variables.
diff --git a/installer/lib/launch4j/demo/SimpleApp/src/net/sf/launch4j/example/SimpleApp.java b/installer/lib/launch4j/demo/SimpleApp/src/net/sf/launch4j/example/SimpleApp.java
new file mode 100644
index 0000000000000000000000000000000000000000..8e87c5953916b053baaf70833058e01a693c119b
--- /dev/null
+++ b/installer/lib/launch4j/demo/SimpleApp/src/net/sf/launch4j/example/SimpleApp.java
@@ -0,0 +1,104 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+package net.sf.launch4j.example;
+
+import java.awt.Dimension;
+import java.awt.Toolkit;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+
+import javax.swing.JFrame;
+import javax.swing.JMenu;
+import javax.swing.JMenuBar;
+import javax.swing.JMenuItem;
+import javax.swing.JOptionPane;
+import javax.swing.UIManager;
+
+public class SimpleApp extends JFrame {
+    public SimpleApp(String[] args) {
+        super("Java Application");
+        final int inset = 100;
+        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+		setBounds (inset, inset,
+				screenSize.width - inset * 2, screenSize.height - inset * 2);
+
+		JMenu menu = new JMenu("File");
+		menu.add(new JMenuItem("Open"));
+		menu.add(new JMenuItem("Save"));
+		JMenuBar mb = new JMenuBar();
+		mb.setOpaque(true);
+		mb.add(menu);
+		setJMenuBar(mb);
+
+		this.addWindowListener(new WindowAdapter() {
+	    	public void windowClosing(WindowEvent e) {
+				System.exit(123);
+		}});
+		setVisible(true);
+
+		StringBuffer sb = new StringBuffer("Java version: ");
+		sb.append(System.getProperty("java.version"));
+		sb.append("\nJava home: ");
+		sb.append(System.getProperty("java.home"));
+		sb.append("\nCurrent dir: ");
+		sb.append(System.getProperty("user.dir"));
+		if (args.length > 0) {
+			sb.append("\nArgs: ");
+			for (int i = 0; i < args.length; i++) {
+				sb.append(args[i]);
+				sb.append(' ');
+			}
+		}
+		JOptionPane.showMessageDialog(this,
+				sb.toString(),
+				"Info",
+				JOptionPane.INFORMATION_MESSAGE);
+    }
+
+	public static void setLAF() {
+		JFrame.setDefaultLookAndFeelDecorated(true);
+		Toolkit.getDefaultToolkit().setDynamicLayout(true);
+		System.setProperty("sun.awt.noerasebackground","true");
+		try {
+			UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
+		} catch (Exception e) {
+			System.err.println("Failed to set LookAndFeel");
+		}
+	}
+
+   	public static void main(String[] args) {
+   		setLAF();
+		new SimpleApp(args);
+	}
+}
diff --git a/installer/lib/launch4j/head/LICENSE.txt b/installer/lib/launch4j/head/LICENSE.txt
index b1e3f5a2638797271cbc9b91b856c05ed6942c8f..536488e61490fa6536e3d5fefd58abb0c4cf9a2d 100644
--- a/installer/lib/launch4j/head/LICENSE.txt
+++ b/installer/lib/launch4j/head/LICENSE.txt
@@ -1,504 +1,23 @@
-		  GNU LESSER GENERAL PUBLIC LICENSE
-		       Version 2.1, February 1999
-
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
-     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the Lesser GPL.  It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]
-
-			    Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
-  This license, the Lesser General Public License, applies to some
-specially designated software packages--typically libraries--of the
-Free Software Foundation and other authors who decide to use it.  You
-can use it too, but we suggest you first think carefully about whether
-this license or the ordinary General Public License is the better
-strategy to use in any particular case, based on the explanations below.
-
-  When we speak of free software, we are referring to freedom of use,
-not price.  Our General Public Licenses are designed to make sure that
-you have the freedom to distribute copies of free software (and charge
-for this service if you wish); that you receive source code or can get
-it if you want it; that you can change the software and use pieces of
-it in new free programs; and that you are informed that you can do
-these things.
-
-  To protect your rights, we need to make restrictions that forbid
-distributors to deny you these rights or to ask you to surrender these
-rights.  These restrictions translate to certain responsibilities for
-you if you distribute copies of the library or if you modify it.
-
-  For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you.  You must make sure that they, too, receive or can get the source
-code.  If you link other code with the library, you must provide
-complete object files to the recipients, so that they can relink them
-with the library after making changes to the library and recompiling
-it.  And you must show them these terms so they know their rights.
-
-  We protect your rights with a two-step method: (1) we copyright the
-library, and (2) we offer you this license, which gives you legal
-permission to copy, distribute and/or modify the library.
-
-  To protect each distributor, we want to make it very clear that
-there is no warranty for the free library.  Also, if the library is
-modified by someone else and passed on, the recipients should know
-that what they have is not the original version, so that the original
-author's reputation will not be affected by problems that might be
-introduced by others.
-
-  Finally, software patents pose a constant threat to the existence of
-any free program.  We wish to make sure that a company cannot
-effectively restrict the users of a free program by obtaining a
-restrictive license from a patent holder.  Therefore, we insist that
-any patent license obtained for a version of the library must be
-consistent with the full freedom of use specified in this license.
-
-  Most GNU software, including some libraries, is covered by the
-ordinary GNU General Public License.  This license, the GNU Lesser
-General Public License, applies to certain designated libraries, and
-is quite different from the ordinary General Public License.  We use
-this license for certain libraries in order to permit linking those
-libraries into non-free programs.
-
-  When a program is linked with a library, whether statically or using
-a shared library, the combination of the two is legally speaking a
-combined work, a derivative of the original library.  The ordinary
-General Public License therefore permits such linking only if the
-entire combination fits its criteria of freedom.  The Lesser General
-Public License permits more lax criteria for linking other code with
-the library.
-
-  We call this license the "Lesser" General Public License because it
-does Less to protect the user's freedom than the ordinary General
-Public License.  It also provides other free software developers Less
-of an advantage over competing non-free programs.  These disadvantages
-are the reason we use the ordinary General Public License for many
-libraries.  However, the Lesser license provides advantages in certain
-special circumstances.
-
-  For example, on rare occasions, there may be a special need to
-encourage the widest possible use of a certain library, so that it becomes
-a de-facto standard.  To achieve this, non-free programs must be
-allowed to use the library.  A more frequent case is that a free
-library does the same job as widely used non-free libraries.  In this
-case, there is little to gain by limiting the free library to free
-software only, so we use the Lesser General Public License.
-
-  In other cases, permission to use a particular library in non-free
-programs enables a greater number of people to use a large body of
-free software.  For example, permission to use the GNU C Library in
-non-free programs enables many more people to use the whole GNU
-operating system, as well as its variant, the GNU/Linux operating
-system.
-
-  Although the Lesser General Public License is Less protective of the
-users' freedom, it does ensure that the user of a program that is
-linked with the Library has the freedom and the wherewithal to run
-that program using a modified version of the Library.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.  Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library".  The
-former contains code derived from the library, whereas the latter must
-be combined with the library in order to run.
-
-		  GNU LESSER GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License Agreement applies to any software library or other
-program which contains a notice placed by the copyright holder or
-other authorized party saying it may be distributed under the terms of
-this Lesser General Public License (also called "this License").
-Each licensee is addressed as "you".
-
-  A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
-  The "Library", below, refers to any such software library or work
-which has been distributed under these terms.  A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language.  (Hereinafter, translation is
-included without limitation in the term "modification".)
-
-  "Source code" for a work means the preferred form of the work for
-making modifications to it.  For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control compilation
-and installation of the library.
-
-  Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it).  Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-  
-  1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
-  You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-
-  2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) The modified work must itself be a software library.
-
-    b) You must cause the files modified to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    c) You must cause the whole of the work to be licensed at no
-    charge to all third parties under the terms of this License.
-
-    d) If a facility in the modified Library refers to a function or a
-    table of data to be supplied by an application program that uses
-    the facility, other than as an argument passed when the facility
-    is invoked, then you must make a good faith effort to ensure that,
-    in the event an application does not supply such function or
-    table, the facility still operates, and performs whatever part of
-    its purpose remains meaningful.
-
-    (For example, a function in a library to compute square roots has
-    a purpose that is entirely well-defined independent of the
-    application.  Therefore, Subsection 2d requires that any
-    application-supplied function or table used by this function must
-    be optional: if the application does not supply it, the square
-    root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library.  To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License.  (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.)  Do not make any other change in
-these notices.
-
-  Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
-  This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
-  4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
-  If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library".  Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
-  However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library".  The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
-  When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library.  The
-threshold for this to be true is not precisely defined by law.
-
-  If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work.  (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
-  Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-
-  6. As an exception to the Sections above, you may also combine or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
-  You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License.  You must supply a copy of this License.  If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License.  Also, you must do one
-of these things:
-
-    a) Accompany the work with the complete corresponding
-    machine-readable source code for the Library including whatever
-    changes were used in the work (which must be distributed under
-    Sections 1 and 2 above); and, if the work is an executable linked
-    with the Library, with the complete machine-readable "work that
-    uses the Library", as object code and/or source code, so that the
-    user can modify the Library and then relink to produce a modified
-    executable containing the modified Library.  (It is understood
-    that the user who changes the contents of definitions files in the
-    Library will not necessarily be able to recompile the application
-    to use the modified definitions.)
-
-    b) Use a suitable shared library mechanism for linking with the
-    Library.  A suitable mechanism is one that (1) uses at run time a
-    copy of the library already present on the user's computer system,
-    rather than copying library functions into the executable, and (2)
-    will operate properly with a modified version of the library, if
-    the user installs one, as long as the modified version is
-    interface-compatible with the version that the work was made with.
-
-    c) Accompany the work with a written offer, valid for at
-    least three years, to give the same user the materials
-    specified in Subsection 6a, above, for a charge no more
-    than the cost of performing this distribution.
-
-    d) If distribution of the work is made by offering access to copy
-    from a designated place, offer equivalent access to copy the above
-    specified materials from the same place.
-
-    e) Verify that the user has already received a copy of these
-    materials or that you have already sent this user a copy.
-
-  For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it.  However, as a special exception,
-the materials to be distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
-  It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system.  Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-
-  7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
-    a) Accompany the combined library with a copy of the same work
-    based on the Library, uncombined with any other library
-    facilities.  This must be distributed under the terms of the
-    Sections above.
-
-    b) Give prominent notice with the combined library of the fact
-    that part of it is a work based on the Library, and explaining
-    where to find the accompanying uncombined form of the same work.
-
-  8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License.  Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License.  However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
-  9. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Library or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
-  10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties with
-this License.
-
-  11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply,
-and the section as a whole is intended to apply in other circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License may add
-an explicit geographical distribution limitation excluding those countries,
-so that distribution is permitted only in or among countries not thus
-excluded.  In such case, this License incorporates the limitation as if
-written in the body of this License.
-
-  13. The Free Software Foundation may publish revised and/or new
-versions of the Lesser General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation.  If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-
-  14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission.  For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this.  Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
-			    NO WARRANTY
-
-  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
-		     END OF TERMS AND CONDITIONS
-
-           How to Apply These Terms to Your New Libraries
-
-  If you develop a new library, and you want it to be of the greatest
-possible use to the public, we recommend making it free software that
-everyone can redistribute and change.  You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms of the
-ordinary General Public License).
-
-  To apply these terms, attach the following notices to the library.  It is
-safest to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the library's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Lesser General Public
-    License as published by the Free Software Foundation; either
-    version 2.1 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Lesser General Public License for more details.
-
-    You should have received a copy of the GNU Lesser General Public
-    License along with this library; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the library, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the
-  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
-
-  <signature of Ty Coon>, 1 April 1990
-  Ty Coon, President of Vice
-
-That's all there is to it!
-
-
+Copyright (c) 2004, 2007 Grzegorz Kowal
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+Except as contained in this notice, the name(s) of the above copyright holders
+shall not be used in advertising or otherwise to promote the sale, use or other
+dealings in this Software without prior written authorization.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/installer/lib/launch4j/head/consolehead.o b/installer/lib/launch4j/head/consolehead.o
index 89706ccc720eef29cd90186e0ac297f0d4382411..739d9767fdc43908988d4c92de7294f74a2f96f0 100644
Binary files a/installer/lib/launch4j/head/consolehead.o and b/installer/lib/launch4j/head/consolehead.o differ
diff --git a/installer/lib/launch4j/head/guihead.o b/installer/lib/launch4j/head/guihead.o
index ddd2be1baa704ec05c64fc77a59afed728c0e51f..e830aa9e209dac68e021665e5b391ddacb2158ae 100644
Binary files a/installer/lib/launch4j/head/guihead.o and b/installer/lib/launch4j/head/guihead.o differ
diff --git a/installer/lib/launch4j/head/head.o b/installer/lib/launch4j/head/head.o
index 1cdcd670b1177807d14aac0a05f64de1edd5c664..d595f9e78d340cb255515c55ca72b5b65c83d926 100644
Binary files a/installer/lib/launch4j/head/head.o and b/installer/lib/launch4j/head/head.o differ
diff --git a/installer/lib/launch4j/head_src/LICENSE.txt b/installer/lib/launch4j/head_src/LICENSE.txt
index b1e3f5a2638797271cbc9b91b856c05ed6942c8f..2805f412a16e5a51ee1cb05041cc659e96169fb7 100644
--- a/installer/lib/launch4j/head_src/LICENSE.txt
+++ b/installer/lib/launch4j/head_src/LICENSE.txt
@@ -1,504 +1,23 @@
-		  GNU LESSER GENERAL PUBLIC LICENSE
-		       Version 2.1, February 1999
-
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
-     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the Lesser GPL.  It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]
-
-			    Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
-  This license, the Lesser General Public License, applies to some
-specially designated software packages--typically libraries--of the
-Free Software Foundation and other authors who decide to use it.  You
-can use it too, but we suggest you first think carefully about whether
-this license or the ordinary General Public License is the better
-strategy to use in any particular case, based on the explanations below.
-
-  When we speak of free software, we are referring to freedom of use,
-not price.  Our General Public Licenses are designed to make sure that
-you have the freedom to distribute copies of free software (and charge
-for this service if you wish); that you receive source code or can get
-it if you want it; that you can change the software and use pieces of
-it in new free programs; and that you are informed that you can do
-these things.
-
-  To protect your rights, we need to make restrictions that forbid
-distributors to deny you these rights or to ask you to surrender these
-rights.  These restrictions translate to certain responsibilities for
-you if you distribute copies of the library or if you modify it.
-
-  For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you.  You must make sure that they, too, receive or can get the source
-code.  If you link other code with the library, you must provide
-complete object files to the recipients, so that they can relink them
-with the library after making changes to the library and recompiling
-it.  And you must show them these terms so they know their rights.
-
-  We protect your rights with a two-step method: (1) we copyright the
-library, and (2) we offer you this license, which gives you legal
-permission to copy, distribute and/or modify the library.
-
-  To protect each distributor, we want to make it very clear that
-there is no warranty for the free library.  Also, if the library is
-modified by someone else and passed on, the recipients should know
-that what they have is not the original version, so that the original
-author's reputation will not be affected by problems that might be
-introduced by others.
-
-  Finally, software patents pose a constant threat to the existence of
-any free program.  We wish to make sure that a company cannot
-effectively restrict the users of a free program by obtaining a
-restrictive license from a patent holder.  Therefore, we insist that
-any patent license obtained for a version of the library must be
-consistent with the full freedom of use specified in this license.
-
-  Most GNU software, including some libraries, is covered by the
-ordinary GNU General Public License.  This license, the GNU Lesser
-General Public License, applies to certain designated libraries, and
-is quite different from the ordinary General Public License.  We use
-this license for certain libraries in order to permit linking those
-libraries into non-free programs.
-
-  When a program is linked with a library, whether statically or using
-a shared library, the combination of the two is legally speaking a
-combined work, a derivative of the original library.  The ordinary
-General Public License therefore permits such linking only if the
-entire combination fits its criteria of freedom.  The Lesser General
-Public License permits more lax criteria for linking other code with
-the library.
-
-  We call this license the "Lesser" General Public License because it
-does Less to protect the user's freedom than the ordinary General
-Public License.  It also provides other free software developers Less
-of an advantage over competing non-free programs.  These disadvantages
-are the reason we use the ordinary General Public License for many
-libraries.  However, the Lesser license provides advantages in certain
-special circumstances.
-
-  For example, on rare occasions, there may be a special need to
-encourage the widest possible use of a certain library, so that it becomes
-a de-facto standard.  To achieve this, non-free programs must be
-allowed to use the library.  A more frequent case is that a free
-library does the same job as widely used non-free libraries.  In this
-case, there is little to gain by limiting the free library to free
-software only, so we use the Lesser General Public License.
-
-  In other cases, permission to use a particular library in non-free
-programs enables a greater number of people to use a large body of
-free software.  For example, permission to use the GNU C Library in
-non-free programs enables many more people to use the whole GNU
-operating system, as well as its variant, the GNU/Linux operating
-system.
-
-  Although the Lesser General Public License is Less protective of the
-users' freedom, it does ensure that the user of a program that is
-linked with the Library has the freedom and the wherewithal to run
-that program using a modified version of the Library.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.  Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library".  The
-former contains code derived from the library, whereas the latter must
-be combined with the library in order to run.
-
-		  GNU LESSER GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License Agreement applies to any software library or other
-program which contains a notice placed by the copyright holder or
-other authorized party saying it may be distributed under the terms of
-this Lesser General Public License (also called "this License").
-Each licensee is addressed as "you".
-
-  A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
-  The "Library", below, refers to any such software library or work
-which has been distributed under these terms.  A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language.  (Hereinafter, translation is
-included without limitation in the term "modification".)
-
-  "Source code" for a work means the preferred form of the work for
-making modifications to it.  For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control compilation
-and installation of the library.
-
-  Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it).  Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-  
-  1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
-  You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-
-  2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) The modified work must itself be a software library.
-
-    b) You must cause the files modified to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    c) You must cause the whole of the work to be licensed at no
-    charge to all third parties under the terms of this License.
-
-    d) If a facility in the modified Library refers to a function or a
-    table of data to be supplied by an application program that uses
-    the facility, other than as an argument passed when the facility
-    is invoked, then you must make a good faith effort to ensure that,
-    in the event an application does not supply such function or
-    table, the facility still operates, and performs whatever part of
-    its purpose remains meaningful.
-
-    (For example, a function in a library to compute square roots has
-    a purpose that is entirely well-defined independent of the
-    application.  Therefore, Subsection 2d requires that any
-    application-supplied function or table used by this function must
-    be optional: if the application does not supply it, the square
-    root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library.  To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License.  (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.)  Do not make any other change in
-these notices.
-
-  Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
-  This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
-  4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
-  If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library".  Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
-  However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library".  The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
-  When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library.  The
-threshold for this to be true is not precisely defined by law.
-
-  If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work.  (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
-  Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-
-  6. As an exception to the Sections above, you may also combine or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
-  You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License.  You must supply a copy of this License.  If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License.  Also, you must do one
-of these things:
-
-    a) Accompany the work with the complete corresponding
-    machine-readable source code for the Library including whatever
-    changes were used in the work (which must be distributed under
-    Sections 1 and 2 above); and, if the work is an executable linked
-    with the Library, with the complete machine-readable "work that
-    uses the Library", as object code and/or source code, so that the
-    user can modify the Library and then relink to produce a modified
-    executable containing the modified Library.  (It is understood
-    that the user who changes the contents of definitions files in the
-    Library will not necessarily be able to recompile the application
-    to use the modified definitions.)
-
-    b) Use a suitable shared library mechanism for linking with the
-    Library.  A suitable mechanism is one that (1) uses at run time a
-    copy of the library already present on the user's computer system,
-    rather than copying library functions into the executable, and (2)
-    will operate properly with a modified version of the library, if
-    the user installs one, as long as the modified version is
-    interface-compatible with the version that the work was made with.
-
-    c) Accompany the work with a written offer, valid for at
-    least three years, to give the same user the materials
-    specified in Subsection 6a, above, for a charge no more
-    than the cost of performing this distribution.
-
-    d) If distribution of the work is made by offering access to copy
-    from a designated place, offer equivalent access to copy the above
-    specified materials from the same place.
-
-    e) Verify that the user has already received a copy of these
-    materials or that you have already sent this user a copy.
-
-  For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it.  However, as a special exception,
-the materials to be distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
-  It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system.  Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-
-  7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
-    a) Accompany the combined library with a copy of the same work
-    based on the Library, uncombined with any other library
-    facilities.  This must be distributed under the terms of the
-    Sections above.
-
-    b) Give prominent notice with the combined library of the fact
-    that part of it is a work based on the Library, and explaining
-    where to find the accompanying uncombined form of the same work.
-
-  8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License.  Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License.  However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
-  9. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Library or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
-  10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties with
-this License.
-
-  11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply,
-and the section as a whole is intended to apply in other circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License may add
-an explicit geographical distribution limitation excluding those countries,
-so that distribution is permitted only in or among countries not thus
-excluded.  In such case, this License incorporates the limitation as if
-written in the body of this License.
-
-  13. The Free Software Foundation may publish revised and/or new
-versions of the Lesser General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation.  If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-
-  14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission.  For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this.  Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
-			    NO WARRANTY
-
-  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
-		     END OF TERMS AND CONDITIONS
-
-           How to Apply These Terms to Your New Libraries
-
-  If you develop a new library, and you want it to be of the greatest
-possible use to the public, we recommend making it free software that
-everyone can redistribute and change.  You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms of the
-ordinary General Public License).
-
-  To apply these terms, attach the following notices to the library.  It is
-safest to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the library's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Lesser General Public
-    License as published by the Free Software Foundation; either
-    version 2.1 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Lesser General Public License for more details.
-
-    You should have received a copy of the GNU Lesser General Public
-    License along with this library; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the library, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the
-  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
-
-  <signature of Ty Coon>, 1 April 1990
-  Ty Coon, President of Vice
-
-That's all there is to it!
-
-
+Copyright (c) 2004, 2008 Grzegorz Kowal
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+Except as contained in this notice, the name(s) of the above copyright holders
+shall not be used in advertising or otherwise to promote the sale, use or other
+dealings in this Software without prior written authorization.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/installer/lib/launch4j/head_src/consolehead/Makefile.win b/installer/lib/launch4j/head_src/consolehead/Makefile.win
index 55366347b8dca0425fd01e0aa9fdd4da9a6282cd..349e4c00f5c25fddc974f9da939cdee9cac40a0d 100644
--- a/installer/lib/launch4j/head_src/consolehead/Makefile.win
+++ b/installer/lib/launch4j/head_src/consolehead/Makefile.win
@@ -5,11 +5,11 @@ CPP  = g++.exe
 CC   = gcc.exe
 WINDRES = windres.exe
 RES  = 
-OBJ  = consolehead.o ../head.o $(RES)
-LINKOBJ  = consolehead.o ../head.o $(RES)
-LIBS =  -L"lib"  -s 
-INCS =  -I"include" 
-CXXINCS =  -I"lib/gcc/mingw32/3.4.2/include"  -I"include/c++/3.4.2/backward"  -I"include/c++/3.4.2/mingw32"  -I"include/c++/3.4.2"  -I"include" 
+OBJ  = ../../head/consolehead.o ../../head/head.o $(RES)
+LINKOBJ  = ../../head/consolehead.o ../../head/head.o $(RES)
+LIBS =  -L"C:/Dev-Cpp/lib" -n  -s 
+INCS =  -I"C:/Dev-Cpp/include" 
+CXXINCS =  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include" 
 BIN  = consolehead.exe
 CXXFLAGS = $(CXXINCS)   -fexpensive-optimizations -O3
 CFLAGS = $(INCS)   -fexpensive-optimizations -O3
@@ -24,10 +24,10 @@ clean: clean-custom
 	${RM} $(OBJ) $(BIN)
 
 $(BIN): $(OBJ)
-	$(CC) $(LINKOBJ) -o "consolehead.exe" $(LIBS)
+#	$(CC) $(LINKOBJ) -o "consolehead.exe" $(LIBS)
 
-consolehead.o: consolehead.c
-	$(CC) -c consolehead.c -o consolehead.o $(CFLAGS)
+../../head/consolehead.o: consolehead.c
+	$(CC) -c consolehead.c -o ../../head/consolehead.o $(CFLAGS)
 
-../head.o: ../head.c
-	$(CC) -c ../head.c -o ../head.o $(CFLAGS)
+../../head/head.o: ../head.c
+	$(CC) -c ../head.c -o ../../head/head.o $(CFLAGS)
diff --git a/installer/lib/launch4j/head_src/consolehead/consolehead.c b/installer/lib/launch4j/head_src/consolehead/consolehead.c
index cc0d85d7623065b8ca767ddc0fe9f2b02d9d16af..755a7673c106a7cd54da6fef4f39fe89897da707 100644
--- a/installer/lib/launch4j/head_src/consolehead/consolehead.c
+++ b/installer/lib/launch4j/head_src/consolehead/consolehead.c
@@ -1,24 +1,30 @@
 /*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
 
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
-	Copyright (C) 2004-2005 Grzegorz Kowal
+	Copyright (c) 2004, 2007 Grzegorz Kowal
 
-	Compiled with Mingw port of GCC, Bloodshed Dev-C++ IDE (http://www.bloodshed.net/devcpp.html)
+	Permission is hereby granted, free of charge, to any person obtaining a copy
+	of this software and associated documentation files (the "Software"), to deal
+	in the Software without restriction, including without limitation the rights
+	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+	copies of the Software, and to permit persons to whom the Software is
+	furnished to do so, subject to the following conditions:
 
-	This library is free software; you can redistribute it and/or
-	modify it under the terms of the GNU Lesser General Public
-	License as published by the Free Software Foundation; either
-	version 2.1 of the License, or (at your option) any later version.
+	The above copyright notice and this permission notice shall be included in
+	all copies or substantial portions of the Software.
 
-	This library is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-	Lesser General Public License for more details.
-
-	You should have received a copy of the GNU Lesser General Public
-	License along with this library; if not, write to the Free Software
-	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+	Except as contained in this notice, the name(s) of the above copyright holders
+	shall not be used in advertising or otherwise to promote the sale, use or other
+	dealings in this Software without prior written authorization.
 
+	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+	THE SOFTWARE.
 */
 
 #include "../resource.h"
@@ -27,29 +33,32 @@
 int main(int argc, char* argv[])
 {
     setConsoleFlag();
-	HMODULE hLibrary = NULL;
-	char cmdLine[BIG_STR] = "";
-    int i; // causes error: 'for' loop initial declaration used outside C99 mode.
-	for (i = 1; i < argc; i++) {
-		strcat(cmdLine, argv[i]);
-		if (i < argc - 1) {
-			strcat(cmdLine, " ");
+	LPTSTR cmdLine = GetCommandLine();
+	if (*cmdLine == '"') {
+		if (*(cmdLine = strchr(cmdLine + 1, '"') + 1)) {
+			cmdLine++;
 		}
+	} else if ((cmdLine = strchr(cmdLine, ' ')) != NULL) {
+		cmdLine++;
+	} else {
+		cmdLine = "";
 	}
-	if (!prepare(hLibrary, cmdLine)) {
-		if (hLibrary != NULL) {
-			FreeLibrary(hLibrary);
-		}
+	int result = prepare(cmdLine);
+	if (result == ERROR_ALREADY_EXISTS) {
+		char errMsg[BIG_STR] = {0};
+		loadString(INSTANCE_ALREADY_EXISTS_MSG, errMsg);
+		msgBox(errMsg);
+		closeLogFile();
+		return 2;
+	}
+	if (result != TRUE) {
+		signalError();
 		return 1;
 	}
-	FreeLibrary(hLibrary);
 
-	int result = (int) execute(TRUE);
+	result = (int) execute(TRUE);
 	if (result == -1) {
-		char errMsg[BIG_STR] = "could not start the application: ";
-		strcat(errMsg, strerror(errno));
-		msgBox(errMsg);
-		return 1;
+		signalError();
 	} else {
 		return result;
 	}
diff --git a/installer/lib/launch4j/head_src/consolehead/consolehead.dev b/installer/lib/launch4j/head_src/consolehead/consolehead.dev
index 4f55c0cefe1b0183f8b6f542eb9be223685277fe..a309ec94f6504fc8ff722afc4dfb1fe3d73525e1 100644
--- a/installer/lib/launch4j/head_src/consolehead/consolehead.dev
+++ b/installer/lib/launch4j/head_src/consolehead/consolehead.dev
@@ -7,23 +7,23 @@ Ver=1
 ObjFiles=
 Includes=
 Libs=
-PrivateResource=consolehead_private.rc
+PrivateResource=
 ResourceIncludes=
 MakeIncludes=
 Compiler=
 CppCompiler=
-Linker=
+Linker=-n_@@_
 IsCpp=0
 Icon=
 ExeOutput=
-ObjectOutput=
+ObjectOutput=..\..\head
 OverrideOutput=0
 OverrideOutputName=consolehead.exe
 HostApplication=
 Folders=
 CommandLine=
 UseCustomMakefile=0
-CustomMakefile=
+CustomMakefile=Makefile.win
 IncludeVersionInfo=0
 SupportXPThemes=0
 CompilerSet=0
diff --git a/installer/lib/launch4j/head_src/guihead/Makefile.win b/installer/lib/launch4j/head_src/guihead/Makefile.win
index 2e3f746800ee6450d0f345467703cf2ca9769800..30cee5623fabca05bb4fc4d9c6b4016fa29772e2 100644
--- a/installer/lib/launch4j/head_src/guihead/Makefile.win
+++ b/installer/lib/launch4j/head_src/guihead/Makefile.win
@@ -5,11 +5,11 @@ CPP  = g++.exe
 CC   = gcc.exe
 WINDRES = windres.exe
 RES  = 
-OBJ  = guihead.o ../head.o $(RES)
-LINKOBJ  = guihead.o ../head.o $(RES)
-LIBS =  -L"lib" -mwindows   
-INCS =  -I"include" 
-CXXINCS =  -I"lib/gcc/mingw32/3.4.2/include"  -I"include/c++/3.4.2/backward"  -I"include/c++/3.4.2/mingw32"  -I"include/c++/3.4.2"  -I"include" 
+OBJ  = ../../head/guihead.o ../../head/head.o $(RES)
+LINKOBJ  = ../../head/guihead.o ../../head/head.o $(RES)
+LIBS =  -L"C:/Dev-Cpp/lib" -mwindows -n  -s 
+INCS =  -I"C:/Dev-Cpp/include" 
+CXXINCS =  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include" 
 BIN  = guihead.exe
 CXXFLAGS = $(CXXINCS)   -fexpensive-optimizations -O3
 CFLAGS = $(INCS)   -fexpensive-optimizations -O3
@@ -24,10 +24,10 @@ clean: clean-custom
 	${RM} $(OBJ) $(BIN)
 
 $(BIN): $(OBJ)
-	$(CC) $(LINKOBJ) -o "guihead.exe" $(LIBS)
+#	$(CC) $(LINKOBJ) -o "guihead.exe" $(LIBS)
 
-guihead.o: guihead.c
-	$(CC) -c guihead.c -o guihead.o $(CFLAGS)
+../../head/guihead.o: guihead.c
+	$(CC) -c guihead.c -o ../../head/guihead.o $(CFLAGS)
 
-../head.o: ../head.c
-	$(CC) -c ../head.c -o ../head.o $(CFLAGS)
+../../head/head.o: ../head.c
+	$(CC) -c ../head.c -o ../../head/head.o $(CFLAGS)
diff --git a/installer/lib/launch4j/head_src/guihead/guihead.c b/installer/lib/launch4j/head_src/guihead/guihead.c
index cbc1c76167ef89dbba0622e85db6ced68c3c2c7d..508a5bdacbf57a23dc5efcf23b5d808ae2263015 100644
--- a/installer/lib/launch4j/head_src/guihead/guihead.c
+++ b/installer/lib/launch4j/head_src/guihead/guihead.c
@@ -1,30 +1,38 @@
 /*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
 
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
-	Copyright (C) 2004-2005 Grzegorz Kowal
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+							 Sylvain Mina (single instance patch)
 
-	Compiled with Mingw port of GCC, Bloodshed Dev-C++ IDE (http://www.bloodshed.net/devcpp.html)
+	Permission is hereby granted, free of charge, to any person obtaining a copy
+	of this software and associated documentation files (the "Software"), to deal
+	in the Software without restriction, including without limitation the rights
+	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+	copies of the Software, and to permit persons to whom the Software is
+	furnished to do so, subject to the following conditions:
 
-	This library is free software; you can redistribute it and/or
-	modify it under the terms of the GNU Lesser General Public
-	License as published by the Free Software Foundation; either
-	version 2.1 of the License, or (at your option) any later version.
+	The above copyright notice and this permission notice shall be included in
+	all copies or substantial portions of the Software.
 
-	This library is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-	Lesser General Public License for more details.
-
-	You should have received a copy of the GNU Lesser General Public
-	License along with this library; if not, write to the Free Software
-	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+	Except as contained in this notice, the name(s) of the above copyright holders
+	shall not be used in advertising or otherwise to promote the sale, use or other
+	dealings in this Software without prior written authorization.
 
+	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+	THE SOFTWARE.
 */
 
 #include "../resource.h"
 #include "../head.h"
 #include "guihead.h"
 
+extern FILE* hLog;
 extern PROCESS_INFORMATION pi;
 
 HWND hWnd;
@@ -33,39 +41,44 @@ BOOL stayAlive = FALSE;
 BOOL splash = FALSE;
 BOOL splashTimeoutErr;
 BOOL waitForWindow;
-int splashTimeout;		// tick count (s)
+int splashTimeout = DEFAULT_SPLASH_TIMEOUT;
 
 int APIENTRY WinMain(HINSTANCE hInstance,
                      HINSTANCE hPrevInstance,
                      LPSTR     lpCmdLine,
                      int       nCmdShow) {
-	HMODULE hLibrary = NULL;
-	if (!prepare(hLibrary, lpCmdLine)) {
-		if (hLibrary != NULL) {
-			FreeLibrary(hLibrary);
-		}
+	int result = prepare(lpCmdLine);
+	if (result == ERROR_ALREADY_EXISTS) {
+		HWND handle = getInstanceWindow();
+		ShowWindow(handle, SW_SHOW);
+		SetForegroundWindow(handle);
+		closeLogFile();
+		return 2;
+	}
+	if (result != TRUE) {
+		signalError();
 		return 1;
 	}
 
-	splash = loadBoolString(hLibrary, SHOW_SPLASH);
-	stayAlive = loadBoolString(hLibrary, GUI_HEADER_STAYS_ALIVE);
+	splash = loadBool(SHOW_SPLASH)
+			&& strstr(lpCmdLine, "--l4j-no-splash") == NULL;
+	stayAlive = loadBool(GUI_HEADER_STAYS_ALIVE)
+			&& strstr(lpCmdLine, "--l4j-dont-wait") == NULL;
 	if (splash || stayAlive) {
 		hWnd = CreateWindowEx(WS_EX_TOOLWINDOW, "STATIC", "",
 				WS_POPUP | SS_BITMAP,
 				0, 0, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL);
 		if (splash) {
-			char timeout[10] = "";
-			if (!loadString(hLibrary, SPLASH_TIMEOUT, timeout)) {
-				msgBox("Cannot load splash timeout property.");
-				return 1;
-			}
-			splashTimeout = atoi(timeout);
-			if (splashTimeout <= 0 || splashTimeout > 60 * 15 /* 15 minutes */) {
-				msgBox("Invalid splash timeout property.");
-				return 1;
+			char timeout[10] = {0};
+			if (loadString(SPLASH_TIMEOUT, timeout)) {
+				splashTimeout = atoi(timeout);
+				if (splashTimeout <= 0 || splashTimeout > MAX_SPLASH_TIMEOUT) {
+					splashTimeout = DEFAULT_SPLASH_TIMEOUT;
+				}
 			}
-			splashTimeoutErr = loadBoolString(hLibrary, SPLASH_TIMEOUT_ERR);
-			waitForWindow = loadBoolString(hLibrary, SPLASH_WAITS_FOR_WINDOW);
+			splashTimeoutErr = loadBool(SPLASH_TIMEOUT_ERR)
+					&& strstr(lpCmdLine, "--l4j-no-splash-err") == NULL;
+			waitForWindow = loadBool(SPLASH_WAITS_FOR_WINDOW);
 			HANDLE hImage = LoadImage(hInstance,	// handle of the instance containing the image
 					MAKEINTRESOURCE(SPLASH_BITMAP),	// name or identifier of image
 					IMAGE_BITMAP,					// type of image
@@ -73,7 +86,7 @@ int APIENTRY WinMain(HINSTANCE hInstance,
 					0,								// desired height
 					LR_DEFAULTSIZE);
 			if (hImage == NULL) {
-				msgBox("Cannot load splash screen.");
+				signalError();
 				return 1;
 			}
 			SendMessage(hWnd, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM) hImage);
@@ -86,29 +99,47 @@ int APIENTRY WinMain(HINSTANCE hInstance,
 			UpdateWindow (hWnd);
 		}
 		if (!SetTimer (hWnd, ID_TIMER, 1000 /* 1s */, TimerProc)) {
+			signalError();
 			return 1;
 		}
 	}
-	FreeLibrary(hLibrary);
 	if (execute(FALSE) == -1) {
-		char errMsg[BIG_STR] = "Error occured while starting the application...\n";
-		strcat(errMsg, strerror(errno));
-		msgBox(errMsg);
+		signalError();
 		return 1;
 	}
 	if (!(splash || stayAlive)) {
+		debug("Exit code:\t0\n");
 		closeHandles();
 		return 0;
 	}
+
 	MSG msg;
 	while (GetMessage(&msg, NULL, 0, 0)) {
 		TranslateMessage(&msg);
 		DispatchMessage(&msg);
 	}
+	debug("Exit code:\t%d\n", dwExitCode);
 	closeHandles();
 	return dwExitCode;
 }
 
+HWND getInstanceWindow() {
+	char windowTitle[STR];
+	char instWindowTitle[STR] = {0};
+	if (loadString(INSTANCE_WINDOW_TITLE, instWindowTitle)) {
+		HWND handle = FindWindowEx(NULL, NULL, NULL, NULL); 
+		while (handle != NULL) {
+			GetWindowText(handle, windowTitle, STR - 1);
+			if (strstr(windowTitle, instWindowTitle) != NULL) {
+				return handle;
+			} else {
+				handle = FindWindowEx(NULL, handle, NULL, NULL);
+			}
+		}
+	}
+	return NULL;   
+}
+
 BOOL CALLBACK enumwndfn(HWND hwnd, LPARAM lParam) {
 	DWORD processId;
 	GetWindowThreadProcessId(hwnd, &processId);
@@ -135,7 +166,7 @@ VOID CALLBACK TimerProc(
 			ShowWindow(hWnd, SW_HIDE);
 			if (waitForWindow && splashTimeoutErr) {
 				KillTimer(hwnd, ID_TIMER);
-				msgBox("Could not start the application, operation timed out.");
+				signalError();
 				PostQuitMessage(0);
 			}
 		} else {
@@ -149,7 +180,6 @@ VOID CALLBACK TimerProc(
 	if (dwExitCode != STILL_ACTIVE
 			|| !(splash || stayAlive)) {
 		KillTimer(hWnd, ID_TIMER);
-		PostQuitMessage(0);	
-		return;
+		PostQuitMessage(0);
 	}
 }
diff --git a/installer/lib/launch4j/head_src/guihead/guihead.dev b/installer/lib/launch4j/head_src/guihead/guihead.dev
index ec0403d27e50c2879f6b1b280f46948f9d7033cc..7c30088f11b0dcddef59c98ef099a92783057209 100644
--- a/installer/lib/launch4j/head_src/guihead/guihead.dev
+++ b/installer/lib/launch4j/head_src/guihead/guihead.dev
@@ -12,22 +12,22 @@ ResourceIncludes=
 MakeIncludes=
 Compiler=
 CppCompiler=
-Linker=_@@_
+Linker=-n_@@_
 IsCpp=0
 Icon=
 ExeOutput=
-ObjectOutput=
+ObjectOutput=..\..\head
 OverrideOutput=0
 OverrideOutputName=guihead.exe
 HostApplication=
 Folders=
 CommandLine=
-UseCustomMakefile=0
-CustomMakefile=
+UseCustomMakefile=1
+CustomMakefile=Makefile.win
 IncludeVersionInfo=0
 SupportXPThemes=0
 CompilerSet=0
-CompilerSettings=0000000001001000000000
+CompilerSettings=0000000001001000000100
 
 [Unit1]
 FileName=guihead.c
@@ -37,7 +37,7 @@ Compile=1
 Link=1
 Priority=1000
 OverrideBuildCmd=0
-BuildCmd=
+BuildCmd=$(CC) -c guihead.c -o ../../head/guihead.o $(CFLAGS)
 
 [Unit2]
 FileName=guihead.h
@@ -78,16 +78,6 @@ OverrideBuildCmd=0
 BuildCmd=
 
 [Unit6]
-FileName=..\resource.h
-Folder=guihead
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-CompileCpp=0
-
-[Unit7]
 FileName=..\resid.h
 CompileCpp=0
 Folder=guihead
diff --git a/installer/lib/launch4j/head_src/guihead/guihead.h b/installer/lib/launch4j/head_src/guihead/guihead.h
index 26b51e0c6464593c10eaa5725d8ac55cf9de3196..2fc71e31f321606bb6b6f7b47c6c7986d26c4a19 100644
--- a/installer/lib/launch4j/head_src/guihead/guihead.h
+++ b/installer/lib/launch4j/head_src/guihead/guihead.h
@@ -1,27 +1,39 @@
 /*
-
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
-	Copyright (C) 2004-2005 Grzegorz Kowal
-
-	Compiled with Mingw port of GCC, Bloodshed Dev-C++ IDE (http://www.bloodshed.net/devcpp.html)
-
-	This library is free software; you can redistribute it and/or
-	modify it under the terms of the GNU Lesser General Public
-	License as published by the Free Software Foundation; either
-	version 2.1 of the License, or (at your option) any later version.
-
-	This library is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-	Lesser General Public License for more details.
-
-	You should have received a copy of the GNU Lesser General Public
-	License along with this library; if not, write to the Free Software
-	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	Permission is hereby granted, free of charge, to any person obtaining a copy
+	of this software and associated documentation files (the "Software"), to deal
+	in the Software without restriction, including without limitation the rights
+	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+	copies of the Software, and to permit persons to whom the Software is
+	furnished to do so, subject to the following conditions:
+
+	The above copyright notice and this permission notice shall be included in
+	all copies or substantial portions of the Software.
+
+	Except as contained in this notice, the name(s) of the above copyright holders
+	shall not be used in advertising or otherwise to promote the sale, use or other
+	dealings in this Software without prior written authorization.
+
+	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+	THE SOFTWARE.
 */
 
 #define ID_TIMER 1
+#define DEFAULT_SPLASH_TIMEOUT	60			/* 60 seconds */
+#define MAX_SPLASH_TIMEOUT		60 * 15		/* 15 minutes */
+
+HWND getInstanceWindow();
+
+BOOL CALLBACK enumwndfn(HWND hwnd, LPARAM lParam);
 
 VOID CALLBACK TimerProc(
   HWND hwnd,     // handle of window for timer messages
diff --git a/installer/lib/launch4j/head_src/head.c b/installer/lib/launch4j/head_src/head.c
index b1ce585526b6ca3d3edc47793f7d94916e9e6e86..fe2ff090013431c08e97838853711d40331e8dc8 100644
--- a/installer/lib/launch4j/head_src/head.c
+++ b/installer/lib/launch4j/head_src/head.c
@@ -1,43 +1,85 @@
 /*
-
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
-	Copyright (C) 2004-2005 Grzegorz Kowal
-
-	Compiled with Mingw port of GCC, Bloodshed Dev-C++ IDE (http://www.bloodshed.net/devcpp.html)
-
-	This library is free software; you can redistribute it and/or
-	modify it under the terms of the GNU Lesser General Public
-	License as published by the Free Software Foundation; either
-	version 2.1 of the License, or (at your option) any later version.
-
-	This library is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-	Lesser General Public License for more details.
-
-	You should have received a copy of the GNU Lesser General Public
-	License along with this library; if not, write to the Free Software
-	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2008 Grzegorz Kowal,
+							 Ian Roberts (jdk preference patch)
+							 Sylvain Mina (single instance patch)
+
+	Permission is hereby granted, free of charge, to any person obtaining a copy
+	of this software and associated documentation files (the "Software"), to deal
+	in the Software without restriction, including without limitation the rights
+	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+	copies of the Software, and to permit persons to whom the Software is
+	furnished to do so, subject to the following conditions:
+
+	The above copyright notice and this permission notice shall be included in
+	all copies or substantial portions of the Software.
+
+	Except as contained in this notice, the name(s) of the above copyright holders
+	shall not be used in advertising or otherwise to promote the sale, use or other
+	dealings in this Software without prior written authorization.
+
+	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+	THE SOFTWARE.
 */
 
 #include "resource.h"
 #include "head.h"
 
+HMODULE hModule;
+FILE* hLog;
 BOOL console = FALSE;
+BOOL wow64 = FALSE;
 int foundJava = NO_JAVA_FOUND;
 
 struct _stat statBuf;
 PROCESS_INFORMATION pi;
+DWORD priority;
+
+char mutexName[STR] = {0};
+
+char errUrl[256] = {0};
+char errTitle[STR] = "Launch4j";
+char errMsg[BIG_STR] = {0};
+
+char javaMinVer[STR] = {0};
+char javaMaxVer[STR] = {0};
+char foundJavaVer[STR] = {0};
+char foundJavaKey[_MAX_PATH] = {0};
+
+char oldPwd[_MAX_PATH] = {0};
+char workingDir[_MAX_PATH] = {0};
+char cmd[_MAX_PATH] = {0};
+char args[MAX_ARGS] = {0};
+
+FILE* openLogFile(const char* exePath, const int pathLen) {
+	char path[_MAX_PATH] = {0};
+	strncpy(path, exePath, pathLen);
+	strcat(path, "\\launch4j.log");
+	return fopen(path, "a");
+}
+
+void closeLogFile() {
+	if (hLog != NULL) {
+		fclose(hLog);	
+	}
+}
 
-char errTitle[STR] = "launch4j";
-char javaMinVer[STR] = "";
-char javaMaxVer[STR] = "";
-char foundJavaVer[STR] = "";
+void setWow64Flag() {
+	LPFN_ISWOW64PROCESS fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAddress(
+			GetModuleHandle(TEXT("kernel32")), "IsWow64Process");
 
-char workingDir[_MAX_PATH] = "";
-char cmd[_MAX_PATH] = "";
-char args[BIG_STR * 2] = "";
+	if (fnIsWow64Process != NULL) {
+		fnIsWow64Process(GetCurrentProcess(), &wow64);
+	}
+	debug("WOW64:\t\t%s\n", wow64 ? "yes" : "no"); 
+}
 
 void setConsoleFlag() {
      console = TRUE;
@@ -51,19 +93,43 @@ void msgBox(const char* text) {
     }
 }
 
-void showJavaWebPage() {
-	ShellExecute(NULL, "open", "http://java.com", NULL, NULL, SW_SHOWNORMAL);
+void signalError() {
+	DWORD err = GetLastError();
+	if (err) {
+		LPVOID lpMsgBuf;
+		FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER
+						| FORMAT_MESSAGE_FROM_SYSTEM
+						| FORMAT_MESSAGE_IGNORE_INSERTS,
+				NULL,
+				err,
+				MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
+			    (LPTSTR) &lpMsgBuf,
+			    0,
+			    NULL);
+		debug("Error:\t\t%s\n", (LPCTSTR) lpMsgBuf);
+		strcat(errMsg, "\n\n");
+		strcat(errMsg, (LPCTSTR) lpMsgBuf);
+		msgBox(errMsg);
+		LocalFree(lpMsgBuf);
+	} else {
+		msgBox(errMsg);
+	}
+	if (*errUrl) {
+		debug("Open URL:\t%s\n", errUrl);
+		ShellExecute(NULL, "open", errUrl, NULL, NULL, SW_SHOWNORMAL);
+	}
+	closeLogFile();
 }
 
-BOOL loadString(HMODULE hLibrary, int resID, char* buffer) {
+BOOL loadString(const int resID, char* buffer) {
 	HRSRC hResource;
 	HGLOBAL hResourceLoaded;
 	LPBYTE lpBuffer;
 
-	hResource = FindResourceEx(hLibrary, RT_RCDATA, MAKEINTRESOURCE(resID),
+	hResource = FindResourceEx(hModule, RT_RCDATA, MAKEINTRESOURCE(resID),
 			MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT));
 	if (NULL != hResource) {
-		hResourceLoaded = LoadResource(hLibrary, hResource);
+		hResourceLoaded = LoadResource(hModule, hResource);
 		if (NULL != hResourceLoaded) {
 			lpBuffer = (LPBYTE) LockResource(hResourceLoaded);            
 			if (NULL != lpBuffer) {     
@@ -71,24 +137,76 @@ BOOL loadString(HMODULE hLibrary, int resID, char* buffer) {
 				do {
 					buffer[x] = (char) lpBuffer[x];
 				} while (buffer[x++] != 0);
+				// debug("Resource %d:\t%s\n", resID, buffer);
 				return TRUE;
 			}
 		}    
+	} else {
+		SetLastError(0);
 	}
 	return FALSE;
 }
 
-BOOL loadBoolString(HMODULE hLibrary, int resID) {
-	char boolStr[10] = "";
-	loadString(hLibrary, resID, boolStr);
+BOOL loadBool(const int resID) {
+	char boolStr[20] = {0};
+	loadString(resID, boolStr);
 	return strcmp(boolStr, TRUE_STR) == 0;
 }
 
-void regSearch(HKEY hKey, char* keyName, int searchType) {
+int loadInt(const int resID) {
+	char intStr[20] = {0};
+	loadString(resID, intStr);
+	return atoi(intStr);
+}
+
+BOOL regQueryValue(const char* regPath, unsigned char* buffer,
+		unsigned long bufferLength) {
+	HKEY hRootKey;
+	char* key;
+	char* value;
+	if (strstr(regPath, HKEY_CLASSES_ROOT_STR) == regPath) {
+		hRootKey = HKEY_CLASSES_ROOT;
+	} else if (strstr(regPath, HKEY_CURRENT_USER_STR) == regPath) {
+		hRootKey = HKEY_CURRENT_USER;
+	} else if (strstr(regPath, HKEY_LOCAL_MACHINE_STR) == regPath) {
+		hRootKey = HKEY_LOCAL_MACHINE;
+	} else if (strstr(regPath, HKEY_USERS_STR) == regPath) {
+		hRootKey = HKEY_USERS;
+	} else if (strstr(regPath, HKEY_CURRENT_CONFIG_STR) == regPath) {
+		hRootKey = HKEY_CURRENT_CONFIG;
+	} else {
+		return FALSE;
+	}
+	key = strchr(regPath, '\\') + 1;
+	value = strrchr(regPath, '\\') + 1;
+	*(value - 1) = 0;
+
+	HKEY hKey;
+	unsigned long datatype;
+	BOOL result = FALSE;
+	if ((wow64 && RegOpenKeyEx(hRootKey,
+								key,
+								0,
+	        					KEY_READ | KEY_WOW64_64KEY,
+								&hKey) == ERROR_SUCCESS)
+			|| RegOpenKeyEx(hRootKey,
+								key,
+								0,
+	        					KEY_READ,
+								&hKey) == ERROR_SUCCESS) {
+		result = RegQueryValueEx(hKey, value, NULL, &datatype, buffer, &bufferLength)
+				== ERROR_SUCCESS;
+		RegCloseKey(hKey);
+	}
+	*(value - 1) = '\\';
+	return result;
+}
+
+void regSearch(const HKEY hKey, const char* keyName, const int searchType) {
 	DWORD x = 0;
 	unsigned long size = BIG_STR;
 	FILETIME time;
-	char buffer[BIG_STR] = "";
+	char buffer[BIG_STR] = {0};
 	while (RegEnumKeyEx(
 				hKey,			// handle to key to enumerate
 				x++,			// index of subkey to enumerate
@@ -98,61 +216,92 @@ void regSearch(HKEY hKey, char* keyName, int searchType) {
 				NULL,			// address of buffer for class string
 				NULL,			// address for size of class buffer
 				&time) == ERROR_SUCCESS) {
+		
 		if (strcmp(buffer, javaMinVer) >= 0
-				&& (javaMaxVer[0] == 0 || strcmp(buffer, javaMaxVer) <= 0)
+				&& (!*javaMaxVer || strcmp(buffer, javaMaxVer) <= 0)
 				&& strcmp(buffer, foundJavaVer) > 0) {
 			strcpy(foundJavaVer, buffer);
+			strcpy(foundJavaKey, keyName);
+			appendPath(foundJavaKey, buffer);	
 			foundJava = searchType;
+			debug("Match:\t\t%s\\%s\n", keyName, buffer);
+		} else {
+			debug("Ignore:\t\t%s\\%s\n", keyName, buffer);
 		}
 		size = BIG_STR;
 	}
 }
 
-BOOL findJavaHome(char* path) {
+void regSearchWow(const char* keyName, const int searchType) {
 	HKEY hKey;
-	char jre[] = "SOFTWARE\\JavaSoft\\Java Runtime Environment";
-	char sdk[] = "SOFTWARE\\JavaSoft\\Java Development Kit";
-	if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
-			TEXT(jre),
+	debug("64-bit search:\t%s...\n", keyName);
+	if (wow64 && RegOpenKeyEx(HKEY_LOCAL_MACHINE,
+			keyName,
 			0,
-            KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEYS,
+            KEY_READ | KEY_WOW64_64KEY,
 			&hKey) == ERROR_SUCCESS) {
-		regSearch(hKey, jre, FOUND_JRE);
+		
+		regSearch(hKey, keyName, searchType | KEY_WOW64_64KEY);
 		RegCloseKey(hKey);
+		if ((foundJava & KEY_WOW64_64KEY) != NO_JAVA_FOUND)
+		{
+			debug("Using 64-bit runtime.\n");
+			return;
+		}
 	}
+	debug("32-bit search:\t%s...\n", keyName);
 	if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
-			TEXT(sdk),
+			keyName,
 			0,
-            KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEYS,
+            KEY_READ,
 			&hKey) == ERROR_SUCCESS) {
-		regSearch(hKey, sdk, FOUND_SDK);
+		regSearch(hKey, keyName, searchType);
 		RegCloseKey(hKey);
 	}
-	if (foundJava != NO_JAVA_FOUND) {
-		char keyBuffer[BIG_STR];
-		unsigned long datatype;
-		unsigned long bufferlength = BIG_STR;
-		if (foundJava == FOUND_JRE)	{
-			strcpy(keyBuffer, jre);
-		} else {
-			strcpy(keyBuffer, sdk);
+}
+
+void regSearchJreSdk(const char* jreKeyName, const char* sdkKeyName,
+		const int jdkPreference) {
+	if (jdkPreference == JDK_ONLY || jdkPreference == PREFER_JDK) {
+		regSearchWow(sdkKeyName, FOUND_SDK);
+		if (jdkPreference != JDK_ONLY) {
+			regSearchWow(jreKeyName, FOUND_JRE);
+		}
+	} else { // jdkPreference == JRE_ONLY or PREFER_JRE
+		regSearchWow(jreKeyName, FOUND_JRE);
+		if (jdkPreference != JRE_ONLY) {
+			regSearchWow(sdkKeyName, FOUND_SDK);
 		}
-		strcat(keyBuffer, "\\");
-		strcat(keyBuffer, foundJavaVer);
+	}
+}
+
+BOOL findJavaHome(char* path, const int jdkPreference) {
+	regSearchJreSdk("SOFTWARE\\JavaSoft\\Java Runtime Environment",
+					"SOFTWARE\\JavaSoft\\Java Development Kit",
+					jdkPreference);
+	if (foundJava == NO_JAVA_FOUND) {
+		regSearchJreSdk("SOFTWARE\\IBM\\Java2 Runtime Environment",
+						"SOFTWARE\\IBM\\Java Development Kit",
+						jdkPreference);
+	}
+	if (foundJava != NO_JAVA_FOUND) {
+		HKEY hKey;
 		if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
-			TEXT(keyBuffer),
-			0,
-            KEY_QUERY_VALUE,
-			&hKey) == ERROR_SUCCESS) {
-			unsigned char buffer[BIG_STR];
-			if (RegQueryValueEx(hKey, "JavaHome", NULL, &datatype, buffer, &bufferlength)
-					== ERROR_SUCCESS) {
+				foundJavaKey,
+				0,
+	            KEY_READ | (foundJava & KEY_WOW64_64KEY),
+				&hKey) == ERROR_SUCCESS) {
+			unsigned char buffer[BIG_STR] = {0};
+			unsigned long bufferlength = BIG_STR;
+			unsigned long datatype;
+			if (RegQueryValueEx(hKey, "JavaHome", NULL, &datatype, buffer,
+					&bufferlength) == ERROR_SUCCESS) {
 				int i = 0;
 				do {
 					path[i] = buffer[i];
 				} while (path[i++] != 0);
-				if (foundJava == FOUND_SDK) {
-					strcat(path, "\\jre");
+				if (foundJava & FOUND_SDK) {
+					appendPath(path, "jre");
 				}
 				RegCloseKey(hKey);
 				return TRUE;
@@ -164,66 +313,93 @@ BOOL findJavaHome(char* path) {
 }
 
 /*
- * extract the executable name, returns path length.
+ * Extract the executable name, returns path length.
  */
 int getExePath(char* exePath) {
-	HMODULE hModule = GetModuleHandle(NULL);
-    if (hModule == 0
-			|| GetModuleFileName(hModule, exePath, _MAX_PATH) == 0) {
+    if (GetModuleFileName(hModule, exePath, _MAX_PATH) == 0) {
         return -1;
     }
 	return strrchr(exePath, '\\') - exePath;
 }
 
+void appendPath(char* basepath, const char* path) {
+	if (basepath[strlen(basepath) - 1] != '\\') {
+		strcat(basepath, "\\");
+	}
+	strcat(basepath, path);
+}
+
 void appendJavaw(char* jrePath) {
     if (console) {
-	    strcat(jrePath, "\\bin\\java.exe");
+	    appendPath(jrePath, "bin\\java.exe");
     } else {
-        strcat(jrePath, "\\bin\\javaw.exe");
+        appendPath(jrePath, "bin\\javaw.exe");
     }
 }
 
-void appendLauncher(BOOL setProcName, char* exePath, int pathLen, char* cmd) {
+void appendLauncher(const BOOL setProcName, char* exePath,
+		const int pathLen, char* cmd) {
 	if (setProcName) {
-		char tmpspec[_MAX_PATH] = "";
-		char tmpfile[_MAX_PATH] = "";
+		char tmpspec[_MAX_PATH];
+		char tmpfile[_MAX_PATH];
 		strcpy(tmpspec, cmd);
 		strcat(tmpspec, LAUNCH4J_TMP_DIR);
 		tmpspec[strlen(tmpspec) - 1] = 0;
 		if (_stat(tmpspec, &statBuf) == 0) {
-			// remove temp launchers
+			// Remove temp launchers and manifests
 			struct _finddata_t c_file;
 			long hFile;
-			strcat(tmpspec, "\\*.exe");
+			appendPath(tmpspec, "*.exe");
 			strcpy(tmpfile, cmd);
 			strcat(tmpfile, LAUNCH4J_TMP_DIR);
 			char* filename = tmpfile + strlen(tmpfile);
 			if ((hFile = _findfirst(tmpspec, &c_file)) != -1L) {
 				do {
 					strcpy(filename, c_file.name);
+					debug("Unlink:\t\t%s\n", tmpfile);
+					_unlink(tmpfile);
+					strcat(tmpfile, MANIFEST);
+					debug("Unlink:\t\t%s\n", tmpfile);
 					_unlink(tmpfile);
 				} while (_findnext(hFile, &c_file) == 0);
 			}
 			_findclose(hFile);
 		} else {
 			if (_mkdir(tmpspec) != 0) {
+				debug("Mkdir failed:\t%s\n", tmpspec);
 				appendJavaw(cmd);
 				return;
 			}
 		}
-		char javaw[_MAX_PATH] = "";
+		char javaw[_MAX_PATH];
 		strcpy(javaw, cmd);
 		appendJavaw(javaw);
 		strcpy(tmpfile, cmd);
 		strcat(tmpfile, LAUNCH4J_TMP_DIR);
+		char* tmpfilename = tmpfile + strlen(tmpfile);
 		char* exeFilePart = exePath + pathLen + 1;
-		strcat(tmpfile, exeFilePart);
+
+		// Copy manifest
+		char manifest[_MAX_PATH] = {0};
+		strcpy(manifest, exePath);
+		strcat(manifest, MANIFEST);
+		if (_stat(manifest, &statBuf) == 0) {
+			strcat(tmpfile, exeFilePart);
+			strcat(tmpfile, MANIFEST);
+			debug("Copy:\t\t%s -> %s\n", manifest, tmpfile);
+			CopyFile(manifest, tmpfile, FALSE);
+		}
+
+		// Copy launcher
+		strcpy(tmpfilename, exeFilePart);
+		debug("Copy:\t\t%s -> %s\n", javaw, tmpfile);
 		if (CopyFile(javaw, tmpfile, FALSE)) {
 			strcpy(cmd, tmpfile);
 			return;
-		} else {
+		} else if (_stat(javaw, &statBuf) == 0) {
 			long fs = statBuf.st_size;
 			if (_stat(tmpfile, &statBuf) == 0 && fs == statBuf.st_size) {
+				debug("Reusing:\t\t%s\n", tmpfile);
 				strcpy(cmd, tmpfile);
 				return;
 			}
@@ -232,123 +408,396 @@ void appendLauncher(BOOL setProcName, char* exePath, int pathLen, char* cmd) {
 	appendJavaw(cmd);
 }
 
-BOOL isJrePathOk(char* path) {
-	if (!*path) {
-		return FALSE;
+void appendAppClasspath(char* dst, const char* src, const char* classpath) {
+	strcat(dst, src);
+	if (*classpath) {
+		strcat(dst, ";");
 	}
+}
+
+BOOL isJrePathOk(const char* path) {
 	char javaw[_MAX_PATH];
-	strcpy(javaw, path);
-	appendJavaw(javaw);
-	return _stat(javaw, &statBuf) == 0;
+	BOOL result = FALSE;
+	if (*path) {
+		strcpy(javaw, path);
+		appendJavaw(javaw);
+		result = _stat(javaw, &statBuf) == 0;
+	}	
+	debug("Check launcher:\t%s %s\n", javaw, result ? "(OK)" : "(n/a)");
+	return result;
+}
+
+/* 
+ * Expand environment %variables%
+ */
+BOOL expandVars(char *dst, const char *src, const char *exePath, const int pathLen) {
+    char varName[STR];
+    char varValue[MAX_VAR_SIZE];
+    while (strlen(src) > 0) {
+        char *start = strchr(src, '%');
+        if (start != NULL) {
+            char *end = strchr(start + 1, '%');
+            if (end == NULL) {
+                return FALSE;
+            }
+            // Copy content up to %VAR%
+            strncat(dst, src, start - src);
+            // Insert value of %VAR%
+            *varName = 0;
+            strncat(varName, start + 1, end - start - 1);
+            // Remember value start for logging
+            char *varValue = dst + strlen(dst);
+            if (strcmp(varName, "EXEDIR") == 0) {
+                strncat(dst, exePath, pathLen);
+            } else if (strcmp(varName, "EXEFILE") == 0) {
+                strcat(dst, exePath);
+            } else if (strcmp(varName, "PWD") == 0) {
+                GetCurrentDirectory(_MAX_PATH, dst + strlen(dst));
+            } else if (strcmp(varName, "OLDPWD") == 0) {
+                strcat(dst, oldPwd);
+			} else if (strstr(varName, HKEY_STR) == varName) {
+				regQueryValue(varName, dst + strlen(dst), BIG_STR);
+            } else if (GetEnvironmentVariable(varName, varValue, MAX_VAR_SIZE) > 0) {
+                strcat(dst, varValue);
+            }
+            debug("Substitute:\t%s = %s\n", varName, varValue);
+            src = end + 1;
+        } else {
+            // Copy remaining content
+            strcat(dst, src);
+            break;
+        }
+	}
+	return TRUE;
+}
+
+void appendHeapSizes(char *dst) {
+	MEMORYSTATUS m;
+	memset(&m, 0, sizeof(m));
+	GlobalMemoryStatus(&m);
+
+	appendHeapSize(dst, INITIAL_HEAP_SIZE, INITIAL_HEAP_PERCENT,
+			m.dwAvailPhys, "-Xms");
+	appendHeapSize(dst, MAX_HEAP_SIZE, MAX_HEAP_PERCENT,
+			m.dwAvailPhys, "-Xmx");
 }
 
-BOOL prepare(HMODULE hLibrary, char *lpCmdLine) {
-	// open executable
-	char exePath[_MAX_PATH] = "";
+void appendHeapSize(char *dst, const int absID, const int percentID,
+		const DWORD freeMemory, const char *option) {
+	
+	const int mb = 1048576;		// 1 MB
+	int abs = loadInt(absID);
+	int percent = loadInt(percentID);
+	int free = (long long) freeMemory * percent / (100 * mb);	// 100% * 1 MB
+	int size = free > abs ? free : abs;
+	if (size > 0) {
+		debug("Heap %s:\t%d MB / %d%%, Free: %d MB, Heap size: %d MB\n",
+				option, abs, percent, freeMemory / mb, size);
+		strcat(dst, option);
+		_itoa(size, dst + strlen(dst), 10);						// 10 -- radix
+		strcat(dst, "m ");
+	}
+}
+
+int prepare(const char *lpCmdLine) {
+	char tmp[MAX_ARGS] = {0};
+	hModule = GetModuleHandle(NULL);
+	if (hModule == NULL) {
+		return FALSE;
+	}
+
+	// Get executable path
+	char exePath[_MAX_PATH] = {0};
 	int pathLen = getExePath(exePath);
 	if (pathLen == -1) {
-		msgBox("Cannot determinate exe file name.");
 		return FALSE;
 	}
-	hLibrary = LoadLibrary(exePath);
-	if (hLibrary == NULL) {
-		char msg[BIG_STR] = "Cannot find file: ";
-		strcat(msg, exePath);
-		msgBox(msg);
-		return FALSE;
+
+	// Initialize logging 
+    if (strstr(lpCmdLine, "--l4j-debug") != NULL) {
+		hLog = openLogFile(exePath, pathLen);
+		if (hLog == NULL) {
+			return FALSE;
+		}
+		debug("\n\nCmdLine:\t%s %s\n", exePath, lpCmdLine);
 	}
 
-	// error message box title
-	loadString(hLibrary, ERR_TITLE, errTitle);
+    setWow64Flag();
+
+	// Set default error message, title and optional support web site url.
+	loadString(SUPPORT_URL, errUrl);
+	loadString(ERR_TITLE, errTitle);
+	if (!loadString(STARTUP_ERR, errMsg)) {
+		return FALSE;			
+	}
 
-	// working dir
-	char tmp_path[_MAX_PATH] = "";
-	if (loadString(hLibrary, CHDIR, tmp_path)) {
+	// Single instance
+	loadString(MUTEX_NAME, mutexName);
+	if (*mutexName) {
+		SECURITY_ATTRIBUTES security;
+		security.nLength = sizeof(SECURITY_ATTRIBUTES);
+		security.bInheritHandle = TRUE;
+		security.lpSecurityDescriptor = NULL;
+		CreateMutexA(&security, FALSE, mutexName);
+		if (GetLastError() == ERROR_ALREADY_EXISTS) {
+			debug("Instance already exists.");
+			return ERROR_ALREADY_EXISTS;
+		}
+	}
+	
+	// Working dir
+	char tmp_path[_MAX_PATH] = {0};
+	GetCurrentDirectory(_MAX_PATH, oldPwd);
+	if (loadString(CHDIR, tmp_path)) {
 		strncpy(workingDir, exePath, pathLen);
-		strcat(workingDir, "/");
-		strcat(workingDir, tmp_path);
+		appendPath(workingDir, tmp_path);
 		_chdir(workingDir);
+		debug("Working dir:\t%s\n", workingDir);
 	}
 
-	// custom process name
-	const BOOL setProcName = loadBoolString(hLibrary, SET_PROC_NAME);
-
-	// use bundled jre or find java
-	if (loadString(hLibrary, JRE_PATH, tmp_path)) {
-		strncpy(cmd, exePath, pathLen);
-		strcat(cmd, "/");
-		strcat(cmd, tmp_path);		
+	// Use bundled jre or find java
+	if (loadString(JRE_PATH, tmp_path)) {
+		char jrePath[MAX_ARGS] = {0};
+		expandVars(jrePath, tmp_path, exePath, pathLen);
+		debug("Bundled JRE:\t%s\n", jrePath);
+		if (jrePath[0] == '\\' || jrePath[1] == ':') {
+			// Absolute
+			strcpy(cmd, jrePath);
+		} else {
+			// Relative
+			strncpy(cmd, exePath, pathLen);
+			appendPath(cmd, jrePath);
+		}
     }
 	if (!isJrePathOk(cmd)) {
-		if (!loadString(hLibrary, JAVA_MIN_VER, javaMinVer)) {
-			msgBox("Cannot find bundled JRE or javaw.exe is missing.");
+		if (!loadString(JAVA_MIN_VER, javaMinVer)) {
+			loadString(BUNDLED_JRE_ERR, errMsg);
 			return FALSE;
 		}
-		loadString(hLibrary, JAVA_MAX_VER, javaMaxVer);
-		if (!findJavaHome(cmd)) {
-			char txt[BIG_STR] = "Cannot find Java ";
-			strcat(txt, javaMinVer);
+		loadString(JAVA_MAX_VER, javaMaxVer);
+		if (!findJavaHome(cmd, loadInt(JDK_PREFERENCE))) {
+			loadString(JRE_VERSION_ERR, errMsg);
+			strcat(errMsg, " ");
+			strcat(errMsg, javaMinVer);
 			if (*javaMaxVer) {
-				strcat(txt, " - ");
-				strcat(txt, javaMaxVer);
+				strcat(errMsg, " - ");
+				strcat(errMsg, javaMaxVer);
 			}
-			msgBox(txt);
-			showJavaWebPage();
+			loadString(DOWNLOAD_URL, errUrl);
 			return FALSE;
 		}
 		if (!isJrePathOk(cmd)) {
-			msgBox("Java found, but javaw.exe seems to be missing.");
+			loadString(LAUNCHER_ERR, errMsg);
 			return FALSE;
 		}
 	}
 
+    // Append a path to the Path environment variable
+	char jreBinPath[_MAX_PATH];
+	strcpy(jreBinPath, cmd);
+	strcat(jreBinPath, "\\bin");
+	if (!appendToPathVar(jreBinPath)) {
+		return FALSE;
+	}
+
+	// Set environment variables
+	char envVars[MAX_VAR_SIZE] = {0};
+	loadString(ENV_VARIABLES, envVars);
+	char *var = strtok(envVars, "\t");
+	while (var != NULL) {
+		char *varValue = strchr(var, '=');
+		*varValue++ = 0;
+		*tmp = 0;
+		expandVars(tmp, varValue, exePath, pathLen);
+		debug("Set var:\t%s = %s\n", var, tmp);
+		SetEnvironmentVariable(var, tmp);
+		var = strtok(NULL, "\t"); 
+	}
+	*tmp = 0;
+
+	// Process priority
+	priority = loadInt(PRIORITY_CLASS);
+
+	// Custom process name
+	const BOOL setProcName = loadBool(SET_PROC_NAME)
+			&& strstr(lpCmdLine, "--l4j-default-proc") == NULL;
+	const BOOL wrapper = loadBool(WRAPPER);
+
 	appendLauncher(setProcName, exePath, pathLen, cmd);
 
-	char jarArgs[BIG_STR] = "";
-	loadString(hLibrary, JAR_ARGS, jarArgs);
-	loadString(hLibrary, JVM_ARGS, args);
-	if (*args) {
-		strcat(args, " ");
+	// Heap sizes
+	appendHeapSizes(args);
+	
+    // JVM options
+	if (loadString(JVM_OPTIONS, tmp)) {
+		strcat(tmp, " ");
+	} else {
+        *tmp = 0;
+    }
+	/*
+	 * Load additional JVM options from .l4j.ini file
+	 * Options are separated by spaces or CRLF
+	 * # starts an inline comment
+	 */
+	strncpy(tmp_path, exePath, strlen(exePath) - 3);
+	strcat(tmp_path, "l4j.ini");
+	long hFile;
+	if ((hFile = _open(tmp_path, _O_RDONLY)) != -1) {
+		const int jvmOptLen = strlen(tmp);
+		char* src = tmp + jvmOptLen;
+		char* dst = src;
+		const int len = _read(hFile, src, MAX_ARGS - jvmOptLen - BIG_STR);
+		BOOL copy = TRUE;
+		int i;
+		for (i = 0; i < len; i++, src++) {
+			if (*src == '#') {
+				copy = FALSE;
+			} else if (*src == 13 || *src == 10) {
+				copy = TRUE;
+				if (dst > tmp && *(dst - 1) != ' ') {
+					*dst++ = ' ';
+				}
+			} else if (copy) {
+				*dst++ = *src;
+			}
+		}
+		*dst = 0;
+		if (len > 0 && *(dst - 1) != ' ') {
+			strcat(tmp, " ");
+		}
+		_close(hFile);
 	}
-	strcat(args, "-jar \"");
-	strcat(args, exePath);
-	strcat(args, "\"");
-	if (*jarArgs) {
+
+    // Expand environment %variables%
+	expandVars(args, tmp, exePath, pathLen);
+
+	// MainClass + Classpath or Jar
+	char mainClass[STR] = {0};
+	char jar[_MAX_PATH] = {0};
+	loadString(JAR, jar);
+	if (loadString(MAIN_CLASS, mainClass)) {
+		if (!loadString(CLASSPATH, tmp)) {
+			return FALSE;
+		}
+		char exp[MAX_ARGS] = {0};
+		expandVars(exp, tmp, exePath, pathLen);
+		strcat(args, "-classpath \"");
+		if (wrapper) {
+			appendAppClasspath(args, exePath, exp);
+		} else if (*jar) {
+			appendAppClasspath(args, jar, exp);
+		}
+
+		// Deal with wildcards or >> strcat(args, exp); <<
+		char* cp = strtok(exp, ";");
+		while(cp != NULL) {
+			debug("Add classpath:\t%s\n", cp);
+			if (strpbrk(cp, "*?") != NULL) {
+				int len = strrchr(cp, '\\') - cp + 1;
+				strncpy(tmp_path, cp, len);
+				char* filename = tmp_path + len;
+				*filename = 0;
+				struct _finddata_t c_file;
+				long hFile;
+				if ((hFile = _findfirst(cp, &c_file)) != -1L) {
+					do {
+						strcpy(filename, c_file.name);
+						strcat(args, tmp_path);
+						strcat(args, ";");
+						debug("      \"      :\t%s\n", tmp_path);
+					} while (_findnext(hFile, &c_file) == 0);
+				}
+				_findclose(hFile);
+			} else {
+				strcat(args, cp);
+				strcat(args, ";");
+			}
+			cp = strtok(NULL, ";");
+		} 
+		*(args + strlen(args) - 1) = 0;
+
+		strcat(args, "\" ");
+		strcat(args, mainClass);
+	} else if (wrapper) {
+       	strcat(args, "-jar \"");
+		strcat(args, exePath);
+   		strcat(args, "\"");
+    } else {
+       	strcat(args, "-jar \"");
+        strncat(args, exePath, pathLen);
+        appendPath(args, jar);
+       	strcat(args, "\"");
+    }
+
+	// Constant command line args
+	if (loadString(CMD_LINE, tmp)) {
 		strcat(args, " ");
-		strcat(args, jarArgs);
+		strcat(args, tmp);
 	}
+
+	// Command line args
 	if (*lpCmdLine) {
-		strcat(args, " ");
-		strcat(args, lpCmdLine);
+		strcpy(tmp, lpCmdLine);
+		char* dst;
+		while ((dst = strstr(tmp, "--l4j-")) != NULL) {
+			char* src = strchr(dst, ' ');
+			if (src == NULL || *(src + 1) == 0) {
+				*dst = 0;
+			} else {
+				strcpy(dst, src + 1);
+			}
+		}
+		if (*tmp) {
+			strcat(args, " ");
+			strcat(args, tmp);
+		}
 	}
 
-	// msgBox(cmd);
-	// msgBox(args);
-	// msgBox(workingDir);
+	debug("Launcher:\t%s\n", cmd);
+	debug("Launcher args:\t%s\n", args);
+	debug("Args length:\t%d/32768 chars\n", strlen(args));
 	return TRUE;
 }
 
 void closeHandles() {
 	CloseHandle(pi.hThread);
 	CloseHandle(pi.hProcess);
+	closeLogFile();
+}
+
+/*
+ * Append a path to the Path environment variable
+ */
+BOOL appendToPathVar(const char* path) {
+	char chBuf[MAX_VAR_SIZE] = {0};
+
+	const int pathSize = GetEnvironmentVariable("Path", chBuf, MAX_VAR_SIZE);
+	if (MAX_VAR_SIZE - pathSize - 1 < strlen(path)) {
+		return FALSE;
+	}
+	strcat(chBuf, ";");
+	strcat(chBuf, path);
+	return SetEnvironmentVariable("Path", chBuf);
 }
 
-DWORD execute(BOOL wait) {
+DWORD execute(const BOOL wait) {
 	STARTUPINFO si;
     memset(&pi, 0, sizeof(pi));
     memset(&si, 0, sizeof(si));
     si.cb = sizeof(si);
 
 	DWORD dwExitCode = -1;
-	char cmdline[_MAX_PATH + BIG_STR] = "\"";
+	char cmdline[MAX_ARGS];
+    strcpy(cmdline, "\"");
 	strcat(cmdline, cmd);
 	strcat(cmdline, "\" ");
 	strcat(cmdline, args);
 	if (CreateProcess(NULL, cmdline, NULL, NULL,
-			FALSE, 0, NULL, NULL, &si, &pi)) {
+			TRUE, priority, NULL, NULL, &si, &pi)) {
 		if (wait) {
 			WaitForSingleObject(pi.hProcess, INFINITE);
 			GetExitCodeProcess(pi.hProcess, &dwExitCode);
+			debug("Exit code:\t%d\n", dwExitCode);
 			closeHandles();
 		} else {
 			dwExitCode = 0;
diff --git a/installer/lib/launch4j/head_src/head.h b/installer/lib/launch4j/head_src/head.h
index 412092ff962c63caaf91e190da7ff87dfa892ca2..2e3bdb1d093eb96c42e82ad908655a4baa25af2d 100644
--- a/installer/lib/launch4j/head_src/head.h
+++ b/installer/lib/launch4j/head_src/head.h
@@ -1,24 +1,31 @@
 /*
-
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
-	Copyright (C) 2004-2005 Grzegorz Kowal
-
-	Compiled with Mingw port of GCC, Bloodshed Dev-C++ IDE (http://www.bloodshed.net/devcpp.html)
-
-	This library is free software; you can redistribute it and/or
-	modify it under the terms of the GNU Lesser General Public
-	License as published by the Free Software Foundation; either
-	version 2.1 of the License, or (at your option) any later version.
-
-	This library is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-	Lesser General Public License for more details.
-
-	You should have received a copy of the GNU Lesser General Public
-	License along with this library; if not, write to the Free Software
-	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2008 Grzegorz Kowal,
+							 Ian Roberts (jdk preference patch)
+
+	Permission is hereby granted, free of charge, to any person obtaining a copy
+	of this software and associated documentation files (the "Software"), to deal
+	in the Software without restriction, including without limitation the rights
+	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+	copies of the Software, and to permit persons to whom the Software is
+	furnished to do so, subject to the following conditions:
+
+	The above copyright notice and this permission notice shall be included in
+	all copies or substantial portions of the Software.
+
+	Except as contained in this notice, the name(s) of the above copyright holders
+	shall not be used in advertising or otherwise to promote the sale, use or other
+	dealings in this Software without prior written authorization.
+
+	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+	THE SOFTWARE.
 */
 
 #ifndef _LAUNCH4J_HEAD__INCLUDED_
@@ -36,6 +43,7 @@
 #include <tchar.h>
 #include <shellapi.h>
 #include <direct.h>
+#include <fcntl.h>
 #include <stdio.h>
 #include <sys/stat.h>
 #include <io.h>
@@ -45,25 +53,61 @@
 #define FOUND_JRE 1
 #define FOUND_SDK 2
 
+#define JRE_ONLY 0
+#define PREFER_JRE 1
+#define PREFER_JDK 2
+#define JDK_ONLY 3
+
 #define LAUNCH4J_TMP_DIR "\\launch4j-tmp\\"
+#define MANIFEST ".manifest"
+
+#define KEY_WOW64_64KEY 0x0100
+
+#define HKEY_STR "HKEY"
+#define HKEY_CLASSES_ROOT_STR "HKEY_CLASSES_ROOT"
+#define HKEY_CURRENT_USER_STR "HKEY_CURRENT_USER"
+#define HKEY_LOCAL_MACHINE_STR "HKEY_LOCAL_MACHINE"
+#define HKEY_USERS_STR "HKEY_USERS"
+#define HKEY_CURRENT_CONFIG_STR "HKEY_CURRENT_CONFIG"
 
 #define STR 128
 #define BIG_STR 1024
+#define MAX_VAR_SIZE 32767
+#define MAX_ARGS 32768
 
 #define TRUE_STR "true"
 #define FALSE_STR "false"
 
+#define debug(args...) if (hLog != NULL) fprintf(hLog, ## args); 
+
+typedef void (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE, PBOOL);
+
+FILE* openLogFile(const char* exePath, const int pathLen);
+void closeLogFile();
 void msgBox(const char* text);
-void showJavaWebPage();
-BOOL loadString(HMODULE hLibrary, int resID, char* buffer);
-BOOL loadBoolString(HMODULE hLibrary, int resID);
-void regSearch(HKEY hKey, char* keyName, int searchType);
-BOOL findJavaHome(char* path);
+void signalError();
+BOOL loadString(const int resID, char* buffer);
+BOOL loadBool(const int resID);
+int loadInt(const int resID);
+BOOL regQueryValue(const char* regPath, unsigned char* buffer,
+		unsigned long bufferLength);
+void regSearch(const HKEY hKey, const char* keyName, const int searchType);
+void regSearchWow(const char* keyName, const int searchType);
+void regSearchJreSdk(const char* jreKeyName, const char* sdkKeyName,
+		const int jdkPreference);
+BOOL findJavaHome(char* path, const int jdkPreference);
 int getExePath(char* exePath);
-void catJavaw(char* jrePath);
-BOOL isJrePathOk(char* path);
-BOOL prepare(HMODULE hLibrary, char *lpCmdLine);
+void appendPath(char* basepath, const char* path);
+void appendJavaw(char* jrePath);
+void appendAppClasspath(char* dst, const char* src, const char* classpath);
+BOOL isJrePathOk(const char* path);
+BOOL expandVars(char *dst, const char *src, const char *exePath, const int pathLen);
+void appendHeapSizes(char *dst);
+void appendHeapSize(char *dst, const int absID, const int percentID,
+		const DWORD freeMemory, const char *option);
+int prepare(const char *lpCmdLine);
 void closeHandles();
-DWORD execute(BOOL wait);
+BOOL appendToPathVar(const char* path);
+DWORD execute(const BOOL wait);
 
 #endif // _LAUNCH4J_HEAD__INCLUDED_
diff --git a/installer/lib/launch4j/head_src/resource.h b/installer/lib/launch4j/head_src/resource.h
index d5bec63812698db91b40fa57828a3f806adb265c..3c0f73cfc0b54f559a6df2f1d67f8e3886bf49cb 100644
--- a/installer/lib/launch4j/head_src/resource.h
+++ b/installer/lib/launch4j/head_src/resource.h
@@ -1,43 +1,71 @@
 /*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
 
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
-	Copyright (C) 2004-2005 Grzegorz Kowal
+	Copyright (c) 2004, 2008 Grzegorz Kowal
+							 Ian Roberts (jdk preference patch)
 
-	Compiled with Mingw port of GCC, Bloodshed Dev-C++ IDE (http://www.bloodshed.net/devcpp.html)
+	Permission is hereby granted, free of charge, to any person obtaining a copy
+	of this software and associated documentation files (the "Software"), to deal
+	in the Software without restriction, including without limitation the rights
+	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+	copies of the Software, and to permit persons to whom the Software is
+	furnished to do so, subject to the following conditions:
 
-	This library is free software; you can redistribute it and/or
-	modify it under the terms of the GNU Lesser General Public
-	License as published by the Free Software Foundation; either
-	version 2.1 of the License, or (at your option) any later version.
+	The above copyright notice and this permission notice shall be included in
+	all copies or substantial portions of the Software.
 
-	This library is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-	Lesser General Public License for more details.
-
-	You should have received a copy of the GNU Lesser General Public
-	License along with this library; if not, write to the Free Software
-	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+	Except as contained in this notice, the name(s) of the above copyright holders
+	shall not be used in advertising or otherwise to promote the sale, use or other
+	dealings in this Software without prior written authorization.
 
+	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+	THE SOFTWARE.
 */
 
 // ICON
-#define APP_ICON 1
+#define APP_ICON 					1
 
 // BITMAP
-#define SPLASH_BITMAP 1
+#define SPLASH_BITMAP				1
 
 // RCDATA
-#define JRE_PATH 1
-#define JAVA_MIN_VER 2
-#define JAVA_MAX_VER 3
-#define SHOW_SPLASH 4
-#define SPLASH_WAITS_FOR_WINDOW 5
-#define SPLASH_TIMEOUT 6
-#define SPLASH_TIMEOUT_ERR 7
-#define CHDIR 8
-#define SET_PROC_NAME 9
-#define ERR_TITLE 10
-#define GUI_HEADER_STAYS_ALIVE 11
-#define JVM_ARGS 12
-#define JAR_ARGS 13
+#define JRE_PATH					1
+#define JAVA_MIN_VER				2
+#define JAVA_MAX_VER				3
+#define SHOW_SPLASH					4
+#define SPLASH_WAITS_FOR_WINDOW		5
+#define SPLASH_TIMEOUT				6 
+#define SPLASH_TIMEOUT_ERR			7
+#define CHDIR						8
+#define SET_PROC_NAME				9
+#define ERR_TITLE					10
+#define GUI_HEADER_STAYS_ALIVE		11
+#define JVM_OPTIONS					12
+#define CMD_LINE					13
+#define JAR							14
+#define MAIN_CLASS					15
+#define CLASSPATH					16
+#define WRAPPER						17
+#define JDK_PREFERENCE				18
+#define ENV_VARIABLES				19
+#define PRIORITY_CLASS				20
+#define DOWNLOAD_URL				21
+#define SUPPORT_URL					22
+#define MUTEX_NAME					23
+#define INSTANCE_WINDOW_TITLE		24
+#define INITIAL_HEAP_SIZE			25
+#define INITIAL_HEAP_PERCENT		26
+#define MAX_HEAP_SIZE				27
+#define MAX_HEAP_PERCENT			28
+
+#define STARTUP_ERR					101
+#define BUNDLED_JRE_ERR				102
+#define JRE_VERSION_ERR				103
+#define LAUNCHER_ERR				104
+#define INSTANCE_ALREADY_EXISTS_MSG	105
diff --git a/installer/lib/launch4j/launch4j.jar b/installer/lib/launch4j/launch4j.jar
index 9e59abfb87b7667c2beefc4c3e36528977cfb830..ec68ae48dd9cf4e420882da29220433555a70a6e 100644
Binary files a/installer/lib/launch4j/launch4j.jar and b/installer/lib/launch4j/launch4j.jar differ
diff --git a/installer/lib/launch4j/lib/JGoodies.Looks.LICENSE.txt b/installer/lib/launch4j/lib/JGoodies.Looks.LICENSE.txt
index 6ea98a5b3b441465090913cc7bd7381ab761b6e0..8bbefa2ebd679b87bf468bc77d7adcd10eeb5c64 100644
--- a/installer/lib/launch4j/lib/JGoodies.Looks.LICENSE.txt
+++ b/installer/lib/launch4j/lib/JGoodies.Looks.LICENSE.txt
@@ -1,7 +1,8 @@
-           The BSD License for the JGoodies Looks
-           ======================================
 
-Copyright (c) 2003 JGoodies Karsten Lentzsch. All rights reserved.
+              The BSD License for the JGoodies Looks
+              ======================================
+
+Copyright (c) 2001-2007 JGoodies Karsten Lentzsch. All rights reserved.
 
 Redistribution and use in source and binary forms, with or without 
 modification, are permitted provided that the following conditions are met:
diff --git a/installer/lib/launch4j/lib/Nuvola.Icon.Theme.LICENSE.txt b/installer/lib/launch4j/lib/Nuvola.Icon.Theme.LICENSE.txt
index b1e3f5a2638797271cbc9b91b856c05ed6942c8f..cbee875ba6ddb0dadab286daf7ccec2f6f64191f 100644
--- a/installer/lib/launch4j/lib/Nuvola.Icon.Theme.LICENSE.txt
+++ b/installer/lib/launch4j/lib/Nuvola.Icon.Theme.LICENSE.txt
@@ -1,504 +1,504 @@
-		  GNU LESSER GENERAL PUBLIC LICENSE
-		       Version 2.1, February 1999
-
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
-     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the Lesser GPL.  It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]
-
-			    Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
-  This license, the Lesser General Public License, applies to some
-specially designated software packages--typically libraries--of the
-Free Software Foundation and other authors who decide to use it.  You
-can use it too, but we suggest you first think carefully about whether
-this license or the ordinary General Public License is the better
-strategy to use in any particular case, based on the explanations below.
-
-  When we speak of free software, we are referring to freedom of use,
-not price.  Our General Public Licenses are designed to make sure that
-you have the freedom to distribute copies of free software (and charge
-for this service if you wish); that you receive source code or can get
-it if you want it; that you can change the software and use pieces of
-it in new free programs; and that you are informed that you can do
-these things.
-
-  To protect your rights, we need to make restrictions that forbid
-distributors to deny you these rights or to ask you to surrender these
-rights.  These restrictions translate to certain responsibilities for
-you if you distribute copies of the library or if you modify it.
-
-  For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you.  You must make sure that they, too, receive or can get the source
-code.  If you link other code with the library, you must provide
-complete object files to the recipients, so that they can relink them
-with the library after making changes to the library and recompiling
-it.  And you must show them these terms so they know their rights.
-
-  We protect your rights with a two-step method: (1) we copyright the
-library, and (2) we offer you this license, which gives you legal
-permission to copy, distribute and/or modify the library.
-
-  To protect each distributor, we want to make it very clear that
-there is no warranty for the free library.  Also, if the library is
-modified by someone else and passed on, the recipients should know
-that what they have is not the original version, so that the original
-author's reputation will not be affected by problems that might be
-introduced by others.
-
-  Finally, software patents pose a constant threat to the existence of
-any free program.  We wish to make sure that a company cannot
-effectively restrict the users of a free program by obtaining a
-restrictive license from a patent holder.  Therefore, we insist that
-any patent license obtained for a version of the library must be
-consistent with the full freedom of use specified in this license.
-
-  Most GNU software, including some libraries, is covered by the
-ordinary GNU General Public License.  This license, the GNU Lesser
-General Public License, applies to certain designated libraries, and
-is quite different from the ordinary General Public License.  We use
-this license for certain libraries in order to permit linking those
-libraries into non-free programs.
-
-  When a program is linked with a library, whether statically or using
-a shared library, the combination of the two is legally speaking a
-combined work, a derivative of the original library.  The ordinary
-General Public License therefore permits such linking only if the
-entire combination fits its criteria of freedom.  The Lesser General
-Public License permits more lax criteria for linking other code with
-the library.
-
-  We call this license the "Lesser" General Public License because it
-does Less to protect the user's freedom than the ordinary General
-Public License.  It also provides other free software developers Less
-of an advantage over competing non-free programs.  These disadvantages
-are the reason we use the ordinary General Public License for many
-libraries.  However, the Lesser license provides advantages in certain
-special circumstances.
-
-  For example, on rare occasions, there may be a special need to
-encourage the widest possible use of a certain library, so that it becomes
-a de-facto standard.  To achieve this, non-free programs must be
-allowed to use the library.  A more frequent case is that a free
-library does the same job as widely used non-free libraries.  In this
-case, there is little to gain by limiting the free library to free
-software only, so we use the Lesser General Public License.
-
-  In other cases, permission to use a particular library in non-free
-programs enables a greater number of people to use a large body of
-free software.  For example, permission to use the GNU C Library in
-non-free programs enables many more people to use the whole GNU
-operating system, as well as its variant, the GNU/Linux operating
-system.
-
-  Although the Lesser General Public License is Less protective of the
-users' freedom, it does ensure that the user of a program that is
-linked with the Library has the freedom and the wherewithal to run
-that program using a modified version of the Library.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.  Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library".  The
-former contains code derived from the library, whereas the latter must
-be combined with the library in order to run.
-
-		  GNU LESSER GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License Agreement applies to any software library or other
-program which contains a notice placed by the copyright holder or
-other authorized party saying it may be distributed under the terms of
-this Lesser General Public License (also called "this License").
-Each licensee is addressed as "you".
-
-  A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
-  The "Library", below, refers to any such software library or work
-which has been distributed under these terms.  A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language.  (Hereinafter, translation is
-included without limitation in the term "modification".)
-
-  "Source code" for a work means the preferred form of the work for
-making modifications to it.  For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control compilation
-and installation of the library.
-
-  Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it).  Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-  
-  1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
-  You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-
-  2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) The modified work must itself be a software library.
-
-    b) You must cause the files modified to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    c) You must cause the whole of the work to be licensed at no
-    charge to all third parties under the terms of this License.
-
-    d) If a facility in the modified Library refers to a function or a
-    table of data to be supplied by an application program that uses
-    the facility, other than as an argument passed when the facility
-    is invoked, then you must make a good faith effort to ensure that,
-    in the event an application does not supply such function or
-    table, the facility still operates, and performs whatever part of
-    its purpose remains meaningful.
-
-    (For example, a function in a library to compute square roots has
-    a purpose that is entirely well-defined independent of the
-    application.  Therefore, Subsection 2d requires that any
-    application-supplied function or table used by this function must
-    be optional: if the application does not supply it, the square
-    root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library.  To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License.  (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.)  Do not make any other change in
-these notices.
-
-  Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
-  This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
-  4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
-  If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library".  Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
-  However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library".  The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
-  When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library.  The
-threshold for this to be true is not precisely defined by law.
-
-  If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work.  (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
-  Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-
-  6. As an exception to the Sections above, you may also combine or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
-  You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License.  You must supply a copy of this License.  If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License.  Also, you must do one
-of these things:
-
-    a) Accompany the work with the complete corresponding
-    machine-readable source code for the Library including whatever
-    changes were used in the work (which must be distributed under
-    Sections 1 and 2 above); and, if the work is an executable linked
-    with the Library, with the complete machine-readable "work that
-    uses the Library", as object code and/or source code, so that the
-    user can modify the Library and then relink to produce a modified
-    executable containing the modified Library.  (It is understood
-    that the user who changes the contents of definitions files in the
-    Library will not necessarily be able to recompile the application
-    to use the modified definitions.)
-
-    b) Use a suitable shared library mechanism for linking with the
-    Library.  A suitable mechanism is one that (1) uses at run time a
-    copy of the library already present on the user's computer system,
-    rather than copying library functions into the executable, and (2)
-    will operate properly with a modified version of the library, if
-    the user installs one, as long as the modified version is
-    interface-compatible with the version that the work was made with.
-
-    c) Accompany the work with a written offer, valid for at
-    least three years, to give the same user the materials
-    specified in Subsection 6a, above, for a charge no more
-    than the cost of performing this distribution.
-
-    d) If distribution of the work is made by offering access to copy
-    from a designated place, offer equivalent access to copy the above
-    specified materials from the same place.
-
-    e) Verify that the user has already received a copy of these
-    materials or that you have already sent this user a copy.
-
-  For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it.  However, as a special exception,
-the materials to be distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
-  It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system.  Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-
-  7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
-    a) Accompany the combined library with a copy of the same work
-    based on the Library, uncombined with any other library
-    facilities.  This must be distributed under the terms of the
-    Sections above.
-
-    b) Give prominent notice with the combined library of the fact
-    that part of it is a work based on the Library, and explaining
-    where to find the accompanying uncombined form of the same work.
-
-  8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License.  Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License.  However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
-  9. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Library or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
-  10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties with
-this License.
-
-  11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply,
-and the section as a whole is intended to apply in other circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License may add
-an explicit geographical distribution limitation excluding those countries,
-so that distribution is permitted only in or among countries not thus
-excluded.  In such case, this License incorporates the limitation as if
-written in the body of this License.
-
-  13. The Free Software Foundation may publish revised and/or new
-versions of the Lesser General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation.  If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-
-  14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission.  For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this.  Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
-			    NO WARRANTY
-
-  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
-		     END OF TERMS AND CONDITIONS
-
-           How to Apply These Terms to Your New Libraries
-
-  If you develop a new library, and you want it to be of the greatest
-possible use to the public, we recommend making it free software that
-everyone can redistribute and change.  You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms of the
-ordinary General Public License).
-
-  To apply these terms, attach the following notices to the library.  It is
-safest to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the library's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Lesser General Public
-    License as published by the Free Software Foundation; either
-    version 2.1 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Lesser General Public License for more details.
-
-    You should have received a copy of the GNU Lesser General Public
-    License along with this library; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the library, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the
-  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
-
-  <signature of Ty Coon>, 1 April 1990
-  Ty Coon, President of Vice
-
-That's all there is to it!
-
-
+		  GNU LESSER GENERAL PUBLIC LICENSE
+		       Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL.  It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+			    Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+  This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it.  You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+  When we speak of free software, we are referring to freedom of use,
+not price.  Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+  To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights.  These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+  For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you.  You must make sure that they, too, receive or can get the source
+code.  If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it.  And you must show them these terms so they know their rights.
+
+  We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+  To protect each distributor, we want to make it very clear that
+there is no warranty for the free library.  Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+  Finally, software patents pose a constant threat to the existence of
+any free program.  We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder.  Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+  Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License.  This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License.  We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+  When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library.  The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom.  The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+  We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License.  It also provides other free software developers Less
+of an advantage over competing non-free programs.  These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries.  However, the Lesser license provides advantages in certain
+special circumstances.
+
+  For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard.  To achieve this, non-free programs must be
+allowed to use the library.  A more frequent case is that a free
+library does the same job as widely used non-free libraries.  In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+  In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software.  For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+  Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.  Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library".  The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+		  GNU LESSER GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+  A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+  The "Library", below, refers to any such software library or work
+which has been distributed under these terms.  A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language.  (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+  "Source code" for a work means the preferred form of the work for
+making modifications to it.  For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+  Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it).  Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+  
+  1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+  You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+  2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) The modified work must itself be a software library.
+
+    b) You must cause the files modified to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    c) You must cause the whole of the work to be licensed at no
+    charge to all third parties under the terms of this License.
+
+    d) If a facility in the modified Library refers to a function or a
+    table of data to be supplied by an application program that uses
+    the facility, other than as an argument passed when the facility
+    is invoked, then you must make a good faith effort to ensure that,
+    in the event an application does not supply such function or
+    table, the facility still operates, and performs whatever part of
+    its purpose remains meaningful.
+
+    (For example, a function in a library to compute square roots has
+    a purpose that is entirely well-defined independent of the
+    application.  Therefore, Subsection 2d requires that any
+    application-supplied function or table used by this function must
+    be optional: if the application does not supply it, the square
+    root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library.  To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License.  (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.)  Do not make any other change in
+these notices.
+
+  Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+  This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+  4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+  If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library".  Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+  However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library".  The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+  When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library.  The
+threshold for this to be true is not precisely defined by law.
+
+  If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work.  (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+  Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+  6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+  You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License.  You must supply a copy of this License.  If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License.  Also, you must do one
+of these things:
+
+    a) Accompany the work with the complete corresponding
+    machine-readable source code for the Library including whatever
+    changes were used in the work (which must be distributed under
+    Sections 1 and 2 above); and, if the work is an executable linked
+    with the Library, with the complete machine-readable "work that
+    uses the Library", as object code and/or source code, so that the
+    user can modify the Library and then relink to produce a modified
+    executable containing the modified Library.  (It is understood
+    that the user who changes the contents of definitions files in the
+    Library will not necessarily be able to recompile the application
+    to use the modified definitions.)
+
+    b) Use a suitable shared library mechanism for linking with the
+    Library.  A suitable mechanism is one that (1) uses at run time a
+    copy of the library already present on the user's computer system,
+    rather than copying library functions into the executable, and (2)
+    will operate properly with a modified version of the library, if
+    the user installs one, as long as the modified version is
+    interface-compatible with the version that the work was made with.
+
+    c) Accompany the work with a written offer, valid for at
+    least three years, to give the same user the materials
+    specified in Subsection 6a, above, for a charge no more
+    than the cost of performing this distribution.
+
+    d) If distribution of the work is made by offering access to copy
+    from a designated place, offer equivalent access to copy the above
+    specified materials from the same place.
+
+    e) Verify that the user has already received a copy of these
+    materials or that you have already sent this user a copy.
+
+  For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it.  However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+  It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system.  Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+  7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+    a) Accompany the combined library with a copy of the same work
+    based on the Library, uncombined with any other library
+    facilities.  This must be distributed under the terms of the
+    Sections above.
+
+    b) Give prominent notice with the combined library of the fact
+    that part of it is a work based on the Library, and explaining
+    where to find the accompanying uncombined form of the same work.
+
+  8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License.  Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License.  However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+  9. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Library or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+  10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+  11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded.  In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+  13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation.  If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+  14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission.  For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this.  Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+			    NO WARRANTY
+
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+           How to Apply These Terms to Your New Libraries
+
+  If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change.  You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+  To apply these terms, attach the following notices to the library.  It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the library's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+  <signature of Ty Coon>, 1 April 1990
+  Ty Coon, President of Vice
+
+That's all there is to it!
+
+
diff --git a/installer/lib/launch4j/lib/XStream.LICENSE.txt b/installer/lib/launch4j/lib/XStream.LICENSE.txt
index 4848b3e4e5d1224bb00a8d379c208b27853186b3..5ccad8694002f6ad559eff072399153fe7a41299 100644
--- a/installer/lib/launch4j/lib/XStream.LICENSE.txt
+++ b/installer/lib/launch4j/lib/XStream.LICENSE.txt
@@ -1,27 +1,27 @@
-(BSD Style License)
-
-Copyright (c) 2003-2004, Joe Walnes
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-Redistributions of source code must retain the above copyright notice, this list of
-conditions and the following disclaimer. Redistributions in binary form must reproduce
-the above copyright notice, this list of conditions and the following disclaimer in
-the documentation and/or other materials provided with the distribution.
-
-Neither the name of XStream nor the names of its contributors may be used to endorse
-or promote products derived from this software without specific prior written
-permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
-SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
-TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
-WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGE.
+(BSD Style License)
+
+Copyright (c) 2003-2004, Joe Walnes
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of
+conditions and the following disclaimer. Redistributions in binary form must reproduce
+the above copyright notice, this list of conditions and the following disclaimer in
+the documentation and/or other materials provided with the distribution.
+
+Neither the name of XStream nor the names of its contributors may be used to endorse
+or promote products derived from this software without specific prior written
+permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
+WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
diff --git a/installer/lib/launch4j/lib/forms.jar b/installer/lib/launch4j/lib/forms.jar
new file mode 100644
index 0000000000000000000000000000000000000000..aed060a49bf8a96bad9038291562890dd81ac92a
Binary files /dev/null and b/installer/lib/launch4j/lib/forms.jar differ
diff --git a/installer/lib/launch4j/lib/formsrt.jar b/installer/lib/launch4j/lib/formsrt.jar
index a13f3f7cab254677afe958a73c3ca8bcc4c97739..e0de6ecf1f5a1dad8b075970b3a9087eede90196 100644
Binary files a/installer/lib/launch4j/lib/formsrt.jar and b/installer/lib/launch4j/lib/formsrt.jar differ
diff --git a/installer/lib/launch4j/lib/looks.jar b/installer/lib/launch4j/lib/looks.jar
index b97ef7792873ed9ffc60bb5c0f60d8ee8dca014e..d2c47c743f46b994aaa84fc20a113841eb945ab6 100644
Binary files a/installer/lib/launch4j/lib/looks.jar and b/installer/lib/launch4j/lib/looks.jar differ
diff --git a/installer/lib/launch4j/lib/xstream.jar b/installer/lib/launch4j/lib/xstream.jar
index 0245e05732107ddc70b0dc7d66b2da700c1a32f3..392e1c937398b52fcccd5ed21d52687053219a01 100644
Binary files a/installer/lib/launch4j/lib/xstream.jar and b/installer/lib/launch4j/lib/xstream.jar differ
diff --git a/installer/lib/launch4j/manifest/uac.exe.manifest b/installer/lib/launch4j/manifest/uac.exe.manifest
new file mode 100644
index 0000000000000000000000000000000000000000..3041fbc5b10c82c31044481ee3c223b5dde6976e
--- /dev/null
+++ b/installer/lib/launch4j/manifest/uac.exe.manifest
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+        <security>
+            <requestedPrivileges>
+                <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
+                <!-- <requestedExecutionLevel level="highestAvailable" uiAccess="false"/> -->
+                <!-- <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> -->
+            </requestedPrivileges>
+        </security>
+    </trustInfo>
+</assembly>    
\ No newline at end of file
diff --git a/installer/lib/launch4j/manifest/xp-themes.exe.manifest b/installer/lib/launch4j/manifest/xp-themes.exe.manifest
new file mode 100644
index 0000000000000000000000000000000000000000..e2c7511f9eae46764a3bf5f34d3dab0b9804b729
--- /dev/null
+++ b/installer/lib/launch4j/manifest/xp-themes.exe.manifest
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+	<dependency>
+	    <dependentAssembly>
+	        <assemblyIdentity
+	            type="win32"
+	            name="Microsoft.Windows.Common-Controls"
+	            version="6.0.0.0"
+	            processorArchitecture="X86"
+	            publicKeyToken="6595b64144ccf1df"
+	            language="*" />
+	    </dependentAssembly>
+	</dependency>
+</assembly>
\ No newline at end of file
diff --git a/installer/lib/launch4j/readme.txt b/installer/lib/launch4j/readme.txt
deleted file mode 100644
index c74ec42534a3a63759e46dc8e7efc074dd413b9c..0000000000000000000000000000000000000000
--- a/installer/lib/launch4j/readme.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Launch4j  Cross-platform java application wrapper for creating windows native executables.
-Copyright (C) 2005 Grzegorz Kowal
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-
-
-Head subproject (the code which is attached to the wrapped jars) is
-licensed under the GNU Lesser General Public License.
-
-Launch4j may be used for wrapping closed source, commercial applications.
-
-The following projects are used by Launch4j...
-	MinGW binutils (http://www.mingw.org/)
-	Commons BeanUtils (http://jakarta.apache.org/commons/beanutils/)
-	Commons Logging (http://jakarta.apache.org/commons/logging/)
-	XStream (http://xstream.codehaus.org/)
-	JGoodies Forms (http://www.jgoodies.com/freeware/forms/)
-	JGoodies Looks (http://www.jgoodies.com/freeware/looks/)
-	Foxtrot (http://foxtrot.sourceforge.net/)
-	Nuvola Icon Theme (http://www.icon-king.com)
-	Forms were created using Abeille Forms Designer (https://abeille.dev.java.net/)
-
-This product includes software developed by the Apache Software Foundation (http://www.apache.org/).
diff --git a/installer/lib/launch4j/src/images/asterix-o.gif b/installer/lib/launch4j/src/images/asterix-o.gif
new file mode 100644
index 0000000000000000000000000000000000000000..f5cf3b3072a46cb69c107e2364b6efa9348e046b
Binary files /dev/null and b/installer/lib/launch4j/src/images/asterix-o.gif differ
diff --git a/installer/lib/launch4j/src/images/asterix.gif b/installer/lib/launch4j/src/images/asterix.gif
new file mode 100644
index 0000000000000000000000000000000000000000..ba801670aa9ab92bc8af18e64f415cd7647728cc
Binary files /dev/null and b/installer/lib/launch4j/src/images/asterix.gif differ
diff --git a/installer/lib/launch4j/src/images/button_ok.png b/installer/lib/launch4j/src/images/button_ok.png
new file mode 100644
index 0000000000000000000000000000000000000000..5b0f6a6174f67879d89b8c970d88734cd6f9f844
Binary files /dev/null and b/installer/lib/launch4j/src/images/button_ok.png differ
diff --git a/installer/lib/launch4j/src/images/cancel16.png b/installer/lib/launch4j/src/images/cancel16.png
new file mode 100644
index 0000000000000000000000000000000000000000..a432b492c4f8f54714290b27bd978eefa714488d
Binary files /dev/null and b/installer/lib/launch4j/src/images/cancel16.png differ
diff --git a/installer/lib/launch4j/src/images/down16.png b/installer/lib/launch4j/src/images/down16.png
new file mode 100644
index 0000000000000000000000000000000000000000..f3bc4cd0932ce493d38a058dabf802a9c111277e
Binary files /dev/null and b/installer/lib/launch4j/src/images/down16.png differ
diff --git a/installer/lib/launch4j/src/images/edit_add16.png b/installer/lib/launch4j/src/images/edit_add16.png
new file mode 100644
index 0000000000000000000000000000000000000000..e9485082eaadcff004248709f3af8faefb07c191
Binary files /dev/null and b/installer/lib/launch4j/src/images/edit_add16.png differ
diff --git a/installer/lib/launch4j/src/images/new16.png b/installer/lib/launch4j/src/images/new16.png
new file mode 100644
index 0000000000000000000000000000000000000000..f38d02ee5994dc7ab27f0c3404edd98452505d32
Binary files /dev/null and b/installer/lib/launch4j/src/images/new16.png differ
diff --git a/installer/lib/launch4j/src/images/ok16.png b/installer/lib/launch4j/src/images/ok16.png
new file mode 100644
index 0000000000000000000000000000000000000000..5b0f6a6174f67879d89b8c970d88734cd6f9f844
Binary files /dev/null and b/installer/lib/launch4j/src/images/ok16.png differ
diff --git a/installer/lib/launch4j/src/images/up16.png b/installer/lib/launch4j/src/images/up16.png
new file mode 100644
index 0000000000000000000000000000000000000000..184c118b63424218e82ea1a7d8acf4aa7f4741dc
Binary files /dev/null and b/installer/lib/launch4j/src/images/up16.png differ
diff --git a/installer/lib/launch4j/src/launch4j.properties b/installer/lib/launch4j/src/launch4j.properties
new file mode 100644
index 0000000000000000000000000000000000000000..463c7a034af51bbd6f7294dfa5f97e83f190ee94
--- /dev/null
+++ b/installer/lib/launch4j/src/launch4j.properties
@@ -0,0 +1,2 @@
+versionNumber=3.0.1.0
+version=3.0.1
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/Builder.java b/installer/lib/launch4j/src/net/sf/launch4j/Builder.java
index 6813ab26e30c61860e9f3f19ba1871f69991b698..d7badc7f3e464975462ab9e681cf56f2464c8f7e 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/Builder.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/Builder.java
@@ -1,189 +1,207 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on 2005-04-24
- */
-package net.sf.launch4j;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import net.sf.launch4j.binding.InvariantViolationException;
-import net.sf.launch4j.config.Config;
-import net.sf.launch4j.config.ConfigPersister;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class Builder {
-	private final Log _log;
-
-	public Builder(Log log) {
-		_log = log;
-	}
-
-	/**
-	 * @return Output file path.
-	 */
-	public File build() throws BuilderException {
-		final Config c = ConfigPersister.getInstance().getConfig();
-		try {
-			c.validate();
-		} catch (InvariantViolationException e) {
-			throw new BuilderException(e.getMessage());
-		}
-		File rc = null;
-		File ro = null;
-		File outfile = null;
-		FileInputStream is = null;
-		FileOutputStream os = null;
-		final RcBuilder rcb = new RcBuilder();
-		try {
-			String basedir = Util.getJarBasedir();
-			if (basedir == null) {
-				basedir = ".";
-			}
-			rc = rcb.build(c);
-			ro = File.createTempFile("launch4j", "o");
-			outfile = ConfigPersister.getInstance().getOutputFile();
-
-			Cmd resCmd = new Cmd(basedir);
-			resCmd.addExe("/bin/windres")
-					.add(Util.WINDOWS_OS ? "--preprocessor=type" : "--preprocessor=cat")
-					.add("-J rc -O coff -F pe-i386")
-					.add(rc.getPath())
-					.add(ro.getPath());
-			_log.append("Compiling resources");
-			Util.exec(resCmd.toString(), _log);
-
-			Cmd ldCmd = new Cmd(basedir);
-			ldCmd.addExe("/bin/ld")
-					.add("-mi386pe")
-					.add("--oformat pei-i386")
-					.add((c.getHeaderType() == Config.GUI_HEADER)
-							? "--subsystem windows" : "--subsystem console")
-					.add("-s")		// strip symbols
-					.addFile("/w32api/crt2.o")
-					.addFile((c.getHeaderType() == Config.GUI_HEADER)
-							? "/head/guihead.o" : "/head/consolehead.o")
-					.addFile("/head/head.o")
-					.addAbsFile(ro.getPath())
-					.addFile("/w32api/libmingw32.a")
-					.addFile("/w32api/libgcc.a")
-					.addFile("/w32api/libmsvcrt.a")
-					.addFile("/w32api/libkernel32.a")
-					.addFile("/w32api/libuser32.a")
-					.addFile("/w32api/libadvapi32.a")
-					.addFile("/w32api/libshell32.a")
-					.add("-o")
-					.addAbsFile(outfile.getPath());
-			_log.append("Linking");
-			Util.exec(ldCmd.toString(), _log);
-
-			_log.append("Wrapping");
-			int len;
-			byte[] buffer = new byte[1024];
-			is = new FileInputStream(
-					Util.getAbsoluteFile(ConfigPersister.getInstance().getConfigPath(),	c.getJar()));
-			os = new FileOutputStream(outfile, true);
-			while ((len = is.read(buffer)) > 0) {
-				os.write(buffer, 0, len);
-			}
-			_log.append("Successfully created " + outfile.getPath());
-			return outfile;
-		} catch (IOException e) {
-			Util.delete(outfile);
-			_log.append(e.getMessage());
-			throw new BuilderException(e);
-		} catch (ExecException e) {
-			Util.delete(outfile);
-			String msg = e.getMessage(); 
-			if (msg != null && msg.indexOf("windres") != -1) {
-				_log.append("Generated resource file...\n");
-				_log.append(rcb.getContent());
-			}
-			throw new BuilderException(e);
-		} finally {
-			Util.close(is);
-			Util.close(os);
-			Util.delete(rc);
-			Util.delete(ro);
-		}
-	}
-}
-
-class Cmd {
-	private final StringBuffer _sb = new StringBuffer();
-	private final String _basedir;
-	private final boolean _quote;
-
-	public Cmd(String basedir) {
-		_basedir = basedir;
-		_quote = basedir.indexOf(' ') != -1;
-	}
-
-	public Cmd add(String s) {
-		space();
-		_sb.append(s);
-		return this;
-	}
-
-	public Cmd addAbsFile(String file) {
-		space();
-		boolean quote = file.indexOf(' ') != -1;
-		if (quote) {
-			_sb.append('"');
-		}
-		_sb.append(file);
-		if (quote) {
-			_sb.append('"');
-		}
-		return this;
-	}
-
-	public Cmd addFile(String file) {
-		space();
-		if (_quote) {
-			_sb.append('"');
-		}
-		_sb.append(_basedir);
-		_sb.append(file);
-		if (_quote) {
-			_sb.append('"');
-		}
-		return this;
-	}
-
-	public Cmd addExe(String file) {
-		return addFile(Util.WINDOWS_OS ? file + ".exe" : file);
-	}
-
-	private void space() {
-		if (_sb.length() > 0) {
-			_sb.append(' ');
-		}
-	}
-	
-	public String toString() {
-		return _sb.toString();
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on 2005-04-24
+ */
+package net.sf.launch4j;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.StringTokenizer;
+
+import net.sf.launch4j.binding.InvariantViolationException;
+import net.sf.launch4j.config.Config;
+import net.sf.launch4j.config.ConfigPersister;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class Builder {
+	private final Log _log;
+	private final File _basedir;
+
+	public Builder(Log log) {
+		_log = log;
+		_basedir = Util.getJarBasedir();
+	}
+
+	public Builder(Log log, File basedir) {
+		_log = log;
+		_basedir = basedir;
+	}
+
+	/**
+	 * @return Output file path.
+	 */
+	public File build() throws BuilderException {
+		final Config c = ConfigPersister.getInstance().getConfig();
+		try {
+			c.validate();
+		} catch (InvariantViolationException e) {
+			throw new BuilderException(e.getMessage());
+		}
+		File rc = null;
+		File ro = null;
+		File outfile = null;
+		FileInputStream is = null;
+		FileOutputStream os = null;
+		final RcBuilder rcb = new RcBuilder();
+		try {
+			rc = rcb.build(c);
+			ro = Util.createTempFile("o");
+			outfile = ConfigPersister.getInstance().getOutputFile();
+
+			Cmd resCmd = new Cmd(_basedir);
+			resCmd.addExe("windres")
+					.add(Util.WINDOWS_OS ? "--preprocessor=type" : "--preprocessor=cat")
+					.add("-J rc -O coff -F pe-i386")
+					.addAbsFile(rc)
+					.addAbsFile(ro);
+			_log.append(Messages.getString("Builder.compiling.resources"));
+			resCmd.exec(_log);
+
+			Cmd ldCmd = new Cmd(_basedir);
+			ldCmd.addExe("ld")
+					.add("-mi386pe")
+					.add("--oformat pei-i386")
+					.add((c.getHeaderType().equals(Config.GUI_HEADER))
+							? "--subsystem windows" : "--subsystem console")
+					.add("-s")		// strip symbols
+					.addFiles(c.getHeaderObjects())
+					.addAbsFile(ro)
+					.addFiles(c.getLibs())
+					.add("-o")
+					.addAbsFile(outfile);
+			_log.append(Messages.getString("Builder.linking"));
+			ldCmd.exec(_log);
+
+			if (!c.isDontWrapJar()) {
+				_log.append(Messages.getString("Builder.wrapping"));
+				int len;
+				byte[] buffer = new byte[1024];
+				is = new FileInputStream(Util.getAbsoluteFile(
+						ConfigPersister.getInstance().getConfigPath(),	c.getJar()));
+				os = new FileOutputStream(outfile, true);
+				while ((len = is.read(buffer)) > 0) {
+					os.write(buffer, 0, len);
+				}
+			}
+			_log.append(Messages.getString("Builder.success") + outfile.getPath());
+			return outfile;
+		} catch (IOException e) {
+			Util.delete(outfile);
+			_log.append(e.getMessage());
+			throw new BuilderException(e);
+		} catch (ExecException e) {
+			Util.delete(outfile);
+			String msg = e.getMessage(); 
+			if (msg != null && msg.indexOf("windres") != -1) {
+				if (e.getErrLine() != -1) {
+					_log.append(Messages.getString("Builder.line.has.errors",
+							String.valueOf(e.getErrLine())));
+					_log.append(rcb.getLine(e.getErrLine()));
+				} else {
+					_log.append(Messages.getString("Builder.generated.resource.file"));
+					_log.append(rcb.getContent());
+				}
+			}
+			throw new BuilderException(e);
+		} finally {
+			Util.close(is);
+			Util.close(os);
+			Util.delete(rc);
+			Util.delete(ro);
+		}
+	}
+}
+
+class Cmd {
+	private final List _cmd = new ArrayList();
+	private final File _basedir;
+	private final File _bindir;
+
+	public Cmd(File basedir) {
+		_basedir = basedir;
+		String path = System.getProperty("launch4j.bindir");
+		if (path == null) {
+			_bindir = new File(basedir, "bin");
+		} else {
+			File bindir = new File(path);
+			_bindir = bindir.isAbsolute() ? bindir : new File(basedir, path);
+		}
+	}
+
+	public Cmd add(String s) {
+		StringTokenizer st = new StringTokenizer(s);
+		while (st.hasMoreTokens()) {
+			_cmd.add(st.nextToken());
+		}
+		return this;
+	}
+
+	public Cmd addAbsFile(File file) {
+		_cmd.add(file.getPath());
+		return this;
+	}
+
+	public Cmd addFile(String pathname) {
+		_cmd.add(new File(_basedir, pathname).getPath());
+		return this;
+	}
+
+	public Cmd addExe(String pathname) {
+		if (Util.WINDOWS_OS) {
+			pathname += ".exe";
+		}
+		_cmd.add(new File(_bindir, pathname).getPath());
+		return this;
+	}
+
+	public Cmd addFiles(List files) {
+		for (Iterator iter = files.iterator(); iter.hasNext();) {
+			addFile((String) iter.next());
+		}
+		return this;
+	}
+
+	public void exec(Log log) throws ExecException {
+		String[] cmd = (String[]) _cmd.toArray(new String[_cmd.size()]);
+		Util.exec(cmd, log);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/BuilderException.java b/installer/lib/launch4j/src/net/sf/launch4j/BuilderException.java
index 2728dfb7a65013404cc99548c1539974c9020bac..a84c2e279bbf69c7c8fe87618fb3cae1539ec77d 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/BuilderException.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/BuilderException.java
@@ -1,38 +1,52 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on May 13, 2005
- */
-package net.sf.launch4j;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class BuilderException extends Exception {
-	public BuilderException() {}
-
-	public BuilderException(Throwable t) {
-		super(t);
-	}
-	
-	public BuilderException(String msg) {
-		super(msg);
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 13, 2005
+ */
+package net.sf.launch4j;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class BuilderException extends Exception {
+	public BuilderException() {}
+
+	public BuilderException(Throwable t) {
+		super(t);
+	}
+	
+	public BuilderException(String msg) {
+		super(msg);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/ExecException.java b/installer/lib/launch4j/src/net/sf/launch4j/ExecException.java
index 0a46fe0604d4920f54384830bf43b875053ec2ff..236ae780f15fd6b89d78f90c3438048acf228ec8 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/ExecException.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/ExecException.java
@@ -1,38 +1,66 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on May 14, 2005
- */
-package net.sf.launch4j;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class ExecException extends Exception {
-	public ExecException() {}
-
-	public ExecException(Throwable t) {
-		super(t);
-	}
-	
-	public ExecException(String msg) {
-		super(msg);
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 14, 2005
+ */
+package net.sf.launch4j;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class ExecException extends Exception {
+	private final int _errLine;
+
+	public ExecException(Throwable t, int errLine) {
+		super(t);
+		_errLine = errLine;
+	}
+
+	public ExecException(Throwable t) {
+		this(t, -1);
+	}
+
+	public ExecException(String msg, int errLine) {
+		super(msg);
+		_errLine = errLine;
+	}
+
+	public ExecException(String msg) {
+		this(msg, -1);
+	}
+
+	public int getErrLine() {
+		return _errLine;
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/FileChooserFilter.java b/installer/lib/launch4j/src/net/sf/launch4j/FileChooserFilter.java
index 69d410f5e4deed2d83269a534a301fe455c13b1e..5199a6deb3a2d98b4752574c04ac36c2588b31fe 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/FileChooserFilter.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/FileChooserFilter.java
@@ -1,62 +1,76 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on 2004-01-15
- */
-package net.sf.launch4j;
-
-import java.io.File;
-
-import javax.swing.filechooser.FileFilter;
-
-/**
- * @author Copyright (C) 2004 Grzegorz Kowal
- */
-public class FileChooserFilter extends FileFilter {
-	String _description;
-	String[] _extensions;
-
-	public FileChooserFilter(String description, String extension) {
-		_description = description;
-		_extensions = new String[] {extension};
-	}
-	
-	public FileChooserFilter(String description, String[] extensions) {
-		_description = description;
-		_extensions = extensions;
-	}
-
-	public boolean accept(File f) {
-		if (f.isDirectory()) {
-			return true;
-		}
-		String ext = Util.getExtension(f);
-		for (int i = 0; i < _extensions.length; i++) {
-			if (ext.toLowerCase().equals(_extensions[i].toLowerCase())) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public String getDescription() {
-		return _description;
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on 2004-01-15
+ */
+package net.sf.launch4j;
+
+import java.io.File;
+
+import javax.swing.filechooser.FileFilter;
+
+/**
+ * @author Copyright (C) 2004 Grzegorz Kowal
+ */
+public class FileChooserFilter extends FileFilter {
+	String _description;
+	String[] _extensions;
+
+	public FileChooserFilter(String description, String extension) {
+		_description = description;
+		_extensions = new String[] {extension};
+	}
+	
+	public FileChooserFilter(String description, String[] extensions) {
+		_description = description;
+		_extensions = extensions;
+	}
+
+	public boolean accept(File f) {
+		if (f.isDirectory()) {
+			return true;
+		}
+		String ext = Util.getExtension(f);
+		for (int i = 0; i < _extensions.length; i++) {
+			if (ext.toLowerCase().equals(_extensions[i].toLowerCase())) {
+				return true;
+			}
+		}
+		return false;
+	}
+
+	public String getDescription() {
+		return _description;
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/Launcher.java b/installer/lib/launch4j/src/net/sf/launch4j/Launcher.java
deleted file mode 100644
index 587b340f57e1b53de06c15902675ab048fa98799..0000000000000000000000000000000000000000
--- a/installer/lib/launch4j/src/net/sf/launch4j/Launcher.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Created on Jun 4, 2005
- */
-package net.sf.launch4j;
-
-/**
- * This class allows launch4j to act as a launcher instead of a wrapper.
- * It's useful on Windows because an application cannot be a GUI and console one
- * at the same time. So there are two launchers that start launch4j.jar: launch4j.exe
- * for GUI mode and launch4jc.exe for console operation.
- * The Launcher class is packed into an executable jar that contains nothing else but
- * the manifest with Class-Path attribute defined as in the application jar. The jar
- * is wrapped with launch4j.
- * 
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class Launcher {
-	public static void main(String[] args) {
-		Main.main(args);
-	}
-}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/Log.java b/installer/lib/launch4j/src/net/sf/launch4j/Log.java
index 84eef2e1e22fcb4c9a51b3d08751d47d4eadcd65..c4d591b0cbb7de0553eb143af380dee5082f5ee8 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/Log.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/Log.java
@@ -1,91 +1,105 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on May 12, 2005
- */
-package net.sf.launch4j;
-
-import javax.swing.JTextArea;
-import javax.swing.SwingUtilities;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public abstract class Log {
-	private static final Log _consoleLog = new ConsoleLog();
-	private static final Log _antLog = new AntLog();
-
-	public abstract void clear();
-	public abstract void append(String line);
-
-	public static Log getConsoleLog() {
-		return _consoleLog;
-	}
-	
-	public static Log getAntLog() {
-		return _antLog;
-	}
-
-	public static Log getSwingLog(JTextArea textArea) {
-		return new SwingLog(textArea);
-	}
-}
-
-class ConsoleLog extends Log {
-	public void clear() {
-		System.out.println("\n");
-	}
-
-	public void append(String line) {
-		System.out.println("launch4j: " + line);
-	}
-}
-
-class AntLog extends Log {
-	public void clear() {
-		System.out.println("\n");
-	}
-
-	public void append(String line) {
-		System.out.println(line);
-	}
-}
-
-class SwingLog extends Log {
-	private final JTextArea _textArea;
-
-	public SwingLog(JTextArea textArea) {
-		_textArea = textArea;
-	}
-
-	public void clear() {
-		SwingUtilities.invokeLater(new Runnable() {
-			public void run() {
-				_textArea.setText("");
-		}});
-	}
-
-	public void append(final String line) {
-		SwingUtilities.invokeLater(new Runnable() {
-			public void run() {
-				_textArea.append(line + "\n");
-		}});
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 12, 2005
+ */
+package net.sf.launch4j;
+
+import javax.swing.JTextArea;
+import javax.swing.SwingUtilities;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public abstract class Log {
+	private static final Log _consoleLog = new ConsoleLog();
+	private static final Log _antLog = new AntLog();
+
+	public abstract void clear();
+	public abstract void append(String line);
+
+	public static Log getConsoleLog() {
+		return _consoleLog;
+	}
+	
+	public static Log getAntLog() {
+		return _antLog;
+	}
+
+	public static Log getSwingLog(JTextArea textArea) {
+		return new SwingLog(textArea);
+	}
+}
+
+class ConsoleLog extends Log {
+	public void clear() {
+		System.out.println("\n");
+	}
+
+	public void append(String line) {
+		System.out.println("launch4j: " + line);
+	}
+}
+
+class AntLog extends Log {
+	public void clear() {
+		System.out.println("\n");
+	}
+
+	public void append(String line) {
+		System.out.println(line);
+	}
+}
+
+class SwingLog extends Log {
+	private final JTextArea _textArea;
+
+	public SwingLog(JTextArea textArea) {
+		_textArea = textArea;
+	}
+
+	public void clear() {
+		SwingUtilities.invokeLater(new Runnable() {
+			public void run() {
+				_textArea.setText("");
+		}});
+	}
+
+	public void append(final String line) {
+		SwingUtilities.invokeLater(new Runnable() {
+			public void run() {
+				_textArea.append(line + "\n");
+		}});
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/Main.java b/installer/lib/launch4j/src/net/sf/launch4j/Main.java
index a49cb1ae96c4fe2ff412f387f44ada500b4d7bee..45f84ad7964aa193e08f199ef22993de66013335 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/Main.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/Main.java
@@ -1,62 +1,99 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 21, 2005
- */
-package net.sf.launch4j;
-
-import java.io.File;
-
-import net.sf.launch4j.config.ConfigPersister;
-import net.sf.launch4j.config.ConfigPersisterException;
-import net.sf.launch4j.formimpl.MainFrame;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class Main {
-
-	public static final String PROGRAM_NAME = "launch4j 2.0.RC3"; 
-	public static final String PROGRAM_DESCRIPTION = PROGRAM_NAME + 
-		" :: Cross-platform Java application wrapper for creating Windows native executables\n" +
-		"Copyright (C) 2005 Grzegorz Kowal\n" +
-		"launch4j comes with ABSOLUTELY NO WARRANTY\n" +
-	    "This is free software, licensed under the GNU General Public License.\n" +
-		"This product includes software developed by the Apache Software Foundation (http://www.apache.org/).\n\n";
-
-	public static void main(String[] args) {
-		try {
-			if (args.length == 0) {
-				ConfigPersister.getInstance().createBlank();
-				MainFrame.createInstance();
-			} else if (args.length == 1 && !args[0].startsWith("-")) {
-				ConfigPersister.getInstance().load(new File(args[0]));
-				Builder b = new Builder(Log.getConsoleLog());
-				b.build();
-			} else {
-				System.out.println(PROGRAM_DESCRIPTION + "usage: launch4j config.xml");
-			}
-		} catch (ConfigPersisterException e) {
-			Log.getConsoleLog().append(e.getMessage());
-		} catch (BuilderException e) {
-			Log.getConsoleLog().append(e.getMessage());
-		} 
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2008 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 21, 2005
+ */
+package net.sf.launch4j;
+
+import java.io.File;
+import java.io.InputStream;
+import java.util.Properties;
+
+import net.sf.launch4j.config.ConfigPersister;
+import net.sf.launch4j.formimpl.MainFrame;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class Main {
+	private static String _name; 
+	private static String _description;
+
+	public static void main(String[] args) {
+		try {
+			Properties props = new Properties();
+			InputStream in = Main.class.getClassLoader()
+					.getResourceAsStream("launch4j.properties");
+			props.load(in);
+			in.close();
+			setDescription(props);
+
+			if (args.length == 0) {
+				ConfigPersister.getInstance().createBlank();
+				MainFrame.createInstance();
+			} else if (args.length == 1 && !args[0].startsWith("-")) {
+				ConfigPersister.getInstance().load(new File(args[0]));
+				Builder b = new Builder(Log.getConsoleLog());
+				b.build();
+			} else {
+				System.out.println(_description
+						+ Messages.getString("Main.usage")
+						+ ": launch4j config.xml");
+			}
+		} catch (Exception e) {
+			Log.getConsoleLog().append(e.getMessage());
+		} 
+	}
+
+	public static String getName() {
+		return _name;
+	}
+
+	public static String getDescription() {
+		return _description;
+	}
+
+	private static void setDescription(Properties props) {
+		_name = "Launch4j " + props.getProperty("version"); 
+		_description = _name + 
+				" (http://launch4j.sourceforge.net/)\n" +
+				"Cross-platform Java application wrapper" +
+						" for creating Windows native executables.\n\n" +
+				"Copyright (C) 2004, 2008 Grzegorz Kowal\n\n" +
+				"Launch4j comes with ABSOLUTELY NO WARRANTY.\n" +
+				"This is free software, licensed under the BSD License.\n" +
+				"This product includes software developed by the Apache Software Foundation" +
+						" (http://www.apache.org/).";
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/Messages.java b/installer/lib/launch4j/src/net/sf/launch4j/Messages.java
new file mode 100644
index 0000000000000000000000000000000000000000..35d4c895084d8af697ca8e785baec329fabd79aa
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/Messages.java
@@ -0,0 +1,78 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+package net.sf.launch4j;
+
+import java.text.MessageFormat;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+	private static final String BUNDLE_NAME = "net.sf.launch4j.messages";
+
+	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+			.getBundle(BUNDLE_NAME);
+	private static final MessageFormat FORMATTER = new MessageFormat("");
+
+	private Messages() {
+	}
+
+	public static String getString(String key) {
+		try {
+			return RESOURCE_BUNDLE.getString(key);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+	
+	public static String getString(String key, String arg0) {
+		return getString(key, new Object[] {arg0});
+	}
+
+	public static String getString(String key, String arg0, String arg1) {
+		return getString(key, new Object[] {arg0, arg1});
+	}
+
+	public static String getString(String key, String arg0, String arg1, String arg2) {
+		return getString(key, new Object[] {arg0, arg1, arg2});
+	}
+
+	public static String getString(String key, Object[] args) {
+		try {
+			FORMATTER.applyPattern(RESOURCE_BUNDLE.getString(key));
+			return FORMATTER.format(args);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/OptionParser.java b/installer/lib/launch4j/src/net/sf/launch4j/OptionParser.java
index 7686c91b685a7b467be793338e08df91958c80f5..bb2432c8e1803e1c5e53442b2c342bd9de3ac5a8 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/OptionParser.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/OptionParser.java
@@ -1,57 +1,71 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on 2005-04-24
- */
-package net.sf.launch4j;
-
-//import net.sf.launch4j.config.Config;
-
-//import org.apache.commons.cli.CommandLine;
-//import org.apache.commons.cli.CommandLineParser;
-//import org.apache.commons.cli.HelpFormatter;
-//import org.apache.commons.cli.Options;
-//import org.apache.commons.cli.ParseException;
-//import org.apache.commons.cli.PosixParser;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class OptionParser {
-
-//	private final Options _options;
-//
-//	public OptionParser() {
-//		_options = new Options();
-//		_options.addOption("h", "header", true, "header");
-//	}
-//
-//	public Config parse(Config c, String[] args) throws ParseException {
-//		CommandLineParser parser = new PosixParser();
-//		CommandLine cl = parser.parse(_options, args);
-//		c.setJar(getFile(props, Config.JAR));
-//		c.setOutfile(getFile(props, Config.OUTFILE));
-//	}
-//
-//	public void printHelp() {
-//		HelpFormatter formatter = new HelpFormatter();
-//		formatter.printHelp("launch4j", _options);
-//	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on 2005-04-24
+ */
+package net.sf.launch4j;
+
+//import net.sf.launch4j.config.Config;
+
+//import org.apache.commons.cli.CommandLine;
+//import org.apache.commons.cli.CommandLineParser;
+//import org.apache.commons.cli.HelpFormatter;
+//import org.apache.commons.cli.Options;
+//import org.apache.commons.cli.ParseException;
+//import org.apache.commons.cli.PosixParser;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class OptionParser {
+
+//	private final Options _options;
+//
+//	public OptionParser() {
+//		_options = new Options();
+//		_options.addOption("h", "header", true, "header");
+//	}
+//
+//	public Config parse(Config c, String[] args) throws ParseException {
+//		CommandLineParser parser = new PosixParser();
+//		CommandLine cl = parser.parse(_options, args);
+//		c.setJar(getFile(props, Config.JAR));
+//		c.setOutfile(getFile(props, Config.OUTFILE));
+//	}
+//
+//	public void printHelp() {
+//		HelpFormatter formatter = new HelpFormatter();
+//		formatter.printHelp("launch4j", _options);
+//	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/RcBuilder.java b/installer/lib/launch4j/src/net/sf/launch4j/RcBuilder.java
index 57c20cb66184750dc8e79afb538d0867ec091316..f8885e3e6d4f681097ffdae61d3a5c557632b901 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/RcBuilder.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/RcBuilder.java
@@ -1,230 +1,340 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on 2005-04-24
- */
-package net.sf.launch4j;
-
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-
-import net.sf.launch4j.config.Config;
-import net.sf.launch4j.config.ConfigPersister;
-import net.sf.launch4j.config.Jre;
-import net.sf.launch4j.config.Splash;
-import net.sf.launch4j.config.VersionInfo;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class RcBuilder {
-
-	// winnt.h
-	public static final int LANG_NEUTRAL = 0;
-	public static final int SUBLANG_NEUTRAL	= 0;
-	public static final int SUBLANG_DEFAULT	= 1;
-	public static final int SUBLANG_SYS_DEFAULT	= 2;
-
-	// ICON
-	public static final int APP_ICON = 1;
-
-	// BITMAP
-	public static final int SPLASH_BITMAP = 1;
-
-	// RCDATA
-	public static final int JRE_PATH = 1;
-	public static final int JAVA_MIN_VER = 2;
-	public static final int JAVA_MAX_VER = 3;
-	public static final int SHOW_SPLASH = 4;
-	public static final int SPLASH_WAITS_FOR_WINDOW = 5;
-	public static final int SPLASH_TIMEOUT = 6;
-	public static final int SPLASH_TIMEOUT_ERR = 7;
-	public static final int CHDIR = 8;
-	public static final int SET_PROC_NAME = 9;
-	public static final int ERR_TITLE = 10;
-	public static final int GUI_HEADER_STAYS_ALIVE = 11;
-	public static final int JVM_ARGS = 12;
-	public static final int JAR_ARGS = 13;
-
-	private final StringBuffer _sb = new StringBuffer();
-
-	public String getContent() {
-		return _sb.toString();
-	}
-
-	public File build(Config c) throws IOException {
-		_sb.append("LANGUAGE ");
-		_sb.append(LANG_NEUTRAL);
-		_sb.append(", ");
-		_sb.append(SUBLANG_DEFAULT);
-		_sb.append('\n');
-		addVersionInfo(c.getVersionInfo());
-		addJre(c.getJre());
-		addIcon(APP_ICON, c.getIcon());
-		addText(ERR_TITLE, c.getErrTitle());
-		addText(JAR_ARGS, c.getJarArgs());
-		addWindowsPath(CHDIR, c.getChdir());
-		addTrue(SET_PROC_NAME, c.isCustomProcName());
-		addTrue(GUI_HEADER_STAYS_ALIVE, c.isStayAlive());
-		addSplash(c.getSplash());
-		File f = File.createTempFile("launch4j", "rc");
-		BufferedWriter w = new BufferedWriter(new FileWriter(f));
-		w.write(_sb.toString());
-		w.close();
-		return f;
-	}
-
-	private void addVersionInfo(VersionInfo v) {
-		if (v == null) {
-			return;
-		}
-		_sb.append("1 VERSIONINFO\n");
-		_sb.append("FILEVERSION ");
-		_sb.append(v.getFileVersion().replaceAll("\\.", ", "));
-		_sb.append("\nPRODUCTVERSION ");
-		_sb.append(v.getProductVersion().replaceAll("\\.", ", "));
-		_sb.append("\nFILEFLAGSMASK 0\n" +
-				"FILEOS 0x40000\n" +
-				"FILETYPE 1\n" +
-				"{\n" + 
-				" BLOCK \"StringFileInfo\"\n" +
-				" {\n" +
-				"  BLOCK \"040904E4\"\n" +	// English
-				"  {\n");
-		addVerBlockValue("CompanyName", v.getCompanyName());
-		addVerBlockValue("FileDescription", v.getFileDescription());
-		addVerBlockValue("FileVersion", v.getTxtFileVersion());
-		addVerBlockValue("InternalName", v.getInternalName());
-		addVerBlockValue("LegalCopyright", v.getCopyright());
-		addVerBlockValue("OriginalFilename", v.getOriginalFilename());
-		addVerBlockValue("ProductName", v.getProductName());
-		addVerBlockValue("ProductVersion", v.getTxtProductVersion());
-		_sb.append("  }\n }\n}\n");
-	}
-	
-	private void addJre(Jre jre) {
-		addWindowsPath(JRE_PATH, jre.getPath());
-		addText(JAVA_MIN_VER, jre.getMinVersion());
-		addText(JAVA_MAX_VER, jre.getMaxVersion());
-		StringBuffer jvmArgs = new StringBuffer();
-		if (jre.getInitialHeapSize() > 0) {
-			jvmArgs.append("-Xms");
-			jvmArgs.append(jre.getInitialHeapSize());
-			jvmArgs.append('m');
-		}
-		if (jre.getMaxHeapSize() > 0) {
-			addSpace(jvmArgs);
-			jvmArgs.append("-Xmx");
-			jvmArgs.append(jre.getMaxHeapSize());
-			jvmArgs.append('m');
-		}
-		if (jre.getArgs() != null && jre.getArgs().length() > 0) {
-			addSpace(jvmArgs);
-			jvmArgs.append(jre.getArgs().replaceAll("\n", " "));
-		}
-		addText(JVM_ARGS, jvmArgs.toString());
-	}
-	
-	private void addSplash(Splash splash) {
-		if (splash == null) {
-			return;
-		}
-		addTrue(SHOW_SPLASH, true);
-		addTrue(SPLASH_WAITS_FOR_WINDOW, splash.getWaitForWindow());
-		addText(SPLASH_TIMEOUT, String.valueOf(splash.getTimeout()));
-		addTrue(SPLASH_TIMEOUT_ERR, splash.isTimeoutErr());
-		addBitmap(SPLASH_BITMAP, splash.getFile());
-	}
-
-	private void addText(int id, String text) {
-		if (text == null || text.length() == 0) {
-			return;
-		}
-		_sb.append(id);
-		_sb.append(" RCDATA BEGIN \"");
-		_sb.append(text);
-		_sb.append("\\0\" END\n");
-	}
-
-	/**
-	 * Stores path in Windows format with '\' separators. 
-	 */
-	private void addWindowsPath(int id, String path) {
-		if (path == null || path.equals("")) {
-			return;
-		}
-		_sb.append(id);
-		_sb.append(" RCDATA BEGIN \"");
-		_sb.append(path.replaceAll("\\\\", "\\\\\\\\")
-				.replaceAll("/", "\\\\\\\\"));
-		_sb.append("\\0\" END\n");
-	}
-
-	private void addTrue(int id, boolean value) {
-		if (value) {
-			addText(id, "true");
-		}
-	}
-
-	private void addIcon(int id, File icon) {
-		if (icon == null || icon.getPath().equals("")) {
-			return;
-		}
-		_sb.append(id);
-		_sb.append(" ICON DISCARDABLE \"");
-		_sb.append(getPath(Util.getAbsoluteFile(
-				ConfigPersister.getInstance().getConfigPath(), icon)));
-		_sb.append("\"\n");
-	}
-
-	private void addBitmap(int id, File bitmap) {
-		if (bitmap == null) {
-			return;
-		}
-		_sb.append(id);
-		_sb.append(" BITMAP \"");
-		_sb.append(getPath(Util.getAbsoluteFile(
-				ConfigPersister.getInstance().getConfigPath(), bitmap)));
-		_sb.append("\"\n");
-	}
-	
-	private String getPath(File f) {
-		return f.getPath().replaceAll("\\\\", "\\\\\\\\");
-	}
-	
-	private void addSpace(StringBuffer sb) {
-		int len = sb.length();
-		if (len-- > 0 && sb.charAt(len) != ' ') {
-			sb.append(' ');
-		}
-	}
-	
-	private void addVerBlockValue(String key, String value) {
-		_sb.append("   VALUE \"");
-		_sb.append(key);
-		_sb.append("\", \"");
-		if (value != null) {
-			_sb.append(value);
-		}
-		_sb.append("\"\n");
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on 2005-04-24
+ */
+package net.sf.launch4j;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.List;
+
+import net.sf.launch4j.config.Config;
+import net.sf.launch4j.config.ConfigPersister;
+import net.sf.launch4j.config.Jre;
+import net.sf.launch4j.config.Msg;
+import net.sf.launch4j.config.Splash;
+import net.sf.launch4j.config.VersionInfo;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class RcBuilder {
+
+	// winnt.h
+	public static final int LANG_NEUTRAL = 0;
+	public static final int SUBLANG_NEUTRAL	= 0;
+	public static final int SUBLANG_DEFAULT	= 1;
+	public static final int SUBLANG_SYS_DEFAULT	= 2;
+
+	// MANIFEST
+	public static final int MANIFEST = 1;
+
+	// ICON
+	public static final int APP_ICON = 1;
+
+	// BITMAP
+	public static final int SPLASH_BITMAP = 1;
+
+	// RCDATA
+	public static final int JRE_PATH = 1;
+	public static final int JAVA_MIN_VER = 2;
+	public static final int JAVA_MAX_VER = 3;
+	public static final int SHOW_SPLASH = 4;
+	public static final int SPLASH_WAITS_FOR_WINDOW = 5;
+	public static final int SPLASH_TIMEOUT = 6;
+	public static final int SPLASH_TIMEOUT_ERR = 7;
+	public static final int CHDIR = 8;
+	public static final int SET_PROC_NAME = 9;
+	public static final int ERR_TITLE = 10;
+	public static final int GUI_HEADER_STAYS_ALIVE = 11;
+	public static final int JVM_OPTIONS = 12;
+	public static final int CMD_LINE = 13;
+	public static final int JAR = 14;
+	public static final int MAIN_CLASS = 15;
+	public static final int CLASSPATH = 16;
+	public static final int WRAPPER = 17;
+	public static final int JDK_PREFERENCE = 18;
+	public static final int ENV_VARIABLES = 19;
+	public static final int PRIORITY_CLASS = 20;
+	public static final int	DOWNLOAD_URL = 	21;
+	public static final int SUPPORT_URL = 22;
+	public static final int MUTEX_NAME = 23;
+	public static final int INSTANCE_WINDOW_TITLE = 24;
+	public static final int INITIAL_HEAP_SIZE = 25;
+	public static final int INITIAL_HEAP_PERCENT = 26;
+	public static final int MAX_HEAP_SIZE = 27;
+	public static final int MAX_HEAP_PERCENT = 28;
+	
+	public static final int STARTUP_ERR = 101;
+	public static final int BUNDLED_JRE_ERR = 102;
+	public static final int JRE_VERSION_ERR = 103;
+	public static final int LAUNCHER_ERR = 104;
+	public static final int INSTANCE_ALREADY_EXISTS_MSG = 105;
+	
+	private final StringBuffer _sb = new StringBuffer();
+
+	public String getContent() {
+		return _sb.toString();
+	}
+
+	public String getLine(int line) {
+		return _sb.toString().split("\n")[line - 1];
+	}
+
+	public File build(Config c) throws IOException {
+		_sb.append("LANGUAGE ");
+		_sb.append(LANG_NEUTRAL);
+		_sb.append(", ");
+		_sb.append(SUBLANG_DEFAULT);
+		_sb.append('\n');
+		addVersionInfo(c.getVersionInfo());
+		addJre(c.getJre());
+		addManifest(MANIFEST, c.getManifest());
+		addIcon(APP_ICON, c.getIcon());
+		addText(ERR_TITLE, c.getErrTitle());
+		addText(DOWNLOAD_URL, c.getDownloadUrl());
+		addText(SUPPORT_URL, c.getSupportUrl());
+		addText(CMD_LINE, c.getCmdLine());
+		addWindowsPath(CHDIR, c.getChdir());
+		addText(PRIORITY_CLASS, String.valueOf(c.getPriorityClass()));
+		addTrue(SET_PROC_NAME, c.isCustomProcName());
+		addTrue(GUI_HEADER_STAYS_ALIVE, c.isStayAlive());
+		addSplash(c.getSplash());
+		addMessages(c);
+
+		if (c.getSingleInstance() != null) {
+			addText(MUTEX_NAME, c.getSingleInstance().getMutexName());
+			addText(INSTANCE_WINDOW_TITLE, c.getSingleInstance().getWindowTitle());
+		}
+
+		if (c.getVariables() != null && !c.getVariables().isEmpty()) {
+			StringBuffer vars = new StringBuffer();
+			append(vars, c.getVariables(), "\t");
+			addText(ENV_VARIABLES, vars.toString());
+		}
+
+		// MAIN_CLASS / JAR
+		addTrue(WRAPPER, !c.isDontWrapJar());
+		if (c.getClassPath() != null) {
+			addText(MAIN_CLASS, c.getClassPath().getMainClass());
+			addWindowsPath(CLASSPATH, c.getClassPath().getPathsString());
+		}
+		if (c.isDontWrapJar() && c.getJar() != null) {
+			addWindowsPath(JAR, c.getJar().getPath());
+		}
+
+		File f = Util.createTempFile("rc");
+		BufferedWriter w = new BufferedWriter(new FileWriter(f));
+		w.write(_sb.toString());
+		w.close();
+		return f;
+	}
+
+	private void addVersionInfo(VersionInfo v) {
+		if (v == null) {
+			return;
+		}
+		_sb.append("1 VERSIONINFO\n");
+		_sb.append("FILEVERSION ");
+		_sb.append(v.getFileVersion().replaceAll("\\.", ", "));
+		_sb.append("\nPRODUCTVERSION ");
+		_sb.append(v.getProductVersion().replaceAll("\\.", ", "));
+		_sb.append("\nFILEFLAGSMASK 0\n" +
+				"FILEOS 0x40000\n" +
+				"FILETYPE 1\n" +
+				"{\n" + 
+				" BLOCK \"StringFileInfo\"\n" +
+				" {\n" +
+				"  BLOCK \"040904E4\"\n" +	// English
+				"  {\n");
+		addVerBlockValue("CompanyName", v.getCompanyName());
+		addVerBlockValue("FileDescription", v.getFileDescription());
+		addVerBlockValue("FileVersion", v.getTxtFileVersion());
+		addVerBlockValue("InternalName", v.getInternalName());
+		addVerBlockValue("LegalCopyright", v.getCopyright());
+		addVerBlockValue("OriginalFilename", v.getOriginalFilename());
+		addVerBlockValue("ProductName", v.getProductName());
+		addVerBlockValue("ProductVersion", v.getTxtProductVersion());
+		_sb.append("  }\n }\nBLOCK \"VarFileInfo\"\n{\nVALUE \"Translation\", 0x0409, 0x04E4\n}\n}");     
+	}
+
+	private void addJre(Jre jre) {
+		addWindowsPath(JRE_PATH, jre.getPath());
+		addText(JAVA_MIN_VER, jre.getMinVersion());
+		addText(JAVA_MAX_VER, jre.getMaxVersion());
+		addText(JDK_PREFERENCE, String.valueOf(jre.getJdkPreferenceIndex()));
+		addInteger(INITIAL_HEAP_SIZE, jre.getInitialHeapSize());
+		addInteger(INITIAL_HEAP_PERCENT, jre.getInitialHeapPercent());
+		addInteger(MAX_HEAP_SIZE, jre.getMaxHeapSize());
+		addInteger(MAX_HEAP_PERCENT, jre.getMaxHeapPercent());
+
+		StringBuffer options = new StringBuffer();
+		if (jre.getOptions() != null && !jre.getOptions().isEmpty()) {
+			addSpace(options);
+			append(options, jre.getOptions(), " ");
+		}
+		addText(JVM_OPTIONS, options.toString());
+	}
+	
+	private void addSplash(Splash splash) {
+		if (splash == null) {
+			return;
+		}
+		addTrue(SHOW_SPLASH, true);
+		addTrue(SPLASH_WAITS_FOR_WINDOW, splash.getWaitForWindow());
+		addText(SPLASH_TIMEOUT, String.valueOf(splash.getTimeout()));
+		addTrue(SPLASH_TIMEOUT_ERR, splash.isTimeoutErr());
+		addBitmap(SPLASH_BITMAP, splash.getFile());
+	}
+	
+	private void addMessages(Config c) {
+		Msg msg = c.getMessages();
+		if (msg == null) {
+			msg = new Msg();
+		}
+		addText(STARTUP_ERR, msg.getStartupErr());
+		addText(BUNDLED_JRE_ERR, msg.getBundledJreErr());
+		addText(JRE_VERSION_ERR, msg.getJreVersionErr());
+		addText(LAUNCHER_ERR, msg.getLauncherErr());
+		if (c.getSingleInstance() != null) {
+			addText(INSTANCE_ALREADY_EXISTS_MSG, msg.getInstanceAlreadyExistsMsg());
+		}
+	}
+
+	private void append(StringBuffer sb, List list, String separator) {
+		for (int i = 0; i < list.size(); i++) {
+			sb.append(list.get(i));
+			if (i < list.size() - 1) {
+				sb.append(separator);
+			}
+		}
+	}
+
+	private void addText(int id, String text) {
+		if (text == null || text.equals("")) {
+			return;
+		}
+		_sb.append(id);
+		_sb.append(" RCDATA BEGIN \"");
+		_sb.append(escape(text));
+		_sb.append("\\0\" END\n");
+	}
+
+	private void addTrue(int id, boolean value) {
+		if (value) {
+			addText(id, "true");
+		}
+	}
+
+	private void addInteger(int id, Integer value) {
+		if (value != null) {
+			addText(id, value.toString());
+		}
+	}
+
+	/**
+	 * Stores path in Windows format with '\' separators. 
+	 */
+	private void addWindowsPath(int id, String path) {
+		if (path == null || path.equals("")) {
+			return;
+		}
+		_sb.append(id);
+		_sb.append(" RCDATA BEGIN \"");
+		_sb.append(path.replaceAll("\\\\", "\\\\\\\\")
+				.replaceAll("/", "\\\\\\\\"));
+		_sb.append("\\0\" END\n");
+	}
+
+	private void addManifest(int id, File manifest) {
+		if (manifest == null || manifest.getPath().equals("")) {
+			return;
+		}
+		_sb.append(id);
+		_sb.append(" 24 \"");
+		_sb.append(getPath(Util.getAbsoluteFile(
+				ConfigPersister.getInstance().getConfigPath(), manifest)));
+		_sb.append("\"\n");
+	}
+
+	private void addIcon(int id, File icon) {
+		if (icon == null || icon.getPath().equals("")) {
+			return;
+		}
+		_sb.append(id);
+		_sb.append(" ICON DISCARDABLE \"");
+		_sb.append(getPath(Util.getAbsoluteFile(
+				ConfigPersister.getInstance().getConfigPath(), icon)));
+		_sb.append("\"\n");
+	}
+
+	private void addBitmap(int id, File bitmap) {
+		if (bitmap == null) {
+			return;
+		}
+		_sb.append(id);
+		_sb.append(" BITMAP \"");
+		_sb.append(getPath(Util.getAbsoluteFile(
+				ConfigPersister.getInstance().getConfigPath(), bitmap)));
+		_sb.append("\"\n");
+	}
+	
+	private String getPath(File f) {
+		return f.getPath().replaceAll("\\\\", "\\\\\\\\");
+	}
+	
+	private void addSpace(StringBuffer sb) {
+		int len = sb.length();
+		if (len-- > 0 && sb.charAt(len) != ' ') {
+			sb.append(' ');
+		}
+	}
+	
+	private void addVerBlockValue(String key, String value) {
+		_sb.append("   VALUE \"");
+		_sb.append(key);
+		_sb.append("\", \"");
+		if (value != null) {
+			_sb.append(escape(value));
+		}
+		_sb.append("\"\n");
+	}
+
+	private String escape(String text) {
+		return text.replaceAll("\"", "\"\"");
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/Util.java b/installer/lib/launch4j/src/net/sf/launch4j/Util.java
index c05dabfa67001b78921db0aea19df4dca4a50de9..f3bf2456d6d6292ffaf676b326804942cd7742d5 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/Util.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/Util.java
@@ -1,152 +1,197 @@
-/*
- launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- Copyright (C) 2005 Grzegorz Kowal
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-/*
- * Created on 2005-04-24
- */
-package net.sf.launch4j;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.OutputStream;
-import java.io.Reader;
-import java.io.Writer;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class Util {
-	public static final boolean WINDOWS_OS = System.getProperty("os.name")
-			.toLowerCase().startsWith("windows");
-
-	private Util() {}
-
-	/**
-	 * Returns the base directory of a jar file or null if the class is a standalone file. 
-	 * @return System specific path
-	 * 
-	 * Based on a patch submitted by Josh Elsasser
-	 */
-	public static String getJarBasedir() {
-		String url = Util.class.getClassLoader()
-				.getResource(Util.class.getName().replace('.', '/') + ".class")
-				.getFile()
-				.replaceAll("%20", " ");
-		if (url.startsWith("file:")) {
-			String jar = url.substring(5, url.lastIndexOf('!'));
-			int x = jar.lastIndexOf('/');
-			if (x == -1) {
-				x = jar.lastIndexOf('\\');	
-			}
-			String basedir = jar.substring(0, x + 1);
-			return new File(basedir).getPath();
-		} else {
-			return null;
-		}
-	}
-
-	public static File getAbsoluteFile(File basepath, File f) {
-		return f.isAbsolute() ? f : new File(basepath, f.getPath());
-	}
-
-	public static String getExtension(File f) {
-		String name = f.getName();
-		int x = name.lastIndexOf('.');
-		if (x != -1) {
-			return name.substring(x);
-		} else {
-			return "";
-		}
-	}
-
-	public static void exec(String cmd, Log log) throws ExecException {
-		BufferedReader is = null;
-		try {
-			if (WINDOWS_OS) {
-				cmd = cmd.replaceAll("/", "\\\\");
-			}
-			Process p = Runtime.getRuntime().exec(cmd);
-			is = new BufferedReader(new InputStreamReader(p.getErrorStream()));
-			String line;
-			while ((line = is.readLine()) != null) {
-				log.append(line);
-			}
-			is.close();
-			p.waitFor();
-			if (p.exitValue() != 0) {
-				String msg = "Exec failed (" + p.exitValue() + "): " + cmd;
-				log.append(msg);
-				throw new ExecException(msg);
-			}
-		} catch (IOException e) {
-			close(is);
-			throw new ExecException(e);
-		} catch (InterruptedException e) {
-			close(is);
-			throw new ExecException(e);
-		}
-	}
-
-	public static void close(final InputStream o) {
-		if (o != null) {
-			try {
-				o.close();
-			} catch (IOException e) {
-				System.err.println(e); // XXX log
-			}
-		}
-	}
-
-	public static void close(final OutputStream o) {
-		if (o != null) {
-			try {
-				o.close();
-			} catch (IOException e) {
-				System.err.println(e); // XXX log
-			}
-		}
-	}
-
-	public static void close(final Reader o) {
-		if (o != null) {
-			try {
-				o.close();
-			} catch (IOException e) {
-				System.err.println(e); // XXX log
-			}
-		}
-	}
-
-	public static void close(final Writer o) {
-		if (o != null) {
-			try {
-				o.close();
-			} catch (IOException e) {
-				System.err.println(e); // XXX log
-			}
-		}
-	}
-
-	public static boolean delete(File f) {
-		return (f != null) ? f.delete() : false;
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on 2005-04-24
+ */
+package net.sf.launch4j;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStream;
+import java.io.Reader;
+import java.io.Writer;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class Util {
+	public static final boolean WINDOWS_OS = System.getProperty("os.name")
+			.toLowerCase().startsWith("windows");
+
+	private Util() {}
+
+	public static File createTempFile(String suffix) throws IOException {
+		String tmpdir = System.getProperty("launch4j.tmpdir");
+		if (tmpdir != null) {
+			if (tmpdir.indexOf(' ') != -1) {
+				throw new IOException(Messages.getString("Util.tmpdir"));
+			}
+			return File.createTempFile("launch4j", suffix, new File(tmpdir));
+		} else {
+			return File.createTempFile("launch4j", suffix);
+		}
+	}
+
+	/**
+	 * Returns the base directory of a jar file or null if the class is a standalone file. 
+	 * @return System specific path
+	 * 
+	 * Based on a patch submitted by Josh Elsasser
+	 */
+	public static File getJarBasedir() {
+		String url = Util.class.getClassLoader()
+				.getResource(Util.class.getName().replace('.', '/') + ".class")
+				.getFile()
+				.replaceAll("%20", " ");
+		if (url.startsWith("file:")) {
+			String jar = url.substring(5, url.lastIndexOf('!'));
+			int x = jar.lastIndexOf('/');
+			if (x == -1) {
+				x = jar.lastIndexOf('\\');	
+			}
+			String basedir = jar.substring(0, x + 1);
+			return new File(basedir);
+		} else {
+			return new File(".");
+		}
+	}
+
+	public static File getAbsoluteFile(File basepath, File f) {
+		return f.isAbsolute() ? f : new File(basepath, f.getPath());
+	}
+
+	public static String getExtension(File f) {
+		String name = f.getName();
+		int x = name.lastIndexOf('.');
+		if (x != -1) {
+			return name.substring(x);
+		} else {
+			return "";
+		}
+	}
+
+	public static void exec(String[] cmd, Log log) throws ExecException {
+		BufferedReader is = null;
+		try {
+			if (WINDOWS_OS) {
+				for (int i = 0; i < cmd.length; i++) {
+					cmd[i] = cmd[i].replaceAll("/", "\\\\");
+				}
+			}
+			Process p = Runtime.getRuntime().exec(cmd);
+			is = new BufferedReader(new InputStreamReader(p.getErrorStream()));
+			String line;
+			int errLine = -1;
+			Pattern pattern = Pattern.compile(":\\d+:");
+			while ((line = is.readLine()) != null) {
+				log.append(line);
+				Matcher matcher = pattern.matcher(line);
+				if (matcher.find()) {
+					errLine = Integer.valueOf(
+							line.substring(matcher.start() + 1, matcher.end() - 1))
+							.intValue();
+					if (line.matches("(?i).*unrecognized escape sequence")) {
+						log.append(Messages.getString("Util.use.double.backslash"));
+					}
+					break;
+				}
+			}
+			is.close();
+			p.waitFor();
+			if (errLine != -1) {
+				throw new ExecException(Messages.getString("Util.exec.failed")
+						+ ": " + cmd, errLine);
+			}
+			if (p.exitValue() != 0) {
+				throw new ExecException(Messages.getString("Util.exec.failed")
+						+ "(" + p.exitValue() + "): " + cmd);
+			}
+		} catch (IOException e) {
+			close(is);
+			throw new ExecException(e);
+		} catch (InterruptedException e) {
+			close(is);
+			throw new ExecException(e);
+		}
+	}
+
+	public static void close(final InputStream o) {
+		if (o != null) {
+			try {
+				o.close();
+			} catch (IOException e) {
+				System.err.println(e); // XXX log
+			}
+		}
+	}
+
+	public static void close(final OutputStream o) {
+		if (o != null) {
+			try {
+				o.close();
+			} catch (IOException e) {
+				System.err.println(e); // XXX log
+			}
+		}
+	}
+
+	public static void close(final Reader o) {
+		if (o != null) {
+			try {
+				o.close();
+			} catch (IOException e) {
+				System.err.println(e); // XXX log
+			}
+		}
+	}
+
+	public static void close(final Writer o) {
+		if (o != null) {
+			try {
+				o.close();
+			} catch (IOException e) {
+				System.err.println(e); // XXX log
+			}
+		}
+	}
+
+	public static boolean delete(File f) {
+		return (f != null) ? f.delete() : false;
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/ant/AntClassPath.java b/installer/lib/launch4j/src/net/sf/launch4j/ant/AntClassPath.java
new file mode 100644
index 0000000000000000000000000000000000000000..a67bab91f61e4d6250f204b5e393faec47455c52
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/ant/AntClassPath.java
@@ -0,0 +1,61 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Jul 19, 2006
+ */
+package net.sf.launch4j.ant;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import net.sf.launch4j.config.ClassPath;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class AntClassPath extends ClassPath {
+	private final List wrappedPaths = new ArrayList();
+
+	public void setCp(String cp){
+		wrappedPaths.add(cp);
+	}
+	
+	public void addCp(StringWrapper cp) {
+		wrappedPaths.add(cp);
+	}
+
+	public void unwrap() {
+		setPaths(StringWrapper.unwrap(wrappedPaths));
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/ant/AntConfig.java b/installer/lib/launch4j/src/net/sf/launch4j/ant/AntConfig.java
index 6f637fe9a9fe4fe3f804af2d0382f0127a81f746..4482436a90c7cc2cb74af850eb0602291071e679 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/ant/AntConfig.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/ant/AntConfig.java
@@ -1,57 +1,129 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on May 24, 2005
- */
-package net.sf.launch4j.ant;
-
-import org.apache.tools.ant.BuildException;
-
-import net.sf.launch4j.config.Config;
-import net.sf.launch4j.config.Jre;
-import net.sf.launch4j.config.Splash;
-import net.sf.launch4j.config.VersionInfo;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class AntConfig extends Config {
-
-	public void addJre(Jre jre) {
-		checkNull(getJre(), "jre");
-		setJre(jre);
-	}
-
-	public void addSplash(Splash splash) {
-		checkNull(getSplash(), "splash");
-		setSplash(splash);
-	}
-
-	public void addVersionInfo(VersionInfo versionInfo) {
-		checkNull(getVersionInfo(), "versionInfo");
-		setVersionInfo(versionInfo);
-	}
-
-	private void checkNull(Object o, String name) {
-		if (o != null) {
-			throw new BuildException("Duplicate element: " + name);
-		}
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 24, 2005
+ */
+package net.sf.launch4j.ant;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tools.ant.BuildException;
+
+import net.sf.launch4j.config.Config;
+import net.sf.launch4j.config.Msg;
+import net.sf.launch4j.config.SingleInstance;
+import net.sf.launch4j.config.Splash;
+import net.sf.launch4j.config.VersionInfo;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class AntConfig extends Config {
+	private final List wrappedHeaderObjects = new ArrayList();
+	private final List wrappedLibs = new ArrayList();
+	private final List wrappedVariables = new ArrayList();
+
+	public void setJarPath(String path) {
+		setJar(new File(path));
+	}
+
+	public void addObj(StringWrapper obj) {
+		wrappedHeaderObjects.add(obj);
+	}
+
+	public void addLib(StringWrapper lib) {
+		wrappedLibs.add(lib);
+	}
+	
+	public void addVar(StringWrapper var) {
+		wrappedVariables.add(var);
+	}
+
+	// __________________________________________________________________________________
+
+	public void addSingleInstance(SingleInstance singleInstance) {
+		checkNull(getSingleInstance(), "singleInstance");
+		setSingleInstance(singleInstance);
+	}
+
+	public void addClassPath(AntClassPath classPath) {
+		checkNull(getClassPath(), "classPath");
+		setClassPath(classPath);
+	}
+
+	public void addJre(AntJre jre) {
+		checkNull(getJre(), "jre");
+		setJre(jre);
+	}
+
+	public void addSplash(Splash splash) {
+		checkNull(getSplash(), "splash");
+		setSplash(splash);
+	}
+
+	public void addVersionInfo(VersionInfo versionInfo) {
+		checkNull(getVersionInfo(), "versionInfo");
+		setVersionInfo(versionInfo);
+	}
+	
+	public void addMessages(Msg messages) {
+		checkNull(getMessages(), "messages");
+		setMessages(messages);
+	}
+
+	// __________________________________________________________________________________
+
+	public void unwrap() {
+		setHeaderObjects(StringWrapper.unwrap(wrappedHeaderObjects));
+		setLibs(StringWrapper.unwrap(wrappedLibs));
+		setVariables(StringWrapper.unwrap(wrappedVariables));
+		if (getClassPath() != null) {
+			((AntClassPath) getClassPath()).unwrap();
+		}
+		if (getJre() != null) {
+			((AntJre) getJre()).unwrap();
+		}
+	}
+
+	private void checkNull(Object o, String name) {
+		if (o != null) {
+			throw new BuildException(
+					Messages.getString("AntConfig.duplicate.element")
+					+ ": "
+					+ name);
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/ant/AntJre.java b/installer/lib/launch4j/src/net/sf/launch4j/ant/AntJre.java
new file mode 100644
index 0000000000000000000000000000000000000000..b83e3ee02bebe4250a5493da713c88cd986611ff
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/ant/AntJre.java
@@ -0,0 +1,69 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Jul 18, 2006
+ */
+package net.sf.launch4j.ant;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import net.sf.launch4j.config.Jre;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class AntJre extends Jre {
+	private final List wrappedOptions = new ArrayList();
+
+	public void addOpt(StringWrapper opt) {
+		wrappedOptions.add(opt);
+	}
+
+	public void unwrap() {
+		setOptions(StringWrapper.unwrap(wrappedOptions));
+	}
+
+	/**
+	 * For backwards compatibility.
+	 */
+	public void setDontUsePrivateJres(boolean dontUse) {
+		if (dontUse) {
+			setJdkPreference(JDK_PREFERENCE_JRE_ONLY);
+		}
+		else {
+			setJdkPreference(JDK_PREFERENCE_PREFER_JRE);
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/ant/Launch4jTask.java b/installer/lib/launch4j/src/net/sf/launch4j/ant/Launch4jTask.java
index bb7161f64273123a6544027f93c9a52dcfc00e05..a28287698f830e8648763b1c96235ef5b9e16edf 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/ant/Launch4jTask.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/ant/Launch4jTask.java
@@ -1,122 +1,162 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on May 24, 2005
- */
-package net.sf.launch4j.ant;
-
-import java.io.File;
-
-import net.sf.launch4j.Builder;
-import net.sf.launch4j.BuilderException;
-import net.sf.launch4j.Log;
-import net.sf.launch4j.config.Config;
-import net.sf.launch4j.config.ConfigPersister;
-import net.sf.launch4j.config.ConfigPersisterException;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Task;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class Launch4jTask extends Task {
-	private File _configFile;
-	private AntConfig _config;
-
-	// Override configFile settings
-	private File jar;
-	private File outfile;
-	private String fileVersion;
-	private String txtFileVersion;
-	private String productVersion;
-	private String txtProductVersion;
-
-	public void execute() throws BuildException {
-		try {
-			if (_configFile != null && _config != null) {
-				throw new BuildException("Specify configFile or config");
-			} else if (_configFile != null) {
-				ConfigPersister.getInstance().load(_configFile);
-				Config c = ConfigPersister.getInstance().getConfig();
-				if (jar != null) {
-					c.setJar(jar);
-				}
-				if (outfile != null) {
-					c.setOutfile(outfile);
-				}
-				if (fileVersion != null) {
-					c.getVersionInfo().setFileVersion(fileVersion);
-				}
-				if (txtFileVersion != null) {
-					c.getVersionInfo().setTxtFileVersion(txtFileVersion);
-				}
-				if (productVersion != null) {
-					c.getVersionInfo().setProductVersion(productVersion);
-				}
-				if (txtProductVersion != null) {
-					c.getVersionInfo().setTxtProductVersion(txtProductVersion);
-				}
-			} else if (_config != null) {
-				ConfigPersister.getInstance().setAntConfig(_config,	getProject().getBaseDir());
-			} else {
-				throw new BuildException("Specify configFile or config");
-			}
-			final Builder b = new Builder(Log.getAntLog());
-			b.build();
-		} catch (ConfigPersisterException e) {
-			throw new BuildException(e);
-		} catch (BuilderException e) {
-			throw new BuildException(e);
-		}
-	}
-
-	public void setConfigFile(File configFile) {
-		_configFile = configFile;
-	}
-
-	public void addConfig(AntConfig config) {
-		_config = config;
-	}
-
-	public void setFileVersion(String fileVersion) {
-		this.fileVersion = fileVersion;
-	}
-
-	public void setJar(File jar) {
-		this.jar = jar;
-	}
-
-	public void setOutfile(File outfile) {
-		this.outfile = outfile;
-	}
-
-	public void setProductVersion(String productVersion) {
-		this.productVersion = productVersion;
-	}
-
-	public void setTxtFileVersion(String txtFileVersion) {
-		this.txtFileVersion = txtFileVersion;
-	}
-
-	public void setTxtProductVersion(String txtProductVersion) {
-		this.txtProductVersion = txtProductVersion;
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 24, 2005
+ */
+package net.sf.launch4j.ant;
+
+import java.io.File;
+
+import net.sf.launch4j.Builder;
+import net.sf.launch4j.BuilderException;
+import net.sf.launch4j.Log;
+import net.sf.launch4j.config.Config;
+import net.sf.launch4j.config.ConfigPersister;
+import net.sf.launch4j.config.ConfigPersisterException;
+
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.Task;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class Launch4jTask extends Task {
+	private File _configFile;
+	private AntConfig _config;
+
+	// System properties
+	private File tmpdir;		// launch4j.tmpdir
+	private File bindir;		// launch4j.bindir
+
+	// Override configFile settings
+	private File jar;
+	private File outfile;
+	private String fileVersion;
+	private String txtFileVersion;
+	private String productVersion;
+	private String txtProductVersion;
+
+	public void execute() throws BuildException {
+		try {
+			if (tmpdir != null) {
+				System.setProperty("launch4j.tmpdir", tmpdir.getPath());
+			}
+			if (bindir != null) {
+				System.setProperty("launch4j.bindir", bindir.getPath());
+			}
+			if (_configFile != null && _config != null) {
+				throw new BuildException(
+						Messages.getString("Launch4jTask.specify.config"));
+			} else if (_configFile != null) {
+				ConfigPersister.getInstance().load(_configFile);
+				Config c = ConfigPersister.getInstance().getConfig();
+				if (jar != null) {
+					c.setJar(jar);
+				}
+				if (outfile != null) {
+					c.setOutfile(outfile);
+				}
+				if (fileVersion != null) {
+					c.getVersionInfo().setFileVersion(fileVersion);
+				}
+				if (txtFileVersion != null) {
+					c.getVersionInfo().setTxtFileVersion(txtFileVersion);
+				}
+				if (productVersion != null) {
+					c.getVersionInfo().setProductVersion(productVersion);
+				}
+				if (txtProductVersion != null) {
+					c.getVersionInfo().setTxtProductVersion(txtProductVersion);
+				}
+			} else if (_config != null) {
+				_config.unwrap();
+				ConfigPersister.getInstance().setAntConfig(_config,
+						getProject().getBaseDir());
+			} else {
+				throw new BuildException(
+						Messages.getString("Launch4jTask.specify.config"));
+			}
+			final Builder b = new Builder(Log.getAntLog());
+			b.build();
+		} catch (ConfigPersisterException e) {
+			throw new BuildException(e);
+		} catch (BuilderException e) {
+			throw new BuildException(e);
+		}
+	}
+
+	public void setConfigFile(File configFile) {
+		_configFile = configFile;
+	}
+
+	public void addConfig(AntConfig config) {
+		_config = config;
+	}
+
+	public void setBindir(File bindir) {
+		this.bindir = bindir;
+	}
+
+	public void setTmpdir(File tmpdir) {
+		this.tmpdir = tmpdir;
+	}
+
+	public void setFileVersion(String fileVersion) {
+		this.fileVersion = fileVersion;
+	}
+
+	public void setJar(File jar) {
+		this.jar = jar;
+	}
+
+	public void setJarPath(String path) {
+		this.jar = new File(path);
+	}
+
+	public void setOutfile(File outfile) {
+		this.outfile = outfile;
+	}
+
+	public void setProductVersion(String productVersion) {
+		this.productVersion = productVersion;
+	}
+
+	public void setTxtFileVersion(String txtFileVersion) {
+		this.txtFileVersion = txtFileVersion;
+	}
+
+	public void setTxtProductVersion(String txtProductVersion) {
+		this.txtProductVersion = txtProductVersion;
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/ant/Messages.java b/installer/lib/launch4j/src/net/sf/launch4j/ant/Messages.java
new file mode 100644
index 0000000000000000000000000000000000000000..0f823f7af7c59d4cef893ddd6b0a3ccc942eb5c8
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/ant/Messages.java
@@ -0,0 +1,55 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+package net.sf.launch4j.ant;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+	private static final String BUNDLE_NAME = "net.sf.launch4j.ant.messages";
+
+	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+			.getBundle(BUNDLE_NAME);
+
+	private Messages() {
+	}
+
+	public static String getString(String key) {
+		try {
+			return RESOURCE_BUNDLE.getString(key);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/ant/StringWrapper.java b/installer/lib/launch4j/src/net/sf/launch4j/ant/StringWrapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..6d38af1a5952a8ca1f3b47acf25783dbf576460a
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/ant/StringWrapper.java
@@ -0,0 +1,67 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Jul 18, 2006
+ */
+package net.sf.launch4j.ant;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class StringWrapper {
+	private String text;
+
+	public static List unwrap(List wrappers) {
+		if (wrappers.isEmpty()) {
+			return null;
+		}
+		List strings = new ArrayList(wrappers.size());
+		for (Iterator iter = wrappers.iterator(); iter.hasNext();) {
+			strings.add(iter.next().toString());
+		}
+		return strings;
+	}
+
+	public void addText(String text) {
+		this.text = text;
+	}
+
+	public String toString() {
+		return text;
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/ant/messages.properties b/installer/lib/launch4j/src/net/sf/launch4j/ant/messages.properties
new file mode 100644
index 0000000000000000000000000000000000000000..9666633c2b5f68c377b2c8b34a167b2f13599e61
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/ant/messages.properties
@@ -0,0 +1,35 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+Launch4jTask.specify.config=Specify configFile or config
+AntConfig.duplicate.element=Duplicate element
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/ant/messages_es.properties b/installer/lib/launch4j/src/net/sf/launch4j/ant/messages_es.properties
new file mode 100644
index 0000000000000000000000000000000000000000..9211e8e034ac92445a98fb817c730caf73a7b24b
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/ant/messages_es.properties
@@ -0,0 +1,35 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal, Patricio Martínez Ros
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+Launch4jTask.specify.config=Specify configFile or config
+AntConfig.duplicate.element=Duplicate element
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/Binding.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/Binding.java
index 72ec619233d737849a8df32b8de92cdc6844f947..49c9b45ffc72fe15c5712d504305c913846abb29 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/binding/Binding.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/Binding.java
@@ -1,48 +1,62 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 30, 2005
- */
-package net.sf.launch4j.binding;
-
-import java.awt.Color;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public interface Binding {
-	/** Used to mark components with invalid data. */
-	public final static Color INVALID_COLOR = Color.PINK;
-
-	/** Java Bean property bound to a component */
-	public String getProperty();
-	/** Clear component, set it to the default value. */
-	public void clear();
-	/** Java Bean property -> Component */
-	public void put(IValidatable bean);
-	/** Component -> Java Bean property */
-	public void get(IValidatable bean);
-	/** Mark component as valid */
-	public void markValid();
-	/** Mark component as invalid */
-	public void markInvalid();
-	/** Enable or disable the component */
-	public void setEnabled(boolean enabled);
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 30, 2005
+ */
+package net.sf.launch4j.binding;
+
+import java.awt.Color;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public interface Binding {
+	/** Used to mark components with invalid data. */
+	public final static Color INVALID_COLOR = Color.PINK;
+
+	/** Java Bean property bound to a component */
+	public String getProperty();
+	/** Clear component, set it to the default value */ 
+	public void clear(IValidatable bean);
+	/** Java Bean property -> Component */
+	public void put(IValidatable bean);
+	/** Component -> Java Bean property */
+	public void get(IValidatable bean);
+	/** Mark component as valid */
+	public void markValid();
+	/** Mark component as invalid */
+	public void markInvalid();
+	/** Enable or disable the component */
+	public void setEnabled(boolean enabled);
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/BindingException.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/BindingException.java
index 2a3b5b8292186a49104e546e7ee0cc84fd32e179..15dc10cc0022e7e9c8d186b2c2d95842ba5085c5 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/binding/BindingException.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/BindingException.java
@@ -1,38 +1,52 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 30, 2005
- */
-package net.sf.launch4j.binding;
-
-/**
- * Signals a runtime error, a missing property in a Java Bean for example.
- * 
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class BindingException extends RuntimeException {
-	public BindingException(Throwable t) {
-		super(t);
-	}
-	
-	public BindingException(String msg) {
-		super(msg);
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 30, 2005
+ */
+package net.sf.launch4j.binding;
+
+/**
+ * Signals a runtime error, a missing property in a Java Bean for example.
+ * 
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class BindingException extends RuntimeException {
+	public BindingException(Throwable t) {
+		super(t);
+	}
+	
+	public BindingException(String msg) {
+		super(msg);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/Bindings.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/Bindings.java
index 48fd22bf15db62610e843a8745e5a27dd86ed81a..73f507e4999173d858d499d050472912fb346836 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/binding/Bindings.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/Bindings.java
@@ -1,247 +1,317 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 30, 2005
- */
-package net.sf.launch4j.binding;
-
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.swing.JComponent;
-import javax.swing.JRadioButton;
-import javax.swing.JToggleButton;
-import javax.swing.text.JTextComponent;
-
-import org.apache.commons.beanutils.PropertyUtils;
-
-/**
- * Creates and handles bindings.
- * 
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class Bindings implements PropertyChangeListener {
-	private final Map _bindings = new HashMap();
-	private final Map _optComponents = new HashMap();
-	private boolean _modified = false;
-
-	/**
-	 * Used to track component modifications.
-	 */
-	public void propertyChange(PropertyChangeEvent evt) {
-		if ("AccessibleValue".equals(evt.getPropertyName())
-				|| "AccessibleText".equals(evt.getPropertyName())) {
-			_modified = true;
-		}
-	}
-
-	/** 
-	 * Any of the components modified?
-	 */
-	public boolean isModified() {
-		return _modified;
-	}
-
-	public Binding getBinding(String property) {
-		return (Binding) _bindings.get(property);
-	}
-
-	private void registerPropertyChangeListener(JComponent c) {
-		c.getAccessibleContext().addPropertyChangeListener(this);
-	}
-
-	private void registerPropertyChangeListener(JComponent[] cs) {
-		for (int i = 0; i < cs.length; i++) {
-			cs[i].getAccessibleContext().addPropertyChangeListener(this);
-		}
-	}
-
-	private boolean isPropertyNull(IValidatable bean, Binding b) {
-		try {
-			for (Iterator iter = _optComponents.keySet().iterator(); iter.hasNext();) {
-				String property = (String) iter.next();
-				if (b.getProperty().startsWith(property)) {
-					return PropertyUtils.getProperty(bean, property) == null;
-				}
-			}
-			return false;
-		} catch (Exception e) {
-			throw new BindingException(e);
-		}
-	}
-
-	/**
-	 * Enables or disables all components bound to properties that begin with given prefix.
-	 */
-	public void setComponentsEnabled(String prefix, boolean enabled) {
-		for (Iterator iter = _bindings.values().iterator(); iter.hasNext();) {
-			Binding b = (Binding) iter.next();
-			if (b.getProperty().startsWith(prefix)) {
-				b.setEnabled(enabled);
-			}
-		}
-	}
-
-	/**
-	 * Clear all components, set them to their default values.
-	 * Clears the _modified flag.
-	 */
-	public void clear() {
-		for (Iterator iter = _optComponents.values().iterator(); iter.hasNext();) {
-			((Binding) iter.next()).clear();
-		}
-		for (Iterator iter = _bindings.values().iterator(); iter.hasNext();) {
-			((Binding) iter.next()).clear();
-		}
-		_modified = false;
-	}
-
-	/**
-	 * Copies data from the Java Bean to the UI components.
-	 * Clears the _modified flag.
-	 */
-	public void put(IValidatable bean) {
-		for (Iterator iter = _optComponents.values().iterator(); iter.hasNext();) {
-			((Binding) iter.next()).put(bean);
-		}
-		for (Iterator iter = _bindings.values().iterator(); iter.hasNext();) {
-			Binding b = (Binding) iter.next();
-			if (isPropertyNull(bean, b)) {
-				b.clear();
-			} else {
-				b.put(bean);
-			}
-		}
-		_modified = false;
-	}
-
-	/**
-	 * Copies data from UI components to the Java Bean and checks it's class invariants.
-	 * Clears the _modified flag.
-	 * @throws InvariantViolationException
-	 * @throws BindingException
-	 */
-	public void get(IValidatable bean) {
-		try {
-			for (Iterator iter = _optComponents.values().iterator(); iter.hasNext();) {
-				((Binding) iter.next()).get(bean);
-			}
-			for (Iterator iter = _bindings.values().iterator(); iter.hasNext();) {
-				Binding b = (Binding) iter.next();
-				if (!isPropertyNull(bean, b)) {
-					b.get(bean);
-				}
-			}
-			bean.checkInvariants();
-			for (Iterator iter = _optComponents.keySet().iterator(); iter.hasNext();) {
-				String property = (String) iter.next();
-				IValidatable component = (IValidatable) PropertyUtils.getProperty(bean, property);
-				if (component != null) {
-					component.checkInvariants();
-				}
-			}
-			_modified = false;	// XXX
-		} catch (InvariantViolationException e) {
-			e.setBinding(getBinding(e.getProperty()));
-			throw e;
-		} catch (Exception e) {
-			throw new BindingException(e);
-		} 
-	}
-
-	private Bindings add(Binding b) {
-		if (_bindings.containsKey(b.getProperty())) {
-			throw new BindingException("Duplicate binding");
-		}
-		_bindings.put(b.getProperty(), b);
-		return this;
-	}
-
-	/**
-	 * Add an optional (nullable) Java Bean component of type clazz.
-	 */
-	public Bindings addOptComponent(String property, Class clazz, JToggleButton c,
-			boolean enabledByDefault) {
-		Binding b = new OptComponentBinding(this, property, clazz, c, enabledByDefault);
-		if (_optComponents.containsKey(property)) {
-			throw new BindingException("Duplicate binding");
-		}
-		_optComponents.put(property, b);
-		return this;
-	}
-
-	/**
-	 * Add an optional (nullable) Java Bean component of type clazz.
-	 */
-	public Bindings addOptComponent(String property, Class clazz, JToggleButton c) {
-		return addOptComponent(property, clazz, c, false);
-	}
-
-	/**
-	 * Handles JEditorPane, JTextArea, JTextField
-	 */
-	public Bindings add(String property, JTextComponent c, String defaultValue) {
-		registerPropertyChangeListener(c);
-		return add(new JTextComponentBinding(property, c, defaultValue));
-	}
-
-	/**
-	 * Handles JEditorPane, JTextArea, JTextField
-	 */
-	public Bindings add(String property, JTextComponent c) {
-		registerPropertyChangeListener(c);
-		return add(new JTextComponentBinding(property, c, ""));
-	}
-
-	/**
-	 * Handles JToggleButton, JCheckBox 
-	 */
-	public Bindings add(String property, JToggleButton c, boolean defaultValue) {
-		registerPropertyChangeListener(c);
-		return add(new JToggleButtonBinding(property, c, defaultValue));
-	}
-
-	/**
-	 * Handles JToggleButton, JCheckBox
-	 */
-	public Bindings add(String property, JToggleButton c) {
-		registerPropertyChangeListener(c);
-		return add(new JToggleButtonBinding(property, c, false));
-	}
-
-	/**
-	 * Handles JRadioButton
-	 */
-	public Bindings add(String property, JRadioButton[] cs, int defaultValue) {
-		registerPropertyChangeListener(cs);
-		return add(new JRadioButtonBinding(property, cs, defaultValue));
-	}
-	
-	/**
-	 * Handles JRadioButton
-	 */
-	public Bindings add(String property, JRadioButton[] cs) {
-		registerPropertyChangeListener(cs);
-		return add(new JRadioButtonBinding(property, cs, 0));
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 30, 2005
+ */
+package net.sf.launch4j.binding;
+
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+import javax.swing.JComboBox;
+import javax.swing.JComponent;
+import javax.swing.JList;
+import javax.swing.JRadioButton;
+import javax.swing.JTextArea;
+import javax.swing.JToggleButton;
+import javax.swing.text.JTextComponent;
+
+import org.apache.commons.beanutils.PropertyUtils;
+
+/**
+ * Creates and handles bindings.
+ * 
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class Bindings implements PropertyChangeListener {
+	private final Map _bindings = new HashMap();
+	private final Map _optComponents = new HashMap();
+	private boolean _modified = false;
+
+	/**
+	 * Used to track component modifications.
+	 */
+	public void propertyChange(PropertyChangeEvent evt) {
+		String prop = evt.getPropertyName();
+		if ("AccessibleValue".equals(prop)
+				|| "AccessibleText".equals(prop)
+				|| "AccessibleVisibleData".equals(prop)) {
+			_modified = true;
+		}
+	}
+
+	/** 
+	 * Any of the components modified?
+	 */
+	public boolean isModified() {
+		return _modified;
+	}
+
+	public Binding getBinding(String property) {
+		return (Binding) _bindings.get(property);
+	}
+
+	private void registerPropertyChangeListener(JComponent c) {
+		c.getAccessibleContext().addPropertyChangeListener(this);
+	}
+
+	private void registerPropertyChangeListener(JComponent[] cs) {
+		for (int i = 0; i < cs.length; i++) {
+			cs[i].getAccessibleContext().addPropertyChangeListener(this);
+		}
+	}
+
+	private boolean isPropertyNull(IValidatable bean, Binding b) {
+		try {
+			for (Iterator iter = _optComponents.keySet().iterator(); iter.hasNext();) {
+				String property = (String) iter.next();
+				if (b.getProperty().startsWith(property)) {
+					return PropertyUtils.getProperty(bean, property) == null;
+				}
+			}
+			return false;
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	/**
+	 * Enables or disables all components bound to properties that begin with given prefix.
+	 */
+	public void setComponentsEnabled(String prefix, boolean enabled) {
+		for (Iterator iter = _bindings.values().iterator(); iter.hasNext();) {
+			Binding b = (Binding) iter.next();
+			if (b.getProperty().startsWith(prefix)) {
+				b.setEnabled(enabled);
+			}
+		}
+	}
+
+	/**
+	 * Clear all components, set them to their default values.
+	 * Clears the _modified flag.
+	 */
+	public void clear(IValidatable bean) {
+		for (Iterator iter = _optComponents.values().iterator(); iter.hasNext();) {
+			((Binding) iter.next()).clear(bean);
+		}
+		for (Iterator iter = _bindings.values().iterator(); iter.hasNext();) {
+			((Binding) iter.next()).clear(bean);
+		}
+		_modified = false;
+	}
+
+	/**
+	 * Copies data from the Java Bean to the UI components.
+	 * Clears the _modified flag.
+	 */
+	public void put(IValidatable bean) {
+		for (Iterator iter = _optComponents.values().iterator(); iter.hasNext();) {
+			((Binding) iter.next()).put(bean);
+		}
+		for (Iterator iter = _bindings.values().iterator(); iter.hasNext();) {
+			Binding b = (Binding) iter.next();
+			if (isPropertyNull(bean, b)) {
+				b.clear(null);
+			} else {
+				b.put(bean);
+			}
+		}
+		_modified = false;
+	}
+
+	/**
+	 * Copies data from UI components to the Java Bean and checks it's class invariants.
+	 * Clears the _modified flag.
+	 * @throws InvariantViolationException
+	 * @throws BindingException
+	 */
+	public void get(IValidatable bean) {
+		try {
+			for (Iterator iter = _optComponents.values().iterator(); iter.hasNext();) {
+				((Binding) iter.next()).get(bean);
+			}
+			for (Iterator iter = _bindings.values().iterator(); iter.hasNext();) {
+				Binding b = (Binding) iter.next();
+				if (!isPropertyNull(bean, b)) {
+					b.get(bean);
+				}
+			}
+			bean.checkInvariants();
+			for (Iterator iter = _optComponents.keySet().iterator(); iter.hasNext();) {
+				String property = (String) iter.next();
+				IValidatable component = (IValidatable) PropertyUtils.getProperty(bean,
+						property);
+				if (component != null) {
+					component.checkInvariants();
+				}
+			}
+			_modified = false;	// XXX
+		} catch (InvariantViolationException e) {
+			e.setBinding(getBinding(e.getProperty()));
+			throw e;
+		} catch (Exception e) {
+			throw new BindingException(e);
+		} 
+	}
+
+	private Bindings add(Binding b) {
+		if (_bindings.containsKey(b.getProperty())) {
+			throw new BindingException(Messages.getString("Bindings.duplicate.binding"));
+		}
+		_bindings.put(b.getProperty(), b);
+		return this;
+	}
+
+	/**
+	 * Add an optional (nullable) Java Bean component of type clazz.
+	 */
+	public Bindings addOptComponent(String property, Class clazz, JToggleButton c,
+			boolean enabledByDefault) {
+		Binding b = new OptComponentBinding(this, property, clazz, c, enabledByDefault);
+		if (_optComponents.containsKey(property)) {
+			throw new BindingException(Messages.getString("Bindings.duplicate.binding"));
+		}
+		_optComponents.put(property, b);
+		return this;
+	}
+
+	/**
+	 * Add an optional (nullable) Java Bean component of type clazz.
+	 */
+	public Bindings addOptComponent(String property, Class clazz, JToggleButton c) {
+		return addOptComponent(property, clazz, c, false);
+	}
+
+	/**
+	 * Handles JEditorPane, JTextArea, JTextField
+	 */
+	public Bindings add(String property, JTextComponent c, String defaultValue) {
+		registerPropertyChangeListener(c);
+		return add(new JTextComponentBinding(property, c, defaultValue));
+	}
+
+	/**
+	 * Handles JEditorPane, JTextArea, JTextField
+	 */
+	public Bindings add(String property, JTextComponent c) {
+		registerPropertyChangeListener(c);
+		return add(new JTextComponentBinding(property, c, ""));
+	}
+
+	/**
+	 * Handles JToggleButton, JCheckBox 
+	 */
+	public Bindings add(String property, JToggleButton c, boolean defaultValue) {
+		registerPropertyChangeListener(c);
+		return add(new JToggleButtonBinding(property, c, defaultValue));
+	}
+
+	/**
+	 * Handles JToggleButton, JCheckBox
+	 */
+	public Bindings add(String property, JToggleButton c) {
+		registerPropertyChangeListener(c);
+		return add(new JToggleButtonBinding(property, c, false));
+	}
+
+	/**
+	 * Handles JRadioButton
+	 */
+	public Bindings add(String property, JRadioButton[] cs, int defaultValue) {
+		registerPropertyChangeListener(cs);
+		return add(new JRadioButtonBinding(property, cs, defaultValue));
+	}
+	
+	/**
+	 * Handles JRadioButton
+	 */
+	public Bindings add(String property, JRadioButton[] cs) {
+		registerPropertyChangeListener(cs);
+		return add(new JRadioButtonBinding(property, cs, 0));
+	}
+
+	/**
+	 * Handles JTextArea
+	 */
+	public Bindings add(String property, JTextArea textArea, String defaultValue) {
+		registerPropertyChangeListener(textArea);
+		return add(new JTextComponentBinding(property, textArea, defaultValue));
+	}
+
+	/**
+	 * Handles JTextArea lists
+	 */
+	public Bindings add(String property, JTextArea textArea) {
+		registerPropertyChangeListener(textArea);
+		return add(new JTextAreaBinding(property, textArea));
+	}
+
+	/**
+	 * Handles Optional JTextArea lists
+	 */
+	public Bindings add(String property, String stateProperty, 
+			JToggleButton button, JTextArea textArea) {
+		registerPropertyChangeListener(button);
+		registerPropertyChangeListener(textArea);
+		return add(new OptJTextAreaBinding(property, stateProperty, button, textArea));
+	}
+
+	/**
+	 * Handles JList
+	 */
+	public Bindings add(String property, JList list) {
+		registerPropertyChangeListener(list);
+		return add(new JListBinding(property, list));
+	}
+
+	/**
+	 * Handles JComboBox
+	 */
+	public Bindings add(String property, JComboBox combo, int defaultValue) {
+		registerPropertyChangeListener(combo);
+		return add(new JComboBoxBinding(property, combo, defaultValue));
+	}
+
+	/**
+	 * Handles JComboBox
+	 */
+	public Bindings add(String property, JComboBox combo) {
+		registerPropertyChangeListener(combo);
+		return add(new JComboBoxBinding(property, combo, 0));
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/IValidatable.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/IValidatable.java
index 91b6fa514c27dd0bde9b6a55eec07ff1d994ba8c..fe0dd4862c11f4459d995c34fbdf315f0092b832 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/binding/IValidatable.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/IValidatable.java
@@ -1,30 +1,44 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on 2004-01-30
- */
-package net.sf.launch4j.binding;
-
-/**
- * @author Copyright (C) 2004 Grzegorz Kowal
- */
-public interface IValidatable {
-	public void checkInvariants();
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on 2004-01-30
+ */
+package net.sf.launch4j.binding;
+
+/**
+ * @author Copyright (C) 2004 Grzegorz Kowal
+ */
+public interface IValidatable {
+	public void checkInvariants();
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/InvariantViolationException.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/InvariantViolationException.java
index 99eb569a8dc799f3aefabad82557d4076f93040f..2f7f88b1d88c07c00e3e586aa40c3c79c176fd88 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/binding/InvariantViolationException.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/InvariantViolationException.java
@@ -1,53 +1,67 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Jun 23, 2003
- */
-package net.sf.launch4j.binding;
-
-/**
- * @author Copyright (C) 2003 Grzegorz Kowal
- */
-public class InvariantViolationException extends RuntimeException {
-	private final String _property;
-	private Binding _binding;
-
-	public InvariantViolationException(String msg) {
-		super(msg);
-		_property = null;
-	}
-
-	public InvariantViolationException(String property, String msg) {
-		super(msg);
-		_property = property;
-	}
-	
-	public String getProperty() {
-		return _property;
-	}
-	
-	public Binding getBinding() {
-		return _binding;
-	}
-
-	public void setBinding(Binding binding) {
-		_binding = binding;
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Jun 23, 2003
+ */
+package net.sf.launch4j.binding;
+
+/**
+ * @author Copyright (C) 2003 Grzegorz Kowal
+ */
+public class InvariantViolationException extends RuntimeException {
+	private final String _property;
+	private Binding _binding;
+
+	public InvariantViolationException(String msg) {
+		super(msg);
+		_property = null;
+	}
+
+	public InvariantViolationException(String property, String msg) {
+		super(msg);
+		_property = property;
+	}
+	
+	public String getProperty() {
+		return _property;
+	}
+	
+	public Binding getBinding() {
+		return _binding;
+	}
+
+	public void setBinding(Binding binding) {
+		_binding = binding;
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/JComboBoxBinding.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/JComboBoxBinding.java
new file mode 100644
index 0000000000000000000000000000000000000000..81d6ff28e98281940ee6b29a96adb97462991bab
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/JComboBoxBinding.java
@@ -0,0 +1,119 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2007 Ian Roberts
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 10, 2005
+ */
+package net.sf.launch4j.binding;
+
+import java.awt.Color;
+
+import javax.swing.JComboBox;
+
+import org.apache.commons.beanutils.PropertyUtils;
+
+/**
+ * @author Copyright (C) 2007 Ian Roberts
+ */
+public class JComboBoxBinding implements Binding {
+	private final String _property;
+	private final JComboBox _combo;
+	private final int _defaultValue;
+	private final Color _validColor;
+
+	public JComboBoxBinding(String property, JComboBox combo, int defaultValue) {
+		if (property == null || combo == null) {
+			throw new NullPointerException();
+		}
+		if (property.equals("")
+				|| combo.getItemCount() == 0
+				|| defaultValue < 0 || defaultValue >= combo.getItemCount()) {
+			throw new IllegalArgumentException();
+		}
+		_property = property;
+		_combo = combo;
+		_defaultValue = defaultValue;
+		_validColor = combo.getBackground();
+	}
+
+	public String getProperty() {
+		return _property;
+	}
+
+	public void clear(IValidatable bean) {
+		select(_defaultValue);
+	}
+
+	public void put(IValidatable bean) {
+		try {
+			Integer i = (Integer) PropertyUtils.getProperty(bean, _property);
+			if (i == null) {
+				throw new BindingException(
+						Messages.getString("JComboBoxBinding.property.null"));
+			}
+			select(i.intValue());
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void get(IValidatable bean) {
+		try {
+			PropertyUtils.setProperty(bean, _property, new Integer(_combo.getSelectedIndex()));
+			return;
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	private void select(int index) {
+		if (index < 0 || index >= _combo.getItemCount()) {
+			throw new BindingException(
+					Messages.getString("JComboBoxBinding.index.out.of.bounds"));
+		}
+		_combo.setSelectedIndex(index);
+	}
+
+	public void markValid() {
+		_combo.setBackground(_validColor);
+		_combo.requestFocusInWindow();
+	}
+
+	public void markInvalid() {
+		_combo.setBackground(Binding.INVALID_COLOR);
+	}
+	
+	public void setEnabled(boolean enabled) {
+		_combo.setEnabled(enabled);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/JListBinding.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/JListBinding.java
new file mode 100644
index 0000000000000000000000000000000000000000..31dec58c180641fef50f0adde28f61b97298d62b
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/JListBinding.java
@@ -0,0 +1,118 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 1, 2006
+ */
+package net.sf.launch4j.binding;
+
+import java.awt.Color;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.swing.DefaultListModel;
+import javax.swing.JList;
+
+import org.apache.commons.beanutils.PropertyUtils;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class JListBinding implements Binding {
+	private final String _property;
+	private final JList _list;
+	private final Color _validColor;
+
+	public JListBinding(String property, JList list) {
+		if (property == null || list == null) {
+			throw new NullPointerException();
+		}
+		if (property.equals("")) {
+			throw new IllegalArgumentException();
+		}
+		_property = property;
+		_list = list;
+		_validColor = _list.getBackground();
+	}
+
+	public String getProperty() {
+		return _property;
+	}
+
+	public void clear(IValidatable bean) {
+		_list.setModel(new DefaultListModel());
+	}
+
+	public void put(IValidatable bean) {
+		try {
+			DefaultListModel model = new DefaultListModel();
+			List list = (List) PropertyUtils.getProperty(bean, _property);
+			if (list != null) {
+				for (Iterator iter = list.iterator(); iter.hasNext();) {
+					model.addElement(iter.next());
+				}
+			}
+			_list.setModel(model);
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void get(IValidatable bean) {
+		try {
+			DefaultListModel model = (DefaultListModel) _list.getModel();
+			final int size = model.getSize();
+			List list = new ArrayList(size);
+			for (int i = 0; i < size; i++) {
+				list.add(model.get(i));
+			}
+			PropertyUtils.setProperty(bean, _property, list);
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+	
+	public void markValid() {
+		_list.setBackground(_validColor);
+		_list.requestFocusInWindow();
+	}
+
+	public void markInvalid() {
+		_list.setBackground(Binding.INVALID_COLOR);
+	}
+	
+	public void setEnabled(boolean enabled) {
+		_list.setEnabled(enabled);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/JRadioButtonBinding.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/JRadioButtonBinding.java
index 1298b529cef5cc85142892e929c6ad96f3d10248..9d922bedf7e94480fd200873e6a5f7537af5380e 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/binding/JRadioButtonBinding.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/JRadioButtonBinding.java
@@ -1,127 +1,146 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on May 10, 2005
- */
-package net.sf.launch4j.binding;
-
-import java.awt.Color;
-
-import javax.swing.JRadioButton;
-
-import org.apache.commons.beanutils.PropertyUtils;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class JRadioButtonBinding implements Binding {
-	private final String _property;
-	private final JRadioButton[] _buttons;
-	private final int _defaultValue;
-	private final Color _validColor;
-
-	public JRadioButtonBinding(String property, JRadioButton[] buttons, int defaultValue) {
-		if (property == null || buttons == null) {
-			throw new NullPointerException();
-		}
-		for (int i = 0; i < buttons.length; i++) {
-			if (buttons[i] == null) {
-				throw new NullPointerException();
-			}
-		}
-		if (property.equals("")
-				|| buttons.length == 0
-				|| defaultValue < 0 || defaultValue >= buttons.length) {
-			throw new IllegalArgumentException();
-		}
-		_property = property;
-		_buttons = buttons;
-		_defaultValue = defaultValue;
-		_validColor = buttons[0].getBackground();
-	}
-
-	public String getProperty() {
-		return _property;
-	}
-
-	public void clear() {
-		select(_defaultValue);
-	}
-
-	public void put(IValidatable bean) {
-		try {
-			Integer i = (Integer) PropertyUtils.getProperty(bean, _property);
-			if (i == null) {
-				throw new BindingException("Property is null");
-			}
-			select(i.intValue());
-		} catch (Exception e) {
-			throw new BindingException(e);
-		}
-	}
-
-	public void get(IValidatable bean) {
-		try {
-			for (int i = 0; i < _buttons.length; i++) {
-				if (_buttons[i].isSelected()) {
-					PropertyUtils.setProperty(bean, _property, new Integer(i));
-					return;
-				}
-			}
-			throw new BindingException("Nothing selected");
-		} catch (Exception e) {
-			throw new BindingException(e);
-		}
-	}
-
-	private void select(int index) {
-		if (index < 0 || index >= _buttons.length) {
-			throw new BindingException("Button index out of bounds");
-		}
-		_buttons[index].setSelected(true);
-	}
-
-	public void markValid() {
-		for (int i = 0; i < _buttons.length; i++) {
-			if (_buttons[i].isSelected()) {
-				_buttons[i].setBackground(_validColor);
-				_buttons[i].requestFocusInWindow();
-				return;
-			}
-		}
-		throw new BindingException("Nothing selected");
-	}
-
-	public void markInvalid() {
-		for (int i = 0; i < _buttons.length; i++) {
-			if (_buttons[i].isSelected()) {
-				_buttons[i].setBackground(Binding.INVALID_COLOR);
-				return;
-			}
-		}
-		throw new BindingException("Nothing selected");
-	}
-	
-	public void setEnabled(boolean enabled) {
-		for (int i = 0; i < _buttons.length; i++) {
-			_buttons[i].setEnabled(enabled);
-		}
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 10, 2005
+ */
+package net.sf.launch4j.binding;
+
+import java.awt.Color;
+
+import javax.swing.JRadioButton;
+
+import org.apache.commons.beanutils.PropertyUtils;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class JRadioButtonBinding implements Binding {
+	private final String _property;
+	private final JRadioButton[] _buttons;
+	private final int _defaultValue;
+	private final Color _validColor;
+
+	public JRadioButtonBinding(String property, JRadioButton[] buttons, int defaultValue) {
+		if (property == null || buttons == null) {
+			throw new NullPointerException();
+		}
+		for (int i = 0; i < buttons.length; i++) {
+			if (buttons[i] == null) {
+				throw new NullPointerException();
+			}
+		}
+		if (property.equals("")
+				|| buttons.length == 0
+				|| defaultValue < 0 || defaultValue >= buttons.length) {
+			throw new IllegalArgumentException();
+		}
+		_property = property;
+		_buttons = buttons;
+		_defaultValue = defaultValue;
+		_validColor = buttons[0].getBackground();
+	}
+
+	public String getProperty() {
+		return _property;
+	}
+
+	public void clear(IValidatable bean) {
+		select(_defaultValue);
+	}
+
+	public void put(IValidatable bean) {
+		try {
+			Integer i = (Integer) PropertyUtils.getProperty(bean, _property);
+			if (i == null) {
+				throw new BindingException(
+						Messages.getString("JRadioButtonBinding.property.null"));
+			}
+			select(i.intValue());
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void get(IValidatable bean) {
+		try {
+			for (int i = 0; i < _buttons.length; i++) {
+				if (_buttons[i].isSelected()) {
+					PropertyUtils.setProperty(bean, _property, new Integer(i));
+					return;
+				}
+			}
+			throw new BindingException(
+					Messages.getString("JRadioButtonBinding.nothing.selected"));
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	private void select(int index) {
+		if (index < 0 || index >= _buttons.length) {
+			throw new BindingException(
+					Messages.getString("JRadioButtonBinding.index.out.of.bounds"));
+		}
+		_buttons[index].setSelected(true);
+	}
+
+	public void markValid() {
+		for (int i = 0; i < _buttons.length; i++) {
+			if (_buttons[i].isSelected()) {
+				_buttons[i].setBackground(_validColor);
+				_buttons[i].requestFocusInWindow();
+				return;
+			}
+		}
+		throw new BindingException(
+				Messages.getString("JRadioButtonBinding.nothing.selected"));
+	}
+
+	public void markInvalid() {
+		for (int i = 0; i < _buttons.length; i++) {
+			if (_buttons[i].isSelected()) {
+				_buttons[i].setBackground(Binding.INVALID_COLOR);
+				return;
+			}
+		}
+		throw new BindingException(
+				Messages.getString("JRadioButtonBinding.nothing.selected"));
+	}
+	
+	public void setEnabled(boolean enabled) {
+		for (int i = 0; i < _buttons.length; i++) {
+			_buttons[i].setEnabled(enabled);
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/JTextAreaBinding.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/JTextAreaBinding.java
new file mode 100644
index 0000000000000000000000000000000000000000..d4e8a2c659077362287cb5c067d47d91ab1d5b99
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/JTextAreaBinding.java
@@ -0,0 +1,123 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Jun 14, 2006
+ */
+package net.sf.launch4j.binding;
+
+import java.awt.Color;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.swing.JTextArea;
+
+import org.apache.commons.beanutils.PropertyUtils;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class JTextAreaBinding implements Binding {
+	private final String _property;
+	private final JTextArea _textArea;
+	private final Color _validColor;
+
+	public JTextAreaBinding(String property, JTextArea textArea) {
+		if (property == null || textArea == null) {
+			throw new NullPointerException();
+		}
+		if (property.equals("")) {
+			throw new IllegalArgumentException();
+		}
+		_property = property;
+		_textArea = textArea;
+		_validColor = _textArea.getBackground();
+	}
+
+	public String getProperty() {
+		return _property;
+	}
+
+	public void clear(IValidatable bean) {
+		put(bean);
+	}
+
+	public void put(IValidatable bean) {
+		try {
+			List list = (List) PropertyUtils.getProperty(bean, _property);
+			StringBuffer sb = new StringBuffer();
+			if (list != null) {
+				for (int i = 0; i < list.size(); i++) {
+					sb.append(list.get(i));
+					if (i < list.size() - 1) {
+						sb.append("\n");
+					}
+				}
+			}
+			_textArea.setText(sb.toString());
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void get(IValidatable bean) {
+		try {
+			String text = _textArea.getText();
+			if (!text.equals("")) {
+				String[] items = text.split("\n");
+				List list = new ArrayList();
+				for (int i = 0; i < items.length; i++) {
+					list.add(items[i]);
+				}
+				PropertyUtils.setProperty(bean, _property, list);
+			} else {
+				PropertyUtils.setProperty(bean, _property, null);
+			}
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void markValid() {
+		_textArea.setBackground(_validColor);
+		_textArea.requestFocusInWindow();
+	}
+
+	public void markInvalid() {
+		_textArea.setBackground(Binding.INVALID_COLOR);
+	}
+	
+	public void setEnabled(boolean enabled) {
+		_textArea.setEnabled(enabled);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/JTextComponentBinding.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/JTextComponentBinding.java
index 26ec4d665f4c382a2adeab180ac4c744d261a635..6b0dd1b0b288d7b9ccb6e9d43c3383dc43bdc7ec 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/binding/JTextComponentBinding.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/JTextComponentBinding.java
@@ -1,92 +1,108 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 30, 2005
- */
-package net.sf.launch4j.binding;
-
-import java.awt.Color;
-
-import javax.swing.text.JTextComponent;
-
-import org.apache.commons.beanutils.BeanUtils;
-
-/**
- * Handles JEditorPane, JTextArea, JTextField
- * 
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class JTextComponentBinding implements Binding {
-	private final String _property;
-	private final JTextComponent _textComponent;
-	private final String _defaultValue;
-	private final Color _validColor;
-
-	public JTextComponentBinding(String property, JTextComponent textComponent, String defaultValue) {
-		if (property == null || textComponent == null || defaultValue == null) {
-			throw new NullPointerException();
-		}
-		if (property.equals("")) {
-			throw new IllegalArgumentException();
-		}
-		_property = property;
-		_textComponent = textComponent;
-		_defaultValue = defaultValue;
-		_validColor = _textComponent.getBackground();
-	}
-
-	public String getProperty() {
-		return _property;
-	}
-
-	public void clear() {
-		_textComponent.setText(_defaultValue);
-	}
-
-	public void put(IValidatable bean) {
-		try {
-			String s = BeanUtils.getProperty(bean, _property);
-			_textComponent.setText(s != null && !s.equals("0") ? s : "");	// XXX displays zeros as blank
-		} catch (Exception e) {
-			throw new BindingException(e);
-		}
-	}
-
-	public void get(IValidatable bean) {
-		try {
-			BeanUtils.setProperty(bean, _property, _textComponent.getText());
-		} catch (Exception e) {
-			throw new BindingException(e);
-		}
-	}
-	
-	public void markValid() {
-		_textComponent.setBackground(_validColor);
-		_textComponent.requestFocusInWindow();
-	}
-
-	public void markInvalid() {
-		_textComponent.setBackground(Binding.INVALID_COLOR);
-	}
-	
-	public void setEnabled(boolean enabled) {
-		_textComponent.setEnabled(enabled);
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 30, 2005
+ */
+package net.sf.launch4j.binding;
+
+import java.awt.Color;
+
+import javax.swing.text.JTextComponent;
+
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * Handles JEditorPane, JTextArea, JTextField
+ * 
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class JTextComponentBinding implements Binding {
+	private final String _property;
+	private final JTextComponent _textComponent;
+	private final String _defaultValue;
+	private final Color _validColor;
+
+	public JTextComponentBinding(String property, JTextComponent textComponent,
+			String defaultValue) {
+		if (property == null || textComponent == null || defaultValue == null) {
+			throw new NullPointerException();
+		}
+		if (property.equals("")) {
+			throw new IllegalArgumentException();
+		}
+		_property = property;
+		_textComponent = textComponent;
+		_defaultValue = defaultValue;
+		_validColor = _textComponent.getBackground();
+	}
+
+	public String getProperty() {
+		return _property;
+	}
+
+	public void clear(IValidatable bean) {
+		_textComponent.setText(_defaultValue);
+	}
+
+	public void put(IValidatable bean) {
+		try {
+			String s = BeanUtils.getProperty(bean, _property);
+			// XXX displays zeros as blank
+			_textComponent.setText(s != null && !s.equals("0") ? s : "");
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void get(IValidatable bean) {
+		try {
+			BeanUtils.setProperty(bean, _property, _textComponent.getText());
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+	
+	public void markValid() {
+		_textComponent.setBackground(_validColor);
+		_textComponent.requestFocusInWindow();
+	}
+
+	public void markInvalid() {
+		_textComponent.setBackground(Binding.INVALID_COLOR);
+	}
+	
+	public void setEnabled(boolean enabled) {
+		_textComponent.setEnabled(enabled);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/JToggleButtonBinding.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/JToggleButtonBinding.java
index 43fe11913a8dac9239de0667e928594da6c06c44..a7055cccc5ee1fe2be2475ed2c2ee35c503a63c6 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/binding/JToggleButtonBinding.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/JToggleButtonBinding.java
@@ -1,94 +1,108 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 30, 2005
- */
-package net.sf.launch4j.binding;
-
-import java.awt.Color;
-
-import javax.swing.JToggleButton;
-
-import org.apache.commons.beanutils.PropertyUtils;
-
-/**
- * Handles JToggleButton, JCheckBox 
- *
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class JToggleButtonBinding implements Binding {
-	private final String _property;
-	private final JToggleButton _button;
-	private final boolean _defaultValue;
-	private final Color _validColor;
-
-	public JToggleButtonBinding(String property, JToggleButton button, boolean defaultValue) {
-		if (property == null || button == null) {
-			throw new NullPointerException();
-		}
-		if (property.equals("")) {
-			throw new IllegalArgumentException();
-		}
-		_property = property;
-		_button = button;
-		_defaultValue = defaultValue;
-		_validColor = _button.getBackground();
-	}
-
-	public String getProperty() {
-		return _property;
-	}
-
-	public void clear() {
-		_button.setSelected(_defaultValue);
-	}
-
-	public void put(IValidatable bean) {
-		try {
-			// String s = BeanUtils.getProperty(o, _property);
-			// _checkBox.setSelected("true".equals(s));
-			Boolean b = (Boolean) PropertyUtils.getProperty(bean, _property);
-			_button.setSelected(b != null && b.booleanValue());
-		} catch (Exception e) {
-			throw new BindingException(e);
-		}
-	}
-
-	public void get(IValidatable bean) {
-		try {
-			PropertyUtils.setProperty(bean, _property, Boolean.valueOf(_button.isSelected()));
-		} catch (Exception e) {
-			throw new BindingException(e);
-		}
-	}
-	
-	public void markValid() {
-		_button.setBackground(_validColor);
-		_button.requestFocusInWindow();
-	}
-
-	public void markInvalid() {
-		_button.setBackground(Binding.INVALID_COLOR);
-	}
-	
-	public void setEnabled(boolean enabled) {
-		_button.setEnabled(enabled);
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 30, 2005
+ */
+package net.sf.launch4j.binding;
+
+import java.awt.Color;
+
+import javax.swing.JToggleButton;
+
+import org.apache.commons.beanutils.PropertyUtils;
+
+/**
+ * Handles JToggleButton, JCheckBox 
+ *
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class JToggleButtonBinding implements Binding {
+	private final String _property;
+	private final JToggleButton _button;
+	private final boolean _defaultValue;
+	private final Color _validColor;
+
+	public JToggleButtonBinding(String property, JToggleButton button,
+			boolean defaultValue) {
+		if (property == null || button == null) {
+			throw new NullPointerException();
+		}
+		if (property.equals("")) {
+			throw new IllegalArgumentException();
+		}
+		_property = property;
+		_button = button;
+		_defaultValue = defaultValue;
+		_validColor = _button.getBackground();
+	}
+
+	public String getProperty() {
+		return _property;
+	}
+
+	public void clear(IValidatable bean) {
+		_button.setSelected(_defaultValue);
+	}
+
+	public void put(IValidatable bean) {
+		try {
+			Boolean b = (Boolean) PropertyUtils.getProperty(bean, _property);
+			_button.setSelected(b != null && b.booleanValue());
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void get(IValidatable bean) {
+		try {
+			PropertyUtils.setProperty(bean, _property,
+					Boolean.valueOf(_button.isSelected()));
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+	
+	public void markValid() {
+		_button.setBackground(_validColor);
+		_button.requestFocusInWindow();
+	}
+
+	public void markInvalid() {
+		_button.setBackground(Binding.INVALID_COLOR);
+	}
+	
+	public void setEnabled(boolean enabled) {
+		_button.setEnabled(enabled);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/Messages.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/Messages.java
new file mode 100644
index 0000000000000000000000000000000000000000..91ddff2b13c99ea16cccef25f02b1ba5be54d509
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/Messages.java
@@ -0,0 +1,78 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+package net.sf.launch4j.binding;
+
+import java.text.MessageFormat;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+	private static final String BUNDLE_NAME = "net.sf.launch4j.binding.messages";
+
+	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+			.getBundle(BUNDLE_NAME);
+	private static final MessageFormat FORMATTER = new MessageFormat("");
+
+	private Messages() {
+	}
+
+	public static String getString(String key) {
+		try {
+			return RESOURCE_BUNDLE.getString(key);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+	
+	public static String getString(String key, String arg0) {
+		return getString(key, new Object[] {arg0});
+	}
+
+	public static String getString(String key, String arg0, String arg1) {
+		return getString(key, new Object[] {arg0, arg1});
+	}
+
+	public static String getString(String key, String arg0, String arg1, String arg2) {
+		return getString(key, new Object[] {arg0, arg1, arg2});
+	}
+
+	public static String getString(String key, Object[] args) {
+		try {
+			FORMATTER.applyPattern(RESOURCE_BUNDLE.getString(key));
+			return FORMATTER.format(args);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/OptComponentBinding.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/OptComponentBinding.java
index 9d514ad5a9d44bc1c0defd55b513c7c87d2732f1..b573da6282a211d807a05f337c03b8e457a82a50 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/binding/OptComponentBinding.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/OptComponentBinding.java
@@ -1,104 +1,119 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on May 11, 2005
- */
-package net.sf.launch4j.binding;
-
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.util.Arrays;
-
-import javax.swing.JToggleButton;
-
-import org.apache.commons.beanutils.PropertyUtils;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class OptComponentBinding implements Binding, ActionListener {
-	private final Bindings _bindings;
-	private final String _property;
-	private final Class _clazz;
-	private final JToggleButton _button;
-	private final boolean _enabledByDefault;
-
-	public OptComponentBinding(Bindings bindings, String property, Class clazz,
-								JToggleButton button, boolean enabledByDefault) {
-		if (property == null || clazz == null || button == null) {
-			throw new NullPointerException();
-		}
-		if (property.equals("")) {
-			throw new IllegalArgumentException();
-		}
-		if (!Arrays.asList(clazz.getInterfaces()).contains(IValidatable.class)) {
-			throw new IllegalArgumentException("Optional component must implement "
-					+ IValidatable.class);
-		}
-		_bindings = bindings;
-		_property = property;
-		_clazz = clazz;
-		_button = button;
-		_button.addActionListener(this);
-		_enabledByDefault = enabledByDefault;
-	}
-
-	public String getProperty() {
-		return _property;
-	}
-
-	public void clear() {
-		_button.setSelected(_enabledByDefault);
-		updateComponents();
-	}
-
-	public void put(IValidatable bean) {
-		try {
-			Object component = PropertyUtils.getProperty(bean, _property);
-			_button.setSelected(component != null);
-			updateComponents();
-		} catch (Exception e) {
-			throw new BindingException(e);
-		}
-	}
-
-	public void get(IValidatable bean) {
-		try {
-			PropertyUtils.setProperty(bean, _property, _button.isSelected()
-					? _clazz.newInstance() : null);
-		} catch (Exception e) {
-			throw new BindingException(e);
-		}
-	}
-
-	public void markValid() {}
-
-	public void markInvalid() {}
-
-	public void setEnabled(boolean enabled) {} // XXX implement?
-
-	public void actionPerformed(ActionEvent e) {
-		updateComponents();
-	}
-	
-	private void updateComponents() {
-		_bindings.setComponentsEnabled(_property, _button.isSelected());
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 11, 2005
+ */
+package net.sf.launch4j.binding;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.Arrays;
+
+import javax.swing.JToggleButton;
+
+import org.apache.commons.beanutils.PropertyUtils;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class OptComponentBinding implements Binding, ActionListener {
+	private final Bindings _bindings;
+	private final String _property;
+	private final Class _clazz;
+	private final JToggleButton _button;
+	private final boolean _enabledByDefault;
+
+	public OptComponentBinding(Bindings bindings, String property, Class clazz,
+								JToggleButton button, boolean enabledByDefault) {
+		if (property == null || clazz == null || button == null) {
+			throw new NullPointerException();
+		}
+		if (property.equals("")) {
+			throw new IllegalArgumentException();
+		}
+		if (!Arrays.asList(clazz.getInterfaces()).contains(IValidatable.class)) {
+			throw new IllegalArgumentException(
+					Messages.getString("OptComponentBinding.must.implement")
+					+ IValidatable.class);
+		}
+		_bindings = bindings;
+		_property = property;
+		_clazz = clazz;
+		_button = button;
+		_button.addActionListener(this);
+		_enabledByDefault = enabledByDefault;
+	}
+
+	public String getProperty() {
+		return _property;
+	}
+
+	public void clear(IValidatable bean) {
+		_button.setSelected(_enabledByDefault);
+		updateComponents();
+	}
+
+	public void put(IValidatable bean) {
+		try {
+			Object component = PropertyUtils.getProperty(bean, _property);
+			_button.setSelected(component != null);
+			updateComponents();
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void get(IValidatable bean) {
+		try {
+			PropertyUtils.setProperty(bean, _property, _button.isSelected()
+					? _clazz.newInstance() : null);
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void markValid() {}
+
+	public void markInvalid() {}
+
+	public void setEnabled(boolean enabled) {} // XXX implement?
+
+	public void actionPerformed(ActionEvent e) {
+		updateComponents();
+	}
+	
+	private void updateComponents() {
+		_bindings.setComponentsEnabled(_property, _button.isSelected());
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/OptJTextAreaBinding.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/OptJTextAreaBinding.java
new file mode 100644
index 0000000000000000000000000000000000000000..3cea776d7b1994ef03342d441ed8755240f5ba78
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/OptJTextAreaBinding.java
@@ -0,0 +1,141 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Sep 3, 2005
+ */
+package net.sf.launch4j.binding;
+
+import java.awt.Color;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.swing.JTextArea;
+import javax.swing.JToggleButton;
+
+import org.apache.commons.beanutils.BeanUtils;
+import org.apache.commons.beanutils.PropertyUtils;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class OptJTextAreaBinding implements Binding, ActionListener {
+	private final String _property;
+	private final String _stateProperty;
+	private final JToggleButton _button;
+	private final JTextArea _textArea;
+	private final Color _validColor;
+
+	public OptJTextAreaBinding(String property, String stateProperty, 
+			JToggleButton button, JTextArea textArea) {
+		if (property == null || button == null || textArea == null) {
+			throw new NullPointerException();
+		}
+		if (property.equals("")) {
+			throw new IllegalArgumentException();
+		}
+		_property = property;
+		_stateProperty = stateProperty;
+		_button = button;
+		_textArea = textArea;
+		_validColor = _textArea.getBackground();
+		button.addActionListener(this);
+	}
+
+	public String getProperty() {
+		return _property;
+	}
+
+	public void clear(IValidatable bean) {
+		put(bean);
+	}
+
+	public void put(IValidatable bean) {
+		try {
+			boolean selected = "true".equals(BeanUtils.getProperty(bean,
+					_stateProperty));
+			_button.setSelected(selected);
+			_textArea.setEnabled(selected);
+			List list = (List) PropertyUtils.getProperty(bean, _property);
+			StringBuffer sb = new StringBuffer();
+			if (list != null) {
+				for (int i = 0; i < list.size(); i++) {
+					sb.append(list.get(i));
+					if (i < list.size() - 1) {
+						sb.append("\n");
+					}
+				}
+			}
+			_textArea.setText(sb.toString());
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void get(IValidatable bean) {
+		try {
+			String text = _textArea.getText();
+			if (_button.isSelected() && !text.equals("")) {
+				String[] items = text.split("\n");
+				List list = new ArrayList();
+				for (int i = 0; i < items.length; i++) {
+					list.add(items[i]);
+				}
+				PropertyUtils.setProperty(bean, _property, list);
+			} else {
+				PropertyUtils.setProperty(bean, _property, null);
+			}
+		} catch (Exception e) {
+			throw new BindingException(e);
+		}
+	}
+
+	public void markValid() {
+		_textArea.setBackground(_validColor);
+		_textArea.requestFocusInWindow();
+	}
+
+	public void markInvalid() {
+		_textArea.setBackground(Binding.INVALID_COLOR);
+	}
+	
+	public void setEnabled(boolean enabled) {
+		_textArea.setEnabled(enabled);
+	}
+
+	public void actionPerformed(ActionEvent e) {
+		_textArea.setEnabled(_button.isSelected());
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/Validator.java b/installer/lib/launch4j/src/net/sf/launch4j/binding/Validator.java
index b7f543adf79dc5d417a95ef81b18134d05d7926e..88ea67c3396069bd8fb9bec94d410f9735acac0d 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/binding/Validator.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/Validator.java
@@ -1,190 +1,259 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on 2004-01-30
- */
-package net.sf.launch4j.binding;
-
-import java.io.File;
-import java.util.Collection;
-import java.util.HashSet;
-
-import net.sf.launch4j.Util;
-import net.sf.launch4j.config.ConfigPersister;
-
-/**
- * @author Copyright (C) 2004 Grzegorz Kowal
- */
-public class Validator {
-	public static final String ALPHANUMERIC_PATTERN = "[\\w]*?";
-	public static final String ALPHA_PATTERN = "[\\w&&\\D]*?";
-	public static final String NUMERIC_PATTERN = "[\\d]*?";
-	public static final String PATH_PATTERN = "[\\w|[ .,:\\-/\\\\]]*?";
-
-	private static final String EMPTY_FIELD = "Enter: ";
-	private static final String FIELD_ERROR = "Invalid data: ";
-	private static final String RANGE_ERROR = " must be in range [";
-	private static final String MINIMUM = " must be at least ";
-	private static final String DUPLICATE = " already exists.";
-
-	private Validator() {}
-
-	public static boolean isEmpty(String s) {
-		return s == null || s.equals("");
-	}
-
-	public static void checkNotNull(Object o, String property, String name) {
-		if (o == null) {
-			signalViolation(property, EMPTY_FIELD + name);
-		}
-	}
-
-	public static void checkString(String s, int maxLength, String property, String name) {
-		if (s == null || s.length() == 0) {
-			signalViolation(property, EMPTY_FIELD + name);
-		}
-		if (s.length() > maxLength) {
-			signalLengthViolation(property, name, maxLength);
-		}
-	}
-
-	public static void checkString(String s, int maxLength, String pattern,
-			String property, String name) {
-		checkString(s, maxLength, property, name);
-		if (!s.matches(pattern)) {
-			signalViolation(property, FIELD_ERROR + name);
-		}
-	}
-
-	public static void checkOptString(String s, int maxLength, String property, String name) {
-		if (s == null || s.length() == 0) {
-			return;
-		}
-		if (s.length() > maxLength) {
-			signalLengthViolation(property, name, maxLength);
-		}
-	}
-
-	public static void checkOptString(String s, int maxLength, String pattern,
-			String property, String name) {
-		if (s == null || s.length() == 0) {
-			return;
-		}
-		if (s.length() > maxLength) {
-			signalLengthViolation(property, name, maxLength);
-		}
-		if (!s.matches(pattern)) {
-			signalViolation(property, FIELD_ERROR + name);
-		}
-	}
-
-	public static void checkRange(int value, int min, int max,
-			String property, String name) {
-		if (value < min || value > max) {
-			StringBuffer sb = new StringBuffer(name);
-			sb.append(RANGE_ERROR);
-			sb.append(min);
-			sb.append('-');
-			sb.append(max);
-			sb.append(']');
-			signalViolation(property, sb.toString());			
-		}
-	}
-
-	public static void checkRange(char value, char min, char max,
-			String property, String name) {
-		if (value < min || value > max) {
-			StringBuffer sb = new StringBuffer(name);
-			sb.append(RANGE_ERROR);
-			sb.append(min);
-			sb.append('-');
-			sb.append(max);
-			sb.append(']');
-			signalViolation(property, sb.toString());			
-		}
-	}
-
-	public static void checkMin(int value, int min, String property, String name) {
-		if (value < min) {
-			StringBuffer sb = new StringBuffer(name);
-			sb.append(MINIMUM);
-			sb.append(min);
-			signalViolation(property, sb.toString());
-		}
-	}
-
-	public static void checkTrue(boolean condition, String property, String msg) {
-		if (!condition) {
-			signalViolation(property, msg);
-		}
-	}
-	
-	public static void checkFalse(boolean condition, String property, String msg) {
-		if (condition) {
-			signalViolation(property, msg);
-		}
-	}
-	
-	public static void checkElementsNotNullUnique(Collection c, String property, String msg) {
-		if (c.contains(null)
-				|| new HashSet(c).size() != c.size()) {
-			signalViolation(property, msg + DUPLICATE);
-		}
-	}
-
-	public static void checkElementsUnique(Collection c, String property, String msg) {
-		if (new HashSet(c).size() != c.size()) {
-			signalViolation(property, msg + DUPLICATE);
-		}
-	}
-
-	public static void checkFile(File f, String property, String fileDescription) {
-		File cfgPath = ConfigPersister.getInstance().getConfigPath();
-		if (f == null || (!f.exists() && !Util.getAbsoluteFile(cfgPath, f).exists())) {
-			signalViolation(property, fileDescription + " doesn't exist.");
-		}
-	}
-
-	public static void checkOptFile(File f, String property, String fileDescription) {
-		if (f != null && f.getPath().length() > 0) {
-			checkFile(f, property, fileDescription);
-		}
-	}
-
-	public static void checkRelativeWinPath(String path, String property, String msg) {
-		if (path.startsWith("/")
-				|| path.startsWith("\\")
-				|| path.indexOf(':') != -1) {
-			signalViolation(property, msg);
-		}
-	}
-
-	public static void signalLengthViolation(String property, String name, int maxLength)	{
-		final StringBuffer sb = new StringBuffer(name);
-		sb.append(" exceeds the maximum length of ");
-		sb.append(maxLength);
-		sb.append(" characters.");
-		throw new InvariantViolationException(property, sb.toString());
-	}
-
-	public static void signalViolation(String property, String msg)	{
-		throw new InvariantViolationException(property, msg);
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on 2004-01-30
+ */
+package net.sf.launch4j.binding;
+
+import java.io.File;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+
+import net.sf.launch4j.Util;
+import net.sf.launch4j.config.ConfigPersister;
+
+/**
+ * @author Copyright (C) 2004 Grzegorz Kowal
+ */
+public class Validator {
+	public static final String ALPHANUMERIC_PATTERN = "[\\w]*?";
+	public static final String ALPHA_PATTERN = "[\\w&&\\D]*?";
+	public static final String NUMERIC_PATTERN = "[\\d]*?";
+	public static final String PATH_PATTERN = "[\\w|[ .,:\\-/\\\\]]*?";
+
+	public static final int MAX_STR = 128;
+	public static final int MAX_PATH = 260;
+	public static final int MAX_BIG_STR = 8192;	// or 16384;
+	public static final int MAX_ARGS = 32767 - 2048;
+
+	private Validator() {}
+
+	public static boolean isEmpty(String s) {
+		return s == null || s.equals("");
+	}
+
+	public static void checkNotNull(Object o, String property, String name) {
+		if (o == null) {
+			signalViolation(property,
+					Messages.getString("Validator.empty.field", name));
+		}
+	}
+
+	public static void checkString(String s, int maxLength, String property,
+			String name) {
+		if (s == null || s.length() == 0) {
+			signalViolation(property,
+					Messages.getString("Validator.empty.field", name));
+		}
+		if (s.length() > maxLength) {
+			signalLengthViolation(property, name, maxLength);
+		}
+	}
+
+	public static void checkOptStrings(List strings, int maxLength, int totalMaxLength,
+			String property, String name) {
+		if (strings == null) {
+			return;
+		}
+		int totalLength = 0;
+		for (Iterator iter = strings.iterator(); iter.hasNext();) {
+			String s = (String) iter.next();
+			checkString(s, maxLength, property, name);
+			totalLength += s.length();
+			if (totalLength > totalMaxLength) {
+				signalLengthViolation(property, name, totalMaxLength);
+			}
+		}
+	}
+
+	public static void checkString(String s, int maxLength, String pattern,
+			String property, String name) {
+		checkString(s, maxLength, property, name);
+		if (!s.matches(pattern)) {
+			signalViolation(property,
+					Messages.getString("Validator.invalid.data", name));
+		}
+	}
+
+	public static void checkOptStrings(List strings, int maxLength, int totalMaxLength,
+			String pattern, String property, String name, String msg) {
+		if (strings == null) {
+			return;
+		}
+		int totalLength = 0;
+		for (Iterator iter = strings.iterator(); iter.hasNext();) {
+			String s = (String) iter.next();
+			checkString(s, maxLength, property, name);
+			if (!s.matches(pattern)) {
+				signalViolation(property, msg != null
+						? msg 
+						: Messages.getString("Validator.invalid.data", name));
+			}
+			totalLength += s.length();
+			if (totalLength > totalMaxLength) {
+				signalLengthViolation(property, name, totalMaxLength);
+			}
+		}
+	}
+
+	public static void checkOptString(String s, int maxLength, String property,
+			String name) {
+		if (s == null || s.length() == 0) {
+			return;
+		}
+		if (s.length() > maxLength) {
+			signalLengthViolation(property, name, maxLength);
+		}
+	}
+
+	public static void checkOptString(String s, int maxLength, String pattern,
+			String property, String name) {
+		if (s == null || s.length() == 0) {
+			return;
+		}
+		if (s.length() > maxLength) {
+			signalLengthViolation(property, name, maxLength);
+		}
+		if (!s.matches(pattern)) {
+			signalViolation(property,
+					Messages.getString("Validator.invalid.data", name));
+		}
+	}
+
+	public static void checkRange(int value, int min, int max,
+			String property, String name) {
+		if (value < min || value > max) {
+			signalViolation(property,
+					Messages.getString("Validator.must.be.in.range", name,
+							String.valueOf(min), String.valueOf(max)));
+		}
+	}
+
+	public static void checkRange(char value, char min, char max,
+			String property, String name) {
+		if (value < min || value > max) {
+			signalViolation(property, Messages.getString("Validator.must.be.in.range",
+					name, String.valueOf(min), String.valueOf(max)));
+		}
+	}
+
+	public static void checkMin(int value, int min, String property, String name) {
+		if (value < min) {
+			signalViolation(property,
+					Messages.getString("Validator.must.be.at.least", name,
+							String.valueOf(min)));
+		}
+	}
+
+	public static void checkIn(String s, String[] strings, String property,
+			String name) {
+		if (isEmpty(s)) {
+			signalViolation(property,
+					Messages.getString("Validator.empty.field", name));
+		}
+		List list = Arrays.asList(strings);
+		if (!list.contains(s)) {
+			signalViolation(property,
+					Messages.getString("Validator.invalid.option", name, list.toString())); 
+		}
+	}
+
+	public static void checkTrue(boolean condition, String property, String msg) {
+		if (!condition) {
+			signalViolation(property, msg);
+		}
+	}
+	
+	public static void checkFalse(boolean condition, String property, String msg) {
+		if (condition) {
+			signalViolation(property, msg);
+		}
+	}
+	
+	public static void checkElementsNotNullUnique(Collection c, String property,
+			String msg) {
+		if (c.contains(null)
+				|| new HashSet(c).size() != c.size()) {
+			signalViolation(property,
+					Messages.getString("Validator.already.exists", msg)); 
+		}
+	}
+
+	public static void checkElementsUnique(Collection c, String property, String msg) {
+		if (new HashSet(c).size() != c.size()) {
+			signalViolation(property,
+					Messages.getString("Validator.already.exists", msg));
+		}
+	}
+
+	public static void checkFile(File f, String property, String fileDescription) {
+		File cfgPath = ConfigPersister.getInstance().getConfigPath();
+		if (f == null
+				|| f.getPath().equals("")
+				|| (!f.exists() && !Util.getAbsoluteFile(cfgPath, f).exists())) {
+			signalViolation(property,
+					Messages.getString("Validator.doesnt.exist", fileDescription));
+		}
+	}
+
+	public static void checkOptFile(File f, String property, String fileDescription) {
+		if (f != null && f.getPath().length() > 0) {
+			checkFile(f, property, fileDescription);
+		}
+	}
+
+	public static void checkRelativeWinPath(String path, String property, String msg) {
+		if (path == null
+				|| path.equals("")
+				|| path.startsWith("/")
+				|| path.startsWith("\\")
+				|| path.indexOf(':') != -1) {
+			signalViolation(property, msg);
+		}
+	}
+
+	public static void signalLengthViolation(String property, String name,
+			int maxLength) {
+		signalViolation(property,
+				Messages.getString("Validator.exceeds.max.length", name,
+						String.valueOf(maxLength)));
+	}
+
+	public static void signalViolation(String property, String msg)	{
+		throw new InvariantViolationException(property, msg);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/messages.properties b/installer/lib/launch4j/src/net/sf/launch4j/binding/messages.properties
new file mode 100644
index 0000000000000000000000000000000000000000..adb5a8886b7b4e28465665afdb59fa80cf7de92a
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/messages.properties
@@ -0,0 +1,52 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+OptComponentBinding.must.implement=Optional component must implement 
+
+Validator.empty.field=Enter: {0} 
+Validator.invalid.data=Invalid data: {0} 
+Validator.must.be.in.range={0} must be in range [{1}-{2}]
+Validator.must.be.at.least={0} must be at least 
+Validator.already.exists={0} already exists.
+Validator.doesnt.exist={0} doesn''t exist.
+Validator.exceeds.max.length={0} exceeds the maximum length of {1} characters.
+Validator.invalid.option={0} must be one of [{1}]
+
+Bindings.duplicate.binding=Duplicate binding
+
+JRadioButtonBinding.property.null=Property is null
+JRadioButtonBinding.nothing.selected=Nothing selected
+JRadioButtonBinding.index.out.of.bounds=Button index out of bounds
+
+JComboBoxBinding.property.null=Property is null
+JComboBoxBinding.index.out.of.bounds=Combo box index out of bounds
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/binding/messages_es.properties b/installer/lib/launch4j/src/net/sf/launch4j/binding/messages_es.properties
new file mode 100644
index 0000000000000000000000000000000000000000..e2e50fcb46dad15abb3a04d1a906f8012bd56109
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/binding/messages_es.properties
@@ -0,0 +1,51 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal, Patricio Martínez Ros
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+OptComponentBinding.must.implement=El componente opcional debe ser implementado 
+
+Validator.empty.field=Introduzca: {0} 
+Validator.invalid.data=Dato no válido: {0} 
+Validator.must.be.in.range={0} debe estar en el rango [{1}-{2}]
+Validator.must.be.at.least={0} deb ser al menos 
+Validator.already.exists={0} ya existe.
+Validator.doesnt.exist={0} no existe.
+Validator.exceeds.max.length={0} excede la longitud máxima de {1} caracteres.
+Validator.invalid.option={0} must be one of [{1}]
+
+Bindings.duplicate.binding=Binding duplicado
+
+JRadioButtonBinding.property.null=La propiedad es nula
+JRadioButtonBinding.nothing.selected=Nada seleccionado
+JRadioButtonBinding.index.out.of.bounds=Índice de botón fuera de límite
+JComboBoxBinding.property.null=Property is null
+JComboBoxBinding.index.out.of.bounds=Combo box index out of bounds
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/ClassPath.java b/installer/lib/launch4j/src/net/sf/launch4j/config/ClassPath.java
new file mode 100644
index 0000000000000000000000000000000000000000..da7dbd6c45351e30fce83b8680ef4c30a25c9e54
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/ClassPath.java
@@ -0,0 +1,87 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 1, 2006
+ */
+package net.sf.launch4j.config;
+
+import java.util.List;
+
+import net.sf.launch4j.binding.IValidatable;
+import net.sf.launch4j.binding.Validator;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class ClassPath implements IValidatable {
+	private String mainClass;
+	private List paths;
+
+	public void checkInvariants() {
+		Validator.checkString(mainClass, Validator.MAX_PATH, "mainClass",
+				Messages.getString("ClassPath.mainClass"));
+		Validator.checkOptStrings(paths,
+				Validator.MAX_PATH,
+				Validator.MAX_BIG_STR,
+				"paths",
+				Messages.getString("ClassPath.path"));
+	}
+
+	public String getMainClass() {
+		return mainClass;
+	}
+
+	public void setMainClass(String mainClass) {
+		this.mainClass = mainClass;
+	}
+
+	public List getPaths() {
+		return paths;
+	}
+
+	public void setPaths(List paths) {
+		this.paths = paths;
+	}
+
+	public String getPathsString() {
+		StringBuffer sb = new StringBuffer();
+		for (int i = 0; i < paths.size(); i++) {
+			sb.append(paths.get(i));
+			if (i < paths.size() - 1) {
+				sb.append(';');
+			}
+		}
+		return sb.toString();
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/Config.java b/installer/lib/launch4j/src/net/sf/launch4j/config/Config.java
index 2176d4d79c5d85e21ed910bc4b564d2dc1432e18..27633bfb4cf0ccdf531efd2f6b189fe6112c3b10 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/config/Config.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/Config.java
@@ -1,228 +1,396 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 21, 2005
- */
-package net.sf.launch4j.config;
-
-import java.io.File;
-import java.util.List;
-
-import net.sf.launch4j.binding.IValidatable;
-import net.sf.launch4j.binding.Validator;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class Config implements IValidatable {
-
-	public static final String HEADER = "header";
-	public static final String JAR = "jar";
-	public static final String OUTFILE = "outfile";
-	public static final String ERR_TITLE = "errTitle";
-	public static final String JAR_ARGS = "jarArgs";
-	public static final String CHDIR = "chdir";
-	public static final String CUSTOM_PROC_NAME = "customProcName";
-	public static final String STAY_ALIVE = "stayAlive";
-	public static final String ICON = "icon";
-
-	public static final int GUI_HEADER = 0;
-	public static final int CONSOLE_HEADER = 1;
-	public static final int CUSTOM_HEADER = 2;
-
-	private int headerType;
-	private List headerObjects;
-	private List libs;
-	private File jar;
-	private File outfile;
-
-	// runtime configuration
-	private String errTitle;
-	private String jarArgs;
-	private String chdir;
-	private boolean customProcName = false;
-	private boolean stayAlive = false;
-	private File icon;
-	private Jre jre;
-	private Splash splash;
-	private VersionInfo versionInfo;
-
-	public void checkInvariants() {
-		Validator.checkTrue(outfile != null && outfile.getPath().endsWith(".exe"),
-				"outfile", "Specify output file with .exe extension.");
-		Validator.checkFile(jar, "jar", "Application jar");
-		if (!Validator.isEmpty(chdir)) {
-			Validator.checkRelativeWinPath(chdir,
-					"chdir", "'chdir' must be a path relative to the executable.");
-			Validator.checkFalse(chdir.toLowerCase().equals("true")
-					|| chdir.toLowerCase().equals("false"),
-					"chdir", "'chdir' is now a path instead of a boolean, please check the docs.");
-		}
-		Validator.checkOptFile(icon, "icon", "Icon");
-		Validator.checkOptString(jarArgs, 128, "jarArgs", "Jar arguments");
-		Validator.checkOptString(errTitle, 128, "errTitle", "Error title");
-		Validator.checkRange(headerType, GUI_HEADER, CONSOLE_HEADER,
-				"headerType", "Invalid header type");	// TODO add custom header check
-		Validator.checkTrue(headerType != CONSOLE_HEADER || splash == null,
-				"headerType", "Splash screen is not implemented by console header.");
-		// TODO libs
-		jre.checkInvariants();
-	}
-	
-	public void validate() {
-		checkInvariants();
-		if (splash != null) {
-			splash.checkInvariants();
-		}
-		if (versionInfo != null) {
-			versionInfo.checkInvariants();
-		}
-	}
-
-	/** Change current directory to EXE location. */
-	public String getChdir() {
-		return chdir;
-	}
-
-	public void setChdir(String chdir) {
-		this.chdir = chdir;
-	}
-
-	/** Constant command line arguments passed to application jar. */
-	public String getJarArgs() {
-		return jarArgs;
-	}
-
-	public void setJarArgs(String jarArgs) {
-		this.jarArgs = jarArgs;
-	}
-
-	/** Optional, error message box title. */
-	public String getErrTitle() {
-		return errTitle;
-	}
-
-	public void setErrTitle(String errTitle) {
-		this.errTitle = errTitle;
-	}
-
-	/** launch4j header file. */
-	public int getHeaderType() {
-		return headerType;
-	}
-
-	public void setHeaderType(int headerType) {
-		this.headerType = headerType;
-	}
-	
-	public List getHeaderObjects() {
-//		switch (_headerType) {
-//		case GUI_HEADER:
-//			return
-//		case CONSOLE_HEADER:
-// FIXME	
-//		default:
-			return headerObjects;
-	}
-	
-	public void setHeaderObject(List headerObjects) {
-		this.headerObjects = headerObjects;
-	}
-	
-	public List getLibs() {
-		return libs;
-		// FIXME default libs if null or empty
-	}
-	
-	public void setLibs(List libs) {
-		this.libs = libs;
-	}
-
-	/** ICO file. */
-	public File getIcon() {
-		return icon;
-	}
-
-	public void setIcon(File icon) {
-		this.icon = icon;
-	}
-
-	/** Jar to wrap. */
-	public File getJar() {
-		return jar;
-	}
-
-	public void setJar(File jar) {
-		this.jar = jar;
-	}
-
-	/** JRE configuration */
-	public Jre getJre() {
-		return jre;
-	}
-
-	public void setJre(Jre jre) {
-		this.jre = jre;
-	}
-
-	/** Output EXE file. */
-	public File getOutfile() {
-		return outfile;
-	}
-
-	public void setOutfile(File outfile) {
-		this.outfile = outfile;
-	}
-
-	/** Custom process name as the output EXE file name. */
-	public boolean isCustomProcName() {
-		return customProcName;
-	}
-
-	public void setCustomProcName(boolean customProcName) {
-		this.customProcName = customProcName;
-	}
-
-	/** Splash screen configuration. */
-	public Splash getSplash() {
-		return splash;
-	}
-
-	public void setSplash(Splash splash) {
-		this.splash = splash;
-	}
-
-	/** Stay alive after launching the application. */
-	public boolean isStayAlive() {
-		return stayAlive;
-	}
-
-	public void setStayAlive(boolean stayAlive) {
-		this.stayAlive = stayAlive;
-	}
-	
-	public VersionInfo getVersionInfo() {
-		return versionInfo;
-	}
-
-	public void setVersionInfo(VersionInfo versionInfo) {
-		this.versionInfo = versionInfo;
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 21, 2005
+ */
+package net.sf.launch4j.config;
+
+import java.io.File;
+import java.util.Arrays;
+import java.util.List;
+
+import net.sf.launch4j.binding.IValidatable;
+import net.sf.launch4j.binding.Validator;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class Config implements IValidatable {
+
+	// 1.x config properties_____________________________________________________________
+	public static final String HEADER = "header";
+	public static final String JAR = "jar";
+	public static final String OUTFILE = "outfile";
+	public static final String ERR_TITLE = "errTitle";
+	public static final String JAR_ARGS = "jarArgs";
+	public static final String CHDIR = "chdir";
+	public static final String CUSTOM_PROC_NAME = "customProcName";
+	public static final String STAY_ALIVE = "stayAlive";
+	public static final String ICON = "icon";
+
+	// __________________________________________________________________________________
+	public static final String DOWNLOAD_URL = "http://java.com/download";
+
+	public static final String GUI_HEADER = "gui";
+	public static final String CONSOLE_HEADER = "console";
+
+	private static final String[] HEADER_TYPES = new String[] { GUI_HEADER,
+																	CONSOLE_HEADER };
+
+	private static final String[] PRIORITY_CLASS_NAMES = new String[] { "normal",
+																		"idle",
+																		"high" };
+
+	private static final int[] PRIORITY_CLASSES = new int[] { 0x00000020,
+															0x00000040,
+															0x00000080 };
+
+	private boolean dontWrapJar;
+	private String headerType = GUI_HEADER;
+	private List headerObjects;
+	private List libs;
+	private File jar;
+	private File outfile;
+
+	// Runtime header configuration
+	private String errTitle;
+	private String cmdLine;
+	private String chdir;
+	private String priority;
+	private String downloadUrl;
+	private String supportUrl;
+	private boolean customProcName;
+	private boolean stayAlive;
+	private File manifest;
+	private File icon;
+	private List variables;
+	private SingleInstance singleInstance;
+	private ClassPath classPath;
+	private Jre jre;
+	private Splash splash;
+	private VersionInfo versionInfo;
+	private Msg	messages;
+
+	public void checkInvariants() {
+		Validator.checkTrue(outfile != null && outfile.getPath().endsWith(".exe"),
+				"outfile", Messages.getString("Config.specify.output.exe"));
+		if (dontWrapJar) {
+			if (jar != null && !jar.getPath().equals("")) {
+				Validator.checkRelativeWinPath(jar.getPath(), "jar",
+						Messages.getString("Config.application.jar.path"));
+			} else {
+				Validator.checkTrue(classPath != null, "classPath",
+						Messages.getString("ClassPath.or.jar"));
+			}
+		} else {
+			Validator.checkFile(jar, "jar",
+					Messages.getString("Config.application.jar"));
+		}
+		if (!Validator.isEmpty(chdir)) {
+			Validator.checkRelativeWinPath(chdir, "chdir",
+					Messages.getString("Config.chdir.relative"));
+			Validator.checkFalse(chdir.toLowerCase().equals("true")	
+					|| chdir.toLowerCase().equals("false"),
+					"chdir", Messages.getString("Config.chdir.path"));
+		}
+		Validator.checkOptFile(manifest, "manifest", Messages.getString("Config.manifest"));
+		Validator.checkOptFile(icon, "icon", Messages.getString("Config.icon"));
+		Validator.checkOptString(cmdLine, Validator.MAX_BIG_STR, "jarArgs",
+				Messages.getString("Config.jar.arguments"));
+		Validator.checkOptString(errTitle, Validator.MAX_STR, "errTitle",
+				Messages.getString("Config.error.title"));
+		Validator.checkOptString(downloadUrl, 256,
+				"downloadUrl", Messages.getString("Config.download.url"));
+		Validator.checkOptString(supportUrl, 256,
+				"supportUrl", Messages.getString("Config.support.url"));
+		Validator.checkIn(getHeaderType(), HEADER_TYPES, "headerType",
+				Messages.getString("Config.header.type"));
+		Validator.checkFalse(getHeaderType().equals(CONSOLE_HEADER) && splash != null,
+				"headerType",
+				Messages.getString("Config.splash.not.impl.by.console.hdr"));
+		Validator.checkOptStrings(variables,
+				Validator.MAX_ARGS,
+				Validator.MAX_ARGS,
+				"[^=%\t]+=[^=\t]+",
+				"variables",
+				Messages.getString("Config.variables"),
+				Messages.getString("Config.variables.err"));
+		Validator.checkIn(getPriority(), PRIORITY_CLASS_NAMES, "priority",
+				Messages.getString("Config.priority"));
+		jre.checkInvariants();
+	}
+	
+	public void validate() {
+		checkInvariants();
+		if (classPath != null) {
+			classPath.checkInvariants();
+		}
+		if (splash != null) {
+			splash.checkInvariants();
+		}
+		if (versionInfo != null) {
+			versionInfo.checkInvariants();
+		}
+	}
+
+	/** Change current directory to EXE location. */
+	public String getChdir() {
+		return chdir;
+	}
+
+	public void setChdir(String chdir) {
+		this.chdir = chdir;
+	}
+
+	/** Constant command line arguments passed to the application. */
+	public String getCmdLine() {
+		return cmdLine;
+	}
+
+	public void setCmdLine(String cmdLine) {
+		this.cmdLine = cmdLine;
+	}
+
+	/** Optional, error message box title. */
+	public String getErrTitle() {
+		return errTitle;
+	}
+
+	public void setErrTitle(String errTitle) {
+		this.errTitle = errTitle;
+	}
+
+	/** launch4j header file. */
+	public String getHeaderType() {
+		return headerType.toLowerCase();
+	}
+
+	public void setHeaderType(String headerType) {
+		this.headerType = headerType;
+	}
+
+	/** launch4j header file index - used by GUI. */
+	public int getHeaderTypeIndex() {
+		int x = Arrays.asList(HEADER_TYPES).indexOf(getHeaderType());
+		return x != -1 ? x : 0;
+	}
+
+	public void setHeaderTypeIndex(int headerTypeIndex) {
+		headerType = HEADER_TYPES[headerTypeIndex];
+	}
+
+	public boolean isCustomHeaderObjects() {
+		return headerObjects != null && !headerObjects.isEmpty();
+	}
+
+	public List getHeaderObjects() {
+		return isCustomHeaderObjects() ? headerObjects
+				: getHeaderType().equals(GUI_HEADER)
+						? LdDefaults.GUI_HEADER_OBJECTS
+						: LdDefaults.CONSOLE_HEADER_OBJECTS;
+	}
+
+	public void setHeaderObjects(List headerObjects) {
+		this.headerObjects = headerObjects;
+	}
+
+	public boolean isCustomLibs() {
+		return libs != null && !libs.isEmpty();
+	}
+
+	public List getLibs() {
+		return isCustomLibs() ? libs : LdDefaults.LIBS;
+	}
+
+	public void setLibs(List libs) {
+		this.libs = libs;
+	}
+
+	/** Wrapper's manifest for User Account Control. */ 
+	public File getManifest() {
+    	return manifest;
+    }
+
+	public void setManifest(File manifest) {
+    	this.manifest = manifest;
+    }
+
+	/** ICO file. */
+	public File getIcon() {
+		return icon;
+	}
+
+	public void setIcon(File icon) {
+		this.icon = icon;
+	}
+
+	/** Jar to wrap. */
+	public File getJar() {
+		return jar;
+	}
+
+	public void setJar(File jar) {
+		this.jar = jar;
+	}
+
+	public List getVariables() {
+		return variables;
+	}
+
+	public void setVariables(List variables) {
+		this.variables = variables;
+	}
+
+	public ClassPath getClassPath() {
+		return classPath;
+	}
+	
+	public void setClassPath(ClassPath classpath) {
+		this.classPath = classpath;
+	}
+
+	/** JRE configuration */
+	public Jre getJre() {
+		return jre;
+	}
+
+	public void setJre(Jre jre) {
+		this.jre = jre;
+	}
+
+	/** Output EXE file. */
+	public File getOutfile() {
+		return outfile;
+	}
+
+	public void setOutfile(File outfile) {
+		this.outfile = outfile;
+	}
+
+	/** Custom process name as the output EXE file name. */
+	public boolean isCustomProcName() {
+		return customProcName;
+	}
+
+	public void setCustomProcName(boolean customProcName) {
+		this.customProcName = customProcName;
+	}
+
+	/** Splash screen configuration. */
+	public Splash getSplash() {
+		return splash;
+	}
+
+	public void setSplash(Splash splash) {
+		this.splash = splash;
+	}
+
+	/** Stay alive after launching the application. */
+	public boolean isStayAlive() {
+		return stayAlive;
+	}
+
+	public void setStayAlive(boolean stayAlive) {
+		this.stayAlive = stayAlive;
+	}
+	
+	public VersionInfo getVersionInfo() {
+		return versionInfo;
+	}
+
+	public void setVersionInfo(VersionInfo versionInfo) {
+		this.versionInfo = versionInfo;
+	}
+
+	public boolean isDontWrapJar() {
+		return dontWrapJar;
+	}
+
+	public void setDontWrapJar(boolean dontWrapJar) {
+		this.dontWrapJar = dontWrapJar;
+	}
+
+	public int getPriorityIndex() {
+		int x = Arrays.asList(PRIORITY_CLASS_NAMES).indexOf(getPriority());
+		return x != -1 ? x : 0;
+	}
+	
+	public void setPriorityIndex(int x) {
+		priority = PRIORITY_CLASS_NAMES[x];
+	}
+
+	public String getPriority() {
+		return Validator.isEmpty(priority) ? PRIORITY_CLASS_NAMES[0] : priority;
+	}
+
+	public void setPriority(String priority) {
+		this.priority = priority;
+	}
+	
+	public int getPriorityClass() {
+		return PRIORITY_CLASSES[getPriorityIndex()];
+	}
+	
+	public String getDownloadUrl() {
+		return downloadUrl == null ? DOWNLOAD_URL : downloadUrl;
+	}
+
+	public void setDownloadUrl(String downloadUrl) {
+		this.downloadUrl = downloadUrl;
+	}
+
+	public String getSupportUrl() {
+		return supportUrl;
+	}
+
+	public void setSupportUrl(String supportUrl) {
+		this.supportUrl = supportUrl;
+	}
+
+	public Msg getMessages() {
+		return messages;
+	}
+
+	public void setMessages(Msg messages) {
+		this.messages = messages;
+	}
+	
+	public SingleInstance getSingleInstance() {
+    	return singleInstance;
+    }
+
+	public void setSingleInstance(SingleInstance singleInstance) {
+    	this.singleInstance = singleInstance;
+    }
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/ConfigPersister.java b/installer/lib/launch4j/src/net/sf/launch4j/config/ConfigPersister.java
index b203df739503f0504e809d09ed92aed1e3e5ea09..43daf86814f73686324f1b7a972d9e72e743db55 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/config/ConfigPersister.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/ConfigPersister.java
@@ -1,202 +1,249 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 22, 2005
- */
-package net.sf.launch4j.config;
-
-import java.io.BufferedReader;
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.util.Properties;
-
-import net.sf.launch4j.Util;
-
-import com.thoughtworks.xstream.XStream;
-import com.thoughtworks.xstream.io.xml.DomDriver;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class ConfigPersister {
-
-	private static final ConfigPersister _instance = new ConfigPersister();
-
-	private final XStream _xstream;
-	private Config _config;
-	private File _configPath;
-
-	private ConfigPersister() {
-		_xstream = new XStream(new DomDriver());
-    	_xstream.alias("launch4jConfig", Config.class);
-    	_xstream.alias("jre", Jre.class);
-    	_xstream.alias("splash", Splash.class);
-    	_xstream.alias("versionInfo", VersionInfo.class);
-	}
-
-	public static ConfigPersister getInstance() {
-		return _instance;
-	}
-	
-	public Config getConfig() {
-		return _config;
-	}
-
-	public File getConfigPath() {
-		return _configPath;
-	}
-	
-	public File getOutputPath() throws IOException {
-		if (_config.getOutfile().isAbsolute()) {
-			return _config.getOutfile().getParentFile();
-		}
-		File parent = _config.getOutfile().getParentFile();
-		return (parent != null) ? new File(_configPath, parent.getPath()) : _configPath;
-	}
-	
-	public File getOutputFile() throws IOException {
-		return _config.getOutfile().isAbsolute()
-			? _config.getOutfile()
-			: new File(getOutputPath(), _config.getOutfile().getName());
-	}
-
-	public void createBlank() {
-		_config = new Config();
-		_config.setJre(new Jre());
-		_configPath = null;
-	}
-
-	public void setAntConfig(Config c, File basedir) {
-		_config = c;
-		_configPath = basedir;
-	}
-
-	public void load(File f) throws ConfigPersisterException {
-		try {
-			BufferedReader r = new BufferedReader(new FileReader(f));
-	    	_config = (Config) _xstream.fromXML(r);
-	    	r.close();
-	    	setConfigPath(f);
-		} catch (Exception e) {
-			throw new ConfigPersisterException(e);
-		}
-	}
-
-	/**
-	 * Imports launch4j 1.x.x config file.
-	 */
-	public void loadVersion1(File f) throws ConfigPersisterException {
-		try {
-			Props props = new Props(f);
-			_config = new Config();
-			String header = props.getProperty(Config.HEADER);
-			_config.setHeaderType(header == null
-					|| header.toLowerCase().equals("guihead.bin") ? 0 : 1);
-			_config.setJar(props.getFile(Config.JAR));
-			_config.setOutfile(props.getFile(Config.OUTFILE));
-			_config.setJre(new Jre());
-			_config.getJre().setPath(props.getProperty(Jre.PATH));
-			_config.getJre().setMinVersion(props.getProperty(Jre.MIN_VERSION));
-			_config.getJre().setMaxVersion(props.getProperty(Jre.MAX_VERSION));
-			_config.getJre().setArgs(props.getProperty(Jre.ARGS));
-			_config.setJarArgs(props.getProperty(Config.JAR_ARGS));
-			_config.setChdir("true".equals(props.getProperty(Config.CHDIR)) ? "." : null);
-			_config.setCustomProcName("true".equals(
-					props.getProperty("setProcName")));				// 1.x
-			_config.setStayAlive("true".equals(props.getProperty(Config.STAY_ALIVE)));
-			_config.setErrTitle(props.getProperty(Config.ERR_TITLE));
-			_config.setIcon(props.getFile(Config.ICON));
-			File splashFile = props.getFile(Splash.SPLASH_FILE);
-			if (splashFile != null) {
-				_config.setSplash(new Splash());
-				_config.getSplash().setFile(splashFile);
-				String waitfor = props.getProperty("waitfor");		// 1.x
-				_config.getSplash().setWaitForWindow(waitfor != null && !waitfor.equals(""));
-				String splashTimeout = props.getProperty(Splash.TIMEOUT);
-				if (splashTimeout != null) {
-					_config.getSplash().setTimeout(Integer.parseInt(splashTimeout));	
-				}
-				_config.getSplash().setTimeoutErr("true".equals(
-						props.getProperty(Splash.TIMEOUT_ERR)));
-			} else {
-				_config.setSplash(null);
-			}
-			setConfigPath(f);
-		} catch (IOException e) {
-			throw new ConfigPersisterException(e);
-		}
-	}
-
-	public void save(File f) throws ConfigPersisterException {
-		try {
-			BufferedWriter w = new BufferedWriter(new FileWriter(f));
-	    	_xstream.toXML(_config, w);
-	    	w.close();
-	    	setConfigPath(f);
-		} catch (Exception e) {
-			throw new ConfigPersisterException(e);
-		}
-	}
-
-	private void setConfigPath(File configFile) {
-		_configPath = configFile.getAbsoluteFile().getParentFile();
-	}
-
-	private class Props {
-		final Properties _properties = new Properties();
-
-		public Props(File f) throws IOException {
-			FileInputStream is = null;
-			try {
-				is = new FileInputStream(f);
-				_properties.load(is);
-			} finally {
-				Util.close(is);
-			}
-		}
-
-		/**
-		 * Get property and remove trailing # comments.
-		 */
-		public String getProperty(String key) {
-			String p = _properties.getProperty(key);
-			if (p == null) {
-				return null;
-			}
-			int x = p.indexOf('#');
-			if (x == -1) {
-				return p;
-			}
-			do {
-				x--;
-			} while (x > 0 && (p.charAt(x) == ' ' || p.charAt(x) == '\t'));
-			return (x == 0) ? "" : p.substring(0, x + 1);
-		}
-
-		public File getFile(String key) {
-			String value = getProperty(key);
-			return value != null ? new File(value) : null;
-		}
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 22, 2005
+ */
+package net.sf.launch4j.config;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Properties;
+
+import net.sf.launch4j.Util;
+
+import com.thoughtworks.xstream.XStream;
+import com.thoughtworks.xstream.io.xml.DomDriver;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class ConfigPersister {
+
+	private static final ConfigPersister _instance = new ConfigPersister();
+
+	private final XStream _xstream;
+	private Config _config;
+	private File _configPath;
+
+	private ConfigPersister() {
+		_xstream = new XStream(new DomDriver());
+    	_xstream.alias("launch4jConfig", Config.class);
+    	_xstream.alias("classPath", ClassPath.class);
+    	_xstream.alias("jre", Jre.class);
+    	_xstream.alias("splash", Splash.class);
+    	_xstream.alias("versionInfo", VersionInfo.class);
+
+    	_xstream.addImplicitCollection(Config.class, "headerObjects", "obj",
+    			String.class);
+    	_xstream.addImplicitCollection(Config.class, "libs", "lib", String.class);
+    	_xstream.addImplicitCollection(Config.class, "variables", "var", String.class);
+    	_xstream.addImplicitCollection(ClassPath.class, "paths", "cp", String.class);
+    	_xstream.addImplicitCollection(Jre.class, "options", "opt", String.class);
+	}
+
+	public static ConfigPersister getInstance() {
+		return _instance;
+	}
+	
+	public Config getConfig() {
+		return _config;
+	}
+
+	public File getConfigPath() {
+		return _configPath;
+	}
+	
+	public File getOutputPath() throws IOException {
+		if (_config.getOutfile().isAbsolute()) {
+			return _config.getOutfile().getParentFile();
+		}
+		File parent = _config.getOutfile().getParentFile();
+		return (parent != null) ? new File(_configPath, parent.getPath()) : _configPath;
+	}
+	
+	public File getOutputFile() throws IOException {
+		return _config.getOutfile().isAbsolute()
+			? _config.getOutfile()
+			: new File(getOutputPath(), _config.getOutfile().getName());
+	}
+
+	public void createBlank() {
+		_config = new Config();
+		_config.setJre(new Jre());
+		_configPath = null;
+	}
+
+	public void setAntConfig(Config c, File basedir) {
+		_config = c;
+		_configPath = basedir;
+	}
+
+	public void load(File f) throws ConfigPersisterException {
+		try {
+			FileReader r = new FileReader(f);
+			char[] buf = new char[(int) f.length()];
+			r.read(buf);
+	    	r.close();
+	    	// Convert 2.x config to 3.x
+	    	String s = String.valueOf(buf)
+	    			.replaceAll("<headerType>0<", "<headerType>gui<")
+	    			.replaceAll("<headerType>1<", "<headerType>console<")
+	    			.replaceAll("jarArgs>", "cmdLine>")
+	    			.replaceAll("<jarArgs[ ]*/>", "<cmdLine/>")
+	    			.replaceAll("args>", "opt>")
+	    			.replaceAll("<args[ ]*/>", "<opt/>")
+	    			.replaceAll("<dontUsePrivateJres>false</dontUsePrivateJres>",
+	    					"<jdkPreference>" + Jre.JDK_PREFERENCE_PREFER_JRE + "</jdkPreference>")
+	    			.replaceAll("<dontUsePrivateJres>true</dontUsePrivateJres>",
+	    					"<jdkPreference>" + Jre.JDK_PREFERENCE_JRE_ONLY + "</jdkPreference>")
+	    			.replaceAll("<initialHeapSize>0</initialHeapSize>", "")
+	    			.replaceAll("<maxHeapSize>0</maxHeapSize>", "");
+	    	_config = (Config) _xstream.fromXML(s);
+	    	setConfigPath(f);
+		} catch (Exception e) {
+			throw new ConfigPersisterException(e);
+		}
+	}
+
+	/**
+	 * Imports launch4j 1.x.x config file.
+	 */
+	public void loadVersion1(File f) throws ConfigPersisterException {
+		try {
+			Props props = new Props(f);
+			_config = new Config();
+			String header = props.getProperty(Config.HEADER);
+			_config.setHeaderType(header == null
+					|| header.toLowerCase().equals("guihead.bin") ? Config.GUI_HEADER
+															: Config.CONSOLE_HEADER);
+			_config.setJar(props.getFile(Config.JAR));
+			_config.setOutfile(props.getFile(Config.OUTFILE));
+			_config.setJre(new Jre());
+			_config.getJre().setPath(props.getProperty(Jre.PATH));
+			_config.getJre().setMinVersion(props.getProperty(Jre.MIN_VERSION));
+			_config.getJre().setMaxVersion(props.getProperty(Jre.MAX_VERSION));
+			String args = props.getProperty(Jre.ARGS);
+			if (args != null) {
+				List jreOptions = new ArrayList();
+				jreOptions.add(args);
+				_config.getJre().setOptions(jreOptions);
+			}
+			_config.setCmdLine(props.getProperty(Config.JAR_ARGS));
+			_config.setChdir("true".equals(props.getProperty(Config.CHDIR))
+					? "." : null);
+			_config.setCustomProcName("true".equals(
+					props.getProperty("setProcName")));				// 1.x
+			_config.setStayAlive("true".equals(props.getProperty(Config.STAY_ALIVE)));
+			_config.setErrTitle(props.getProperty(Config.ERR_TITLE));
+			_config.setIcon(props.getFile(Config.ICON));
+			File splashFile = props.getFile(Splash.SPLASH_FILE);
+			if (splashFile != null) {
+				_config.setSplash(new Splash());
+				_config.getSplash().setFile(splashFile);
+				String waitfor = props.getProperty("waitfor");		// 1.x
+				_config.getSplash().setWaitForWindow(waitfor != null
+													&& !waitfor.equals(""));
+				String splashTimeout = props.getProperty(Splash.TIMEOUT);
+				if (splashTimeout != null) {
+					_config.getSplash().setTimeout(Integer.parseInt(splashTimeout));	
+				}
+				_config.getSplash().setTimeoutErr("true".equals(
+						props.getProperty(Splash.TIMEOUT_ERR)));
+			} else {
+				_config.setSplash(null);
+			}
+			setConfigPath(f);
+		} catch (IOException e) {
+			throw new ConfigPersisterException(e);
+		}
+	}
+
+	public void save(File f) throws ConfigPersisterException {
+		try {
+			BufferedWriter w = new BufferedWriter(new FileWriter(f));
+	    	_xstream.toXML(_config, w);
+	    	w.close();
+	    	setConfigPath(f);
+		} catch (Exception e) {
+			throw new ConfigPersisterException(e);
+		}
+	}
+
+	private void setConfigPath(File configFile) {
+		_configPath = configFile.getAbsoluteFile().getParentFile();
+	}
+
+	private class Props {
+		final Properties _properties = new Properties();
+
+		public Props(File f) throws IOException {
+			FileInputStream is = null;
+			try {
+				is = new FileInputStream(f);
+				_properties.load(is);
+			} finally {
+				Util.close(is);
+			}
+		}
+
+		/**
+		 * Get property and remove trailing # comments.
+		 */
+		public String getProperty(String key) {
+			String p = _properties.getProperty(key);
+			if (p == null) {
+				return null;
+			}
+			int x = p.indexOf('#');
+			if (x == -1) {
+				return p;
+			}
+			do {
+				x--;
+			} while (x > 0 && (p.charAt(x) == ' ' || p.charAt(x) == '\t'));
+			return (x == 0) ? "" : p.substring(0, x + 1);
+		}
+
+		public File getFile(String key) {
+			String value = getProperty(key);
+			return value != null ? new File(value) : null;
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/ConfigPersisterException.java b/installer/lib/launch4j/src/net/sf/launch4j/config/ConfigPersisterException.java
index 7ade4cc4508b8fc9c15aab01d67e4ff22e9f6ae3..29940b945ff6598102335e5da092d471cdd8b529 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/config/ConfigPersisterException.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/ConfigPersisterException.java
@@ -1,37 +1,51 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 22, 2005
- */
-package net.sf.launch4j.config;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class ConfigPersisterException extends Exception {
-
-	public ConfigPersisterException(String msg, Throwable t) {
-		super(msg, t);
-	}
-	
-	public ConfigPersisterException(Throwable t) {
-		super(t);
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 22, 2005
+ */
+package net.sf.launch4j.config;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class ConfigPersisterException extends Exception {
+
+	public ConfigPersisterException(String msg, Throwable t) {
+		super(msg, t);
+	}
+	
+	public ConfigPersisterException(Throwable t) {
+		super(t);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/Jre.java b/installer/lib/launch4j/src/net/sf/launch4j/config/Jre.java
index ef6c36fb7cc8410b1da693db17a44ce37945b20c..0df45bb84a733675c56571f3419352d1157203da 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/config/Jre.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/Jre.java
@@ -1,125 +1,235 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 21, 2005
- */
-package net.sf.launch4j.config;
-
-import net.sf.launch4j.binding.IValidatable;
-import net.sf.launch4j.binding.Validator;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class Jre implements IValidatable {
-	public static final String VERSION_PATTERN = "(\\d\\.){2}\\d(_\\d+)?";
-	public static final String PATH = "jrepath";
-	public static final String MIN_VERSION = "javamin";
-	public static final String MAX_VERSION = "javamax";
-	public static final String ARGS = "jvmArgs";
-
-	private String path;
-	private String minVersion;
-	private String maxVersion;
-	private int initialHeapSize;
-	private int maxHeapSize;
-	private String args;
-
-	public void checkInvariants() {
-		Validator.checkOptString(minVersion, 10, VERSION_PATTERN,
-				"jre.minVersion", "Minimum JRE version should be x.x.x[_xx]");
-		Validator.checkOptString(maxVersion, 10, VERSION_PATTERN,
-				"jre.maxVersion", "Maximum JRE version should be x.x.x[_xx]");
-		if (Validator.isEmpty(path)) {
-			Validator.checkFalse(Validator.isEmpty(minVersion),
-					"jre.path", "Specify embedded JRE path or/and minimum JRE version.");
-		} else {
-			Validator.checkRelativeWinPath(path,
-					"jre.path", "Embedded JRE path must be a path relative to the executable.");
-		}
-		if (!Validator.isEmpty(maxVersion)) {
-			Validator.checkFalse(Validator.isEmpty(minVersion),
-					"jre.minVersion", "Specify minimum JRE version.");
-			Validator.checkTrue(minVersion.compareTo(maxVersion) <= 0,
-					"jre.minVersion", "Minimum JRE version is greater than the maximum.");
-		}
-		Validator.checkTrue(initialHeapSize >= 0, "jre.initialHeapSize",
-				"Initial heap size cannot be negative," +
-				" specify 0 or leave the field blank to use the JVM default.");
-		Validator.checkTrue(maxHeapSize == 0 || initialHeapSize <= maxHeapSize,
-				"jre.maxHeapSize", "Maximum heap size cannot be less than the initial" +
-				" size, specify 0 or leave the field blank to use the JVM default.");
-		Validator.checkOptString(args, 512, "jre.args", "JVM arguments");
-	}
-
-	/** JVM arguments: XOptions, system properties. */
-	public String getArgs() {
-		return args;
-	}
-
-	public void setArgs(String args) {
-		this.args = args;
-	}
-
-	/** Max Java version (x.x.x) */
-	public String getMaxVersion() {
-		return maxVersion;
-	}
-
-	public void setMaxVersion(String maxVersion) {
-		this.maxVersion = maxVersion;
-	}
-
-	/** Min Java version (x.x.x) */
-	public String getMinVersion() {
-		return minVersion;
-	}
-
-	public void setMinVersion(String minVersion) {
-		this.minVersion = minVersion;
-	}
-
-	/** JRE path */
-	public String getPath() {
-		return path;
-	}
-
-	public void setPath(String path) {
-		this.path = path;
-	}
-
-	/** Initial heap size in MB */
-	public int getInitialHeapSize() {
-		return initialHeapSize;
-	}
-
-	public void setInitialHeapSize(int initialHeapSize) {
-		this.initialHeapSize = initialHeapSize;
-	}
-
-	/** Max heap size in MB */
-	public int getMaxHeapSize() {
-		return maxHeapSize;
-	}
-
-	public void setMaxHeapSize(int maxHeapSize) {
-		this.maxHeapSize = maxHeapSize;
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 21, 2005
+ */
+package net.sf.launch4j.config;
+
+import java.util.Arrays;
+import java.util.List;
+
+import net.sf.launch4j.binding.IValidatable;
+import net.sf.launch4j.binding.Validator;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class Jre implements IValidatable {
+
+	// 1.x config properties_____________________________________________________________
+	public static final String PATH = "jrepath";
+	public static final String MIN_VERSION = "javamin";
+	public static final String MAX_VERSION = "javamax";
+	public static final String ARGS = "jvmArgs";
+
+	// __________________________________________________________________________________
+	public static final String VERSION_PATTERN = "(\\d\\.){2}\\d(_\\d+)?";
+
+	public static final String JDK_PREFERENCE_JRE_ONLY = "jreOnly";
+	public static final String JDK_PREFERENCE_PREFER_JRE = "preferJre";
+	public static final String JDK_PREFERENCE_PREFER_JDK = "preferJdk";
+	public static final String JDK_PREFERENCE_JDK_ONLY = "jdkOnly";
+
+	private static final String[] JDK_PREFERENCE_NAMES = new String[] {
+			JDK_PREFERENCE_JRE_ONLY,
+			JDK_PREFERENCE_PREFER_JRE,
+			JDK_PREFERENCE_PREFER_JDK,
+			JDK_PREFERENCE_JDK_ONLY };
+
+	public static final int DEFAULT_JDK_PREFERENCE_INDEX
+			= Arrays.asList(JDK_PREFERENCE_NAMES).indexOf(JDK_PREFERENCE_PREFER_JRE);
+
+	private String path;
+	private String minVersion;
+	private String maxVersion;
+	private String jdkPreference;
+	private Integer initialHeapSize;
+	private Integer initialHeapPercent;
+	private Integer maxHeapSize;
+	private Integer maxHeapPercent;
+	private List options;
+
+	public void checkInvariants() {
+		Validator.checkOptString(minVersion, 10, VERSION_PATTERN,
+				"jre.minVersion", Messages.getString("Jre.min.version"));
+		Validator.checkOptString(maxVersion, 10, VERSION_PATTERN,
+				"jre.maxVersion", Messages.getString("Jre.max.version"));
+		if (Validator.isEmpty(path)) {
+			Validator.checkFalse(Validator.isEmpty(minVersion),
+					"jre.minVersion", Messages.getString("Jre.specify.jre.min.version.or.path"));
+		} else {
+			Validator.checkString(path, Validator.MAX_PATH,
+					"jre.path", Messages.getString("Jre.bundled.path"));
+		}
+		if (!Validator.isEmpty(maxVersion)) {
+			Validator.checkFalse(Validator.isEmpty(minVersion),
+					"jre.minVersion", Messages.getString("Jre.specify.min.version"));
+			Validator.checkTrue(minVersion.compareTo(maxVersion) < 0,
+					"jre.maxVersion", Messages.getString("Jre.max.greater.than.min"));
+		}
+		Validator.checkTrue(initialHeapSize == null || maxHeapSize != null,
+				"jre.maxHeapSize", Messages.getString("Jre.initial.and.max.heap"));
+		Validator.checkTrue(initialHeapSize == null || initialHeapSize.intValue() > 0,
+				"jre.initialHeapSize", Messages.getString("Jre.initial.heap"));
+		Validator.checkTrue(maxHeapSize == null || (maxHeapSize.intValue()
+				>= ((initialHeapSize != null) ? initialHeapSize.intValue() : 1)),
+				"jre.maxHeapSize", Messages.getString("Jre.max.heap"));
+		Validator.checkTrue(initialHeapPercent == null || maxHeapPercent != null,
+				"jre.maxHeapPercent", Messages.getString("Jre.initial.and.max.heap"));
+		if (initialHeapPercent != null) {
+			Validator.checkRange(initialHeapPercent.intValue(), 1, 100,
+					"jre.initialHeapPercent",
+					Messages.getString("Jre.initial.heap.percent"));
+		}
+		if (maxHeapPercent != null) {
+			Validator.checkRange(maxHeapPercent.intValue(),
+					initialHeapPercent != null ? initialHeapPercent.intValue() : 1, 100,
+					"jre.maxHeapPercent",
+					Messages.getString("Jre.max.heap.percent"));
+		}
+		Validator.checkIn(getJdkPreference(), JDK_PREFERENCE_NAMES,
+				"jre.jdkPreference", Messages.getString("Jre.jdkPreference.invalid"));
+		Validator.checkOptStrings(options,
+				Validator.MAX_ARGS,
+				Validator.MAX_ARGS,
+				"[^\"]*|([^\"]*\"[^\"]*\"[^\"]*)*",
+				"jre.options",
+				Messages.getString("Jre.jvm.options"),
+				Messages.getString("Jre.jvm.options.unclosed.quotation"));
+
+		// Quoted variable references: "[^%]*|([^%]*\"([^%]*%[^%]+%[^%]*)+\"[^%]*)*"
+		Validator.checkOptStrings(options,
+				Validator.MAX_ARGS,
+				Validator.MAX_ARGS,
+				"[^%]*|([^%]*([^%]*%[^%]+%[^%]*)+[^%]*)*",
+				"jre.options",
+				Messages.getString("Jre.jvm.options"),
+				Messages.getString("Jre.jvm.options.variable"));
+	}
+
+	/** JVM options */
+	public List getOptions() {
+		return options;
+	}
+
+	public void setOptions(List options) {
+		this.options = options;
+	}
+
+	/** Max Java version (x.x.x) */
+	public String getMaxVersion() {
+		return maxVersion;
+	}
+
+	public void setMaxVersion(String maxVersion) {
+		this.maxVersion = maxVersion;
+	}
+
+	/** Min Java version (x.x.x) */
+	public String getMinVersion() {
+		return minVersion;
+	}
+
+	public void setMinVersion(String minVersion) {
+		this.minVersion = minVersion;
+	}
+
+	/** Preference for standalone JRE or JDK-private JRE */
+	public String getJdkPreference() {
+		return Validator.isEmpty(jdkPreference) ? JDK_PREFERENCE_PREFER_JRE
+												: jdkPreference;
+	}
+
+	public void setJdkPreference(String jdkPreference) {
+		this.jdkPreference = jdkPreference;
+	}
+
+	/** Preference for standalone JRE or JDK-private JRE */
+	public int getJdkPreferenceIndex() {
+		int x = Arrays.asList(JDK_PREFERENCE_NAMES).indexOf(getJdkPreference());
+		return x != -1 ? x : DEFAULT_JDK_PREFERENCE_INDEX;
+	}
+	
+	public void setJdkPreferenceIndex(int x) {
+		jdkPreference = JDK_PREFERENCE_NAMES[x];
+	}
+
+	/** JRE path */
+	public String getPath() {
+		return path;
+	}
+
+	public void setPath(String path) {
+		this.path = path;
+	}
+
+	/** Initial heap size in MB */
+	public Integer getInitialHeapSize() {
+		return initialHeapSize;
+	}
+
+	public void setInitialHeapSize(Integer initialHeapSize) {
+		this.initialHeapSize = getInteger(initialHeapSize);
+	}
+
+	/** Max heap size in MB */
+	public Integer getMaxHeapSize() {
+		return maxHeapSize;
+	}
+
+	public void setMaxHeapSize(Integer maxHeapSize) {
+		this.maxHeapSize = getInteger(maxHeapSize);
+	}
+	
+	public Integer getInitialHeapPercent() {
+    	return initialHeapPercent;
+    }
+
+	public void setInitialHeapPercent(Integer initialHeapPercent) {
+    	this.initialHeapPercent = getInteger(initialHeapPercent);
+    }
+
+	public Integer getMaxHeapPercent() {
+    	return maxHeapPercent;
+    }
+
+	public void setMaxHeapPercent(Integer maxHeapPercent) {
+    	this.maxHeapPercent = getInteger(maxHeapPercent);
+    }
+
+	/** Convert 0 to null */
+	private Integer getInteger(Integer i) {
+		return i != null && i.intValue() == 0 ? null : i;
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/LdDefaults.java b/installer/lib/launch4j/src/net/sf/launch4j/config/LdDefaults.java
new file mode 100644
index 0000000000000000000000000000000000000000..55f457cc3fc06b010d53370ae5b19a28955945f7
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/LdDefaults.java
@@ -0,0 +1,62 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Sep 3, 2005
+ */
+package net.sf.launch4j.config;
+
+import java.util.Arrays;
+import java.util.List;
+
+public class LdDefaults {
+
+	public static final List GUI_HEADER_OBJECTS = Arrays.asList(new String[] {
+			"w32api/crt2.o",
+			"head/guihead.o",
+			"head/head.o" });
+
+	public static final List CONSOLE_HEADER_OBJECTS = Arrays.asList(new String[] {
+			"w32api/crt2.o",
+			"head/consolehead.o",
+			"head/head.o"});
+
+	public static final List LIBS = Arrays.asList(new String[] {
+			"w32api/libmingw32.a",
+			"w32api/libgcc.a",
+			"w32api/libmsvcrt.a",
+			"w32api/libkernel32.a",
+			"w32api/libuser32.a",
+			"w32api/libadvapi32.a",
+			"w32api/libshell32.a" });
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/Messages.java b/installer/lib/launch4j/src/net/sf/launch4j/config/Messages.java
new file mode 100644
index 0000000000000000000000000000000000000000..a3f344e59c9966dbcaa6100198bc9342ef66a1f4
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/Messages.java
@@ -0,0 +1,78 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+package net.sf.launch4j.config;
+
+import java.text.MessageFormat;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+	private static final String BUNDLE_NAME = "net.sf.launch4j.config.messages";
+
+	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+			.getBundle(BUNDLE_NAME);
+	private static final MessageFormat FORMATTER = new MessageFormat("");
+
+	private Messages() {
+	}
+	
+	public static String getString(String key) {
+		try {
+			return RESOURCE_BUNDLE.getString(key);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+	
+	public static String getString(String key, String arg0) {
+		return getString(key, new Object[] {arg0});
+	}
+
+	public static String getString(String key, String arg0, String arg1) {
+		return getString(key, new Object[] {arg0, arg1});
+	}
+
+	public static String getString(String key, String arg0, String arg1, String arg2) {
+		return getString(key, new Object[] {arg0, arg1, arg2});
+	}
+
+	public static String getString(String key, Object[] args) {
+		try {
+			FORMATTER.applyPattern(RESOURCE_BUNDLE.getString(key));
+			return FORMATTER.format(args);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/Msg.java b/installer/lib/launch4j/src/net/sf/launch4j/config/Msg.java
new file mode 100644
index 0000000000000000000000000000000000000000..ea3acfa34d8da35865e0298a8be511e0e2ca8d34
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/Msg.java
@@ -0,0 +1,111 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Oct 8, 2006
+ */
+package net.sf.launch4j.config;
+
+import net.sf.launch4j.binding.IValidatable;
+import net.sf.launch4j.binding.Validator;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class Msg implements IValidatable {
+	private String startupErr;
+	private String bundledJreErr;
+	private String jreVersionErr;
+	private String launcherErr;
+	private String instanceAlreadyExistsMsg;
+
+	public void checkInvariants() {
+		Validator.checkOptString(startupErr, 1024, "startupErr",
+				Messages.getString("Msg.startupErr"));
+		Validator.checkOptString(bundledJreErr, 1024, "bundledJreErr",
+				Messages.getString("Msg.bundledJreErr"));
+		Validator.checkOptString(jreVersionErr, 1024, "jreVersionErr",
+				Messages.getString("Msg.jreVersionErr"));
+		Validator.checkOptString(launcherErr, 1024, "launcherErr",
+				Messages.getString("Msg.launcherErr"));
+		Validator.checkOptString(instanceAlreadyExistsMsg, 1024, "instanceAlreadyExistsMsg",
+				Messages.getString("Msg.instanceAlreadyExistsMsg"));
+	}
+
+	public String getStartupErr() {
+		return !Validator.isEmpty(startupErr) ? startupErr
+				: "An error occurred while starting the application.";
+	}
+	
+	public void setStartupErr(String startupErr) {
+		this.startupErr = startupErr;
+	}
+
+	public String getBundledJreErr() {
+		return !Validator.isEmpty(bundledJreErr) ? bundledJreErr
+				: "This application was configured to use a bundled Java Runtime" +
+						" Environment but the runtime is missing or corrupted.";
+	}
+
+	public void setBundledJreErr(String bundledJreErr) {
+		this.bundledJreErr = bundledJreErr;
+	}
+
+	public String getJreVersionErr() {
+		return !Validator.isEmpty(jreVersionErr) ? jreVersionErr
+				: "This application requires a Java Runtime Environment";
+	}
+
+	public void setJreVersionErr(String jreVersionErr) {
+		this.jreVersionErr = jreVersionErr;
+	}
+	
+	public String getLauncherErr() {
+		return !Validator.isEmpty(launcherErr) ? launcherErr
+				: "The registry refers to a nonexistent Java Runtime Environment" +
+						" installation or the runtime is corrupted.";
+	}
+	
+	public void setLauncherErr(String launcherErr) {
+		this.launcherErr = launcherErr;
+	}
+
+	public String getInstanceAlreadyExistsMsg() {
+    	return !Validator.isEmpty(instanceAlreadyExistsMsg) ? instanceAlreadyExistsMsg
+    			: "An application instance is already running.";
+    }
+
+	public void setInstanceAlreadyExistsMsg(String instanceAlreadyExistsMsg) {
+    	this.instanceAlreadyExistsMsg = instanceAlreadyExistsMsg;
+    }
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/SingleInstance.java b/installer/lib/launch4j/src/net/sf/launch4j/config/SingleInstance.java
new file mode 100644
index 0000000000000000000000000000000000000000..0ae340cd7349f2eddf14e5d9509f1db8d0faeca6
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/SingleInstance.java
@@ -0,0 +1,74 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/**
+ * Created on 2007-09-16
+ */
+package net.sf.launch4j.config;
+
+import net.sf.launch4j.binding.IValidatable;
+import net.sf.launch4j.binding.Validator;
+
+/**
+ * @author Copyright (C) 2007 Grzegorz Kowal
+ */
+public class SingleInstance implements IValidatable {
+
+	private String mutexName;
+	private String windowTitle;
+	
+	public void checkInvariants() {
+		Validator.checkString(mutexName, Validator.MAX_STR,
+				"singleInstance.mutexName",
+				Messages.getString("SingleInstance.mutexName"));
+		Validator.checkOptString(windowTitle, Validator.MAX_STR,
+				"singleInstance.windowTitle",
+				Messages.getString("SingleInstance.windowTitle"));
+	}
+	
+	public String getWindowTitle() {
+    	return windowTitle;
+    }
+	
+	public void setWindowTitle(String appWindowName) {
+    	this.windowTitle = appWindowName;
+    }
+	
+	public String getMutexName() {
+    	return mutexName;
+    }
+	
+	public void setMutexName(String mutexName) {
+    	this.mutexName = mutexName;
+    }
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/Splash.java b/installer/lib/launch4j/src/net/sf/launch4j/config/Splash.java
index f7315a9d121f163666f8579886615de25339745f..f736f82088ec5c21c29e7db76582af7607670e1f 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/config/Splash.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/Splash.java
@@ -1,84 +1,103 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on Apr 21, 2005
- */
-package net.sf.launch4j.config;
-
-import java.io.File;
-
-import net.sf.launch4j.binding.IValidatable;
-import net.sf.launch4j.binding.Validator;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class Splash implements IValidatable {
-	public static final String SPLASH_FILE = "splash";
-	public static final String WAIT_FOR_TITLE = "waitForTitle";
-	public static final String TIMEOUT = "splashTimeout";
-	public static final String TIMEOUT_ERR = "splashTimeoutErr";
-
-	private File file;
-	private boolean waitForWindow = true;
-	private int timeout = 60;
-	private boolean timeoutErr = true;
-
-	public void checkInvariants() {
-		Validator.checkFile(file, "splash.file", "Splash file");
-		Validator.checkRange(timeout, 1, 60 * 15, "splash.timeout", "Splash timeout");
-	}
-
-	/** Splash screen in BMP format. */
-	public File getFile() {
-		return file;
-	}
-
-	public void setFile(File file) {
-		this.file = file;
-	}
-
-	/** Splash timeout in seconds. */
-	public int getTimeout() {
-		return timeout;
-	}
-
-	public void setTimeout(int timeout) {
-		this.timeout = timeout;
-	}
-
-	/** Signal error on splash timeout. */
-	public boolean isTimeoutErr() {
-		return timeoutErr;
-	}
-
-	public void setTimeoutErr(boolean timeoutErr) {
-		this.timeoutErr = timeoutErr;
-	}
-
-	/** Hide splash screen when the child process displayes the first window. */
-	public boolean getWaitForWindow() {
-		return waitForWindow;
-	}
-
-	public void setWaitForWindow(boolean waitForWindow) {
-		this.waitForWindow = waitForWindow;
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Apr 21, 2005
+ */
+package net.sf.launch4j.config;
+
+import java.io.File;
+
+import net.sf.launch4j.binding.IValidatable;
+import net.sf.launch4j.binding.Validator;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class Splash implements IValidatable {
+	
+	// 1.x config properties_____________________________________________________________
+	public static final String SPLASH_FILE = "splash";
+	public static final String WAIT_FOR_TITLE = "waitForTitle";
+	public static final String TIMEOUT = "splashTimeout";
+	public static final String TIMEOUT_ERR = "splashTimeoutErr";
+
+	// __________________________________________________________________________________
+	private File file;
+	private boolean waitForWindow = true;
+	private int timeout = 60;
+	private boolean timeoutErr = true;
+
+	public void checkInvariants() {
+		Validator.checkFile(file, "splash.file",
+				Messages.getString("Splash.splash.file"));
+		Validator.checkRange(timeout, 1, 60 * 15, "splash.timeout",
+				Messages.getString("Splash.splash.timeout"));
+	}
+
+	/** Splash screen in BMP format. */
+	public File getFile() {
+		return file;
+	}
+
+	public void setFile(File file) {
+		this.file = file;
+	}
+
+	/** Splash timeout in seconds. */
+	public int getTimeout() {
+		return timeout;
+	}
+
+	public void setTimeout(int timeout) {
+		this.timeout = timeout;
+	}
+
+	/** Signal error on splash timeout. */
+	public boolean isTimeoutErr() {
+		return timeoutErr;
+	}
+
+	public void setTimeoutErr(boolean timeoutErr) {
+		this.timeoutErr = timeoutErr;
+	}
+
+	/** Hide splash screen when the child process displayes the first window. */
+	public boolean getWaitForWindow() {
+		return waitForWindow;
+	}
+
+	public void setWaitForWindow(boolean waitForWindow) {
+		this.waitForWindow = waitForWindow;
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/VersionInfo.java b/installer/lib/launch4j/src/net/sf/launch4j/config/VersionInfo.java
index 359af7e172e7ecb809cb2940d782f10abdcb3a47..d719460c2ab544270d07a39726089aee8b49bfaa 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/config/VersionInfo.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/VersionInfo.java
@@ -1,135 +1,168 @@
-/*
- * Created on May 21, 2005
- */
-package net.sf.launch4j.config;
-
-import net.sf.launch4j.binding.IValidatable;
-import net.sf.launch4j.binding.Validator;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class VersionInfo implements IValidatable {
-	public static final String VERSION_PATTERN = "(\\d+\\.){3}\\d+";
-	private static final int MAX_LEN = 150;
-
-	private String fileVersion;
-	private String txtFileVersion;
-	private String fileDescription;
-	private String copyright;
-	private String productVersion;
-	private String txtProductVersion;
-	private String productName;
-	private String companyName;
-	private String internalName;
-	private String originalFilename;
-
-	public void checkInvariants() {
-		Validator.checkString(fileVersion, 20, VERSION_PATTERN,
-				"versionInfo.fileVersion", "File version, should be 'x.x.x.x'");
-		Validator.checkString(txtFileVersion, 50,
-				"versionInfo.txtFileVersion", "Free form file version");
-		Validator.checkString(fileDescription, MAX_LEN,
-				"versionInfo.fileDescription", "File description");
-		Validator.checkString(copyright, MAX_LEN,
-				"versionInfo.copyright", "Copyright");
-		Validator.checkString(productVersion, 20, VERSION_PATTERN,
-				"versionInfo.productVersion", "Product version, should be 'x.x.x.x'");
-		Validator.checkString(txtProductVersion, 50,
-				"versionInfo.txtProductVersion", "Free from product version");
-		Validator.checkString(productName, MAX_LEN,
-				"versionInfo.productName", "Product name");
-		Validator.checkOptString(companyName, MAX_LEN,
-				"versionInfo.companyName", "Company name");
-		Validator.checkString(internalName, 50,
-				"versionInfo.internalName", "Internal name");
-		Validator.checkTrue(!internalName.endsWith(".exe"),
-				"versionInfo.internalName",
-				"Internal name shouldn't have the .exe extension.");
-		Validator.checkString(originalFilename, 50,
-				"versionInfo.originalFilename", "Original filename");
-		Validator.checkTrue(originalFilename.endsWith(".exe"),
-				"versionInfo.originalFilename",
-				"Original filename should end with the .exe extension.");
-	}
-
-	public String getCompanyName() {
-		return companyName;
-	}
-
-	public void setCompanyName(String companyName) {
-		this.companyName = companyName;
-	}
-
-	public String getCopyright() {
-		return copyright;
-	}
-
-	public void setCopyright(String copyright) {
-		this.copyright = copyright;
-	}
-
-	public String getFileDescription() {
-		return fileDescription;
-	}
-
-	public void setFileDescription(String fileDescription) {
-		this.fileDescription = fileDescription;
-	}
-
-	public String getFileVersion() {
-		return fileVersion;
-	}
-
-	public void setFileVersion(String fileVersion) {
-		this.fileVersion = fileVersion;
-	}
-
-	public String getInternalName() {
-		return internalName;
-	}
-
-	public void setInternalName(String internalName) {
-		this.internalName = internalName;
-	}
-
-	public String getOriginalFilename() {
-		return originalFilename;
-	}
-
-	public void setOriginalFilename(String originalFilename) {
-		this.originalFilename = originalFilename;
-	}
-
-	public String getProductName() {
-		return productName;
-	}
-
-	public void setProductName(String productName) {
-		this.productName = productName;
-	}
-
-	public String getProductVersion() {
-		return productVersion;
-	}
-
-	public void setProductVersion(String productVersion) {
-		this.productVersion = productVersion;
-	}
-
-	public String getTxtFileVersion() {
-		return txtFileVersion;
-	}
-
-	public void setTxtFileVersion(String txtFileVersion) {
-		this.txtFileVersion = txtFileVersion;
-	}
-
-	public String getTxtProductVersion() {
-		return txtProductVersion;
-	}
-
-	public void setTxtProductVersion(String txtProductVersion) {
-		this.txtProductVersion = txtProductVersion;
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 21, 2005
+ */
+package net.sf.launch4j.config;
+
+import net.sf.launch4j.binding.IValidatable;
+import net.sf.launch4j.binding.Validator;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class VersionInfo implements IValidatable {
+	public static final String VERSION_PATTERN = "(\\d+\\.){3}\\d+";
+
+	private String fileVersion;
+	private String txtFileVersion;
+	private String fileDescription;
+	private String copyright;
+	private String productVersion;
+	private String txtProductVersion;
+	private String productName;
+	private String companyName;
+	private String internalName;
+	private String originalFilename;
+
+	public void checkInvariants() {
+		Validator.checkString(fileVersion, 20, VERSION_PATTERN,
+				"versionInfo.fileVersion",
+				Messages.getString("VersionInfo.file.version"));
+		Validator.checkString(txtFileVersion, 50, "versionInfo.txtFileVersion",
+				Messages.getString("VersionInfo.txt.file.version"));
+		Validator.checkString(fileDescription, 150, "versionInfo.fileDescription",
+				Messages.getString("VersionInfo.file.description"));
+		Validator.checkString(copyright, 150, "versionInfo.copyright",
+				Messages.getString("VersionInfo.copyright"));
+		Validator.checkString(productVersion, 20, VERSION_PATTERN,
+				"versionInfo.productVersion",
+				Messages.getString("VersionInfo.product.version"));
+		Validator.checkString(txtProductVersion, 50, "versionInfo.txtProductVersion",
+				Messages.getString("VersionInfo.txt.product.version"));
+		Validator.checkString(productName, 150, "versionInfo.productName",
+				Messages.getString("VersionInfo.product.name"));
+		Validator.checkOptString(companyName, 150, "versionInfo.companyName",
+				Messages.getString("VersionInfo.company.name"));
+		Validator.checkString(internalName, 50, 	"versionInfo.internalName",
+				Messages.getString("VersionInfo.internal.name"));
+		Validator.checkTrue(!internalName.endsWith(".exe"), "versionInfo.internalName",
+				Messages.getString("VersionInfo.internal.name.not.exe"));
+		Validator.checkString(originalFilename, 50, "versionInfo.originalFilename",
+				Messages.getString("VersionInfo.original.filename"));
+		Validator.checkTrue(originalFilename.endsWith(".exe"),
+				"versionInfo.originalFilename",
+				Messages.getString("VersionInfo.original.filename.exe"));
+	}
+
+	public String getCompanyName() {
+		return companyName;
+	}
+
+	public void setCompanyName(String companyName) {
+		this.companyName = companyName;
+	}
+
+	public String getCopyright() {
+		return copyright;
+	}
+
+	public void setCopyright(String copyright) {
+		this.copyright = copyright;
+	}
+
+	public String getFileDescription() {
+		return fileDescription;
+	}
+
+	public void setFileDescription(String fileDescription) {
+		this.fileDescription = fileDescription;
+	}
+
+	public String getFileVersion() {
+		return fileVersion;
+	}
+
+	public void setFileVersion(String fileVersion) {
+		this.fileVersion = fileVersion;
+	}
+
+	public String getInternalName() {
+		return internalName;
+	}
+
+	public void setInternalName(String internalName) {
+		this.internalName = internalName;
+	}
+
+	public String getOriginalFilename() {
+		return originalFilename;
+	}
+
+	public void setOriginalFilename(String originalFilename) {
+		this.originalFilename = originalFilename;
+	}
+
+	public String getProductName() {
+		return productName;
+	}
+
+	public void setProductName(String productName) {
+		this.productName = productName;
+	}
+
+	public String getProductVersion() {
+		return productVersion;
+	}
+
+	public void setProductVersion(String productVersion) {
+		this.productVersion = productVersion;
+	}
+
+	public String getTxtFileVersion() {
+		return txtFileVersion;
+	}
+
+	public void setTxtFileVersion(String txtFileVersion) {
+		this.txtFileVersion = txtFileVersion;
+	}
+
+	public String getTxtProductVersion() {
+		return txtProductVersion;
+	}
+
+	public void setTxtProductVersion(String txtProductVersion) {
+		this.txtProductVersion = txtProductVersion;
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/messages.properties b/installer/lib/launch4j/src/net/sf/launch4j/config/messages.properties
new file mode 100644
index 0000000000000000000000000000000000000000..5753663f48a603994e83bf7ac3bc6d0df1d13c17
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/messages.properties
@@ -0,0 +1,93 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+Splash.splash.file=Splash file
+Splash.splash.timeout=Splash timeout
+
+Config.specify.output.exe=Specify output file with .exe extension.
+Config.application.jar=Application jar
+Config.application.jar.path=Specify runtime path of the jar relative to the executable.
+Config.chdir.relative='chdir' must be a path relative to the executable.
+Config.chdir.path='chdir' is now a path instead of a boolean, please check the docs.
+Config.manifest=Manifest
+Config.icon=Icon
+Config.jar.arguments=Jar arguments
+Config.error.title=Error title
+Config.download.url=Download URL
+Config.support.url=Support URL
+Config.header.type=Header type
+Config.splash.not.impl.by.console.hdr=Splash screen is not implemented by console header.
+Config.variables=Environment variables
+Config.variables.err=Environment variable assignment should have the form varname=[value][%varref%]...
+Config.priority=Process priority
+
+ClassPath.mainClass=Main class
+ClassPath.or.jar=Specify runtime path of a jar or the classpath.
+ClassPath.path=Classpath
+
+VersionInfo.file.version=File version, should be 'x.x.x.x'
+VersionInfo.txt.file.version=Free form file version
+VersionInfo.file.description=File description
+VersionInfo.copyright=Copyright
+VersionInfo.product.version=Product version, should be 'x.x.x.x'
+VersionInfo.txt.product.version=Free from product version
+VersionInfo.product.name=Product name
+VersionInfo.company.name=Company name
+VersionInfo.internal.name=Internal name
+VersionInfo.internal.name.not.exe=Internal name shouldn't have the .exe extension.
+VersionInfo.original.filename=Original filename
+VersionInfo.original.filename.exe=Original filename should end with the .exe extension.
+
+Jre.min.version=Minimum JRE version should be x.x.x[_xx]
+Jre.max.version=Maximum JRE version should be x.x.x[_xx]
+Jre.specify.jre.min.version.or.path=Specify minimum JRE version and/or bundled JRE path.
+Jre.bundled.path=Bundled JRE path
+Jre.specify.min.version=Specify minimum JRE version.
+Jre.max.greater.than.min=Maximum JRE version must be greater than the minimum.\nTo use a certain JRE version, you may set the min/max range to [1.4.2 - 1.4.2_10] for example.
+Jre.initial.and.max.heap=If you change the initial heap size please also specify the maximum size.
+Jre.initial.heap=Initial heap size must be greater than 0, leave the field blank to use the JVM default.
+Jre.max.heap=Maximum heap size cannot be less than the initial size, leave the field blank to use the JVM default.
+Jre.initial.heap.percent=Initial heap %
+Jre.max.heap.percent=Maximum heap %
+Jre.jdkPreference.invalid=Unrecognised value for JDK preference, should be between 0 and 3 inclusive.
+Jre.jvm.options=JVM arguments
+Jre.jvm.options.unclosed.quotation=JVM arguments contain an unclosed quotation.
+Jre.jvm.options.variable=Invalid environment variable reference.
+
+Msg.startupErr=Startup error message
+Msg.bundledJreErr=Bundled JRE error message
+Msg.jreVersionErr=JRE version error message
+Msg.launcherErr=Launcher error message
+
+SingleInstance.mutexName=Mutex name
+SingleInstance.windowTitle=Window title
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/config/messages_es.properties b/installer/lib/launch4j/src/net/sf/launch4j/config/messages_es.properties
new file mode 100644
index 0000000000000000000000000000000000000000..5e8659b1fea4c90f08a8d3863b0dc6ad06600c26
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/config/messages_es.properties
@@ -0,0 +1,75 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal, Patricio Martínez Ros
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+Splash.splash.file = Fichero de la pantalla de bienvenida
+Splash.splash.timeout = Tiempo de espera de la pantalla de bienvenida
+
+Config.specify.output.exe = Especifique el fichero de salida con extensi\u00F3n .exe.
+Config.application.jar = Aplicaci\u00F3n jar
+Config.application.jar.path = Especifique la ruta del jar relativa al ejecutable. 
+Config.chdir.relative = 'Cambiar al directorio' debe ser una ruta relativa al ejecutable.
+Config.chdir.path = 'Cambiar al directorio' ahora es una ruta en lugar de un booleano, por favor consulte la documentaci\u00F3n.
+Config.icon = Icono
+Config.jar.arguments = Argumentos del jar
+Config.error.title = T\u00EDtulo de error
+Config.header.type = Tipo de cabecera
+Config.splash.not.impl.by.console.hdr = La pantalla de bienvenida no est\u00E1 implementada para la cabecera de tipo consola.
+
+VersionInfo.file.version = La versi\u00F3n del fichero, deber\u00EDa ser 'x.x.x.x'
+VersionInfo.txt.file.version = Forma libre de versi\u00F3n del fichero
+VersionInfo.file.description = Descripci\u00F3n del fichero
+VersionInfo.copyright = Copyright
+VersionInfo.product.version = Versi\u00F3n del producto, deber\u00EDa ser 'x.x.x.x'
+VersionInfo.txt.product.version = Forma libre de versi\u00F3n del producto
+VersionInfo.product.name = Nombre del producto
+VersionInfo.company.name = Nombre de la organizaci\u00F3n
+VersionInfo.internal.name = Nombre interno
+VersionInfo.internal.name.not.exe = El nombre interno no deber\u00EDa tener extensi\u00F3n .exe.
+VersionInfo.original.filename = Nombre original del fichero
+VersionInfo.original.filename.exe = El nombre original del fichero debe acabar con extensi\u00F3n .exe.
+Jre.min.version = La versi\u00F3n m\u00EDnima del JRE deber\u00EDa ser x.x.x[_xx]
+Jre.max.version = La versi\u00F3n m\u00E1xima del JRE deber\u00EDa ser x.x.x[_xx]
+Jre.specify.jre.min.version.or.path=Specify minimum JRE version and/or bundled JRE path.
+Jre.bundled.path.rel = La ruta del JRE debe ser relativa al ejecutable.
+Jre.specify.min.version = Especifique la versi\u00F3n m\u00EDnima del JRE.
+Jre.max.greater.than.min = La versi\u00F3n m\u00E1xima del JRE debe ser mayor que la m\u00EDnima.\nPara usar cierta versi\u00F3n del JRE, puede esyablecer el rango m\u00EDnimo/m\u00E1ximo a [1.4.2 - 1.4.2_10], por ejemplo.
+Jre.jvm.options = Argumentos de la JVM
+
+Msg.startupErr=Startup error message
+Msg.bundledJreErr=Bundled JRE error message
+Msg.jreVersionErr=JRE version error message
+Msg.launcherErr=Launcher error message
+
+SingleInstance.mutexName=Mutex name
+SingleInstance.windowTitle=Window title
+
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/BasicForm.java b/installer/lib/launch4j/src/net/sf/launch4j/form/BasicForm.java
new file mode 100644
index 0000000000000000000000000000000000000000..4dadbb9834024e14aa77166ff0794c7c3d501aad
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/BasicForm.java
@@ -0,0 +1,283 @@
+package net.sf.launch4j.form;
+
+import com.jeta.forms.components.separator.TitledSeparator;
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import javax.swing.Box;
+import javax.swing.ButtonGroup;
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JCheckBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+import javax.swing.JTextField;
+
+public abstract class BasicForm extends JPanel
+{
+   protected final JButton _outfileButton = new JButton();
+   protected final JLabel _outfileLabel = new JLabel();
+   protected final JLabel _iconLabel = new JLabel();
+   protected final JLabel _jarLabel = new JLabel();
+   protected final JButton _jarButton = new JButton();
+   protected final JButton _iconButton = new JButton();
+   protected final JLabel _cmdLineLabel = new JLabel();
+   protected final JLabel _optionsLabel = new JLabel();
+   protected final JLabel _chdirLabel = new JLabel();
+   protected final JLabel _processPriorityLabel = new JLabel();
+   protected final JRadioButton _normalPriorityRadio = new JRadioButton();
+   protected final ButtonGroup _buttongroup1 = new ButtonGroup();
+   protected final JRadioButton _idlePriorityRadio = new JRadioButton();
+   protected final JRadioButton _highPriorityRadio = new JRadioButton();
+   protected final JCheckBox _customProcNameCheck = new JCheckBox();
+   protected final JCheckBox _stayAliveCheck = new JCheckBox();
+   protected final JTextField _cmdLineField = new JTextField();
+   protected final JTextField _chdirField = new JTextField();
+   protected final JTextField _iconField = new JTextField();
+   protected final JCheckBox _dontWrapJarCheck = new JCheckBox();
+   protected final JTextField _jarField = new JTextField();
+   protected final JTextField _outfileField = new JTextField();
+   protected final JLabel _errorTitleLabel = new JLabel();
+   protected final JTextField _errorTitleField = new JTextField();
+   protected final JLabel _downloadUrlLabel = new JLabel();
+   protected final JTextField _downloadUrlField = new JTextField();
+   protected final JLabel _supportUrlLabel = new JLabel();
+   protected final JTextField _supportUrlField = new JTextField();
+   protected final JTextField _manifestField = new JTextField();
+   protected final JButton _manifestButton = new JButton();
+
+   /**
+    * Default constructor
+    */
+   public BasicForm()
+   {
+      initializePanel();
+   }
+
+   /**
+    * Adds fill components to empty cells in the first row and first column of the grid.
+    * This ensures that the grid spacing will be the same as shown in the designer.
+    * @param cols an array of column indices in the first row where fill components should be added.
+    * @param rows an array of row indices in the first column where fill components should be added.
+    */
+   void addFillComponents( Container panel, int[] cols, int[] rows )
+   {
+      Dimension filler = new Dimension(10,10);
+
+      boolean filled_cell_11 = false;
+      CellConstraints cc = new CellConstraints();
+      if ( cols.length > 0 && rows.length > 0 )
+      {
+         if ( cols[0] == 1 && rows[0] == 1 )
+         {
+            /** add a rigid area  */
+            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
+            filled_cell_11 = true;
+         }
+      }
+
+      for( int index = 0; index < cols.length; index++ )
+      {
+         if ( cols[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
+      }
+
+      for( int index = 0; index < rows.length; index++ )
+      {
+         if ( rows[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
+      }
+
+   }
+
+   /**
+    * Helper method to load an image file from the CLASSPATH
+    * @param imageName the package and name of the file to load relative to the CLASSPATH
+    * @return an ImageIcon instance with the specified image file
+    * @throws IllegalArgumentException if the image resource cannot be loaded.
+    */
+   public ImageIcon loadImage( String imageName )
+   {
+      try
+      {
+         ClassLoader classloader = getClass().getClassLoader();
+         java.net.URL url = classloader.getResource( imageName );
+         if ( url != null )
+         {
+            ImageIcon icon = new ImageIcon( url );
+            return icon;
+         }
+      }
+      catch( Exception e )
+      {
+         e.printStackTrace();
+      }
+      throw new IllegalArgumentException( "Unable to load image: " + imageName );
+   }
+
+   public JPanel createPanel()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:7DLU:NONE,FILL:DEFAULT:NONE,FILL:7DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE,FILL:26PX:NONE,FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _outfileButton.setIcon(loadImage("images/open16.png"));
+      _outfileButton.setName("outfileButton");
+      jpanel1.add(_outfileButton,cc.xy(12,2));
+
+      _outfileLabel.setIcon(loadImage("images/asterix.gif"));
+      _outfileLabel.setName("outfileLabel");
+      _outfileLabel.setText(Messages.getString("outfile"));
+      jpanel1.add(_outfileLabel,cc.xy(2,2));
+
+      _iconLabel.setName("iconLabel");
+      _iconLabel.setText(Messages.getString("icon"));
+      jpanel1.add(_iconLabel,cc.xy(2,10));
+
+      _jarLabel.setIcon(loadImage("images/asterix.gif"));
+      _jarLabel.setName("jarLabel");
+      _jarLabel.setText(Messages.getString("jar"));
+      jpanel1.add(_jarLabel,cc.xy(2,4));
+
+      _jarButton.setIcon(loadImage("images/open16.png"));
+      _jarButton.setName("jarButton");
+      jpanel1.add(_jarButton,cc.xy(12,4));
+
+      _iconButton.setIcon(loadImage("images/open16.png"));
+      _iconButton.setName("iconButton");
+      jpanel1.add(_iconButton,cc.xy(12,10));
+
+      _cmdLineLabel.setName("cmdLineLabel");
+      _cmdLineLabel.setText(Messages.getString("cmdLine"));
+      _cmdLineLabel.setToolTipText("");
+      jpanel1.add(_cmdLineLabel,cc.xy(2,14));
+
+      _optionsLabel.setName("optionsLabel");
+      _optionsLabel.setText(Messages.getString("options"));
+      jpanel1.add(_optionsLabel,cc.xy(2,18));
+
+      _chdirLabel.setName("chdirLabel");
+      _chdirLabel.setText(Messages.getString("chdir"));
+      jpanel1.add(_chdirLabel,cc.xy(2,12));
+
+      _processPriorityLabel.setName("processPriorityLabel");
+      _processPriorityLabel.setText(Messages.getString("priority"));
+      jpanel1.add(_processPriorityLabel,cc.xy(2,16));
+
+      _normalPriorityRadio.setActionCommand(Messages.getString("normalPriority"));
+      _normalPriorityRadio.setName("normalPriorityRadio");
+      _normalPriorityRadio.setText(Messages.getString("normalPriority"));
+      _buttongroup1.add(_normalPriorityRadio);
+      jpanel1.add(_normalPriorityRadio,cc.xy(4,16));
+
+      _idlePriorityRadio.setActionCommand(Messages.getString("idlePriority"));
+      _idlePriorityRadio.setName("idlePriorityRadio");
+      _idlePriorityRadio.setText(Messages.getString("idlePriority"));
+      _buttongroup1.add(_idlePriorityRadio);
+      jpanel1.add(_idlePriorityRadio,cc.xy(6,16));
+
+      _highPriorityRadio.setActionCommand(Messages.getString("highPriority"));
+      _highPriorityRadio.setName("highPriorityRadio");
+      _highPriorityRadio.setText(Messages.getString("highPriority"));
+      _buttongroup1.add(_highPriorityRadio);
+      jpanel1.add(_highPriorityRadio,cc.xy(8,16));
+
+      _customProcNameCheck.setActionCommand("Custom process name");
+      _customProcNameCheck.setName("customProcNameCheck");
+      _customProcNameCheck.setText(Messages.getString("customProcName"));
+      jpanel1.add(_customProcNameCheck,cc.xywh(4,18,7,1));
+
+      _stayAliveCheck.setActionCommand("Stay alive after launching a GUI application");
+      _stayAliveCheck.setName("stayAliveCheck");
+      _stayAliveCheck.setText(Messages.getString("stayAlive"));
+      jpanel1.add(_stayAliveCheck,cc.xywh(4,20,7,1));
+
+      _cmdLineField.setName("cmdLineField");
+      _cmdLineField.setToolTipText(Messages.getString("cmdLineTip"));
+      jpanel1.add(_cmdLineField,cc.xywh(4,14,7,1));
+
+      _chdirField.setName("chdirField");
+      _chdirField.setToolTipText(Messages.getString("chdirTip"));
+      jpanel1.add(_chdirField,cc.xywh(4,12,7,1));
+
+      _iconField.setName("iconField");
+      _iconField.setToolTipText(Messages.getString("iconTip"));
+      jpanel1.add(_iconField,cc.xywh(4,10,7,1));
+
+      _dontWrapJarCheck.setActionCommand("Don't wrap the jar, launch it only");
+      _dontWrapJarCheck.setName("dontWrapJarCheck");
+      _dontWrapJarCheck.setText(Messages.getString("dontWrapJar"));
+      jpanel1.add(_dontWrapJarCheck,cc.xywh(4,6,7,1));
+
+      _jarField.setName("jarField");
+      _jarField.setToolTipText(Messages.getString("jarTip"));
+      jpanel1.add(_jarField,cc.xywh(4,4,7,1));
+
+      _outfileField.setName("outfileField");
+      _outfileField.setToolTipText(Messages.getString("outfileTip"));
+      jpanel1.add(_outfileField,cc.xywh(4,2,7,1));
+
+      TitledSeparator titledseparator1 = new TitledSeparator();
+      titledseparator1.setText(Messages.getString("downloadAndSupport"));
+      jpanel1.add(titledseparator1,cc.xywh(2,22,11,1));
+
+      _errorTitleLabel.setName("errorTitleLabel");
+      _errorTitleLabel.setText(Messages.getString("errorTitle"));
+      jpanel1.add(_errorTitleLabel,cc.xy(2,24));
+
+      _errorTitleField.setName("errorTitleField");
+      _errorTitleField.setToolTipText(Messages.getString("errorTitleTip"));
+      jpanel1.add(_errorTitleField,cc.xywh(4,24,7,1));
+
+      _downloadUrlLabel.setIcon(loadImage("images/asterix.gif"));
+      _downloadUrlLabel.setName("downloadUrlLabel");
+      _downloadUrlLabel.setText(Messages.getString("downloadUrl"));
+      jpanel1.add(_downloadUrlLabel,cc.xy(2,26));
+
+      _downloadUrlField.setName("downloadUrlField");
+      jpanel1.add(_downloadUrlField,cc.xywh(4,26,7,1));
+
+      _supportUrlLabel.setName("supportUrlLabel");
+      _supportUrlLabel.setText(Messages.getString("supportUrl"));
+      jpanel1.add(_supportUrlLabel,cc.xy(2,28));
+
+      _supportUrlField.setName("supportUrlField");
+      jpanel1.add(_supportUrlField,cc.xywh(4,28,7,1));
+
+      JLabel jlabel1 = new JLabel();
+      jlabel1.setText(Messages.getString("manifest"));
+      jpanel1.add(jlabel1,cc.xy(2,8));
+
+      _manifestField.setName("manifestField");
+      _manifestField.setToolTipText(Messages.getString("manifestTip"));
+      jpanel1.add(_manifestField,cc.xywh(4,8,7,1));
+
+      _manifestButton.setIcon(loadImage("images/open16.png"));
+      _manifestButton.setName("manifestButton");
+      jpanel1.add(_manifestButton,cc.xy(12,8));
+
+      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29 });
+      return jpanel1;
+   }
+
+   /**
+    * Initializer
+    */
+   protected void initializePanel()
+   {
+      setLayout(new BorderLayout());
+      add(createPanel(), BorderLayout.CENTER);
+   }
+
+
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/BasicForm.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/BasicForm.jfrm
new file mode 100644
index 0000000000000000000000000000000000000000..1d8a9ad58d747a6d9ecf8e4e613f09fa218010d1
Binary files /dev/null and b/installer/lib/launch4j/src/net/sf/launch4j/form/BasicForm.jfrm differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/ClassPathForm.java b/installer/lib/launch4j/src/net/sf/launch4j/form/ClassPathForm.java
new file mode 100644
index 0000000000000000000000000000000000000000..9f4f52471145cd539073b60106d8d7d0171604e6
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/ClassPathForm.java
@@ -0,0 +1,193 @@
+package net.sf.launch4j.form;
+
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import javax.swing.Box;
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JCheckBox;
+import javax.swing.JLabel;
+import javax.swing.JList;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTextField;
+
+public abstract class ClassPathForm extends JPanel
+{
+   protected final JTextField _classpathField = new JTextField();
+   protected final JLabel _classpathFieldLabel = new JLabel();
+   protected final JLabel _classpathListLabel = new JLabel();
+   protected final JList _classpathList = new JList();
+   protected final JLabel _mainclassLabel = new JLabel();
+   protected final JTextField _mainclassField = new JTextField();
+   protected final JButton _acceptClasspathButton = new JButton();
+   protected final JButton _removeClasspathButton = new JButton();
+   protected final JButton _importClasspathButton = new JButton();
+   protected final JButton _classpathUpButton = new JButton();
+   protected final JButton _classpathDownButton = new JButton();
+   protected final JCheckBox _classpathCheck = new JCheckBox();
+   protected final JButton _newClasspathButton = new JButton();
+
+   /**
+    * Default constructor
+    */
+   public ClassPathForm()
+   {
+      initializePanel();
+   }
+
+   /**
+    * Adds fill components to empty cells in the first row and first column of the grid.
+    * This ensures that the grid spacing will be the same as shown in the designer.
+    * @param cols an array of column indices in the first row where fill components should be added.
+    * @param rows an array of row indices in the first column where fill components should be added.
+    */
+   void addFillComponents( Container panel, int[] cols, int[] rows )
+   {
+      Dimension filler = new Dimension(10,10);
+
+      boolean filled_cell_11 = false;
+      CellConstraints cc = new CellConstraints();
+      if ( cols.length > 0 && rows.length > 0 )
+      {
+         if ( cols[0] == 1 && rows[0] == 1 )
+         {
+            /** add a rigid area  */
+            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
+            filled_cell_11 = true;
+         }
+      }
+
+      for( int index = 0; index < cols.length; index++ )
+      {
+         if ( cols[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
+      }
+
+      for( int index = 0; index < rows.length; index++ )
+      {
+         if ( rows[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
+      }
+
+   }
+
+   /**
+    * Helper method to load an image file from the CLASSPATH
+    * @param imageName the package and name of the file to load relative to the CLASSPATH
+    * @return an ImageIcon instance with the specified image file
+    * @throws IllegalArgumentException if the image resource cannot be loaded.
+    */
+   public ImageIcon loadImage( String imageName )
+   {
+      try
+      {
+         ClassLoader classloader = getClass().getClassLoader();
+         java.net.URL url = classloader.getResource( imageName );
+         if ( url != null )
+         {
+            ImageIcon icon = new ImageIcon( url );
+            return icon;
+         }
+      }
+      catch( Exception e )
+      {
+         e.printStackTrace();
+      }
+      throw new IllegalArgumentException( "Unable to load image: " + imageName );
+   }
+
+   public JPanel createPanel()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:3DLU:NONE,FILL:26PX:NONE,FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _classpathField.setName("classpathField");
+      jpanel1.add(_classpathField,cc.xywh(4,11,7,1));
+
+      _classpathFieldLabel.setIcon(loadImage("images/asterix.gif"));
+      _classpathFieldLabel.setName("classpathFieldLabel");
+      _classpathFieldLabel.setText(Messages.getString("editClassPath"));
+      jpanel1.add(_classpathFieldLabel,cc.xy(2,11));
+
+      _classpathListLabel.setName("classpathListLabel");
+      _classpathListLabel.setText(Messages.getString("classPath"));
+      jpanel1.add(_classpathListLabel,cc.xy(2,6));
+
+      _classpathList.setName("classpathList");
+      JScrollPane jscrollpane1 = new JScrollPane();
+      jscrollpane1.setViewportView(_classpathList);
+      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane1,cc.xywh(4,6,7,4));
+
+      _mainclassLabel.setIcon(loadImage("images/asterix.gif"));
+      _mainclassLabel.setName("mainclassLabel");
+      _mainclassLabel.setText(Messages.getString("mainClass"));
+      jpanel1.add(_mainclassLabel,cc.xy(2,4));
+
+      _mainclassField.setName("mainclassField");
+      jpanel1.add(_mainclassField,cc.xywh(4,4,7,1));
+
+      _acceptClasspathButton.setActionCommand("Add");
+      _acceptClasspathButton.setIcon(loadImage("images/ok16.png"));
+      _acceptClasspathButton.setName("acceptClasspathButton");
+      _acceptClasspathButton.setText(Messages.getString("accept"));
+      jpanel1.add(_acceptClasspathButton,cc.xy(8,13));
+
+      _removeClasspathButton.setActionCommand("Remove");
+      _removeClasspathButton.setIcon(loadImage("images/cancel16.png"));
+      _removeClasspathButton.setName("removeClasspathButton");
+      _removeClasspathButton.setText(Messages.getString("remove"));
+      jpanel1.add(_removeClasspathButton,cc.xy(10,13));
+
+      _importClasspathButton.setIcon(loadImage("images/open16.png"));
+      _importClasspathButton.setName("importClasspathButton");
+      _importClasspathButton.setToolTipText(Messages.getString("importClassPath"));
+      jpanel1.add(_importClasspathButton,cc.xy(12,4));
+
+      _classpathUpButton.setIcon(loadImage("images/up16.png"));
+      _classpathUpButton.setName("classpathUpButton");
+      jpanel1.add(_classpathUpButton,cc.xy(12,6));
+
+      _classpathDownButton.setIcon(loadImage("images/down16.png"));
+      _classpathDownButton.setName("classpathDownButton");
+      jpanel1.add(_classpathDownButton,cc.xy(12,8));
+
+      _classpathCheck.setActionCommand("Custom classpath");
+      _classpathCheck.setName("classpathCheck");
+      _classpathCheck.setText(Messages.getString("customClassPath"));
+      jpanel1.add(_classpathCheck,cc.xy(4,2));
+
+      _newClasspathButton.setActionCommand("New");
+      _newClasspathButton.setIcon(loadImage("images/new16.png"));
+      _newClasspathButton.setName("newClasspathButton");
+      _newClasspathButton.setText(Messages.getString("new"));
+      jpanel1.add(_newClasspathButton,cc.xy(6,13));
+
+      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14 });
+      return jpanel1;
+   }
+
+   /**
+    * Initializer
+    */
+   protected void initializePanel()
+   {
+      setLayout(new BorderLayout());
+      add(createPanel(), BorderLayout.CENTER);
+   }
+
+
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/ClassPathForm.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/ClassPathForm.jfrm
new file mode 100644
index 0000000000000000000000000000000000000000..764329d2b82b130d65c0aae7e782d5fcdebae4f4
Binary files /dev/null and b/installer/lib/launch4j/src/net/sf/launch4j/form/ClassPathForm.jfrm differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/Config.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/Config.jfrm
deleted file mode 100644
index 0be002848db1c866e7c4cae90349264fdc0368dc..0000000000000000000000000000000000000000
Binary files a/installer/lib/launch4j/src/net/sf/launch4j/form/Config.jfrm and /dev/null differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/ConfigForm.java b/installer/lib/launch4j/src/net/sf/launch4j/form/ConfigForm.java
index e41c832871ec1cbb81cd290752a775e66d6b8298..b3c6fffed310fff50d4c21056d926123fd03c130 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/form/ConfigForm.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/ConfigForm.java
@@ -1,534 +1,132 @@
-package net.sf.launch4j.form;
-
-import com.jeta.forms.components.separator.TitledSeparator;
-import com.jgoodies.forms.layout.CellConstraints;
-import com.jgoodies.forms.layout.FormLayout;
-import java.awt.BorderLayout;
-import java.awt.Container;
-import java.awt.Dimension;
-import javax.swing.Box;
-import javax.swing.ButtonGroup;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JCheckBox;
-import javax.swing.JLabel;
-import javax.swing.JList;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextField;
-
-
-public abstract class ConfigForm extends JPanel
-{
-   protected final JTabbedPane _tab = new JTabbedPane();
-   protected final JButton _outfileButton = new JButton();
-   protected final JTextField _outfileField = new JTextField();
-   protected final JTextField _errorTitleField = new JTextField();
-   protected final JCheckBox _customProcNameCheck = new JCheckBox();
-   protected final JCheckBox _stayAliveCheck = new JCheckBox();
-   protected final JTextField _iconField = new JTextField();
-   protected final JTextField _jarField = new JTextField();
-   protected final JButton _jarButton = new JButton();
-   protected final JButton _iconButton = new JButton();
-   protected final JTextField _jarArgsField = new JTextField();
-   protected final JTextField _chdirField = new JTextField();
-   protected final JRadioButton _guiHeaderRadio = new JRadioButton();
-   protected final ButtonGroup _headerButtonGroup = new ButtonGroup();
-   protected final JRadioButton _consoleHeaderRadio = new JRadioButton();
-   protected final JList _objectFileList = new JList();
-   protected final JList _w32apiList = new JList();
-   protected final JTextField _jrePathField = new JTextField();
-   protected final JTextField _jreMinField = new JTextField();
-   protected final JTextField _jreMaxField = new JTextField();
-   protected final JTextArea _jvmArgsTextArea = new JTextArea();
-   protected final JTextField _initialHeapSizeField = new JTextField();
-   protected final JTextField _maxHeapSizeField = new JTextField();
-   protected final JCheckBox _timeoutErrCheck = new JCheckBox();
-   protected final JTextField _splashFileField = new JTextField();
-   protected final JTextField _timeoutField = new JTextField();
-   protected final JButton _splashFileButton = new JButton();
-   protected final JCheckBox _splashCheck = new JCheckBox();
-   protected final JCheckBox _waitForWindowCheck = new JCheckBox();
-   protected final JCheckBox _versionInfoCheck = new JCheckBox();
-   protected final JTextField _fileVersionField = new JTextField();
-   protected final JTextField _productVersionField = new JTextField();
-   protected final JTextField _fileDescriptionField = new JTextField();
-   protected final JTextField _copyrightField = new JTextField();
-   protected final JTextField _txtFileVersionField = new JTextField();
-   protected final JTextField _txtProductVersionField = new JTextField();
-   protected final JTextField _productNameField = new JTextField();
-   protected final JTextField _originalFilenameField = new JTextField();
-   protected final JTextField _internalNameField = new JTextField();
-   protected final JTextField _companyNameField = new JTextField();
-   protected final JTextArea _logTextArea = new JTextArea();
-
-   /**
-    * Default constructor
-    */
-   public ConfigForm()
-   {
-      initializePanel();
-   }
-
-   /**
-    * Adds fill components to empty cells in the first row and first column of the grid.
-    * This ensures that the grid spacing will be the same as shown in the designer.
-    * @param cols an array of column indices in the first row where fill components should be added.
-    * @param rows an array of row indices in the first column where fill components should be added.
-    */
-   void addFillComponents( Container panel, int[] cols, int[] rows )
-   {
-      Dimension filler = new Dimension(10,10);
-
-      boolean filled_cell_11 = false;
-      CellConstraints cc = new CellConstraints();
-      if ( cols.length > 0 && rows.length > 0 )
-      {
-         if ( cols[0] == 1 && rows[0] == 1 )
-         {
-            /** add a rigid area  */
-            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
-            filled_cell_11 = true;
-         }
-      }
-
-      for( int index = 0; index < cols.length; index++ )
-      {
-         if ( cols[index] == 1 && filled_cell_11 )
-         {
-            continue;
-         }
-         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
-      }
-
-      for( int index = 0; index < rows.length; index++ )
-      {
-         if ( rows[index] == 1 && filled_cell_11 )
-         {
-            continue;
-         }
-         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
-      }
-
-   }
-
-   /**
-    * Helper method to load an image file from the CLASSPATH
-    * @param imageName the package and name of the file to load relative to the CLASSPATH
-    * @return an ImageIcon instance with the specified image file
-    * @throws IllegalArgumentException if the image resource cannot be loaded.
-    */
-   public ImageIcon loadImage( String imageName )
-   {
-      try
-      {
-         ClassLoader classloader = getClass().getClassLoader();
-         java.net.URL url = classloader.getResource( imageName );
-         if ( url != null )
-         {
-            ImageIcon icon = new ImageIcon( url );
-            return icon;
-         }
-      }
-      catch( Exception e )
-      {
-         e.printStackTrace();
-      }
-      throw new IllegalArgumentException( "Unable to load image: " + imageName );
-   }
-
-   public JPanel createPanel()
-   {
-      JPanel jpanel1 = new JPanel();
-      FormLayout formlayout1 = new FormLayout("FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE","CENTER:3DLU:NONE,FILL:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:3DLU:NONE");
-      CellConstraints cc = new CellConstraints();
-      jpanel1.setLayout(formlayout1);
-
-      _tab.setName("tab");
-      _tab.addTab("Basic",null,createPanel1());
-      _tab.addTab("Header",null,createPanel2());
-      _tab.addTab("JRE",null,createPanel3());
-      _tab.addTab("Splash",null,createPanel4());
-      _tab.addTab("Version Info",null,createPanel5());
-      jpanel1.add(_tab,cc.xy(2,2));
-
-      _logTextArea.setName("logTextArea");
-      JScrollPane jscrollpane1 = new JScrollPane();
-      jscrollpane1.setViewportView(_logTextArea);
-      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
-      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
-      jpanel1.add(jscrollpane1,cc.xy(2,6));
-
-      TitledSeparator titledseparator1 = new TitledSeparator();
-      titledseparator1.setText("Log");
-      jpanel1.add(titledseparator1,cc.xy(2,4));
-
-      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7 });
-      return jpanel1;
-   }
-
-   public JPanel createPanel1()
-   {
-      JPanel jpanel1 = new JPanel();
-      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(55DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE,FILL:26PX:NONE,FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
-      CellConstraints cc = new CellConstraints();
-      jpanel1.setLayout(formlayout1);
-
-      _outfileButton.setIcon(loadImage("images/open16.png"));
-      _outfileButton.setName("outfileButton");
-      jpanel1.add(_outfileButton,cc.xy(6,2));
-
-      JLabel jlabel1 = new JLabel();
-      jlabel1.setText("<html><b>Output file</b></html>");
-      jpanel1.add(jlabel1,cc.xy(2,2));
-
-      JLabel jlabel2 = new JLabel();
-      jlabel2.setText("Error title");
-      jpanel1.add(jlabel2,cc.xy(2,12));
-
-      _outfileField.setName("outfileField");
-      _outfileField.setToolTipText("Output executable file.");
-      jpanel1.add(_outfileField,cc.xy(4,2));
-
-      _errorTitleField.setName("errorTitleField");
-      _errorTitleField.setToolTipText("Launch4j signals errors using a message box, you can set it's title to the application's name.");
-      jpanel1.add(_errorTitleField,cc.xy(4,12));
-
-      _customProcNameCheck.setActionCommand("Custom process name");
-      _customProcNameCheck.setName("customProcNameCheck");
-      _customProcNameCheck.setText("Custom process name");
-      jpanel1.add(_customProcNameCheck,cc.xy(4,14));
-
-      _stayAliveCheck.setActionCommand("Stay alive after launching a GUI application");
-      _stayAliveCheck.setName("stayAliveCheck");
-      _stayAliveCheck.setText("Stay alive after launching a GUI application");
-      jpanel1.add(_stayAliveCheck,cc.xy(4,16));
-
-      JLabel jlabel3 = new JLabel();
-      jlabel3.setText("Icon");
-      jpanel1.add(jlabel3,cc.xy(2,6));
-
-      _iconField.setName("iconField");
-      _iconField.setToolTipText("Application icon.");
-      jpanel1.add(_iconField,cc.xy(4,6));
-
-      _jarField.setName("jarField");
-      _jarField.setToolTipText("Application jar.");
-      jpanel1.add(_jarField,cc.xy(4,4));
-
-      JLabel jlabel4 = new JLabel();
-      jlabel4.setText("<html><b>Jar</b></html>");
-      jpanel1.add(jlabel4,cc.xy(2,4));
-
-      _jarButton.setIcon(loadImage("images/open16.png"));
-      _jarButton.setName("jarButton");
-      jpanel1.add(_jarButton,cc.xy(6,4));
-
-      _iconButton.setIcon(loadImage("images/open16.png"));
-      _iconButton.setName("iconButton");
-      jpanel1.add(_iconButton,cc.xy(6,6));
-
-      JLabel jlabel5 = new JLabel();
-      jlabel5.setText("Jar arguments");
-      jpanel1.add(jlabel5,cc.xy(2,10));
-
-      _jarArgsField.setName("jarArgsField");
-      _jarArgsField.setToolTipText("Constant command line arguments passed to the application.");
-      jpanel1.add(_jarArgsField,cc.xy(4,10));
-
-      JLabel jlabel6 = new JLabel();
-      jlabel6.setText("Options");
-      jpanel1.add(jlabel6,cc.xy(2,14));
-
-      JLabel jlabel7 = new JLabel();
-      jlabel7.setText("Change dir");
-      jpanel1.add(jlabel7,cc.xy(2,8));
-
-      _chdirField.setName("chdirField");
-      _chdirField.setToolTipText("Change current directory to a location relative to the executable. Empty field has no effect, . - changes directory to the exe location.");
-      jpanel1.add(_chdirField,cc.xy(4,8));
-
-      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 });
-      return jpanel1;
-   }
-
-   public JPanel createPanel2()
-   {
-      JPanel jpanel1 = new JPanel();
-      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(55DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:7DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:DEFAULT:GROW(0.2),CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:9DLU:NONE");
-      CellConstraints cc = new CellConstraints();
-      jpanel1.setLayout(formlayout1);
-
-      JLabel jlabel1 = new JLabel();
-      jlabel1.setText("Header type");
-      jpanel1.add(jlabel1,cc.xy(2,2));
-
-      _guiHeaderRadio.setActionCommand("GUI");
-      _guiHeaderRadio.setName("guiHeaderRadio");
-      _guiHeaderRadio.setText("GUI");
-      _headerButtonGroup.add(_guiHeaderRadio);
-      jpanel1.add(_guiHeaderRadio,cc.xy(4,2));
-
-      _consoleHeaderRadio.setActionCommand("Console");
-      _consoleHeaderRadio.setName("consoleHeaderRadio");
-      _consoleHeaderRadio.setText("Console");
-      _headerButtonGroup.add(_consoleHeaderRadio);
-      jpanel1.add(_consoleHeaderRadio,cc.xy(6,2));
-
-      JLabel jlabel2 = new JLabel();
-      jlabel2.setText("Object files");
-      jpanel1.add(jlabel2,new CellConstraints(2,4,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
-
-      _objectFileList.setName("objectFileList");
-      _objectFileList.setToolTipText("Compiled header files.");
-      JScrollPane jscrollpane1 = new JScrollPane();
-      jscrollpane1.setViewportView(_objectFileList);
-      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
-      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
-      jpanel1.add(jscrollpane1,cc.xywh(4,4,4,1));
-
-      JLabel jlabel3 = new JLabel();
-      jlabel3.setText("w32api");
-      jpanel1.add(jlabel3,new CellConstraints(2,6,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
-
-      _w32apiList.setName("w32apiList");
-      _w32apiList.setToolTipText("DLLs required by header.");
-      JScrollPane jscrollpane2 = new JScrollPane();
-      jscrollpane2.setViewportView(_w32apiList);
-      jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
-      jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
-      jpanel1.add(jscrollpane2,cc.xywh(4,6,4,1));
-
-      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8 },new int[]{ 1,2,3,4,5,6,7 });
-      return jpanel1;
-   }
-
-   public JPanel createPanel3()
-   {
-      JPanel jpanel1 = new JPanel();
-      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(55DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:60DLU:NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:9DLU:NONE");
-      CellConstraints cc = new CellConstraints();
-      jpanel1.setLayout(formlayout1);
-
-      JLabel jlabel1 = new JLabel();
-      jlabel1.setText("<html><b>Emb. JRE path</b></html>");
-      jpanel1.add(jlabel1,cc.xy(2,2));
-
-      JLabel jlabel2 = new JLabel();
-      jlabel2.setText("<html><b>Min JRE version</b></html>");
-      jpanel1.add(jlabel2,cc.xy(2,4));
-
-      JLabel jlabel3 = new JLabel();
-      jlabel3.setText("Max JRE version");
-      jpanel1.add(jlabel3,cc.xy(2,6));
-
-      JLabel jlabel4 = new JLabel();
-      jlabel4.setText("JVM arguments");
-      jpanel1.add(jlabel4,new CellConstraints(2,12,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
-
-      _jrePathField.setName("jrePathField");
-      _jrePathField.setToolTipText("Embedded JRE path relative to the executable.");
-      jpanel1.add(_jrePathField,cc.xywh(4,2,4,1));
-
-      _jreMinField.setName("jreMinField");
-      jpanel1.add(_jreMinField,cc.xy(4,4));
-
-      _jreMaxField.setName("jreMaxField");
-      jpanel1.add(_jreMaxField,cc.xy(4,6));
-
-      _jvmArgsTextArea.setName("jvmArgsTextArea");
-      _jvmArgsTextArea.setToolTipText("Accepts everything you would normally pass to java/javaw launcher: assertion options, system properties and X options.");
-      JScrollPane jscrollpane1 = new JScrollPane();
-      jscrollpane1.setViewportView(_jvmArgsTextArea);
-      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
-      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
-      jpanel1.add(jscrollpane1,cc.xywh(4,12,4,1));
-
-      JLabel jlabel5 = new JLabel();
-      jlabel5.setText("Initial heap size");
-      jpanel1.add(jlabel5,cc.xy(2,8));
-
-      JLabel jlabel6 = new JLabel();
-      jlabel6.setText("Max heap size");
-      jpanel1.add(jlabel6,cc.xy(2,10));
-
-      JLabel jlabel7 = new JLabel();
-      jlabel7.setText("MB");
-      jpanel1.add(jlabel7,cc.xy(6,8));
-
-      JLabel jlabel8 = new JLabel();
-      jlabel8.setText("MB");
-      jpanel1.add(jlabel8,cc.xy(6,10));
-
-      _initialHeapSizeField.setName("initialHeapSizeField");
-      jpanel1.add(_initialHeapSizeField,cc.xy(4,8));
-
-      _maxHeapSizeField.setName("maxHeapSizeField");
-      jpanel1.add(_maxHeapSizeField,cc.xy(4,10));
-
-      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13 });
-      return jpanel1;
-   }
-
-   public JPanel createPanel4()
-   {
-      JPanel jpanel1 = new JPanel();
-      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(55DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:60DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE,FILL:26PX:NONE,FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
-      CellConstraints cc = new CellConstraints();
-      jpanel1.setLayout(formlayout1);
-
-      JLabel jlabel1 = new JLabel();
-      jlabel1.setText("Splash file");
-      jpanel1.add(jlabel1,cc.xy(2,4));
-
-      JLabel jlabel2 = new JLabel();
-      jlabel2.setText("Wait for window");
-      jpanel1.add(jlabel2,cc.xy(2,6));
-
-      JLabel jlabel3 = new JLabel();
-      jlabel3.setText("Timeout [s]");
-      jpanel1.add(jlabel3,cc.xy(2,8));
-
-      _timeoutErrCheck.setActionCommand("Signal error on timeout");
-      _timeoutErrCheck.setName("timeoutErrCheck");
-      _timeoutErrCheck.setText("Signal error on timeout");
-      _timeoutErrCheck.setToolTipText("True signals an error on splash timeout, false closes the splash screen quietly.");
-      jpanel1.add(_timeoutErrCheck,cc.xywh(4,10,2,1));
-
-      _splashFileField.setName("splashFileField");
-      _splashFileField.setToolTipText("Splash screen file in BMP format.");
-      jpanel1.add(_splashFileField,cc.xywh(4,4,2,1));
-
-      _timeoutField.setName("timeoutField");
-      _timeoutField.setToolTipText("Number of seconds after which the splash screen must close. Splash timeout may cause an error depending on splashTimeoutErr property.");
-      jpanel1.add(_timeoutField,cc.xy(4,8));
-
-      _splashFileButton.setIcon(loadImage("images/open16.png"));
-      _splashFileButton.setName("splashFileButton");
-      jpanel1.add(_splashFileButton,cc.xy(7,4));
-
-      _splashCheck.setActionCommand("Enable splash screen");
-      _splashCheck.setName("splashCheck");
-      _splashCheck.setText("Enable splash screen");
-      jpanel1.add(_splashCheck,cc.xywh(4,2,2,1));
-
-      _waitForWindowCheck.setActionCommand("Close splash screen when an application window appears");
-      _waitForWindowCheck.setName("waitForWindowCheck");
-      _waitForWindowCheck.setText("Close splash screen when an application window appears");
-      jpanel1.add(_waitForWindowCheck,cc.xywh(4,6,2,1));
-
-      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 });
-      return jpanel1;
-   }
-
-   public JPanel createPanel5()
-   {
-      JPanel jpanel1 = new JPanel();
-      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(55DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:60DLU:NONE,FILL:7DLU:NONE,RIGHT:DEFAULT:NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
-      CellConstraints cc = new CellConstraints();
-      jpanel1.setLayout(formlayout1);
-
-      _versionInfoCheck.setActionCommand("Add version information");
-      _versionInfoCheck.setName("versionInfoCheck");
-      _versionInfoCheck.setText("Add version information");
-      jpanel1.add(_versionInfoCheck,cc.xywh(4,2,5,1));
-
-      JLabel jlabel1 = new JLabel();
-      jlabel1.setText("File version");
-      jpanel1.add(jlabel1,cc.xy(2,4));
-
-      _fileVersionField.setName("fileVersionField");
-      _fileVersionField.setToolTipText("Version number 'x.x.x.x'");
-      jpanel1.add(_fileVersionField,cc.xy(4,4));
-
-      TitledSeparator titledseparator1 = new TitledSeparator();
-      titledseparator1.setText("Additional information");
-      jpanel1.add(titledseparator1,cc.xywh(2,10,7,1));
-
-      JLabel jlabel2 = new JLabel();
-      jlabel2.setText("Product version");
-      jpanel1.add(jlabel2,cc.xy(2,12));
-
-      _productVersionField.setName("productVersionField");
-      _productVersionField.setToolTipText("Version number 'x.x.x.x'");
-      jpanel1.add(_productVersionField,cc.xy(4,12));
-
-      JLabel jlabel3 = new JLabel();
-      jlabel3.setText("File description");
-      jpanel1.add(jlabel3,cc.xy(2,6));
-
-      _fileDescriptionField.setName("fileDescriptionField");
-      _fileDescriptionField.setToolTipText("File description presented to the user.");
-      jpanel1.add(_fileDescriptionField,cc.xywh(4,6,5,1));
-
-      JLabel jlabel4 = new JLabel();
-      jlabel4.setText("Copyright");
-      jpanel1.add(jlabel4,cc.xy(2,8));
-
-      _copyrightField.setName("copyrightField");
-      jpanel1.add(_copyrightField,cc.xywh(4,8,5,1));
-
-      JLabel jlabel5 = new JLabel();
-      jlabel5.setText("Free form");
-      jpanel1.add(jlabel5,cc.xy(6,4));
-
-      _txtFileVersionField.setName("txtFileVersionField");
-      _txtFileVersionField.setToolTipText("Free form file version, for example '1.20.RC1'.");
-      jpanel1.add(_txtFileVersionField,cc.xy(8,4));
-
-      JLabel jlabel6 = new JLabel();
-      jlabel6.setText("Free form");
-      jpanel1.add(jlabel6,cc.xy(6,12));
-
-      _txtProductVersionField.setName("txtProductVersionField");
-      _txtProductVersionField.setToolTipText("Free form product version, for example '1.20.RC1'.");
-      jpanel1.add(_txtProductVersionField,cc.xy(8,12));
-
-      JLabel jlabel7 = new JLabel();
-      jlabel7.setText("Product name");
-      jpanel1.add(jlabel7,cc.xy(2,14));
-
-      _productNameField.setName("productNameField");
-      jpanel1.add(_productNameField,cc.xywh(4,14,5,1));
-
-      JLabel jlabel8 = new JLabel();
-      jlabel8.setText("Original filename");
-      jpanel1.add(jlabel8,cc.xy(2,20));
-
-      _originalFilenameField.setName("originalFilenameField");
-      _originalFilenameField.setToolTipText("Original name of the file without the path. Allows to determine whether a file has been renamed by a user.");
-      jpanel1.add(_originalFilenameField,cc.xywh(4,20,5,1));
-
-      JLabel jlabel9 = new JLabel();
-      jlabel9.setText("Internal name");
-      jpanel1.add(jlabel9,cc.xy(2,18));
-
-      _internalNameField.setName("internalNameField");
-      _internalNameField.setToolTipText("Internal name without extension, original filename or module name for example.");
-      jpanel1.add(_internalNameField,cc.xywh(4,18,5,1));
-
-      JLabel jlabel10 = new JLabel();
-      jlabel10.setText("Company name");
-      jpanel1.add(jlabel10,cc.xy(2,16));
-
-      _companyNameField.setName("companyNameField");
-      jpanel1.add(_companyNameField,cc.xywh(4,16,5,1));
-
-      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21 });
-      return jpanel1;
-   }
-
-   /**
-    * Initializer
-    */
-   protected void initializePanel()
-   {
-      setLayout(new BorderLayout());
-      add(createPanel(), BorderLayout.CENTER);
-   }
-
-
-}
+package net.sf.launch4j.form;
+
+import com.jeta.forms.components.separator.TitledSeparator;
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import javax.swing.Box;
+import javax.swing.ImageIcon;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTabbedPane;
+import javax.swing.JTextArea;
+
+public abstract class ConfigForm extends JPanel
+{
+   protected final JTextArea _logTextArea = new JTextArea();
+   protected final TitledSeparator _logSeparator = new TitledSeparator();
+   protected final JTabbedPane _tab = new JTabbedPane();
+
+   /**
+    * Default constructor
+    */
+   public ConfigForm()
+   {
+      initializePanel();
+   }
+
+   /**
+    * Adds fill components to empty cells in the first row and first column of the grid.
+    * This ensures that the grid spacing will be the same as shown in the designer.
+    * @param cols an array of column indices in the first row where fill components should be added.
+    * @param rows an array of row indices in the first column where fill components should be added.
+    */
+   void addFillComponents( Container panel, int[] cols, int[] rows )
+   {
+      Dimension filler = new Dimension(10,10);
+
+      boolean filled_cell_11 = false;
+      CellConstraints cc = new CellConstraints();
+      if ( cols.length > 0 && rows.length > 0 )
+      {
+         if ( cols[0] == 1 && rows[0] == 1 )
+         {
+            /** add a rigid area  */
+            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
+            filled_cell_11 = true;
+         }
+      }
+
+      for( int index = 0; index < cols.length; index++ )
+      {
+         if ( cols[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
+      }
+
+      for( int index = 0; index < rows.length; index++ )
+      {
+         if ( rows[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
+      }
+
+   }
+
+   /**
+    * Helper method to load an image file from the CLASSPATH
+    * @param imageName the package and name of the file to load relative to the CLASSPATH
+    * @return an ImageIcon instance with the specified image file
+    * @throws IllegalArgumentException if the image resource cannot be loaded.
+    */
+   public ImageIcon loadImage( String imageName )
+   {
+      try
+      {
+         ClassLoader classloader = getClass().getClassLoader();
+         java.net.URL url = classloader.getResource( imageName );
+         if ( url != null )
+         {
+            ImageIcon icon = new ImageIcon( url );
+            return icon;
+         }
+      }
+      catch( Exception e )
+      {
+         e.printStackTrace();
+      }
+      throw new IllegalArgumentException( "Unable to load image: " + imageName );
+   }
+
+   public JPanel createPanel()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE","CENTER:3DLU:NONE,FILL:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:9DLU:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _logTextArea.setName("logTextArea");
+      JScrollPane jscrollpane1 = new JScrollPane();
+      jscrollpane1.setViewportView(_logTextArea);
+      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane1,cc.xy(2,6));
+
+      _logSeparator.setName("logSeparator");
+      _logSeparator.setText(Messages.getString("log"));
+      jpanel1.add(_logSeparator,cc.xy(2,4));
+
+      _tab.setName("tab");
+      jpanel1.add(_tab,cc.xywh(1,2,3,1));
+
+      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,3,4,5,6,7 });
+      return jpanel1;
+   }
+
+   /**
+    * Initializer
+    */
+   protected void initializePanel()
+   {
+      setLayout(new BorderLayout());
+      add(createPanel(), BorderLayout.CENTER);
+   }
+
+
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/ConfigForm.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/ConfigForm.jfrm
new file mode 100644
index 0000000000000000000000000000000000000000..2c6721e1409e994da84dc48ce1f15c201bb2b272
Binary files /dev/null and b/installer/lib/launch4j/src/net/sf/launch4j/form/ConfigForm.jfrm differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/EnvironmentVarsForm.java b/installer/lib/launch4j/src/net/sf/launch4j/form/EnvironmentVarsForm.java
new file mode 100644
index 0000000000000000000000000000000000000000..f2b79e6e791ac4ac60ce5484ef273e3cbb47cdf8
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/EnvironmentVarsForm.java
@@ -0,0 +1,127 @@
+package net.sf.launch4j.form;
+
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import javax.swing.Box;
+import javax.swing.ImageIcon;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+
+public abstract class EnvironmentVarsForm extends JPanel
+{
+   protected final JTextArea _envVarsTextArea = new JTextArea();
+   protected final JLabel _envVarsLabel = new JLabel();
+
+   /**
+    * Default constructor
+    */
+   public EnvironmentVarsForm()
+   {
+      initializePanel();
+   }
+
+   /**
+    * Adds fill components to empty cells in the first row and first column of the grid.
+    * This ensures that the grid spacing will be the same as shown in the designer.
+    * @param cols an array of column indices in the first row where fill components should be added.
+    * @param rows an array of row indices in the first column where fill components should be added.
+    */
+   void addFillComponents( Container panel, int[] cols, int[] rows )
+   {
+      Dimension filler = new Dimension(10,10);
+
+      boolean filled_cell_11 = false;
+      CellConstraints cc = new CellConstraints();
+      if ( cols.length > 0 && rows.length > 0 )
+      {
+         if ( cols[0] == 1 && rows[0] == 1 )
+         {
+            /** add a rigid area  */
+            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
+            filled_cell_11 = true;
+         }
+      }
+
+      for( int index = 0; index < cols.length; index++ )
+      {
+         if ( cols[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
+      }
+
+      for( int index = 0; index < rows.length; index++ )
+      {
+         if ( rows[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
+      }
+
+   }
+
+   /**
+    * Helper method to load an image file from the CLASSPATH
+    * @param imageName the package and name of the file to load relative to the CLASSPATH
+    * @return an ImageIcon instance with the specified image file
+    * @throws IllegalArgumentException if the image resource cannot be loaded.
+    */
+   public ImageIcon loadImage( String imageName )
+   {
+      try
+      {
+         ClassLoader classloader = getClass().getClassLoader();
+         java.net.URL url = classloader.getResource( imageName );
+         if ( url != null )
+         {
+            ImageIcon icon = new ImageIcon( url );
+            return icon;
+         }
+      }
+      catch( Exception e )
+      {
+         e.printStackTrace();
+      }
+      throw new IllegalArgumentException( "Unable to load image: " + imageName );
+   }
+
+   public JPanel createPanel()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE","CENTER:9DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:9DLU:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _envVarsTextArea.setName("envVarsTextArea");
+      JScrollPane jscrollpane1 = new JScrollPane();
+      jscrollpane1.setViewportView(_envVarsTextArea);
+      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane1,cc.xy(4,2));
+
+      _envVarsLabel.setName("envVarsLabel");
+      _envVarsLabel.setText(Messages.getString("setVariables"));
+      jpanel1.add(_envVarsLabel,new CellConstraints(2,2,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
+
+      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3 });
+      return jpanel1;
+   }
+
+   /**
+    * Initializer
+    */
+   protected void initializePanel()
+   {
+      setLayout(new BorderLayout());
+      add(createPanel(), BorderLayout.CENTER);
+   }
+
+
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/EnvironmentVarsForm.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/EnvironmentVarsForm.jfrm
new file mode 100644
index 0000000000000000000000000000000000000000..6e89ec4d19a42bedb270bc6690fa0facfe470e99
Binary files /dev/null and b/installer/lib/launch4j/src/net/sf/launch4j/form/EnvironmentVarsForm.jfrm differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/HeaderForm.java b/installer/lib/launch4j/src/net/sf/launch4j/form/HeaderForm.java
new file mode 100644
index 0000000000000000000000000000000000000000..91c40024ab93953e3c8f6cb5ceb365c683bc2614
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/HeaderForm.java
@@ -0,0 +1,171 @@
+package net.sf.launch4j.form;
+
+import com.jeta.forms.components.separator.TitledSeparator;
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import javax.swing.Box;
+import javax.swing.ButtonGroup;
+import javax.swing.ImageIcon;
+import javax.swing.JCheckBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+
+public abstract class HeaderForm extends JPanel
+{
+   protected final JLabel _headerTypeLabel = new JLabel();
+   protected final JRadioButton _guiHeaderRadio = new JRadioButton();
+   protected final ButtonGroup _headerButtonGroup = new ButtonGroup();
+   protected final JRadioButton _consoleHeaderRadio = new JRadioButton();
+   protected final JTextArea _headerObjectsTextArea = new JTextArea();
+   protected final JTextArea _libsTextArea = new JTextArea();
+   protected final JCheckBox _headerObjectsCheck = new JCheckBox();
+   protected final JCheckBox _libsCheck = new JCheckBox();
+   protected final TitledSeparator _linkerOptionsSeparator = new TitledSeparator();
+
+   /**
+    * Default constructor
+    */
+   public HeaderForm()
+   {
+      initializePanel();
+   }
+
+   /**
+    * Adds fill components to empty cells in the first row and first column of the grid.
+    * This ensures that the grid spacing will be the same as shown in the designer.
+    * @param cols an array of column indices in the first row where fill components should be added.
+    * @param rows an array of row indices in the first column where fill components should be added.
+    */
+   void addFillComponents( Container panel, int[] cols, int[] rows )
+   {
+      Dimension filler = new Dimension(10,10);
+
+      boolean filled_cell_11 = false;
+      CellConstraints cc = new CellConstraints();
+      if ( cols.length > 0 && rows.length > 0 )
+      {
+         if ( cols[0] == 1 && rows[0] == 1 )
+         {
+            /** add a rigid area  */
+            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
+            filled_cell_11 = true;
+         }
+      }
+
+      for( int index = 0; index < cols.length; index++ )
+      {
+         if ( cols[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
+      }
+
+      for( int index = 0; index < rows.length; index++ )
+      {
+         if ( rows[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
+      }
+
+   }
+
+   /**
+    * Helper method to load an image file from the CLASSPATH
+    * @param imageName the package and name of the file to load relative to the CLASSPATH
+    * @return an ImageIcon instance with the specified image file
+    * @throws IllegalArgumentException if the image resource cannot be loaded.
+    */
+   public ImageIcon loadImage( String imageName )
+   {
+      try
+      {
+         ClassLoader classloader = getClass().getClassLoader();
+         java.net.URL url = classloader.getResource( imageName );
+         if ( url != null )
+         {
+            ImageIcon icon = new ImageIcon( url );
+            return icon;
+         }
+      }
+      catch( Exception e )
+      {
+         e.printStackTrace();
+      }
+      throw new IllegalArgumentException( "Unable to load image: " + imageName );
+   }
+
+   public JPanel createPanel()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:7DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:DEFAULT:GROW(0.2),CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:9DLU:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _headerTypeLabel.setName("headerTypeLabel");
+      _headerTypeLabel.setText(Messages.getString("headerType"));
+      jpanel1.add(_headerTypeLabel,cc.xy(2,2));
+
+      _guiHeaderRadio.setActionCommand("GUI");
+      _guiHeaderRadio.setName("guiHeaderRadio");
+      _guiHeaderRadio.setText(Messages.getString("gui"));
+      _headerButtonGroup.add(_guiHeaderRadio);
+      jpanel1.add(_guiHeaderRadio,cc.xy(4,2));
+
+      _consoleHeaderRadio.setActionCommand("Console");
+      _consoleHeaderRadio.setName("consoleHeaderRadio");
+      _consoleHeaderRadio.setText(Messages.getString("console"));
+      _headerButtonGroup.add(_consoleHeaderRadio);
+      jpanel1.add(_consoleHeaderRadio,cc.xy(6,2));
+
+      _headerObjectsTextArea.setName("headerObjectsTextArea");
+      JScrollPane jscrollpane1 = new JScrollPane();
+      jscrollpane1.setViewportView(_headerObjectsTextArea);
+      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane1,cc.xywh(4,6,4,1));
+
+      _libsTextArea.setName("libsTextArea");
+      JScrollPane jscrollpane2 = new JScrollPane();
+      jscrollpane2.setViewportView(_libsTextArea);
+      jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane2,cc.xywh(4,8,4,1));
+
+      _headerObjectsCheck.setActionCommand("Object files");
+      _headerObjectsCheck.setName("headerObjectsCheck");
+      _headerObjectsCheck.setText(Messages.getString("objectFiles"));
+      jpanel1.add(_headerObjectsCheck,new CellConstraints(2,6,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
+
+      _libsCheck.setActionCommand("w32api");
+      _libsCheck.setName("libsCheck");
+      _libsCheck.setText(Messages.getString("libs"));
+      jpanel1.add(_libsCheck,new CellConstraints(2,8,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
+
+      _linkerOptionsSeparator.setName("linkerOptionsSeparator");
+      _linkerOptionsSeparator.setText(Messages.getString("linkerOptions"));
+      jpanel1.add(_linkerOptionsSeparator,cc.xywh(2,4,6,1));
+
+      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8 },new int[]{ 1,2,3,4,5,6,7,8,9 });
+      return jpanel1;
+   }
+
+   /**
+    * Initializer
+    */
+   protected void initializePanel()
+   {
+      setLayout(new BorderLayout());
+      add(createPanel(), BorderLayout.CENTER);
+   }
+
+
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/HeaderForm.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/HeaderForm.jfrm
new file mode 100644
index 0000000000000000000000000000000000000000..a7cbed1445d611a5a463bc1172fbe4832e2550f7
Binary files /dev/null and b/installer/lib/launch4j/src/net/sf/launch4j/form/HeaderForm.jfrm differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/JreForm.java b/installer/lib/launch4j/src/net/sf/launch4j/form/JreForm.java
new file mode 100644
index 0000000000000000000000000000000000000000..ed16c50b6a47e0b181af828b51e7fc4d851ec956
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/JreForm.java
@@ -0,0 +1,266 @@
+package net.sf.launch4j.form;
+
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import javax.swing.Box;
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JComboBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+import javax.swing.JTextField;
+
+public abstract class JreForm extends JPanel
+{
+   protected final JLabel _jrePathLabel = new JLabel();
+   protected final JLabel _jreMinLabel = new JLabel();
+   protected final JLabel _jreMaxLabel = new JLabel();
+   protected final JLabel _jvmOptionsTextLabel = new JLabel();
+   protected final JTextField _jrePathField = new JTextField();
+   protected final JTextField _jreMinField = new JTextField();
+   protected final JTextField _jreMaxField = new JTextField();
+   protected final JTextArea _jvmOptionsTextArea = new JTextArea();
+   protected final JLabel _initialHeapSizeLabel = new JLabel();
+   protected final JLabel _maxHeapSizeLabel = new JLabel();
+   protected final JTextField _initialHeapSizeField = new JTextField();
+   protected final JTextField _maxHeapSizeField = new JTextField();
+   protected final JComboBox _varCombo = new JComboBox();
+   protected final JButton _propertyButton = new JButton();
+   protected final JButton _optionButton = new JButton();
+   protected final JButton _envPropertyButton = new JButton();
+   protected final JButton _envOptionButton = new JButton();
+   protected final JTextField _envVarField = new JTextField();
+   protected final JTextField _maxHeapPercentField = new JTextField();
+   protected final JTextField _initialHeapPercentField = new JTextField();
+   protected final JComboBox _jdkPreferenceCombo = new JComboBox();
+
+   /**
+    * Default constructor
+    */
+   public JreForm()
+   {
+      initializePanel();
+   }
+
+   /**
+    * Adds fill components to empty cells in the first row and first column of the grid.
+    * This ensures that the grid spacing will be the same as shown in the designer.
+    * @param cols an array of column indices in the first row where fill components should be added.
+    * @param rows an array of row indices in the first column where fill components should be added.
+    */
+   void addFillComponents( Container panel, int[] cols, int[] rows )
+   {
+      Dimension filler = new Dimension(10,10);
+
+      boolean filled_cell_11 = false;
+      CellConstraints cc = new CellConstraints();
+      if ( cols.length > 0 && rows.length > 0 )
+      {
+         if ( cols[0] == 1 && rows[0] == 1 )
+         {
+            /** add a rigid area  */
+            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
+            filled_cell_11 = true;
+         }
+      }
+
+      for( int index = 0; index < cols.length; index++ )
+      {
+         if ( cols[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
+      }
+
+      for( int index = 0; index < rows.length; index++ )
+      {
+         if ( rows[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
+      }
+
+   }
+
+   /**
+    * Helper method to load an image file from the CLASSPATH
+    * @param imageName the package and name of the file to load relative to the CLASSPATH
+    * @return an ImageIcon instance with the specified image file
+    * @throws IllegalArgumentException if the image resource cannot be loaded.
+    */
+   public ImageIcon loadImage( String imageName )
+   {
+      try
+      {
+         ClassLoader classloader = getClass().getClassLoader();
+         java.net.URL url = classloader.getResource( imageName );
+         if ( url != null )
+         {
+            ImageIcon icon = new ImageIcon( url );
+            return icon;
+         }
+      }
+      catch( Exception e )
+      {
+         e.printStackTrace();
+      }
+      throw new IllegalArgumentException( "Unable to load image: " + imageName );
+   }
+
+   public JPanel createPanel()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:60DLU:NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:7DLU:NONE,FILL:60DLU:NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:50DLU:GROW(1.0),CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _jrePathLabel.setName("jrePathLabel");
+      _jrePathLabel.setText(Messages.getString("jrePath"));
+      jpanel1.add(_jrePathLabel,cc.xy(2,2));
+
+      _jreMinLabel.setName("jreMinLabel");
+      _jreMinLabel.setText(Messages.getString("jreMin"));
+      jpanel1.add(_jreMinLabel,cc.xy(2,4));
+
+      _jreMaxLabel.setName("jreMaxLabel");
+      _jreMaxLabel.setText(Messages.getString("jreMax"));
+      jpanel1.add(_jreMaxLabel,cc.xy(2,6));
+
+      _jvmOptionsTextLabel.setName("jvmOptionsTextLabel");
+      _jvmOptionsTextLabel.setText(Messages.getString("jvmOptions"));
+      jpanel1.add(_jvmOptionsTextLabel,new CellConstraints(2,12,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
+
+      _jrePathField.setName("jrePathField");
+      _jrePathField.setToolTipText(Messages.getString("jrePathTip"));
+      jpanel1.add(_jrePathField,cc.xywh(4,2,7,1));
+
+      _jreMinField.setName("jreMinField");
+      jpanel1.add(_jreMinField,cc.xy(4,4));
+
+      _jreMaxField.setName("jreMaxField");
+      jpanel1.add(_jreMaxField,cc.xy(4,6));
+
+      _jvmOptionsTextArea.setName("jvmOptionsTextArea");
+      _jvmOptionsTextArea.setToolTipText(Messages.getString("jvmOptionsTip"));
+      JScrollPane jscrollpane1 = new JScrollPane();
+      jscrollpane1.setViewportView(_jvmOptionsTextArea);
+      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane1,cc.xywh(4,12,7,1));
+
+      _initialHeapSizeLabel.setName("initialHeapSizeLabel");
+      _initialHeapSizeLabel.setText(Messages.getString("initialHeapSize"));
+      jpanel1.add(_initialHeapSizeLabel,cc.xy(2,8));
+
+      _maxHeapSizeLabel.setName("maxHeapSizeLabel");
+      _maxHeapSizeLabel.setText(Messages.getString("maxHeapSize"));
+      jpanel1.add(_maxHeapSizeLabel,cc.xy(2,10));
+
+      JLabel jlabel1 = new JLabel();
+      jlabel1.setText("MB");
+      jpanel1.add(jlabel1,cc.xy(6,8));
+
+      JLabel jlabel2 = new JLabel();
+      jlabel2.setText("MB");
+      jpanel1.add(jlabel2,cc.xy(6,10));
+
+      _initialHeapSizeField.setName("initialHeapSizeField");
+      jpanel1.add(_initialHeapSizeField,cc.xy(4,8));
+
+      _maxHeapSizeField.setName("maxHeapSizeField");
+      jpanel1.add(_maxHeapSizeField,cc.xy(4,10));
+
+      jpanel1.add(createPanel1(),cc.xywh(2,14,9,1));
+      _maxHeapPercentField.setName("maxHeapPercentField");
+      jpanel1.add(_maxHeapPercentField,cc.xy(8,10));
+
+      _initialHeapPercentField.setName("initialHeapPercentField");
+      jpanel1.add(_initialHeapPercentField,cc.xy(8,8));
+
+      _jdkPreferenceCombo.setName("jdkPreferenceCombo");
+      jpanel1.add(_jdkPreferenceCombo,cc.xywh(8,4,3,1));
+
+      JLabel jlabel3 = new JLabel();
+      jlabel3.setText(Messages.getString("freeMemory"));
+      jpanel1.add(jlabel3,cc.xy(10,8));
+
+      JLabel jlabel4 = new JLabel();
+      jlabel4.setText(Messages.getString("freeMemory"));
+      jpanel1.add(jlabel4,cc.xy(10,10));
+
+      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10,11 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 });
+      return jpanel1;
+   }
+
+   public JPanel createPanel1()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE,FILL:DEFAULT:NONE,FILL:3DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _varCombo.setName("varCombo");
+      jpanel1.add(_varCombo,cc.xy(3,1));
+
+      _propertyButton.setActionCommand("Add");
+      _propertyButton.setIcon(loadImage("images/edit_add16.png"));
+      _propertyButton.setName("propertyButton");
+      _propertyButton.setText(Messages.getString("property"));
+      _propertyButton.setToolTipText(Messages.getString("propertyTip"));
+      jpanel1.add(_propertyButton,cc.xy(5,1));
+
+      _optionButton.setActionCommand("Add");
+      _optionButton.setIcon(loadImage("images/edit_add16.png"));
+      _optionButton.setName("optionButton");
+      _optionButton.setText(Messages.getString("option"));
+      _optionButton.setToolTipText(Messages.getString("optionTip"));
+      jpanel1.add(_optionButton,cc.xy(7,1));
+
+      _envPropertyButton.setActionCommand("Add");
+      _envPropertyButton.setIcon(loadImage("images/edit_add16.png"));
+      _envPropertyButton.setName("envPropertyButton");
+      _envPropertyButton.setText(Messages.getString("property"));
+      _envPropertyButton.setToolTipText(Messages.getString("propertyTip"));
+      jpanel1.add(_envPropertyButton,cc.xy(5,3));
+
+      JLabel jlabel1 = new JLabel();
+      jlabel1.setText(Messages.getString("varsAndRegistry"));
+      jpanel1.add(jlabel1,cc.xy(1,1));
+
+      JLabel jlabel2 = new JLabel();
+      jlabel2.setIcon(loadImage("images/asterix.gif"));
+      jlabel2.setText(Messages.getString("envVar"));
+      jpanel1.add(jlabel2,cc.xy(1,3));
+
+      _envOptionButton.setActionCommand("Add");
+      _envOptionButton.setIcon(loadImage("images/edit_add16.png"));
+      _envOptionButton.setName("envOptionButton");
+      _envOptionButton.setText(Messages.getString("option"));
+      _envOptionButton.setToolTipText(Messages.getString("optionTip"));
+      jpanel1.add(_envOptionButton,cc.xy(7,3));
+
+      _envVarField.setName("envVarField");
+      jpanel1.add(_envVarField,cc.xy(3,3));
+
+      addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[]{ 2 });
+      return jpanel1;
+   }
+
+   /**
+    * Initializer
+    */
+   protected void initializePanel()
+   {
+      setLayout(new BorderLayout());
+      add(createPanel(), BorderLayout.CENTER);
+   }
+
+
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/JreForm.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/JreForm.jfrm
new file mode 100644
index 0000000000000000000000000000000000000000..1e61237e0f38514d3a1d4950a36b642caee3ad93
Binary files /dev/null and b/installer/lib/launch4j/src/net/sf/launch4j/form/JreForm.jfrm differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/Messages.java b/installer/lib/launch4j/src/net/sf/launch4j/form/Messages.java
new file mode 100644
index 0000000000000000000000000000000000000000..aaf995f801931eeac093c4d9d96a37eef010d4dd
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/Messages.java
@@ -0,0 +1,55 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+package net.sf.launch4j.form;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+class Messages {
+	private static final String BUNDLE_NAME = "net.sf.launch4j.form.messages";
+
+	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+			.getBundle(BUNDLE_NAME);
+
+	private Messages() {
+	}
+
+	public static String getString(String key) {
+		try {
+			return RESOURCE_BUNDLE.getString(key);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/MessagesForm.java b/installer/lib/launch4j/src/net/sf/launch4j/form/MessagesForm.java
new file mode 100644
index 0000000000000000000000000000000000000000..f2e8723da75170717406f52dd148c93e00b5cf8a
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/MessagesForm.java
@@ -0,0 +1,183 @@
+package net.sf.launch4j.form;
+
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import javax.swing.Box;
+import javax.swing.ImageIcon;
+import javax.swing.JCheckBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+
+public abstract class MessagesForm extends JPanel
+{
+   protected final JTextArea _startupErrTextArea = new JTextArea();
+   protected final JTextArea _bundledJreErrTextArea = new JTextArea();
+   protected final JTextArea _jreVersionErrTextArea = new JTextArea();
+   protected final JTextArea _launcherErrTextArea = new JTextArea();
+   protected final JCheckBox _messagesCheck = new JCheckBox();
+   protected final JTextArea _instanceAlreadyExistsMsgTextArea = new JTextArea();
+
+   /**
+    * Default constructor
+    */
+   public MessagesForm()
+   {
+      initializePanel();
+   }
+
+   /**
+    * Adds fill components to empty cells in the first row and first column of the grid.
+    * This ensures that the grid spacing will be the same as shown in the designer.
+    * @param cols an array of column indices in the first row where fill components should be added.
+    * @param rows an array of row indices in the first column where fill components should be added.
+    */
+   void addFillComponents( Container panel, int[] cols, int[] rows )
+   {
+      Dimension filler = new Dimension(10,10);
+
+      boolean filled_cell_11 = false;
+      CellConstraints cc = new CellConstraints();
+      if ( cols.length > 0 && rows.length > 0 )
+      {
+         if ( cols[0] == 1 && rows[0] == 1 )
+         {
+            /** add a rigid area  */
+            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
+            filled_cell_11 = true;
+         }
+      }
+
+      for( int index = 0; index < cols.length; index++ )
+      {
+         if ( cols[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
+      }
+
+      for( int index = 0; index < rows.length; index++ )
+      {
+         if ( rows[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
+      }
+
+   }
+
+   /**
+    * Helper method to load an image file from the CLASSPATH
+    * @param imageName the package and name of the file to load relative to the CLASSPATH
+    * @return an ImageIcon instance with the specified image file
+    * @throws IllegalArgumentException if the image resource cannot be loaded.
+    */
+   public ImageIcon loadImage( String imageName )
+   {
+      try
+      {
+         ClassLoader classloader = getClass().getClassLoader();
+         java.net.URL url = classloader.getResource( imageName );
+         if ( url != null )
+         {
+            ImageIcon icon = new ImageIcon( url );
+            return icon;
+         }
+      }
+      catch( Exception e )
+      {
+         e.printStackTrace();
+      }
+      throw new IllegalArgumentException( "Unable to load image: " + imageName );
+   }
+
+   public JPanel createPanel()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:3DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:9DLU:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _startupErrTextArea.setName("startupErrTextArea");
+      JScrollPane jscrollpane1 = new JScrollPane();
+      jscrollpane1.setViewportView(_startupErrTextArea);
+      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane1,cc.xy(4,4));
+
+      _bundledJreErrTextArea.setName("bundledJreErrTextArea");
+      JScrollPane jscrollpane2 = new JScrollPane();
+      jscrollpane2.setViewportView(_bundledJreErrTextArea);
+      jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane2,cc.xy(4,6));
+
+      _jreVersionErrTextArea.setName("jreVersionErrTextArea");
+      _jreVersionErrTextArea.setToolTipText(Messages.getString("jreVersionErrTip"));
+      JScrollPane jscrollpane3 = new JScrollPane();
+      jscrollpane3.setViewportView(_jreVersionErrTextArea);
+      jscrollpane3.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane3.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane3,cc.xy(4,8));
+
+      _launcherErrTextArea.setName("launcherErrTextArea");
+      JScrollPane jscrollpane4 = new JScrollPane();
+      jscrollpane4.setViewportView(_launcherErrTextArea);
+      jscrollpane4.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane4.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane4,cc.xy(4,10));
+
+      JLabel jlabel1 = new JLabel();
+      jlabel1.setText(Messages.getString("startupErr"));
+      jpanel1.add(jlabel1,new CellConstraints(2,4,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
+
+      JLabel jlabel2 = new JLabel();
+      jlabel2.setText(Messages.getString("bundledJreErr"));
+      jpanel1.add(jlabel2,new CellConstraints(2,6,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
+
+      JLabel jlabel3 = new JLabel();
+      jlabel3.setText(Messages.getString("jreVersionErr"));
+      jpanel1.add(jlabel3,new CellConstraints(2,8,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
+
+      JLabel jlabel4 = new JLabel();
+      jlabel4.setText(Messages.getString("launcherErr"));
+      jpanel1.add(jlabel4,new CellConstraints(2,10,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
+
+      _messagesCheck.setActionCommand("Add version information");
+      _messagesCheck.setName("messagesCheck");
+      _messagesCheck.setText(Messages.getString("addMessages"));
+      jpanel1.add(_messagesCheck,cc.xy(4,2));
+
+      JLabel jlabel5 = new JLabel();
+      jlabel5.setText(Messages.getString("instanceAlreadyExistsMsg"));
+      jpanel1.add(jlabel5,new CellConstraints(2,12,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
+
+      _instanceAlreadyExistsMsgTextArea.setName("instanceAlreadyExistsMsgTextArea");
+      _instanceAlreadyExistsMsgTextArea.setToolTipText(Messages.getString("instanceAlreadyExistsMsgTip"));
+      JScrollPane jscrollpane5 = new JScrollPane();
+      jscrollpane5.setViewportView(_instanceAlreadyExistsMsgTextArea);
+      jscrollpane5.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
+      jscrollpane5.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+      jpanel1.add(jscrollpane5,cc.xy(4,12));
+
+      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13 });
+      return jpanel1;
+   }
+
+   /**
+    * Initializer
+    */
+   protected void initializePanel()
+   {
+      setLayout(new BorderLayout());
+      add(createPanel(), BorderLayout.CENTER);
+   }
+
+
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/MessagesForm.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/MessagesForm.jfrm
new file mode 100644
index 0000000000000000000000000000000000000000..e8044dfd7c08649042cfd360307ebd9eac7cad5f
Binary files /dev/null and b/installer/lib/launch4j/src/net/sf/launch4j/form/MessagesForm.jfrm differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/SingleInstanceForm.java b/installer/lib/launch4j/src/net/sf/launch4j/form/SingleInstanceForm.java
new file mode 100644
index 0000000000000000000000000000000000000000..2bfe724a6651f58150ca94066488cefa9890f2cd
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/SingleInstanceForm.java
@@ -0,0 +1,141 @@
+package net.sf.launch4j.form;
+
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import javax.swing.Box;
+import javax.swing.ImageIcon;
+import javax.swing.JCheckBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTextField;
+
+public abstract class SingleInstanceForm extends JPanel
+{
+   protected final JLabel _splashFileLabel = new JLabel();
+   protected final JTextField _mutexNameField = new JTextField();
+   protected final JCheckBox _singleInstanceCheck = new JCheckBox();
+   protected final JTextField _windowTitleField = new JTextField();
+   protected final JLabel _splashFileLabel1 = new JLabel();
+
+   /**
+    * Default constructor
+    */
+   public SingleInstanceForm()
+   {
+      initializePanel();
+   }
+
+   /**
+    * Adds fill components to empty cells in the first row and first column of the grid.
+    * This ensures that the grid spacing will be the same as shown in the designer.
+    * @param cols an array of column indices in the first row where fill components should be added.
+    * @param rows an array of row indices in the first column where fill components should be added.
+    */
+   void addFillComponents( Container panel, int[] cols, int[] rows )
+   {
+      Dimension filler = new Dimension(10,10);
+
+      boolean filled_cell_11 = false;
+      CellConstraints cc = new CellConstraints();
+      if ( cols.length > 0 && rows.length > 0 )
+      {
+         if ( cols[0] == 1 && rows[0] == 1 )
+         {
+            /** add a rigid area  */
+            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
+            filled_cell_11 = true;
+         }
+      }
+
+      for( int index = 0; index < cols.length; index++ )
+      {
+         if ( cols[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
+      }
+
+      for( int index = 0; index < rows.length; index++ )
+      {
+         if ( rows[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
+      }
+
+   }
+
+   /**
+    * Helper method to load an image file from the CLASSPATH
+    * @param imageName the package and name of the file to load relative to the CLASSPATH
+    * @return an ImageIcon instance with the specified image file
+    * @throws IllegalArgumentException if the image resource cannot be loaded.
+    */
+   public ImageIcon loadImage( String imageName )
+   {
+      try
+      {
+         ClassLoader classloader = getClass().getClassLoader();
+         java.net.URL url = classloader.getResource( imageName );
+         if ( url != null )
+         {
+            ImageIcon icon = new ImageIcon( url );
+            return icon;
+         }
+      }
+      catch( Exception e )
+      {
+         e.printStackTrace();
+      }
+      throw new IllegalArgumentException( "Unable to load image: " + imageName );
+   }
+
+   public JPanel createPanel()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:60DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _splashFileLabel.setIcon(loadImage("images/asterix.gif"));
+      _splashFileLabel.setName("splashFileLabel");
+      _splashFileLabel.setText(Messages.getString("mutexName"));
+      jpanel1.add(_splashFileLabel,cc.xy(2,4));
+
+      _mutexNameField.setName("mutexNameField");
+      _mutexNameField.setToolTipText(Messages.getString("mutexNameTip"));
+      jpanel1.add(_mutexNameField,cc.xywh(4,4,2,1));
+
+      _singleInstanceCheck.setActionCommand("Enable splash screen");
+      _singleInstanceCheck.setName("singleInstanceCheck");
+      _singleInstanceCheck.setText(Messages.getString("enableSingleInstance"));
+      jpanel1.add(_singleInstanceCheck,cc.xywh(4,2,2,1));
+
+      _windowTitleField.setName("windowTitleField");
+      _windowTitleField.setToolTipText(Messages.getString("windowTitleTip"));
+      jpanel1.add(_windowTitleField,cc.xywh(4,6,2,1));
+
+      _splashFileLabel1.setName("splashFileLabel");
+      _splashFileLabel1.setText(Messages.getString("windowTitle"));
+      jpanel1.add(_splashFileLabel1,cc.xy(2,6));
+
+      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6 },new int[]{ 1,2,3,4,5,6,7 });
+      return jpanel1;
+   }
+
+   /**
+    * Initializer
+    */
+   protected void initializePanel()
+   {
+      setLayout(new BorderLayout());
+      add(createPanel(), BorderLayout.CENTER);
+   }
+
+
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/SingleInstanceForm.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/SingleInstanceForm.jfrm
new file mode 100644
index 0000000000000000000000000000000000000000..c9d7ce28daa10a9838258f330f367e01d6f6c74c
Binary files /dev/null and b/installer/lib/launch4j/src/net/sf/launch4j/form/SingleInstanceForm.jfrm differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/SplashForm.java b/installer/lib/launch4j/src/net/sf/launch4j/form/SplashForm.java
new file mode 100644
index 0000000000000000000000000000000000000000..22a0ed8a3d0d4b33ce692ba92180d3ebdcdfafe4
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/SplashForm.java
@@ -0,0 +1,166 @@
+package net.sf.launch4j.form;
+
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import javax.swing.Box;
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JCheckBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTextField;
+
+public abstract class SplashForm extends JPanel
+{
+   protected final JLabel _splashFileLabel = new JLabel();
+   protected final JLabel _waitForWindowLabel = new JLabel();
+   protected final JLabel _timeoutLabel = new JLabel();
+   protected final JCheckBox _timeoutErrCheck = new JCheckBox();
+   protected final JTextField _splashFileField = new JTextField();
+   protected final JTextField _timeoutField = new JTextField();
+   protected final JButton _splashFileButton = new JButton();
+   protected final JCheckBox _splashCheck = new JCheckBox();
+   protected final JCheckBox _waitForWindowCheck = new JCheckBox();
+
+   /**
+    * Default constructor
+    */
+   public SplashForm()
+   {
+      initializePanel();
+   }
+
+   /**
+    * Adds fill components to empty cells in the first row and first column of the grid.
+    * This ensures that the grid spacing will be the same as shown in the designer.
+    * @param cols an array of column indices in the first row where fill components should be added.
+    * @param rows an array of row indices in the first column where fill components should be added.
+    */
+   void addFillComponents( Container panel, int[] cols, int[] rows )
+   {
+      Dimension filler = new Dimension(10,10);
+
+      boolean filled_cell_11 = false;
+      CellConstraints cc = new CellConstraints();
+      if ( cols.length > 0 && rows.length > 0 )
+      {
+         if ( cols[0] == 1 && rows[0] == 1 )
+         {
+            /** add a rigid area  */
+            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
+            filled_cell_11 = true;
+         }
+      }
+
+      for( int index = 0; index < cols.length; index++ )
+      {
+         if ( cols[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
+      }
+
+      for( int index = 0; index < rows.length; index++ )
+      {
+         if ( rows[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
+      }
+
+   }
+
+   /**
+    * Helper method to load an image file from the CLASSPATH
+    * @param imageName the package and name of the file to load relative to the CLASSPATH
+    * @return an ImageIcon instance with the specified image file
+    * @throws IllegalArgumentException if the image resource cannot be loaded.
+    */
+   public ImageIcon loadImage( String imageName )
+   {
+      try
+      {
+         ClassLoader classloader = getClass().getClassLoader();
+         java.net.URL url = classloader.getResource( imageName );
+         if ( url != null )
+         {
+            ImageIcon icon = new ImageIcon( url );
+            return icon;
+         }
+      }
+      catch( Exception e )
+      {
+         e.printStackTrace();
+      }
+      throw new IllegalArgumentException( "Unable to load image: " + imageName );
+   }
+
+   public JPanel createPanel()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:60DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:3DLU:NONE,FILL:26PX:NONE,FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _splashFileLabel.setIcon(loadImage("images/asterix.gif"));
+      _splashFileLabel.setName("splashFileLabel");
+      _splashFileLabel.setText(Messages.getString("splashFile"));
+      jpanel1.add(_splashFileLabel,cc.xy(2,4));
+
+      _waitForWindowLabel.setName("waitForWindowLabel");
+      _waitForWindowLabel.setText(Messages.getString("waitForWindow"));
+      jpanel1.add(_waitForWindowLabel,cc.xy(2,6));
+
+      _timeoutLabel.setIcon(loadImage("images/asterix.gif"));
+      _timeoutLabel.setName("timeoutLabel");
+      _timeoutLabel.setText(Messages.getString("timeout"));
+      jpanel1.add(_timeoutLabel,cc.xy(2,8));
+
+      _timeoutErrCheck.setActionCommand("Signal error on timeout");
+      _timeoutErrCheck.setName("timeoutErrCheck");
+      _timeoutErrCheck.setText(Messages.getString("timeoutErr"));
+      _timeoutErrCheck.setToolTipText(Messages.getString("timeoutErrTip"));
+      jpanel1.add(_timeoutErrCheck,cc.xywh(4,10,2,1));
+
+      _splashFileField.setName("splashFileField");
+      _splashFileField.setToolTipText(Messages.getString("splashFileTip"));
+      jpanel1.add(_splashFileField,cc.xywh(4,4,2,1));
+
+      _timeoutField.setName("timeoutField");
+      _timeoutField.setToolTipText(Messages.getString("timeoutTip"));
+      jpanel1.add(_timeoutField,cc.xy(4,8));
+
+      _splashFileButton.setIcon(loadImage("images/open16.png"));
+      _splashFileButton.setName("splashFileButton");
+      jpanel1.add(_splashFileButton,cc.xy(7,4));
+
+      _splashCheck.setActionCommand("Enable splash screen");
+      _splashCheck.setName("splashCheck");
+      _splashCheck.setText(Messages.getString("enableSplash"));
+      jpanel1.add(_splashCheck,cc.xywh(4,2,2,1));
+
+      _waitForWindowCheck.setActionCommand("Close splash screen when an application window appears");
+      _waitForWindowCheck.setName("waitForWindowCheck");
+      _waitForWindowCheck.setText(Messages.getString("waitForWindowText"));
+      jpanel1.add(_waitForWindowCheck,cc.xywh(4,6,2,1));
+
+      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 });
+      return jpanel1;
+   }
+
+   /**
+    * Initializer
+    */
+   protected void initializePanel()
+   {
+      setLayout(new BorderLayout());
+      add(createPanel(), BorderLayout.CENTER);
+   }
+
+
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/SplashForm.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/SplashForm.jfrm
new file mode 100644
index 0000000000000000000000000000000000000000..114f0e31de99faf3eaa4a87c11719caca96ab080
Binary files /dev/null and b/installer/lib/launch4j/src/net/sf/launch4j/form/SplashForm.jfrm differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/VersionInfoForm.java b/installer/lib/launch4j/src/net/sf/launch4j/form/VersionInfoForm.java
new file mode 100644
index 0000000000000000000000000000000000000000..5a4d9440c606999fb1baec561fbbb07bed7e1e16
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/VersionInfoForm.java
@@ -0,0 +1,232 @@
+package net.sf.launch4j.form;
+
+import com.jeta.forms.components.separator.TitledSeparator;
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import javax.swing.Box;
+import javax.swing.ImageIcon;
+import javax.swing.JCheckBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTextField;
+
+public abstract class VersionInfoForm extends JPanel
+{
+   protected final JCheckBox _versionInfoCheck = new JCheckBox();
+   protected final JLabel _fileVersionLabel = new JLabel();
+   protected final JTextField _fileVersionField = new JTextField();
+   protected final TitledSeparator _addVersionInfoSeparator = new TitledSeparator();
+   protected final JLabel _productVersionLabel = new JLabel();
+   protected final JTextField _productVersionField = new JTextField();
+   protected final JLabel _fileDescriptionLabel = new JLabel();
+   protected final JTextField _fileDescriptionField = new JTextField();
+   protected final JLabel _copyrightLabel = new JLabel();
+   protected final JTextField _copyrightField = new JTextField();
+   protected final JLabel _txtFileVersionLabel = new JLabel();
+   protected final JTextField _txtFileVersionField = new JTextField();
+   protected final JLabel _txtProductVersionLabel = new JLabel();
+   protected final JTextField _txtProductVersionField = new JTextField();
+   protected final JLabel _productNameLabel = new JLabel();
+   protected final JTextField _productNameField = new JTextField();
+   protected final JLabel _originalFilenameLabel = new JLabel();
+   protected final JTextField _originalFilenameField = new JTextField();
+   protected final JLabel _internalNameLabel = new JLabel();
+   protected final JTextField _internalNameField = new JTextField();
+   protected final JLabel _companyNameLabel = new JLabel();
+   protected final JTextField _companyNameField = new JTextField();
+
+   /**
+    * Default constructor
+    */
+   public VersionInfoForm()
+   {
+      initializePanel();
+   }
+
+   /**
+    * Adds fill components to empty cells in the first row and first column of the grid.
+    * This ensures that the grid spacing will be the same as shown in the designer.
+    * @param cols an array of column indices in the first row where fill components should be added.
+    * @param rows an array of row indices in the first column where fill components should be added.
+    */
+   void addFillComponents( Container panel, int[] cols, int[] rows )
+   {
+      Dimension filler = new Dimension(10,10);
+
+      boolean filled_cell_11 = false;
+      CellConstraints cc = new CellConstraints();
+      if ( cols.length > 0 && rows.length > 0 )
+      {
+         if ( cols[0] == 1 && rows[0] == 1 )
+         {
+            /** add a rigid area  */
+            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
+            filled_cell_11 = true;
+         }
+      }
+
+      for( int index = 0; index < cols.length; index++ )
+      {
+         if ( cols[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
+      }
+
+      for( int index = 0; index < rows.length; index++ )
+      {
+         if ( rows[index] == 1 && filled_cell_11 )
+         {
+            continue;
+         }
+         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
+      }
+
+   }
+
+   /**
+    * Helper method to load an image file from the CLASSPATH
+    * @param imageName the package and name of the file to load relative to the CLASSPATH
+    * @return an ImageIcon instance with the specified image file
+    * @throws IllegalArgumentException if the image resource cannot be loaded.
+    */
+   public ImageIcon loadImage( String imageName )
+   {
+      try
+      {
+         ClassLoader classloader = getClass().getClassLoader();
+         java.net.URL url = classloader.getResource( imageName );
+         if ( url != null )
+         {
+            ImageIcon icon = new ImageIcon( url );
+            return icon;
+         }
+      }
+      catch( Exception e )
+      {
+         e.printStackTrace();
+      }
+      throw new IllegalArgumentException( "Unable to load image: " + imageName );
+   }
+
+   public JPanel createPanel()
+   {
+      JPanel jpanel1 = new JPanel();
+      FormLayout formlayout1 = new FormLayout("FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:60DLU:NONE,FILL:7DLU:NONE,RIGHT:DEFAULT:NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE","CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:3DLU:NONE,CENTER:DEFAULT:NONE,CENTER:9DLU:NONE");
+      CellConstraints cc = new CellConstraints();
+      jpanel1.setLayout(formlayout1);
+
+      _versionInfoCheck.setActionCommand("Add version information");
+      _versionInfoCheck.setName("versionInfoCheck");
+      _versionInfoCheck.setText(Messages.getString("addVersionInfo"));
+      jpanel1.add(_versionInfoCheck,cc.xywh(4,2,5,1));
+
+      _fileVersionLabel.setIcon(loadImage("images/asterix.gif"));
+      _fileVersionLabel.setName("fileVersionLabel");
+      _fileVersionLabel.setText(Messages.getString("fileVersion"));
+      jpanel1.add(_fileVersionLabel,cc.xy(2,4));
+
+      _fileVersionField.setName("fileVersionField");
+      _fileVersionField.setToolTipText(Messages.getString("fileVersionTip"));
+      jpanel1.add(_fileVersionField,cc.xy(4,4));
+
+      _addVersionInfoSeparator.setName("addVersionInfoSeparator");
+      _addVersionInfoSeparator.setText("Additional information");
+      jpanel1.add(_addVersionInfoSeparator,cc.xywh(2,10,7,1));
+
+      _productVersionLabel.setIcon(loadImage("images/asterix.gif"));
+      _productVersionLabel.setName("productVersionLabel");
+      _productVersionLabel.setText(Messages.getString("productVersion"));
+      jpanel1.add(_productVersionLabel,cc.xy(2,12));
+
+      _productVersionField.setName("productVersionField");
+      _productVersionField.setToolTipText(Messages.getString("productVersionTip"));
+      jpanel1.add(_productVersionField,cc.xy(4,12));
+
+      _fileDescriptionLabel.setIcon(loadImage("images/asterix.gif"));
+      _fileDescriptionLabel.setName("fileDescriptionLabel");
+      _fileDescriptionLabel.setText(Messages.getString("fileDescription"));
+      jpanel1.add(_fileDescriptionLabel,cc.xy(2,6));
+
+      _fileDescriptionField.setName("fileDescriptionField");
+      _fileDescriptionField.setToolTipText(Messages.getString("fileDescriptionTip"));
+      jpanel1.add(_fileDescriptionField,cc.xywh(4,6,5,1));
+
+      _copyrightLabel.setIcon(loadImage("images/asterix.gif"));
+      _copyrightLabel.setName("copyrightLabel");
+      _copyrightLabel.setText(Messages.getString("copyright"));
+      jpanel1.add(_copyrightLabel,cc.xy(2,8));
+
+      _copyrightField.setName("copyrightField");
+      jpanel1.add(_copyrightField,cc.xywh(4,8,5,1));
+
+      _txtFileVersionLabel.setIcon(loadImage("images/asterix.gif"));
+      _txtFileVersionLabel.setName("txtFileVersionLabel");
+      _txtFileVersionLabel.setText(Messages.getString("txtFileVersion"));
+      jpanel1.add(_txtFileVersionLabel,cc.xy(6,4));
+
+      _txtFileVersionField.setName("txtFileVersionField");
+      _txtFileVersionField.setToolTipText(Messages.getString("txtFileVersionTip"));
+      jpanel1.add(_txtFileVersionField,cc.xy(8,4));
+
+      _txtProductVersionLabel.setIcon(loadImage("images/asterix.gif"));
+      _txtProductVersionLabel.setName("txtProductVersionLabel");
+      _txtProductVersionLabel.setText(Messages.getString("txtProductVersion"));
+      jpanel1.add(_txtProductVersionLabel,cc.xy(6,12));
+
+      _txtProductVersionField.setName("txtProductVersionField");
+      _txtProductVersionField.setToolTipText(Messages.getString("txtProductVersionTip"));
+      jpanel1.add(_txtProductVersionField,cc.xy(8,12));
+
+      _productNameLabel.setIcon(loadImage("images/asterix.gif"));
+      _productNameLabel.setName("productNameLabel");
+      _productNameLabel.setText(Messages.getString("productName"));
+      jpanel1.add(_productNameLabel,cc.xy(2,14));
+
+      _productNameField.setName("productNameField");
+      jpanel1.add(_productNameField,cc.xywh(4,14,5,1));
+
+      _originalFilenameLabel.setIcon(loadImage("images/asterix.gif"));
+      _originalFilenameLabel.setName("originalFilenameLabel");
+      _originalFilenameLabel.setText(Messages.getString("originalFilename"));
+      jpanel1.add(_originalFilenameLabel,cc.xy(2,20));
+
+      _originalFilenameField.setName("originalFilenameField");
+      _originalFilenameField.setToolTipText(Messages.getString("originalFilenameTip"));
+      jpanel1.add(_originalFilenameField,cc.xywh(4,20,5,1));
+
+      _internalNameLabel.setIcon(loadImage("images/asterix.gif"));
+      _internalNameLabel.setName("internalNameLabel");
+      _internalNameLabel.setText(Messages.getString("internalName"));
+      jpanel1.add(_internalNameLabel,cc.xy(2,18));
+
+      _internalNameField.setName("internalNameField");
+      _internalNameField.setToolTipText(Messages.getString("internalNameTip"));
+      jpanel1.add(_internalNameField,cc.xywh(4,18,5,1));
+
+      _companyNameLabel.setName("companyNameLabel");
+      _companyNameLabel.setText(Messages.getString("companyName"));
+      jpanel1.add(_companyNameLabel,cc.xy(2,16));
+
+      _companyNameField.setName("companyNameField");
+      jpanel1.add(_companyNameField,cc.xywh(4,16,5,1));
+
+      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21 });
+      return jpanel1;
+   }
+
+   /**
+    * Initializer
+    */
+   protected void initializePanel()
+   {
+      setLayout(new BorderLayout());
+      add(createPanel(), BorderLayout.CENTER);
+   }
+
+
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/VersionInfoForm.jfrm b/installer/lib/launch4j/src/net/sf/launch4j/form/VersionInfoForm.jfrm
new file mode 100644
index 0000000000000000000000000000000000000000..32eb136c88076c850140838957cbed64e9b1351e
Binary files /dev/null and b/installer/lib/launch4j/src/net/sf/launch4j/form/VersionInfoForm.jfrm differ
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/messages.properties b/installer/lib/launch4j/src/net/sf/launch4j/form/messages.properties
new file mode 100644
index 0000000000000000000000000000000000000000..1be6c9584f5e92ec5d3e988da9381a1d150acafa
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/messages.properties
@@ -0,0 +1,146 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+log=Log
+
+outfile=Output file:
+outfileTip=Output executable file.
+customProcName=Custom process name and XP style manifest
+stayAlive=Stay alive after launching a GUI application
+manifest=Manifest:
+manifestTip=Wrapper's manifest for User Account Control, will not enable XP styles!
+icon=Icon:
+iconTip=Application icon.
+jar=Jar:
+jarTip=Application jar.
+dontWrapJar=Dont't wrap the jar, launch only
+cmdLine=Command line args:
+cmdLineTip=Constant command line arguments passed to the application.
+options=Options:
+chdir=Change dir:
+chdirTip=Change current directory to a location relative to the executable. Empty field has no effect, . - changes directory to the exe location.
+priority=Process priority:
+normalPriority=Normal
+idlePriority=Idle
+highPriority=High
+downloadAndSupport=Java download and support
+errorTitle=Error title:
+errorTitleTip=Launch4j signals errors using a message box, you can set it's title to the application's name.
+downloadUrl=Java download URL:
+supportUrl=Support URL:
+
+new=New
+accept=Accept
+remove=Remove
+customClassPath=Custom classpath
+classPath=Classpath:
+mainClass=Main class:
+editClassPath=Edit item:
+importClassPath=Import attributes from a jar's manifest.
+
+headerType=Header type:
+gui=GUI
+console=Console
+objectFiles=Object files:
+libs=w32api:
+linkerOptions=Custom header - linker options
+
+enableSingleInstance=Allow only a single instance of the application
+mutexName=Mutex name
+mutexNameTip=Mutex name that will uniquely identify your application.
+windowTitle=Window title
+windowTitleTip=Title of the GUI application window to bring up on attempt to start a next instance.
+
+jrePath=Bundled JRE path:
+jrePathTip=Bundled JRE path relative to the executable or absolute.
+jreMin=Min JRE version:
+jreMax=Max JRE version:
+dontUsePrivateJres=Don't use private JREs
+jvmOptions=JVM options:
+jvmOptionsTip=Accepts everything you would normally pass to java/javaw launcher: assertion options, system properties and X options.
+initialHeapSize=Initial heap size:
+maxHeapSize=Max heap size:
+freeMemory=% of free memory
+jdkPreference=JDK/JRE preference:
+addVariables=Add variables:
+addVariablesTip=Add special variable or map environment variables to system properties.
+exeDirVarTip=Executable's runtime directory path.
+exeFileVarTip=Executable's runtime file path (directory and filename).
+varsAndRegistry=Variables / registry:
+envVar=Environment var:
+property=Property
+propertyTip=Map a variable to a system property.
+option=Option
+optionTip=Pass a JVM option using a variable.
+
+setVariables=Set variables:
+
+enableSplash=Enable splash screen
+splashFile=Splash file:
+splashFileTip=Splash screen file in BMP format.
+waitForWindow=Wait for window
+waitForWindowText=Close splash screen when an application window appears
+timeout=Timeout [s]:
+timeoutTip=Number of seconds after which the splash screen must close. Splash timeout may cause an error depending on splashTimeoutErr property.
+timeoutErr=Signal error on timeout
+timeoutErrTip=True signals an error on splash timeout, false closes the splash screen quietly.
+
+version=Version
+additionalInfo=Additional information
+addVersionInfo=Add version information
+fileVersion=File version:
+fileVersionTip=Version number 'x.x.x.x'
+productVersion=Product version:
+productVersionTip=Version number 'x.x.x.x'
+fileDescription=File description:
+fileDescriptionTip=File description presented to the user.
+copyright=Copyright:
+txtFileVersion=Free form:
+txtFileVersionTip=Free form file version, for example '1.20.RC1'.
+txtProductVersion=Free form:
+txtProductVersionTip=Free form product version, for example '1.20.RC1'.
+productName=Product name:
+originalFilename=Original filename:
+originalFilenameTip=Original name of the file without the path. Allows to determine whether a file has been renamed by a user.
+internalName=Internal name:
+internalNameTip=Internal name without extension, original filename or module name for example.
+companyName=Company name:
+
+addMessages=Add custom messages
+startupErr=Startup error:
+bundledJreErr=Bundled JRE error:
+jreVersionErr=JRE version error:
+jreVersionErrTip=Launch4j will append the required version number at the end of this message.
+launcherErr=Launcher error:
+instanceAlreadyExistsMsg=Inst. already exists:
+instanceAlreadyExistsMsgTip=Message displayed by single instance console applications if an instance already exists.
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/form/messages_es.properties b/installer/lib/launch4j/src/net/sf/launch4j/form/messages_es.properties
new file mode 100644
index 0000000000000000000000000000000000000000..50e2d758715ebbbb750ca319771389b3b42be78c
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/form/messages_es.properties
@@ -0,0 +1,118 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal, Patricio Martínez Ros
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+log = Registro
+
+outfile = Fichero de salida
+outfileTip = Fichero ejecutable de salida.
+errorTitle = T\u00EDtulo de error
+errorTitleTip = Launch4j indica los errores usando una ventana de mensaje, usted puede ponerle el nombre de la aplicaci\u00F3n a esta ventana.
+customProcName = Nombre personalizado del proceso
+stayAlive = Mantener abierto despu\u00E9s de lanzar una aplicaci\u00F3n GUI
+icon = Icono
+iconTip = Icono de la aplicaci\u00F3n.
+jar = Jar
+jarTip = Jar de la aplicaci\u00F3n.
+dontWrapJar = No empaquetar el jar, s\u00F3lo lanzar
+cmdLine = Argumentos del jar
+cmdLine = Argumentos de l\u00EDnea de \u00F3rdenes pasados a la aplicaci\u00F3n.
+options = Opciones
+chdir = Cambiar al directorio
+chdirTip = Cambia el directorio actual a la localizaci\u00F3n relativa al ejecutable. Si el campo se deja vac\u00EDo, no tiene efecto, . - cambia el directorio a la localizaci\u00F3n del exe.
+headerType = Tipo de cabecera
+gui = GUI
+console = Consola
+objectFiles = Ficheros objeto
+libs = w32api
+linkerOptions = Cabecera personalizada - opciones del enlazador
+jrePath = Ruta del JRE
+jrePathTip = Ruta relativa al ejecutable del JRE.
+jreMin = Versi\u00F3n m\u00EDnima del JRE
+jreMax = Versi\u00F3n m\u00E1xima del JRE
+jvmOptions = Argumentos de la JVM
+jvmOptionsTip = Acepta cualquier argumento que normalmente se le pasar\u00EDa al lanzador java/javaw\: opciones assertion, propiedades de sistema y opciones X.
+initialHeapSize = Tama\u00F1o inicial de la pila
+maxHeapSize = Tama\u00F1o m\u00E1ximo de la pila
+freeMemory=% of free memory
+addVariables = A\u00F1adir variables
+addVariablesTip = A\u00F1adir una variable especial o mapear variables de entorno a las propiedades del sistema.
+exeDirVarTip = Ruta del directorio del ejecutable.
+exeFileVarTip = Ruta del fichero ejecutable (directorio y nombre del fichero).
+other = Otra
+otherTip = Mapear una variable de entorno a una propiedad del sistema.
+otherVarTip = Variable de entorno que mapear.
+add = A\u00F1adir
+specifyVar = Especificar variable de entorno que a\u00F1adir.
+enableSplash = Activar pantalla de bienvenida
+splashFile = Imagen
+splashFileTip = Imagen en formato BMP para la pantalla de bienvenida.
+waitForWindow = Esperar la ventana
+waitForWindowText = Cerrar la pantalla de bienvenida cuando aparezca una ventana de la aplicaci\u00F3n
+timeout = Tiempo de espera [s]
+timeoutTip = Numero de segundos despu\u00E9s de los que la pantalla de bienvenida se debe cerrar. Esta propiedad puede causar provocar un error dependiendo de la propiedad splashTimeoutErr.
+timeoutErr = Se\u00F1al de error asociada al tiempo de espera
+timeoutErrTip = Marcado (true) se\u00F1ala un error despu\u00E9s del tiempo de espera de la pantalla de bienvenida, no marcado (false) cierra la pantalla de bienvenida silenciosamente
+addVersionInfo = A\u00F1ade informaci\u00F3n sobre la versi\u00F3n
+fileVersion = Versi\u00F3n del fichero
+fileVersionTip = N\u00FAmero de versi\u00F3n 'x.x.x.x'
+additionalInfo = Informaci\u00F3n adicional
+productVersion = Versi\u00F3n del producto
+productVersionTip = N\u00FAmero de versi\u00F3n 'x.x.x.x'
+fileDescription = Descripci\u00F3n del fichero
+fileDescriptionTip = Descripci\u00F3n del fichero que se le muestra al usuario.
+copyright = Copyright
+txtFileVersion = Forma libre
+txtFileVersionTip = Forma libre de versi\u00F3n, por ejemplo '1.20.RC1'.
+txtProductVersion = Forma libre
+txtProductVersionTip = Forma libre del producto, por ejemplo '1.20.RC1'.
+productName = Nombre del producto
+originalFilename = Nombre original del fichero
+originalFilenameTip = Nombre original del fichero sin la ruta. Permite determinar si un fichero ha sido renombrado por un usuario.
+internalName = Nombre interno
+internalNameTip = Nombre interno sin extensi\u00F3n, el nombre original del fichero o el m\u00F3dulo, por ejemplo.
+companyName = Nombre de la organizaci\u00F3n
+
+addMessages=Add custom messages
+startupErr=Startup error:
+bundledJreErr=Bundled JRE error:
+jreVersionErr=JRE version error:
+jreVersionErrTip=Launch4j will append the required version number at the end of this message.
+launcherErr=Launcher error:
+instanceAlreadyExistsMsg=Inst. already exists:
+instanceAlreadyExistsMsgTip=Message displayed by single instance console applications if an instance already exists.
+
+enableSingleInstance=Allow only a single instance of the application
+mutexName=Mutex name
+mutexNameTip=Mutex name that will uniquely identify your application.
+windowTitle=Window title
+windowTitleTip=Title of the application window to bring up on attempt to start a next instance.
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/AbstractAcceptListener.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/AbstractAcceptListener.java
new file mode 100644
index 0000000000000000000000000000000000000000..5265e6436c3455bc6736a60576d3b9eb8e2950e5
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/AbstractAcceptListener.java
@@ -0,0 +1,75 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 1, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import java.awt.Color;
+import java.awt.event.ActionListener;
+
+import javax.swing.JTextField;
+
+import net.sf.launch4j.binding.Binding;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public abstract class AbstractAcceptListener implements ActionListener {
+	final JTextField _field;
+
+	public AbstractAcceptListener(JTextField f, boolean listen) {
+		_field = f;
+		if (listen) {
+			_field.addActionListener(this);
+		}
+	}
+
+	protected String getText() {
+		return _field.getText();
+	}
+	
+	protected void clear() {
+		_field.setText("");
+		_field.requestFocusInWindow();
+	}
+
+	protected void signalViolation(String msg) {
+		final Color bg = _field.getBackground();
+		_field.setBackground(Binding.INVALID_COLOR);
+		MainFrame.getInstance().warn(msg);
+		_field.setBackground(bg);
+		_field.requestFocusInWindow();
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/BasicFormImpl.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/BasicFormImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..01ebe8adfb25a42c71c5e6bd7fc31191dfeb6fc5
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/BasicFormImpl.java
@@ -0,0 +1,101 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 1, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import javax.swing.JFileChooser;
+import javax.swing.JRadioButton;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+
+import net.sf.launch4j.FileChooserFilter;
+import net.sf.launch4j.binding.Bindings;
+import net.sf.launch4j.config.Config;
+import net.sf.launch4j.form.BasicForm;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class BasicFormImpl extends BasicForm {
+
+	public BasicFormImpl(Bindings bindings, JFileChooser fc) {
+		bindings.add("outfile", _outfileField)
+				.add("dontWrapJar", _dontWrapJarCheck)
+				.add("jar", _jarField)
+				.add("manifest", _manifestField)
+				.add("icon", _iconField)
+				.add("cmdLine", _cmdLineField)
+				.add("errTitle", _errorTitleField)
+				.add("downloadUrl", _downloadUrlField, Config.DOWNLOAD_URL)
+				.add("supportUrl", _supportUrlField)
+				.add("chdir", _chdirField)
+				.add("priorityIndex", new JRadioButton[] { _normalPriorityRadio,
+															_idlePriorityRadio,
+															_highPriorityRadio })
+				.add("customProcName", _customProcNameCheck)
+				.add("stayAlive", _stayAliveCheck);
+
+		_dontWrapJarCheck.addChangeListener(new DontWrapJarChangeListener());
+
+		_outfileButton.addActionListener(new BrowseActionListener(true, fc,
+				new FileChooserFilter("Windows executables (.exe)", ".exe"),
+				_outfileField));
+		_jarButton.addActionListener(new BrowseActionListener(false, fc,
+				new FileChooserFilter("Jar files", ".jar"), _jarField));
+		_manifestButton.addActionListener(new BrowseActionListener(false, fc,
+				new FileChooserFilter("Manifest files (.manifest)", ".manifest"),
+				_manifestField));
+		_iconButton.addActionListener(new BrowseActionListener(false, fc,
+				new FileChooserFilter("Icon files (.ico)", ".ico"), _iconField));
+	}
+
+	private class DontWrapJarChangeListener implements ChangeListener {
+
+		public void stateChanged(ChangeEvent e) {
+			boolean dontWrap = _dontWrapJarCheck.isSelected();
+			if (dontWrap)  {
+				_jarLabel.setIcon(loadImage("images/asterix-o.gif"));
+			    _jarLabel.setText(Messages.getString("jarPath"));
+			    _jarField.setToolTipText(Messages.getString("jarPathTip"));
+			} else {
+				_jarLabel.setIcon(loadImage("images/asterix.gif"));
+				_jarLabel.setText(Messages.getString("jar"));
+				_jarField.setToolTipText(Messages.getString("jarTip"));
+			}
+			_jarButton.setEnabled(!dontWrap);
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/BrowseActionListener.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/BrowseActionListener.java
new file mode 100644
index 0000000000000000000000000000000000000000..89a5017ee23795d5b8d0cf1b8c89e08cf4011ca7
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/BrowseActionListener.java
@@ -0,0 +1,79 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 1, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.File;
+
+import javax.swing.JFileChooser;
+import javax.swing.JTextField;
+
+import net.sf.launch4j.FileChooserFilter;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class BrowseActionListener implements ActionListener {
+	private final boolean _save;
+	private final JFileChooser _fileChooser;
+	private final FileChooserFilter _filter;
+	private final JTextField _field;
+
+	public BrowseActionListener(boolean save, JFileChooser fileChooser,
+			FileChooserFilter filter, JTextField field) {
+		_save = save;
+		_fileChooser = fileChooser;
+		_filter = filter;
+		_field = field;
+	}
+
+	public void actionPerformed(ActionEvent e) {
+		if (!_field.isEnabled()) {
+			return;
+		}
+		_fileChooser.setFileFilter(_filter);
+		_fileChooser.setSelectedFile(new File(""));
+		int result = _save
+				? _fileChooser.showSaveDialog(MainFrame.getInstance())
+				: _fileChooser.showOpenDialog(MainFrame.getInstance());
+		if (result == JFileChooser.APPROVE_OPTION) {
+			_field.setText(_fileChooser.getSelectedFile().getPath());
+		}
+		_fileChooser.removeChoosableFileFilter(_filter);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/ClassPathFormImpl.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/ClassPathFormImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..65d82096ee31df4aa2baf323f8a8cd69bbdb77c4
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/ClassPathFormImpl.java
@@ -0,0 +1,222 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 1, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.File;
+import java.io.IOException;
+import java.util.jar.Attributes;
+import java.util.jar.JarFile;
+
+import javax.swing.DefaultListModel;
+import javax.swing.JFileChooser;
+import javax.swing.JTextField;
+import javax.swing.ListSelectionModel;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.event.ListSelectionEvent;
+import javax.swing.event.ListSelectionListener;
+
+import net.sf.launch4j.FileChooserFilter;
+import net.sf.launch4j.binding.Bindings;
+import net.sf.launch4j.binding.Validator;
+import net.sf.launch4j.config.ClassPath;
+import net.sf.launch4j.form.ClassPathForm;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class ClassPathFormImpl extends ClassPathForm {
+	private final JFileChooser _fileChooser;
+	private final FileChooserFilter _filter
+			= new FileChooserFilter("Executable jar", ".jar");
+
+	public ClassPathFormImpl(Bindings bindings, JFileChooser fc) {
+		bindings.addOptComponent("classPath", ClassPath.class, _classpathCheck)
+				.add("classPath.mainClass", _mainclassField)
+				.add("classPath.paths", _classpathList);
+		_fileChooser = fc;
+
+		ClasspathCheckListener cpl = new ClasspathCheckListener();
+		_classpathCheck.addChangeListener(cpl);
+		cpl.stateChanged(null);
+
+		_classpathList.setModel(new DefaultListModel());
+		_classpathList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
+		_classpathList.addListSelectionListener(new ClasspathSelectionListener());
+
+		_newClasspathButton.addActionListener(new NewClasspathListener());
+		_acceptClasspathButton.addActionListener(
+				new AcceptClasspathListener(_classpathField));
+		_removeClasspathButton.addActionListener(new RemoveClasspathListener());
+		_importClasspathButton.addActionListener(new ImportClasspathListener());
+		_classpathUpButton.addActionListener(new MoveUpListener());
+		_classpathDownButton.addActionListener(new MoveDownListener());
+	}
+
+	private class ClasspathCheckListener implements ChangeListener {
+		public void stateChanged(ChangeEvent e) {
+			boolean on = _classpathCheck.isSelected();
+			_importClasspathButton.setEnabled(on);
+			_classpathUpButton.setEnabled(on);
+			_classpathDownButton.setEnabled(on);
+			_classpathField.setEnabled(on);
+			_newClasspathButton.setEnabled(on);
+			_acceptClasspathButton.setEnabled(on);
+			_removeClasspathButton.setEnabled(on);
+		}
+	}
+
+	private class NewClasspathListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			_classpathList.clearSelection();
+			_classpathField.setText("");
+			_classpathField.requestFocusInWindow();
+		}
+	}
+
+	private class AcceptClasspathListener extends AbstractAcceptListener {
+		public AcceptClasspathListener(JTextField f) {
+			super(f, true);
+		}
+
+		public void actionPerformed(ActionEvent e) {
+			String cp = getText();
+			if (Validator.isEmpty(cp)) {
+				signalViolation(Messages.getString("specifyClassPath"));
+				return;
+			}
+			DefaultListModel model = (DefaultListModel) _classpathList.getModel();
+			if (_classpathList.isSelectionEmpty()) {
+				model.addElement(cp);
+				clear();
+			} else {
+				model.setElementAt(cp, _classpathList.getSelectedIndex());
+			}
+		}
+	}
+
+	private class ClasspathSelectionListener implements ListSelectionListener {
+		public void valueChanged(ListSelectionEvent e) {
+			if (e.getValueIsAdjusting()) {
+				return;
+			}
+			if (_classpathList.isSelectionEmpty()) {
+				_classpathField.setText("");
+			} else {
+				_classpathField.setText((String) _classpathList.getSelectedValue());
+			}
+			_classpathField.requestFocusInWindow();
+		}
+	}
+	
+	private class RemoveClasspathListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			if (_classpathList.isSelectionEmpty()
+					|| !MainFrame.getInstance().confirm(
+							Messages.getString("confirmClassPathRemoval"))) {
+				return;
+			}
+			DefaultListModel model = (DefaultListModel) _classpathList.getModel();
+			while (!_classpathList.isSelectionEmpty()) {
+				model.remove(_classpathList.getSelectedIndex());
+			}
+		}
+	}
+	
+	private class MoveUpListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			int x = _classpathList.getSelectedIndex();
+			if (x < 1) {
+				return;
+			}
+			DefaultListModel model = (DefaultListModel) _classpathList.getModel();
+			Object o = model.get(x - 1);
+			model.set(x - 1, model.get(x));
+			model.set(x, o);
+			_classpathList.setSelectedIndex(x - 1);
+		}
+	}
+	
+	private class MoveDownListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			DefaultListModel model = (DefaultListModel) _classpathList.getModel();
+			int x = _classpathList.getSelectedIndex();
+			if (x == -1 || x >= model.getSize() - 1) {
+				return;
+			}
+			Object o = model.get(x + 1);
+			model.set(x + 1, model.get(x));
+			model.set(x, o);
+			_classpathList.setSelectedIndex(x + 1);
+		}
+	}
+
+	private class ImportClasspathListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			try {
+				_fileChooser.setFileFilter(_filter);
+				_fileChooser.setSelectedFile(new File(""));
+				if (_fileChooser.showOpenDialog(MainFrame.getInstance())
+						== JFileChooser.APPROVE_OPTION) {
+					JarFile jar = new JarFile(_fileChooser.getSelectedFile());
+					if (jar.getManifest() == null) {
+						jar.close();
+						MainFrame.getInstance().info(Messages.getString("noManifest"));
+						return;
+					}
+					Attributes attr = jar.getManifest().getMainAttributes();
+					String mainClass = (String) attr.getValue("Main-Class");
+					String classPath = (String) attr.getValue("Class-Path");
+					jar.close();
+					_mainclassField.setText(mainClass != null ? mainClass : "");
+					DefaultListModel model = new DefaultListModel();
+					if (classPath != null) {
+						String[] paths = classPath.split(" ");
+						for (int i = 0; i < paths.length; i++) {
+							model.addElement(paths[i]);
+						}
+					}
+					_classpathList.setModel(model);
+				}
+			} catch (IOException ex) {
+				MainFrame.getInstance().warn(ex.getMessage());
+			}
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/ConfigFormImpl.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/ConfigFormImpl.java
index bf87719ad2404d552e1db27fffc32ec4a290f067..d29720642b5f1dd71f3989c2bbe3727011d285e0 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/ConfigFormImpl.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/ConfigFormImpl.java
@@ -1,141 +1,100 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on May 10, 2005
- */
-package net.sf.launch4j.formimpl;
-
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.io.File;
-
-import javax.swing.JFileChooser;
-import javax.swing.JRadioButton;
-import javax.swing.JTextArea;
-import javax.swing.JTextField;
-
-import net.sf.launch4j.FileChooserFilter;
-import net.sf.launch4j.binding.Binding;
-import net.sf.launch4j.binding.Bindings;
-import net.sf.launch4j.binding.IValidatable;
-import net.sf.launch4j.config.Splash;
-import net.sf.launch4j.config.VersionInfo;
-import net.sf.launch4j.form.ConfigForm;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class ConfigFormImpl extends ConfigForm {
-	private final JFileChooser _fileChooser = new JFileChooser();
-	private final Bindings _bindings = new Bindings();
-
-	public ConfigFormImpl() {
-		_outfileButton.addActionListener(new BrowseActionListener(
-				_outfileField, new FileChooserFilter("Windows executables (.exe)", ".exe")));
-		_jarButton.addActionListener(new BrowseActionListener(
-				_jarField, new FileChooserFilter("Jar files", ".jar")));
-		_iconButton.addActionListener(new BrowseActionListener(
-				_iconField, new FileChooserFilter("Icon files (.ico)", ".ico")));
-		_splashFileButton.addActionListener(new BrowseActionListener(
-				_splashFileField, new FileChooserFilter("Bitmap files (.bmp)", ".bmp")));
-
-		_bindings.add("outfile", _outfileField)
-				.add("jar", _jarField)
-				.add("icon", _iconField)
-				.add("jarArgs", _jarArgsField)
-				.add("errTitle", _errorTitleField)
-				.add("chdir", _chdirField)
-				.add("customProcName", _customProcNameCheck)
-				.add("stayAlive", _stayAliveCheck)
-				.add("headerType", new JRadioButton[] {_guiHeaderRadio, _consoleHeaderRadio})
-				// TODO header object files
-				// TODO w32api
-				.add("jre.path", _jrePathField)
-				.add("jre.minVersion", _jreMinField)
-				.add("jre.maxVersion", _jreMaxField)
-				.add("jre.initialHeapSize", _initialHeapSizeField)
-				.add("jre.maxHeapSize", _maxHeapSizeField)
-				.add("jre.args", _jvmArgsTextArea)
-				.addOptComponent("splash", Splash.class, _splashCheck)
-				.add("splash.file", _splashFileField)
-				.add("splash.waitForWindow", _waitForWindowCheck, true)
-				.add("splash.timeout", _timeoutField, "60")
-				.add("splash.timeoutErr", _timeoutErrCheck, true)
-				.addOptComponent("versionInfo", VersionInfo.class, _versionInfoCheck)
-				.add("versionInfo.fileVersion", _fileVersionField)
-				.add("versionInfo.productVersion", _productVersionField)
-				.add("versionInfo.fileDescription", _fileDescriptionField)
-				.add("versionInfo.internalName", _internalNameField)
-				.add("versionInfo.originalFilename", _originalFilenameField)
-				.add("versionInfo.productName", _productNameField)
-				.add("versionInfo.txtFileVersion", _txtFileVersionField)
-				.add("versionInfo.txtProductVersion", _txtProductVersionField)
-				.add("versionInfo.companyName", _companyNameField)
-				.add("versionInfo.copyright", _copyrightField);
-	}
-
-	private class BrowseActionListener implements ActionListener {
-		private final JTextField _field;
-		private final FileChooserFilter _filter;
-
-		public BrowseActionListener(JTextField field, FileChooserFilter filter) {
-			_field = field;
-			_filter = filter;
-		}
-
-		public void actionPerformed(ActionEvent e) {
-			if (!_field.isEnabled()) {
-				return;
-			}
-			_fileChooser.setFileFilter(_filter);
-			_fileChooser.setSelectedFile(new File(""));
-			int result = _field.equals(_outfileField)
-					? _fileChooser.showSaveDialog(MainFrame.getInstance())
-					: _fileChooser.showOpenDialog(MainFrame.getInstance());
-			if (result == JFileChooser.APPROVE_OPTION) {
-				_field.setText(_fileChooser.getSelectedFile().getPath());
-			}
-		}
-	}
-	
-	public void clear() {
-		_bindings.clear();
-	}
-
-	public void put(IValidatable bean) {
-		_bindings.put(bean);
-	}
-
-	public void get(IValidatable bean) {
-		_bindings.get(bean);
-	}
-	
-	public boolean isModified() {
-		return _bindings.isModified();
-	}
-	
-	public JTextArea getLogTextArea() {
-		return _logTextArea;
-	}
-	
-	public Binding getBinding(String property) {
-		return _bindings.getBinding(property);
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 10, 2005
+ */
+package net.sf.launch4j.formimpl;
+
+import javax.swing.BorderFactory;
+import javax.swing.JFileChooser;
+import javax.swing.JTextArea;
+
+import net.sf.launch4j.binding.Binding;
+import net.sf.launch4j.binding.Bindings;
+import net.sf.launch4j.binding.IValidatable;
+import net.sf.launch4j.form.ConfigForm;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class ConfigFormImpl extends ConfigForm {
+	private final Bindings _bindings = new Bindings();
+	private final JFileChooser _fileChooser = new FileChooser(ConfigFormImpl.class);
+
+	public ConfigFormImpl() {
+		_tab.setBorder(BorderFactory.createMatteBorder(0, -1, -1, -1, getBackground()));
+		_tab.addTab(Messages.getString("tab.basic"),
+				new BasicFormImpl(_bindings, _fileChooser));
+		_tab.addTab(Messages.getString("tab.classpath"),
+				new ClassPathFormImpl(_bindings, _fileChooser));
+		_tab.addTab(Messages.getString("tab.header"),
+				new HeaderFormImpl(_bindings));
+		_tab.addTab(Messages.getString("tab.singleInstance"),
+				new SingleInstanceFormImpl(_bindings));
+		_tab.addTab(Messages.getString("tab.jre"),
+				new JreFormImpl(_bindings, _fileChooser));
+		_tab.addTab(Messages.getString("tab.envVars"),
+				new EnvironmentVarsFormImpl(_bindings));
+		_tab.addTab(Messages.getString("tab.splash"),
+				new SplashFormImpl(_bindings, _fileChooser));
+		_tab.addTab(Messages.getString("tab.version"),
+				new VersionInfoFormImpl(_bindings, _fileChooser));
+		_tab.addTab(Messages.getString("tab.messages"),
+				new MessagesFormImpl(_bindings));
+	}
+
+	public void clear(IValidatable bean) {
+		_bindings.clear(bean);
+	}
+
+	public void put(IValidatable bean) {
+		_bindings.put(bean);
+	}
+
+	public void get(IValidatable bean) {
+		_bindings.get(bean);
+	}
+	
+	public boolean isModified() {
+		return _bindings.isModified();
+	}
+	
+	public JTextArea getLogTextArea() {
+		return _logTextArea;
+	}
+	
+	public Binding getBinding(String property) {
+		return _bindings.getBinding(property);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/EnvironmentVarsFormImpl.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/EnvironmentVarsFormImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..2f325fe3cf95e5d1e8b324b740b39430ecc8f517
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/EnvironmentVarsFormImpl.java
@@ -0,0 +1,50 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Jun 10, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import net.sf.launch4j.binding.Bindings;
+import net.sf.launch4j.form.EnvironmentVarsForm;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class EnvironmentVarsFormImpl extends EnvironmentVarsForm {
+
+	public EnvironmentVarsFormImpl(Bindings bindings) {
+		bindings.add("variables", _envVarsTextArea);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/FileChooser.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/FileChooser.java
new file mode 100644
index 0000000000000000000000000000000000000000..c1b984e587874a36b1cd788345f990c255a904cf
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/FileChooser.java
@@ -0,0 +1,65 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Jul 19, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import java.io.File;
+import java.util.prefs.Preferences;
+
+import javax.swing.JFileChooser;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class FileChooser extends JFileChooser {
+	private final Preferences _prefs;
+	private final String _key;
+
+	public FileChooser(Class clazz) {
+		_prefs = Preferences.userNodeForPackage(clazz);
+		_key = "currentDir-"
+			+ clazz.getName().substring(clazz.getName().lastIndexOf('.') + 1);
+		String path = _prefs.get(_key, null);
+		if (path != null) {
+			setCurrentDirectory(new File(path));
+		}
+	}
+
+	public void approveSelection() {
+		_prefs.put(_key, getCurrentDirectory().getPath());
+		super.approveSelection();
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/HeaderFormImpl.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/HeaderFormImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..accfaa9de501c4364322ffc2034ba7ef84c9e2b2
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/HeaderFormImpl.java
@@ -0,0 +1,102 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 1, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JRadioButton;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+
+import net.sf.launch4j.binding.Binding;
+import net.sf.launch4j.binding.Bindings;
+import net.sf.launch4j.config.Config;
+import net.sf.launch4j.config.ConfigPersister;
+import net.sf.launch4j.form.HeaderForm;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class HeaderFormImpl extends HeaderForm {
+	private final Bindings _bindings;
+
+	public HeaderFormImpl(Bindings bindings) {
+		_bindings = bindings;
+		_bindings.add("headerTypeIndex", new JRadioButton[] { _guiHeaderRadio,
+														_consoleHeaderRadio })
+				.add("headerObjects", "customHeaderObjects", _headerObjectsCheck,
+															_headerObjectsTextArea)
+				.add("libs", "customLibs", _libsCheck, _libsTextArea);
+
+		_guiHeaderRadio.addChangeListener(new HeaderTypeChangeListener());
+		_headerObjectsCheck.addActionListener(new HeaderObjectsActionListener());
+		_libsCheck.addActionListener(new LibsActionListener());
+	}
+
+	private class HeaderTypeChangeListener implements ChangeListener {
+		public void stateChanged(ChangeEvent e) {
+			Config c = ConfigPersister.getInstance().getConfig();
+			c.setHeaderType(_guiHeaderRadio.isSelected() ? Config.GUI_HEADER
+														: Config.CONSOLE_HEADER);
+			if (!_headerObjectsCheck.isSelected()) {
+				Binding b = _bindings.getBinding("headerObjects");
+				b.put(c);
+			}
+		}
+	}
+
+	private class HeaderObjectsActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			if (!_headerObjectsCheck.isSelected()) {
+				ConfigPersister.getInstance().getConfig().setHeaderObjects(null);
+				Binding b = _bindings.getBinding("headerObjects");
+				b.put(ConfigPersister.getInstance().getConfig());
+			}
+		}
+	}
+
+	private class LibsActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			if (!_libsCheck.isSelected()) {
+				ConfigPersister.getInstance().getConfig().setLibs(null);
+				Binding b = _bindings.getBinding("libs");
+				b.put(ConfigPersister.getInstance().getConfig());
+			}
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/JreFormImpl.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/JreFormImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..48a2f18e837855378f7740bf85616a7bb693bf83
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/JreFormImpl.java
@@ -0,0 +1,166 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 1, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.DefaultComboBoxModel;
+import javax.swing.JFileChooser;
+import javax.swing.JTextField;
+
+import net.sf.launch4j.binding.Bindings;
+import net.sf.launch4j.binding.Validator;
+import net.sf.launch4j.form.JreForm;
+import net.sf.launch4j.config.Jre;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class JreFormImpl extends JreForm {
+
+	public JreFormImpl(Bindings bindings, JFileChooser fc) {
+		_jdkPreferenceCombo.setModel(new DefaultComboBoxModel(new String[] {
+				Messages.getString("jdkPreference.jre.only"),
+				Messages.getString("jdkPreference.prefer.jre"),
+				Messages.getString("jdkPreference.prefer.jdk"),
+				Messages.getString("jdkPreference.jdk.only")}));
+		bindings.add("jre.path", _jrePathField)
+				.add("jre.minVersion", _jreMinField)
+				.add("jre.maxVersion", _jreMaxField)
+				.add("jre.jdkPreferenceIndex", _jdkPreferenceCombo,
+						Jre.DEFAULT_JDK_PREFERENCE_INDEX)
+				.add("jre.initialHeapSize", _initialHeapSizeField)
+				.add("jre.initialHeapPercent", _initialHeapPercentField)
+				.add("jre.maxHeapSize", _maxHeapSizeField)
+				.add("jre.maxHeapPercent", _maxHeapPercentField)
+				.add("jre.options", _jvmOptionsTextArea);
+
+		_varCombo.setModel(new DefaultComboBoxModel(new String[] {
+				"EXEDIR", "EXEFILE", "PWD", "OLDPWD",
+				"HKEY_CLASSES_ROOT", "HKEY_CURRENT_USER", "HKEY_LOCAL_MACHINE",
+				"HKEY_USERS", "HKEY_CURRENT_CONFIG" }));
+
+		_varCombo.addActionListener(new VarComboActionListener());
+		_varCombo.setSelectedIndex(0);
+
+		_propertyButton.addActionListener(new PropertyActionListener());
+		_optionButton.addActionListener(new OptionActionListener());
+
+		_envPropertyButton.addActionListener(new EnvPropertyActionListener(_envVarField));
+		_envOptionButton.addActionListener(new EnvOptionActionListener(_envVarField));
+	}
+
+	private class VarComboActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			_optionButton.setEnabled(((String) _varCombo.getSelectedItem())
+					.startsWith("HKEY_"));
+		}
+	}
+
+	private class PropertyActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			final int pos = _jvmOptionsTextArea.getCaretPosition();
+			final String var = (String) _varCombo.getSelectedItem();
+			if (var.startsWith("HKEY_")) {
+				_jvmOptionsTextArea.insert("-Dreg.key=\"%"
+						+ var + "\\\\...%\"\n", pos);
+			} else {
+				_jvmOptionsTextArea.insert("-Dlaunch4j." + var.toLowerCase()
+						+ "=\"%" + var + "%\"\n", pos);
+			}
+		}
+	}
+
+	private class OptionActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			final int pos = _jvmOptionsTextArea.getCaretPosition();
+			final String var = (String) _varCombo.getSelectedItem();
+			if (var.startsWith("HKEY_")) {
+				_jvmOptionsTextArea.insert("%" + var + "\\\\...%\n", pos);
+			} else {
+				_jvmOptionsTextArea.insert("%" + var + "%\n", pos);
+			}
+		}
+	}
+
+	private abstract class EnvActionListener extends AbstractAcceptListener {
+		public EnvActionListener(JTextField f, boolean listen) {
+			super(f, listen);
+		}
+
+		public void actionPerformed(ActionEvent e) {
+			final int pos = _jvmOptionsTextArea.getCaretPosition();
+			final String var = getText()
+					.replaceAll("\"", "")
+					.replaceAll("%", "");
+			if (Validator.isEmpty(var)) {
+				signalViolation(Messages.getString("specifyVar"));
+				return;
+			}
+			add(var, pos);
+			clear();
+		}
+
+		protected abstract void add(String var, int pos);
+	}
+
+	private class EnvPropertyActionListener extends EnvActionListener {
+		public EnvPropertyActionListener(JTextField f) {
+			super(f, true);
+		}
+
+		protected void add(String var, int pos) {
+			final String prop = var
+					.replaceAll(" ", ".")
+					.replaceAll("_", ".")
+					.toLowerCase();
+			_jvmOptionsTextArea.insert("-Denv." + prop + "=\"%" + var
+					+ "%\"\n", pos);
+		}
+	}
+
+	private class EnvOptionActionListener extends EnvActionListener {
+		public EnvOptionActionListener(JTextField f) {
+			super(f, false);
+		}
+
+		protected void add(String var, int pos) {
+			_jvmOptionsTextArea.insert("%" + var + "%\n", pos);	
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/MainFrame.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/MainFrame.java
index a402e7c22a827e83c5b7aac566e7e5c2c1294ddf..4a2cc871596aae6252be533bd7cd96cc0ca52b06 100644
--- a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/MainFrame.java
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/MainFrame.java
@@ -1,319 +1,358 @@
-/*
- 	launch4j :: Cross-platform Java application wrapper for creating Windows native executables
- 	Copyright (C) 2005 Grzegorz Kowal
-
-	This program is free software; you can redistribute it and/or modify
-	it under the terms of the GNU General Public License as published by
-	the Free Software Foundation; either version 2 of the License, or
-	(at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-	GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to the Free Software
-	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Created on 2005-05-09
- */
-package net.sf.launch4j.formimpl;
-
-import java.awt.BorderLayout;
-import java.awt.Dimension;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.io.File;
-
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JOptionPane;
-import javax.swing.JToolBar;
-import javax.swing.UIManager;
-
-import com.jgoodies.plaf.Options;
-import com.jgoodies.plaf.plastic.PlasticXPLookAndFeel;
-
-import foxtrot.Task;
-import foxtrot.Worker;
-
-import net.sf.launch4j.Builder;
-import net.sf.launch4j.BuilderException;
-import net.sf.launch4j.ExecException;
-import net.sf.launch4j.FileChooserFilter;
-import net.sf.launch4j.Log;
-import net.sf.launch4j.Main;
-import net.sf.launch4j.Util;
-import net.sf.launch4j.binding.BindingException;
-import net.sf.launch4j.binding.InvariantViolationException;
-import net.sf.launch4j.config.Config;
-import net.sf.launch4j.config.ConfigPersister;
-import net.sf.launch4j.config.ConfigPersisterException;
-
-/**
- * @author Copyright (C) 2005 Grzegorz Kowal
- */
-public class MainFrame extends JFrame {
-	private static MainFrame _instance;
-
-	private final JToolBar _toolBar;
-	private final JButton _runButton;
-	private final ConfigFormImpl _configForm;
-	private final JFileChooser _fileChooser = new JFileChooser();
-	private File _outfile;
-	private boolean _saved = false;
-
-	public static void createInstance() {
-		try {
-			Toolkit.getDefaultToolkit().setDynamicLayout(true);
-			System.setProperty("sun.awt.noerasebackground","true");
-	
-			// JGoodies
-			Options.setDefaultIconSize(new Dimension(16, 16));		// menu icons
-			Options.setUseNarrowButtons(false);
-			Options.setPopupDropShadowEnabled(true);
-
-			UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
-			_instance = new MainFrame();
-		} catch (Exception e) {
-			System.err.println(e);
-		}
-	}
-
-	public static MainFrame getInstance() {
-		return _instance;
-	}
-
-	public MainFrame() {
-		showConfigName(null);
-		setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
-		addWindowListener(new ExitWindowListener());
-		setGlassPane(new GlassPane(this));
-		_fileChooser.setFileFilter(new FileChooserFilter("launch4j config files (.xml, .cfg)",
-				new String[] {".xml", ".cfg"}));
-
-		_toolBar = new JToolBar();
-		_toolBar.setFloatable(false);
-		_toolBar.setRollover(true);
-		addButton("images/new.png", "New configuration", new NewActionListener());
-		addButton("images/open.png", "Open configuration or import 1.x", new OpenActionListener());
-		addButton("images/save.png", "Save configuration",  new SaveActionListener());
-		_toolBar.addSeparator();
-		addButton("images/build.png", "Build wrapper", new BuildActionListener());
-		_runButton = addButton("images/run.png", "Test wrapper", new RunActionListener());
-		setRunEnabled(false);
-		_toolBar.addSeparator();
-		addButton("images/info.png", "About launch4j", new AboutActionListener());
-
-		_configForm = new ConfigFormImpl();
-		getContentPane().setLayout(new BorderLayout());
-		getContentPane().add(_toolBar, BorderLayout.NORTH);
-		getContentPane().add(_configForm, BorderLayout.CENTER);
-		_configForm.clear();
-		pack();
-		Dimension scr = Toolkit.getDefaultToolkit().getScreenSize();
-		Dimension fr = getSize();
-		fr.height += 100;
-		setBounds((scr.width - fr.width) / 2, (scr.height - fr.height) / 2, fr.width, fr.height);
-		setVisible(true);
-	}
-
-	private JButton addButton(String iconPath, String tooltip, ActionListener l) {
-		ImageIcon icon = new ImageIcon(MainFrame.class.getClassLoader().getResource(iconPath));
-		JButton b = new JButton(icon);
-		b.setToolTipText(tooltip);
-		b.addActionListener(l);
-		_toolBar.add(b);
-		return b;
-	}
-	
-	public void info(String text) {
-		JOptionPane.showMessageDialog(this, 
-									text,
-									Main.PROGRAM_NAME,
-									JOptionPane.INFORMATION_MESSAGE);
-	}
-
-	public void warn(String text) {
-		JOptionPane.showMessageDialog(this, 
-									text,
-									Main.PROGRAM_NAME,
-									JOptionPane.WARNING_MESSAGE);
-	}
-
-	public void warn(InvariantViolationException e) {
-		e.getBinding().markInvalid();
-		warn(e.getMessage());
-		e.getBinding().markValid();
-	}
-
-	private boolean isModified() {
-		return (!_configForm.isModified())
-				|| JOptionPane.showConfirmDialog(MainFrame.this,
-						"Discard changes?",
-						"Confirm",
-						JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
-	}
-	
-	private boolean save() {
-		// XXX
-		try {
-			_configForm.get(ConfigPersister.getInstance().getConfig());
-			if (_fileChooser.showSaveDialog(MainFrame.this) == JOptionPane.YES_OPTION) {
-				File f = _fileChooser.getSelectedFile();
-				if (!f.getPath().endsWith(".xml")) {
-					f = new File(f.getPath() + ".xml");
-				}
-				ConfigPersister.getInstance().save(f);
-				_saved = true;
-				showConfigName(f);
-				return true;
-			}
-			return false;
-		} catch (InvariantViolationException ex) {
-			warn(ex);
-			return false;
-		} catch (BindingException ex) {
-			warn(ex.getMessage());
-			return false;
-		} catch (ConfigPersisterException ex) {
-			warn(ex.getMessage());
-			return false;
-		}
-	}
-
-	private void showConfigName(File config) {
-		setTitle(Main.PROGRAM_NAME + " - " + (config != null ? config.getName() : "untitled"));
-	}
-
-	private void setRunEnabled(boolean enabled) {
-		if (!enabled) {
-			_outfile = null;
-		}
-		_runButton.setEnabled(enabled);
-	}
-
-	private class ExitWindowListener extends WindowAdapter {
-		public void windowClosing(WindowEvent e) {
-			if (isModified()) {
-				System.exit(0);
-			}
-		}
-	}
-
-	private class NewActionListener implements ActionListener {
-		public void actionPerformed(ActionEvent e) {
-			if (isModified()) {
-				ConfigPersister.getInstance().createBlank();
-				_configForm.put(ConfigPersister.getInstance().getConfig());
-			}
-			_saved = false;
-			showConfigName(null);
-			setRunEnabled(false);
-		}
-	}
-
-	private class OpenActionListener implements ActionListener {
-		public void actionPerformed(ActionEvent e) {
-			try {
-				if (isModified()
-						&& _fileChooser.showOpenDialog(MainFrame.this) == JOptionPane.YES_OPTION) {
-					final File f = _fileChooser.getSelectedFile(); 
-					if (f.getPath().endsWith(".xml")) {
-						ConfigPersister.getInstance().load(f);	
-						_saved = true;
-					} else {
-						ConfigPersister.getInstance().loadVersion1(f);
-						_saved = false;
-					}
-					_configForm.put(ConfigPersister.getInstance().getConfig());
-					showConfigName(f);
-					setRunEnabled(false);
-				}
-			} catch (ConfigPersisterException ex) {
-				warn(ex.getMessage());
-			}
-		}
-	}
-	
-	private class SaveActionListener implements ActionListener {
-		public void actionPerformed(ActionEvent e) {
-			save();
-		}
-	}
-	
-	private class BuildActionListener implements ActionListener {
-		public void actionPerformed(ActionEvent e) {
-			final Log log = Log.getSwingLog(_configForm.getLogTextArea());
-			try {
-				if ((!_saved || _configForm.isModified())
-						&& !save()) {
-					return;
-				}
-				log.clear();
-				ConfigPersister.getInstance().getConfig().checkInvariants();
-				Builder b = new Builder(log);
-				_outfile = b.build();
-				setRunEnabled(ConfigPersister.getInstance().getConfig().getHeaderType()
-						== Config.GUI_HEADER);	// TODO fix console app test 
-			} catch (InvariantViolationException ex) {
-				setRunEnabled(false);
-				ex.setBinding(_configForm.getBinding(ex.getProperty()));	// XXX
-				warn(ex);
-			} catch (BuilderException ex) {
-				setRunEnabled(false);
-				log.append(ex.getMessage());
-			}
-		}
-	}
-	
-	private class RunActionListener implements ActionListener {
-		public void actionPerformed(ActionEvent e) {
-			try {
-				getGlassPane().setVisible(true);
-				Worker.post(new Task() {
-					public Object run() throws ExecException {
-						Log log = Log.getSwingLog(_configForm.getLogTextArea());
-						log.clear();
-						String path = _outfile.getPath();
-						if (Util.WINDOWS_OS) {
-							log.append("Executing: " + path);
-							Util.exec(path, log);
-						} else {
-							log.append("Jar integrity test, executing: " + path);
-							Util.exec("java -jar " + path, log);
-						}
-						return null;
-					}
-				});
-			} catch (Exception ex) {
-				// XXX errors logged by exec
-			} finally {
-				getGlassPane().setVisible(false);
-			}
-		};
-	}
-
-	private class AboutActionListener implements ActionListener {
-		public void actionPerformed(ActionEvent e) {
-			info(Main.PROGRAM_DESCRIPTION
-					+ "The following projects are used by launch4j...\n\n"
-					+ "MinGW binutils (http://www.mingw.org/)\n"
-					+ "Commons BeanUtils (http://jakarta.apache.org/commons/beanutils/)\n"
-					+ "Commons Logging (http://jakarta.apache.org/commons/logging/)\n"
-					+ "XStream (http://xstream.codehaus.org/)\n"
-					+ "JGoodies Forms (http://www.jgoodies.com/freeware/forms/)\n"
-					+ "JGoodies Looks (http://www.jgoodies.com/freeware/looks/)\n"
-					+ "Foxtrot (http://foxtrot.sourceforge.net/)\n"
-					+ "Nuvola Icon Theme (http://www.icon-king.com)");
-		}
-	}
-}
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on 2005-05-09
+ */
+package net.sf.launch4j.formimpl;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.Toolkit;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import java.io.File;
+
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JFileChooser;
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+import javax.swing.JToolBar;
+import javax.swing.UIManager;
+
+import com.jgoodies.looks.Options;
+import com.jgoodies.looks.plastic.PlasticXPLookAndFeel;
+
+import foxtrot.Task;
+import foxtrot.Worker;
+
+import net.sf.launch4j.Builder;
+import net.sf.launch4j.BuilderException;
+import net.sf.launch4j.ExecException;
+import net.sf.launch4j.FileChooserFilter;
+import net.sf.launch4j.Log;
+import net.sf.launch4j.Main;
+import net.sf.launch4j.Util;
+import net.sf.launch4j.binding.Binding;
+import net.sf.launch4j.binding.BindingException;
+import net.sf.launch4j.binding.InvariantViolationException;
+import net.sf.launch4j.config.Config;
+import net.sf.launch4j.config.ConfigPersister;
+import net.sf.launch4j.config.ConfigPersisterException;
+
+/**
+ * @author Copyright (C) 2005 Grzegorz Kowal
+ */
+public class MainFrame extends JFrame {
+	private static MainFrame _instance;
+
+	private final JToolBar _toolBar;
+	private final JButton _runButton;
+	private final ConfigFormImpl _configForm;
+	private final JFileChooser _fileChooser = new FileChooser(MainFrame.class);
+	private File _outfile;
+	private boolean _saved = false;
+
+	public static void createInstance() {
+		try {
+			Toolkit.getDefaultToolkit().setDynamicLayout(true);
+			System.setProperty("sun.awt.noerasebackground","true");
+	
+			// JGoodies
+			Options.setDefaultIconSize(new Dimension(16, 16));		// menu icons
+			Options.setUseNarrowButtons(false);
+			Options.setPopupDropShadowEnabled(true);
+
+			UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
+			_instance = new MainFrame();
+		} catch (Exception e) {
+			System.err.println(e);
+		}
+	}
+
+	public static MainFrame getInstance() {
+		return _instance;
+	}
+
+	public MainFrame() {
+		showConfigName(null);
+		setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
+		addWindowListener(new MainFrameListener());
+		setGlassPane(new GlassPane(this));
+		_fileChooser.setFileFilter(new FileChooserFilter(
+				Messages.getString("MainFrame.config.files"),
+				new String[] {".xml", ".cfg"}));
+
+		_toolBar = new JToolBar();
+		_toolBar.setFloatable(false);
+		_toolBar.setRollover(true);
+		addButton("images/new.png",	Messages.getString("MainFrame.new.config"),
+				new NewActionListener());
+		addButton("images/open.png", Messages.getString("MainFrame.open.config"),
+				new OpenActionListener());
+		addButton("images/save.png", Messages.getString("MainFrame.save.config"),
+				new SaveActionListener());
+		_toolBar.addSeparator();
+		addButton("images/build.png", Messages.getString("MainFrame.build.wrapper"),
+				new BuildActionListener());
+		_runButton = addButton("images/run.png",
+				Messages.getString("MainFrame.test.wrapper"),
+				new RunActionListener());
+		setRunEnabled(false);
+		_toolBar.addSeparator();
+		addButton("images/info.png", Messages.getString("MainFrame.about.launch4j"),
+				new AboutActionListener());
+
+		_configForm = new ConfigFormImpl();
+		getContentPane().setLayout(new BorderLayout());
+		getContentPane().add(_toolBar, BorderLayout.NORTH);
+		getContentPane().add(_configForm, BorderLayout.CENTER);
+		pack();
+		Dimension scr = Toolkit.getDefaultToolkit().getScreenSize();
+		Dimension fr = getSize();
+		fr.width += 25;
+		fr.height += 100;
+		setBounds((scr.width - fr.width) / 2, (scr.height - fr.height) / 2,
+				fr.width, fr.height);
+		setVisible(true);
+	}
+
+	private JButton addButton(String iconPath, String tooltip, ActionListener l) {
+		ImageIcon icon = new ImageIcon(MainFrame.class.getClassLoader()
+				.getResource(iconPath));
+		JButton b = new JButton(icon);
+		b.setToolTipText(tooltip);
+		b.addActionListener(l);
+		_toolBar.add(b);
+		return b;
+	}
+	
+	public void info(String text) {
+		JOptionPane.showMessageDialog(this, 
+									text,
+									Main.getName(),
+									JOptionPane.INFORMATION_MESSAGE);
+	}
+
+	public void warn(String text) {
+		JOptionPane.showMessageDialog(this, 
+									text,
+									Main.getName(),
+									JOptionPane.WARNING_MESSAGE);
+	}
+
+	public void warn(InvariantViolationException e) {
+		Binding b = e.getBinding(); 
+		if (b != null) {
+			b.markInvalid();
+		}
+		warn(e.getMessage());
+		if (b != null) {
+			e.getBinding().markValid();
+		}
+	}
+
+	public boolean confirm(String text) {
+		return JOptionPane.showConfirmDialog(MainFrame.this,
+				text,
+				Messages.getString("MainFrame.confirm"),
+				JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
+	}
+
+	private boolean isModified() {
+		return (!_configForm.isModified())
+				|| confirm(Messages.getString("MainFrame.discard.changes"));
+	}
+
+	private boolean save() {
+		// XXX
+		try {
+			_configForm.get(ConfigPersister.getInstance().getConfig());
+			if (_fileChooser.showSaveDialog(MainFrame.this) == JOptionPane.YES_OPTION) {
+				File f = _fileChooser.getSelectedFile();
+				if (!f.getPath().endsWith(".xml")) {
+					f = new File(f.getPath() + ".xml");
+				}
+				ConfigPersister.getInstance().save(f);
+				_saved = true;
+				showConfigName(f);
+				return true;
+			}
+			return false;
+		} catch (InvariantViolationException ex) {
+			warn(ex);
+			return false;
+		} catch (BindingException ex) {
+			warn(ex.getMessage());
+			return false;
+		} catch (ConfigPersisterException ex) {
+			warn(ex.getMessage());
+			return false;
+		}
+	}
+
+	private void showConfigName(File config) {
+		setTitle(Main.getName() + " - " 	+ (config != null ? config.getName()
+						: Messages.getString("MainFrame.untitled")));
+	}
+
+	private void setRunEnabled(boolean enabled) {
+		if (!enabled) {
+			_outfile = null;
+		}
+		_runButton.setEnabled(enabled);
+	}
+
+	private void clearConfig() {
+		ConfigPersister.getInstance().createBlank();
+		_configForm.clear(ConfigPersister.getInstance().getConfig());
+	}
+
+	private class MainFrameListener extends WindowAdapter {
+		public void windowOpened(WindowEvent e) {
+			clearConfig();
+		}
+
+		public void windowClosing(WindowEvent e) {
+			if (isModified()) {
+				System.exit(0);
+			}
+		}
+	}
+
+	private class NewActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			if (isModified()) {
+				clearConfig();
+			}
+			_saved = false;
+			showConfigName(null);
+			setRunEnabled(false);
+		}
+	}
+
+	private class OpenActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			try {
+				if (isModified() && _fileChooser.showOpenDialog(MainFrame.this)
+									== JOptionPane.YES_OPTION) {
+					final File f = _fileChooser.getSelectedFile(); 
+					if (f.getPath().endsWith(".xml")) {
+						ConfigPersister.getInstance().load(f);	
+						_saved = true;
+					} else {
+						ConfigPersister.getInstance().loadVersion1(f);
+						_saved = false;
+					}
+					_configForm.put(ConfigPersister.getInstance().getConfig());
+					showConfigName(f);
+					setRunEnabled(false);
+				}
+			} catch (ConfigPersisterException ex) {
+				warn(ex.getMessage());
+			} catch (BindingException ex) {
+				warn(ex.getMessage());
+			}
+		}
+	}
+	
+	private class SaveActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			save();
+		}
+	}
+	
+	private class BuildActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			final Log log = Log.getSwingLog(_configForm.getLogTextArea());
+			try {
+				if ((!_saved || _configForm.isModified())
+						&& !save()) {
+					return;
+				}
+				log.clear();
+				ConfigPersister.getInstance().getConfig().checkInvariants();
+				Builder b = new Builder(log);
+				_outfile = b.build();
+				setRunEnabled(ConfigPersister.getInstance().getConfig()
+						.getHeaderType() == Config.GUI_HEADER	// TODO fix console app test
+						&& (Util.WINDOWS_OS || !ConfigPersister.getInstance()
+												.getConfig().isDontWrapJar()));
+			} catch (InvariantViolationException ex) {
+				setRunEnabled(false);
+				ex.setBinding(_configForm.getBinding(ex.getProperty()));
+				warn(ex);
+			} catch (BuilderException ex) {
+				setRunEnabled(false);
+				log.append(ex.getMessage());
+			}
+		}
+	}
+	
+	private class RunActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			try {
+				getGlassPane().setVisible(true);
+				Worker.post(new Task() {
+					public Object run() throws ExecException {
+						Log log = Log.getSwingLog(_configForm.getLogTextArea());
+						log.clear();
+						String path = _outfile.getPath();
+						if (Util.WINDOWS_OS) {
+							log.append(Messages.getString("MainFrame.executing") + path);
+							Util.exec(new String[] { path }, log);
+						} else {
+							log.append(Messages.getString("MainFrame.jar.integrity.test")
+									+ path);
+							Util.exec(new String[] { "java", "-jar", path }, log);
+						}
+						return null;
+					}
+				});
+			} catch (Exception ex) {
+				// XXX errors logged by exec
+			} finally {
+				getGlassPane().setVisible(false);
+			}
+		};
+	}
+
+	private class AboutActionListener implements ActionListener {
+		public void actionPerformed(ActionEvent e) {
+			info(Main.getDescription());
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/Messages.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/Messages.java
new file mode 100644
index 0000000000000000000000000000000000000000..5e1c64110dbb51f59904ef2bf6315686f571bf94
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/Messages.java
@@ -0,0 +1,55 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+package net.sf.launch4j.formimpl;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class Messages {
+	private static final String BUNDLE_NAME = "net.sf.launch4j.formimpl.messages";
+
+	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+			.getBundle(BUNDLE_NAME);
+
+	private Messages() {
+	}
+
+	public static String getString(String key) {
+		try {
+			return RESOURCE_BUNDLE.getString(key);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/MessagesFormImpl.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/MessagesFormImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..c05d7f0474de5961508ed0399741db65496d2333
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/MessagesFormImpl.java
@@ -0,0 +1,58 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on Oct 7, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import net.sf.launch4j.binding.Bindings;
+import net.sf.launch4j.config.Msg;
+import net.sf.launch4j.form.MessagesForm;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class MessagesFormImpl extends MessagesForm {
+
+	public MessagesFormImpl(Bindings bindings) {
+		Msg m = new Msg();
+		bindings.addOptComponent("messages", Msg.class, _messagesCheck)
+				.add("messages.startupErr", _startupErrTextArea, 	m.getStartupErr())
+				.add("messages.bundledJreErr", _bundledJreErrTextArea, m.getBundledJreErr())
+				.add("messages.jreVersionErr", _jreVersionErrTextArea, m.getJreVersionErr())
+				.add("messages.launcherErr", _launcherErrTextArea, m.getLauncherErr())
+				.add("messages.instanceAlreadyExistsMsg", _instanceAlreadyExistsMsgTextArea,
+						m.getInstanceAlreadyExistsMsg());
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/SingleInstanceFormImpl.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/SingleInstanceFormImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..c916a9184b55f42216022cf87966b06b6901c31f
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/SingleInstanceFormImpl.java
@@ -0,0 +1,54 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/**
+ * Created on 2007-09-22
+ */
+package net.sf.launch4j.formimpl;
+
+import net.sf.launch4j.binding.Bindings;
+import net.sf.launch4j.config.SingleInstance;
+import net.sf.launch4j.form.SingleInstanceForm;
+
+/**
+ * @author Copyright (C) 2007 Grzegorz Kowal
+ */
+public class SingleInstanceFormImpl extends SingleInstanceForm {
+
+	public SingleInstanceFormImpl(Bindings bindings) {
+		bindings.addOptComponent("singleInstance", SingleInstance.class,
+								_singleInstanceCheck)
+				.add("singleInstance.mutexName", _mutexNameField)
+				.add("singleInstance.windowTitle", _windowTitleField);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/SplashFormImpl.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/SplashFormImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..7413d4a213f3ae0c158684b354bfc00cde91a4cd
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/SplashFormImpl.java
@@ -0,0 +1,61 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 1, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import javax.swing.JFileChooser;
+
+import net.sf.launch4j.FileChooserFilter;
+import net.sf.launch4j.binding.Bindings;
+import net.sf.launch4j.config.Splash;
+import net.sf.launch4j.form.SplashForm;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class SplashFormImpl extends SplashForm {
+
+	public SplashFormImpl(Bindings bindings, JFileChooser fc) {
+		bindings.addOptComponent("splash", Splash.class, _splashCheck)
+				.add("splash.file", _splashFileField)
+				.add("splash.waitForWindow", _waitForWindowCheck, true)
+				.add("splash.timeout", _timeoutField, "60")
+				.add("splash.timeoutErr", _timeoutErrCheck, true);
+
+		_splashFileButton.addActionListener(new BrowseActionListener(false, fc,
+				new FileChooserFilter("Bitmap files (.bmp)", ".bmp"), _splashFileField));
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/VersionInfoFormImpl.java b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/VersionInfoFormImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..c2f60d1d38a3cc7b176a7effbd5eb27f0d162046
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/VersionInfoFormImpl.java
@@ -0,0 +1,63 @@
+/*
+	Launch4j (http://launch4j.sourceforge.net/)
+	Cross-platform Java application wrapper for creating Windows native executables.
+
+	Copyright (c) 2004, 2007 Grzegorz Kowal
+
+	All rights reserved.
+
+	Redistribution and use in source and binary forms, with or without modification,
+	are permitted provided that the following conditions are met:
+
+	    * Redistributions of source code must retain the above copyright notice,
+	      this list of conditions and the following disclaimer.
+	    * Redistributions in binary form must reproduce the above copyright notice,
+	      this list of conditions and the following disclaimer in the documentation
+	      and/or other materials provided with the distribution.
+	    * Neither the name of the Launch4j nor the names of its contributors
+	      may be used to endorse or promote products derived from this software without
+	      specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Created on May 1, 2006
+ */
+package net.sf.launch4j.formimpl;
+
+import javax.swing.JFileChooser;
+
+import net.sf.launch4j.binding.Bindings;
+import net.sf.launch4j.config.VersionInfo;
+import net.sf.launch4j.form.VersionInfoForm;
+
+/**
+ * @author Copyright (C) 2006 Grzegorz Kowal
+ */
+public class VersionInfoFormImpl extends VersionInfoForm {
+
+	public VersionInfoFormImpl(Bindings bindings, JFileChooser fc) {
+		bindings.addOptComponent("versionInfo", VersionInfo.class, _versionInfoCheck)
+				.add("versionInfo.fileVersion", _fileVersionField)
+				.add("versionInfo.productVersion", _productVersionField)
+				.add("versionInfo.fileDescription", _fileDescriptionField)
+				.add("versionInfo.internalName", _internalNameField)
+				.add("versionInfo.originalFilename", _originalFilenameField)
+				.add("versionInfo.productName", _productNameField)
+				.add("versionInfo.txtFileVersion", _txtFileVersionField)
+				.add("versionInfo.txtProductVersion", _txtProductVersionField)
+				.add("versionInfo.companyName", _companyNameField)
+				.add("versionInfo.copyright", _copyrightField);
+	}
+}
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/messages.properties b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/messages.properties
new file mode 100644
index 0000000000000000000000000000000000000000..53a2442a886f609ef941a924a4844c700db892f6
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/messages.properties
@@ -0,0 +1,74 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+tab.basic=Basic
+tab.classpath=Classpath
+tab.header=Header
+tab.singleInstance=Single instance
+tab.jre=JRE
+tab.envVars=Set env. variables
+tab.splash=Splash
+tab.version=Version Info
+tab.messages=Messages
+
+# Basic
+jar=Jar:
+jarPath=Jar runtime path:
+jarTip=Application jar.
+jarPathTip=Optional runtime path of the jar relative to the executable. For example, if the executable launcher and the application jar named calc.exe and calc.jar are in the same directory, it would be: calc.jar.
+
+# Classpath
+specifyClassPath=Specify classpath item to add.
+confirmClassPathRemoval=Remove selected classpath items?
+noManifest=The selected jar does not have a manifest.
+
+# JRE
+specifyVar=Specify environment variable to add.
+otherVar=Other var
+jdkPreference.jre.only=Only use public JREs
+jdkPreference.prefer.jre=Prefer public JRE, but use JDK runtime if newer
+jdkPreference.prefer.jdk=Prefer JDK runtime, but use public JRE if newer
+jdkPreference.jdk.only=Only use private JDK runtimes
+
+MainFrame.config.files=launch4j config files (.xml, .cfg)
+MainFrame.new.config=New configuration
+MainFrame.open.config=Open configuration or import 1.x
+MainFrame.save.config=Save configuration
+MainFrame.build.wrapper=Build wrapper
+MainFrame.test.wrapper=Test wrapper
+MainFrame.about.launch4j=About launch4j
+MainFrame.discard.changes=Discard changes?
+MainFrame.confirm=Confirm
+MainFrame.untitled=untitled
+MainFrame.executing=Executing: 
+MainFrame.jar.integrity.test=Jar integrity test, executing: 
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/formimpl/messages_es.properties b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/messages_es.properties
new file mode 100644
index 0000000000000000000000000000000000000000..1d2fac25f5f82e23581110677a8a71fa1677b6f9
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/formimpl/messages_es.properties
@@ -0,0 +1,56 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal, Patricio Martínez Ros
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+tab.basic = B\u00E1sico
+tab.header = Cabecera
+tab.jre = JRE
+tab.splash = Pantalla de bienvenida
+tab.version = Informaci\u00F3n de la versi\u00F3n
+
+jar = Jar
+jarPath = Ruta del jar
+jarTip = Jar de la aplicaci\u00F3n.
+jarPathTip = Ruta del jar relativa al ejecutable. Por ejemplo, si el lanzador ejecutable y el jar de la aplicaci\u00F3n, llamados calc.exe y calc.jar respectivamente, est\u00E1n en el mismo directorio, ser\u00EDa\: calc.jar.
+
+MainFrame.config.files = Ficheros de configuraci\u00F3n de launch4j (.xml, .cfg)
+MainFrame.new.config = Nueva configuraci\u00F3n
+MainFrame.open.config = Abrir configuraci\u00F3n o importar 1.x
+MainFrame.save.config = Guardar configuraci\u00F3n
+MainFrame.build.wrapper = Construir el empaquetador
+MainFrame.test.wrapper = Comprobar el empaquetador
+MainFrame.about.launch4j = Acerca de launch4j
+MainFrame.discard.changes = \u00BFDescartar cambios?
+MainFrame.confirm = Confirmar
+MainFrame.untitled = Sin nombre
+MainFrame.executing = Ejecutando\: 
+MainFrame.jar.integrity.test = Prueba de integridad jar, ejecutando\: 
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/messages.properties b/installer/lib/launch4j/src/net/sf/launch4j/messages.properties
new file mode 100644
index 0000000000000000000000000000000000000000..cf28d15afd467fd399877139c4bdf7aa6263d5c3
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/messages.properties
@@ -0,0 +1,45 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+Main.usage=usage
+
+Builder.compiling.resources=Compiling resources
+Builder.linking=Linking
+Builder.wrapping=Wrapping
+Builder.success=Successfully created 
+Builder.generated.resource.file=Generated resource file...\n
+Builder.line.has.errors=Line {0} has errors...
+
+Util.exec.failed=Exec failed
+Util.tmpdir=Temporary file directory path (launch4j.tmpdir) cannot contain spaces.
+Util.use.double.backslash=Use \\\\ to code Windows paths in fields that don't represent files or paths!
diff --git a/installer/lib/launch4j/src/net/sf/launch4j/messages_es.properties b/installer/lib/launch4j/src/net/sf/launch4j/messages_es.properties
new file mode 100644
index 0000000000000000000000000000000000000000..b179d9bd5111479574dd26011eecbdbbe7b0291e
--- /dev/null
+++ b/installer/lib/launch4j/src/net/sf/launch4j/messages_es.properties
@@ -0,0 +1,45 @@
+#
+#	Launch4j (http://launch4j.sourceforge.net/)
+#	Cross-platform Java application wrapper for creating Windows native executables.
+#
+#	Copyright (c) 2004, 2007 Grzegorz Kowal, Patricio Martínez Ros
+#
+#	All rights reserved.
+#
+#	Redistribution and use in source and binary forms, with or without modification,
+#	are permitted provided that the following conditions are met:
+#
+#	    * Redistributions of source code must retain the above copyright notice,
+#	      this list of conditions and the following disclaimer.
+#	    * Redistributions in binary form must reproduce the above copyright notice,
+#	      this list of conditions and the following disclaimer in the documentation
+#	      and/or other materials provided with the distribution.
+#	    * Neither the name of the Launch4j nor the names of its contributors
+#	      may be used to endorse or promote products derived from this software without
+#	      specific prior written permission.
+#
+#	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+#	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#	A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+#	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+#	EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+#	PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+#	LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+#	NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+#	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+Main.usage=Uso
+
+Builder.compiling.resources=Compilando recursos
+Builder.linking=Enlazando
+Builder.wrapping=Empaquetando
+Builder.success=Creado con \ufffdxito 
+Builder.generated.resource.file=Fichero de recursos generado...\n
+Builder.line.has.errors=Line {0} has errors...
+
+Util.exec.failed=Fallo en la ejecuci\ufffd
+Util.tmpdir=Temporary file directory path (launch4j.tmpdir) cannot contain spaces.
+Util.use.double.backslash=Use \\\\ to code Windows paths in fields that don't represent files or paths!
\ No newline at end of file
diff --git a/installer/lib/launch4j/w32api/MinGW.LICENSE.txt b/installer/lib/launch4j/w32api/MinGW.LICENSE.txt
index aea85bd8dcdca1c79355d9f81a5c17437934df10..141412dd9f1d4bb7b7337a09b6ffa159f98ace8b 100644
--- a/installer/lib/launch4j/w32api/MinGW.LICENSE.txt
+++ b/installer/lib/launch4j/w32api/MinGW.LICENSE.txt
@@ -1,25 +1,25 @@
-MinGW - Licensing Terms
-
-Various pieces distributed with MinGW come with its own copyright and license:
-
-Basic MinGW runtime
-    MinGW base runtime package is uncopyrighted and placed in the public domain.
-    This basically means that you can do what you want with the code.
-
-w32api
-    You are free to use, modify and copy this package.
-    No restrictions are imposed on programs or object files compiled with this library.
-    You may not restrict the the usage of this library.
-    You may distribute this library as part of another package or as a modified package
-    if and only if you do not restrict the usage of the portions consisting
-    of this (optionally modified) library.
-    If distributed as a modified package then this file must be included.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty
-    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-MinGW profiling code
-    MinGW profiling code is distributed under the GNU General Public License. 
-
-The development tools such as GCC, GDB, GNU Make, etc all covered by GNU General Public License.
+MinGW - Licensing Terms
+
+Various pieces distributed with MinGW come with its own copyright and license:
+
+Basic MinGW runtime
+    MinGW base runtime package is uncopyrighted and placed in the public domain.
+    This basically means that you can do what you want with the code.
+
+w32api
+    You are free to use, modify and copy this package.
+    No restrictions are imposed on programs or object files compiled with this library.
+    You may not restrict the the usage of this library.
+    You may distribute this library as part of another package or as a modified package
+    if and only if you do not restrict the usage of the portions consisting
+    of this (optionally modified) library.
+    If distributed as a modified package then this file must be included.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty
+    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+MinGW profiling code
+    MinGW profiling code is distributed under the GNU General Public License. 
+
+The development tools such as GCC, GDB, GNU Make, etc all covered by GNU General Public License.
diff --git a/installer/lib/launch4j/w32api/crt2.o b/installer/lib/launch4j/w32api/crt2.o
index 462667056e82e18f461494e459ce085aa92969e3..f81f836cf0029d4af7b7db21e05a85add3ba4627 100644
Binary files a/installer/lib/launch4j/w32api/crt2.o and b/installer/lib/launch4j/w32api/crt2.o differ
diff --git a/installer/lib/launch4j/w32api/libadvapi32.a b/installer/lib/launch4j/w32api/libadvapi32.a
index 801c6606c0f7e878083b6ed7ec6f782b61dede22..c471853c7d04274e3b24db67385e541d39ff128c 100644
Binary files a/installer/lib/launch4j/w32api/libadvapi32.a and b/installer/lib/launch4j/w32api/libadvapi32.a differ
diff --git a/installer/lib/launch4j/w32api/libkernel32.a b/installer/lib/launch4j/w32api/libkernel32.a
index c45e991a7f447f019d994865ae9329f633802500..5d3eb074f5097b30a42feb2422e92464a306bf01 100644
Binary files a/installer/lib/launch4j/w32api/libkernel32.a and b/installer/lib/launch4j/w32api/libkernel32.a differ
diff --git a/installer/lib/launch4j/w32api/libmingw32.a b/installer/lib/launch4j/w32api/libmingw32.a
index f342ffaf97a75239e0e0b0858bfff5b0c5564614..d1f7888d8129dbea49e96bfade7b49614dbdc81d 100644
Binary files a/installer/lib/launch4j/w32api/libmingw32.a and b/installer/lib/launch4j/w32api/libmingw32.a differ
diff --git a/installer/lib/launch4j/w32api/libmsvcrt.a b/installer/lib/launch4j/w32api/libmsvcrt.a
index 89662e8fb79a1058597e6554f13f9986df25dc90..6714146b6957201665a0e97ca348824ae41f9c33 100644
Binary files a/installer/lib/launch4j/w32api/libmsvcrt.a and b/installer/lib/launch4j/w32api/libmsvcrt.a differ
diff --git a/installer/lib/launch4j/w32api/libshell32.a b/installer/lib/launch4j/w32api/libshell32.a
index ba79d6c6b8e161257afd2939e4321504f6ce81ec..d35fbdaf375edbb33e00f07b91d0ef8e2a5dcf01 100644
Binary files a/installer/lib/launch4j/w32api/libshell32.a and b/installer/lib/launch4j/w32api/libshell32.a differ
diff --git a/installer/lib/launch4j/w32api/libuser32.a b/installer/lib/launch4j/w32api/libuser32.a
index 3cd52eb7ffa993f7b47fc3d6c16a647a7c754acf..387fb650d2364f0711b605f6cb542ef7208b8974 100644
Binary files a/installer/lib/launch4j/w32api/libuser32.a and b/installer/lib/launch4j/w32api/libuser32.a differ
diff --git a/installer/lib/launch4j/web/bullet.gif b/installer/lib/launch4j/web/bullet.gif
new file mode 100644
index 0000000000000000000000000000000000000000..f3f133bb872eeaf0d9b8eb8192710ee2ae90e927
Binary files /dev/null and b/installer/lib/launch4j/web/bullet.gif differ
diff --git a/installer/lib/launch4j/web/changelog.html b/installer/lib/launch4j/web/changelog.html
index 7c1a519d756c5a6bf7bd9250d54016ac63e21cbc..83511a554898e13bd81282fd5d4131cd6ef9895a 100644
--- a/installer/lib/launch4j/web/changelog.html
+++ b/installer/lib/launch4j/web/changelog.html
@@ -1,202 +1,356 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head>
-  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-  
-  <title>Launch4j :: Cross-platform java application wrapper for creating Windows native executables</title><meta content="Grzegorz Kowal" name="author">
-  <meta content="Cross-platform java application wrapper for creating Windows native executables.
-Features native splash screen, application icon, small stub." name="description">
-  <meta name="Keywords" content="Java, java, exe, native, windows, Windows, jar, wrap, wrapper, launch,
-run, execute, executable, splash, icon, ico, ant, build, script, deploy, free, freeware, open source,
-gpl, GPL, lgpl, LGPL, sourceforge, c++, C++, W2K, WXP, W98, linux, Linux">
-  <link rel="stylesheet" type="text/css" href="layout.css">
-  <link rel="stylesheet" type="text/css" href="style.css"></head>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+	<head>
+		<title>Launch4j - Cross-platform Java executable wrapper</title>
+		<meta name="description" content="Cross-platform Java executable wrapper for creating lightweight Windows native EXEs. Provides better user experience.">
+		<meta name="keywords" content="java executable wrapper, java application wrapper, exe wrapper, jar wrapper, wrap, wraps, wrapping, free software, launch, launcher, linux, mac, windows, open source, ant, solaris, native splash screen, deploy, build tool">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<meta name="author" content="Grzegorz Kowal" >
+		<link rel="stylesheet" type="text/css" href="style.css">
+	</head>
+	<body>
+		<div id="container">
+			<div id="top">
+				<img style="width: 249px; height: 58px;" src="launch4j.gif" alt="launch4j"> <span class="version">3.0.1</span>
+			</div>
+			<div id="leftnav">
+				<ul>
+					<li><a href="index.html">Home</a></li>
+					<li><a href="docs.html">Docs</a></li>
+					<li><a href="changelog.html">Changelog</a></li>
+					<li><a href="http://sourceforge.net/project/screenshots.php?group_id=95944">Screenshots</a></li>
+					<li><a href="http://sourceforge.net/project/showfiles.php?group_id=95944&amp;package_id=192323">Download</a></li>
+					<li><a href="http://sourceforge.net/forum/?group_id=95944">Support</a></li>
+					<li><a href="http://sourceforge.net/projects/launch4j">Project summary</a></li>
+					<li><a href="http://sourceforge.net/tracker/?atid=613100&amp;group_id=95944">Bug tracker</a></li>
+					<li><a href="links.html">Links</a></li>
+				</ul>
+				<!--
+					*** Spanish docs are outdated ***
+					<ul style="margin-top: 20px; font-size: 75%">
+						<li><a href="index.html">English</a></li>
+						<li><a href="index_es.html">Español</a></li>
+					</ul>
+				-->
+			</div>
+			<div id="content">
+<h2>Changelog</h2>
+
+<h4>Changes in version 3.0.1 (20-07-2008)</h4>
+<ul class="changes">
+	<li>Enhanced the runtime logging (--l4j-debug).</li>
+	<li>Fixed critical bug #1925387 64-bit JDK detection problem caused a runtime search error (found by Stivo).</li>
+	<li>Fixed bug #1919406, #1989479 Not every option is loaded from saved xml file (found by Robert Lachner, Jan-Philipp Rathje).</li>
+	<li>Fixed bug #1930222 Simple typo (found by Daniel).</li>
+</ul>
 
-<body>
-<div id="container">
-<div id="top"><img style="width: 249px; height: 58px;" alt="" src="launch4j.gif"><span style="color: rgb(48, 127, 225);"> <small><span style="font-weight: bold; font-family: Helvetica,Arial,sans-serif;">1.4.2,&nbsp;
-2.0.RC3</span></small></span>
-</div>
-<div id="leftnav">
-<ul id="navlist">
-  <li><a href="index.html"><span style="font-weight: bold;"></span>Home</a></li>
-  <li><a href="docs1.html"><span style="font-weight: bold;"></span>1.x
-docs</a></li>
-  <li><a href="docs2.html"><span style="font-weight: bold;"></span>2.x
-docs</a></li>
-  <li><a href="changelog.html"><span style="font-weight: bold;"></span>Changelog</a></li>
-  <li><a href="http://sourceforge.net/project/screenshots.php?group_id=95944"><span style="font-weight: bold;"></span>Screenshots</a></li>
-  <li><a href="http://sourceforge.net/project/showfiles.php?group_id=95944"><span style="font-weight: bold;"></span>Download</a></li>
-  <li><a href="http://sourceforge.net/forum/?group_id=95944"><span style="font-weight: bold;"></span>Support</a></li>
-  <li><a href="http://sourceforge.net/projects/launch4j"><span style="font-weight: bold;"></span>Project
-summary</a></li>
-  <li><a href="http://sourceforge.net/tracker/?atid=613100&amp;group_id=95944"><span style="font-weight: bold;"></span>Bug
-tracker</a></li>
-  <li><a href="links.html"><span style="font-weight: bold;"></span>Links</a></li>
+<h4>Changes in version 3.0.0 (16-03-2008)</h4>
+<ul class="changes">
+	<li>FR #1390075 Added dynamic initial/max heap values.</li>
+	<li>FR #1707827 Allow to prefer JDK private runtimes over JREs (Ian Roberts).</li>
+	<li>FR #1730245 Allow to run only a single aplication instance (Sylvain Mina).</li>
+	<li>FR #1391610 Added IBM JRE/JDK support.</li>
+	<li>Added environment variable expansion in bundled JRE path.</li>
+	<li>Fixed critical bug #1882524 JRE detection problem on 64-bit Windows.</li>
+	<li>Fixed bug #1758912 Vista elevation to full administrator privileges.</li>
+	<li>Fixed bug #1784341 Problems with spaces in paths under linux (Michael Piefel).</li>
+	<li>Fixed bug where /bin was appended to path environment variable instead of jre_path/bin.</li>
 </ul>
-</div>
-<div id="content">
-<h2>Changelog</h2>
-<strong>Changes in version 2.0 RC3 (13-08-2005) -&nbsp;final RC<br></strong><ul><li>Correct handling of pathnames with spaces.</li><li>Fixed the '%20' pathname bug.</li><li>Fixed basedir bug&nbsp;(Richard Xing).</li><li>Splash screen can be closed when the application window becomes visible with out specifying it's title (Martin Busik),&nbsp;update your config file: <font color="#ff0000">&lt;waitForTitle&gt;title&lt;/waitForTitle&gt;</font>
-is now <font color="#ff0000">&lt;waitForWindow&gt;true&lt;/waitForWindow&gt;</font>.</li><li>Fixed build.bat files in demo directories.</li></ul><strong>Changes in version 2.0 RC2 (21-06-2005)<br>
-</strong>
-<ul>
-  <li>chdir allows to change the current directory to arbitrary paths
-relative to the executable (FR #1144907). It's incompatible with
-previous versions, update your config file: <font color="#ff0000">&lt;chdir&gt;true&lt;/chdir&gt;</font>
-is now <font color="#ff0000">&lt;chdir&gt;.&lt;/chdir&gt;</font>.<br>
-  </li>
-  <li>Embedded JRE path no longer depends on chdir function.<br>
-  </li>
-  <li>Fixed Ant task bug, build files outside launch4j's directory
-wouldn't work. (Josh Elsasser submitted a patch that works without
-setting launch4j's home dir in the build file. Thanks!).</li>
-  <li>Removed static edge from splash screen (Serge Baranov).</li>
-  <li>Program checks that the output file path doesn't contain spaces.</li>
-  <li>Fixed a NPE bug caused by a missing maxVersion property (found by
-Morgan Schweers).</li>
-  <li>Fixed relative JRE path bug (found by Nili_).</li>
-  <li>Cleaned up the Builder class.</li>
-  <li>Fixed Ant task NPE where the config was entirely defined in the
-build file (Josh Elsasser).</li>
-</ul>
-<strong>Changes in version 2.0
-RC (07-06-2005)</strong><br>
-<ul>
-  <li>Added an Ant task for better build integration.</li>
-  <li>Added 2.x documentation.</li>
-  <li>Updated the demo configuration files.</li>
-  <li>Fixed issues with relative paths in the configuration.</li>
-  <li>Removed the '-1' option in console mode.<br>
-  </li>
-  <li>Minor fixes.<br>
-  </li>
-</ul>
-<strong>Changes in version 2.0
-beta2 (23-05-2005)<br>
-</strong>
-<ul>
-  <li># comments are recognized when importing 1.x cfg files.</li>
-  <li>Added version information.</li>
-  <li>Resource file is displayed when a resource error occurs.</li>
-  <li>Fixed a bug found by Max, options on the first tab were always
-enabled.<br>
-  </li>
-</ul>
-<p><strong>Changes in version 2.0
-beta1 (13-05-2005)<br>
-</strong> </p>
-<ul>
-  <li>Completely new, cross-platform wrapper - create windows
-executables on Linux.<br>
-  </li>
-  <li>New .xml configuration file.</li>
-  <li>Application icon with multiple resolutions and color depths.</li>
-  <li>Swing GUI interface.</li>
-  <li>Header compiled with MinGW port of gcc instead of VC++.<br>
-  </li>
-</ul>
-<strong></strong><strong>Changes in version
-1.4.2 (12-03-2005)</strong><span style="font-weight: bold;"><br>
-</span>
-<ul>
-  <li>Fixed bug #1158143<span style="font-weight: bold;">, </span>stayAlive
-without a splash screen caused an infinite loop (found by Gregory
-Kotsaftis).<br>
-  </li>
-</ul>
-<span style="font-weight: bold;"></span><strong>Changes in
-version 1.4.1 (04-03-2005)</strong><br>
-<ul>
-  <li>Fixed bug #1119040, buffer for reading config properties
-was too short (found by Tom Jensen and Neil).</li>
-  <li>Added configurable splash timeout (FR #1102951).</li>
-  <li>Added option to disable the error message on splash timeout
-(FR #1109159).</li>
-  <li>Option to keep the gui launcher 'alive' after starting an
-application (FR #1124653).</li>
-  <li>Removed version info.</li>
-  <li>'waitfor' property is now optional.</li>
-</ul>
-<span style="font-weight: bold;"></span><strong>Changes in
-version
-1.4.0
-(26-01-2005)</strong><b><br>
-</b>
-<ul>
-  <li>Removed .lch4j suffix from process name, now it has the
-form of the executable filename. The temporary launchers are stored in
-launch4j-tmp directory (suggested by Emmanuel).</li>
-  <li>Added support for console apps (FR #1050053).</li>
-</ul>
-<br>
-<span style="font-weight: bold;"></span><strong>Changes in
-version
-1.3.1
-(05-11-2004)</strong><b><br>
-</b>
-<ul>
-  <li>Fixed a bug where explorer window was opened instead of
-launching the application when setProcName was set to false (found by
-Rob Jones).</li>
-  <li>Fixed temporary launcher deletion bug.</li>
-</ul>
-<br>
-<strong>Changes in version 1.3.0 (01-11-2004)</strong><b><br>
-</b>
-<ul>
-  <li>Now you can configure launch4j to:<br>
-    <ul>
-      <li>Use a bundled JRE.</li>
-      <li>Search for java, show an error message if the
-right version cannot be found and open the java download page.</li>
-      <li>And a feature you asked for: use bundled JRE, if
-that fails search for java and bring up the java download page on error.</li>
-    </ul>
-  </li>
-  <li>Enhanced code that sets the custom process name. In
-case launch4j can't refresh the temporary launcher, bundled JRE on a
-read only file system for example, it will use one created previously,
-if it's present and has the correct size. If not, launching will still
-continue, but with javaw.exe process name.Temporary launchers are
-now created in the jre directory instead of jre/bin.<br>
-  </li>
-  <li>errTitle property allows to set the title of the error
-message box.</li>
-</ul>
-<b><br>
-</b><strong>Changes in version 1.2.1 (25-09-2004)</strong><b><br>
-</b>
-<ul>
-  <li>Bugfix that allows launching from command line using short
-name (#1026514 / found by Zach Del)</li>
-</ul>
-<b><br>
-</b><strong>Changes in version 1.2.0 (10-09-2004)</strong><br>
-<ul>
-  <li><strong>Custom process name</strong> (<i>myapp.lch4j.exe</i>)</li>
-  <li><strong>9 KB stub!</strong></li>
-  <li>Jar arguments<br>
-  </li>
-  <li>Bugfix that allows launching from command line.</li>
-  <li>Hide splash on javaw error.<br>
-  </li>
-  <li>Easier configuration with case insensitive parameters +
-show
-unrecognized parameter.</li>
-  <li>12 KB demo application, 34 KB with splash screen.</li>
-  <li><font color="#ff0000">Configuration parameter 'args' <strong>changed
-to</strong> 'jvmArgs'</font></li>
+
+<h4>Changed license to BSD, MIT (26-01-2008)</h4>
+<ul class="changes">
+	<li>
+		The upcoming Launch4j 3.0.0 release will be licensed under the much more
+		liberal new BSD license. The head subproject (the binary header attached to wrapped jars)
+		will be licensed under the similar MIT license.
+	</li>
 </ul>
-</div>
-<div id="footer">
-Copyright
-&copy; 2005 Grzegorz Kowal
-<br>
-<br>
-<p><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=95944&amp;type=4" alt="SourceForge.net Logo" border="0" height="37" width="125"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="http://www.nosoftwarepatents.com"><img alt="" src="http://www.nosoftwarepatents.com/banners/90x40_3.jpg" style="border: 0px solid ; width: 90px; height: 40px;"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" border="0" height="31" width="88"></a>
-</p>
-</div>
-</div>
-</body></html>
\ No newline at end of file
+
+<h4>Changes in version 3.0.0-pre2 (29-10-2006)</h4>
+<ul class="changes">
+	<li>Enhanced GUI.</li>
+	<li>Redesigned error reporting.</li>
+	<li>Added custom error messages.</li>
+	<li>Added support website feature.</li>
+	<li>Added PWD and OLDPWD special variables and access to the registry.</li>
+	<li>Runtime ini file extension changed to .l4j.ini, added comments (#).</li>
+	<li>FR #1427811 Initial process priority.</li>
+	<li>FR #1547339 Added VarFileInfo structure to Version Info (Stephan Laertz).</li>
+	<li>FR #1584295 Updated documentation for --l4j-debug.
+	<li>Fixed &lt;jarArgs/&gt; and &lt;args/&gt; config conversion bug (found by Dafe Simonek).</li>
+	<li>Fixed the Ant task exception reporting bug, added tmpdir and bindir attributes.</li>
+	<li>Fixed bug #1563415 Problem with launching application when ini file exists (found by mojomax).</li>
+	<li>Fixed bug #1527619 Console header wildcard expansion (found by erikjv).</li>
+	<li>Fixed bug #1544167 NPE when dontwrap and only classpath given (found by Hendrik Schreiber).</li>
+	<li>Fixed bug #1584264 Dropdown boxes get mixed up (found by Larsen).</li>
+</ul>
+
+<h4>News (17-10-2006)</h4>
+<ul class="changes">
+	<li><a href="http://9stmaryrd.com/tools/launch4j-maven-plugin/">Launch4j Maven Plugin by Paul A. Jungwirth</a></li>
+</ul>
+
+<h4>Changes in version 3.0.0-pre1 (21-07-2006)</h4>
+<ul class="changes">
+	<li>Improved configuration file format and embedded Ant config.</li>
+	<li>Launch executable jars, regular jars and class files.</li>
+	<li>Added dynamic classpath resolution with environment variable references and wildcards.</li>
+	<li>Added option to set environment variables before launching the application.</li>
+	<li>New command line switches to change the compiled options.</li>
+	<li>Improved debug information.</li>
+	<li>Added support for XP visual style manifests.</li>
+	<li>Added option to disable use of private JREs.</li>
+	<li>Many small fixes and improvements...</li>
+</ul>
+
+<h4 class="warn">Configuration file changes in 3.x</h4>
+<ul class="changes">
+	<li>Previous formats (1.x and 2.x) are supported.</li>
+	<li><em>&lt;headerType&gt;</em> accepts gui|console</li>
+	<li><em>&lt;jarArgs&gt;</em> was changed to <em>&lt;cmdLine&gt;</em></li>
+	<li>
+		<em>&lt;launch4jConfig&gt;&lt;headerObjects&gt;&lt;file&gt;</em> was changed to
+		<em>&lt;launch4jConfig&gt;&lt;obj&gt;</em>
+	</li>
+	<li>
+		<em>&lt;launch4jConfig&gt;&lt;libs&gt;&lt;file&gt;</em> was changed to
+		<em>&lt;launch4jConfig&gt;&lt;lib&gt;</em>
+	</li>
+	<li>
+		<em>&lt;launch4jConfig&gt;&lt;jre&gt;&lt;args&gt;</em> was changed to multiple
+		<em>&lt;launch4jConfig&gt;&lt;jre&gt;&lt;opt&gt;</em>
+	</li>
+</ul>
+
+<h4 class="warn">Embedded Ant configuration changes in 3.x</h4>
+<ul class="changes">
+	<li>
+		<em>&lt;jre args="value"&gt;</em> was changed to
+		<em>&lt;jre&gt;&lt;opt&gt;value&lt;/opt&gt;&lt;/jre&gt;</em>
+	</li>
+	<li>Now it's possible to define headerObjects, libs and classpath.</li>
+</ul>
+
+<h4>Changes in version 2.1.5 (21-07-2006)</h4>
+<ul class="changes">
+	<li>Changed the Java download site to http://java.com/download.</li>
+	<li>Now it's possible to use absolute and relative paths to specify the bundled JRE.</li>
+</ul>
+
+<h4>Changes in version 2.1.4 (15-06-2006)</h4>
+<ul class="changes">
+	<li>
+		Fixed bug #1503996 Only the first wrapper instance had a custom process name
+		(found by Helge Böhme).
+	</li>
+</ul>
+
+<h4>Changes in version 2.1.3 (31-05-2006)</h4>
+<ul class="changes">
+	<li>
+		Fixed bug #1497453 Ant task doesn't support relative jar path with '..'
+		(found by Aston, Pavel Moukhataev).
+	</li>
+	<li>Jar argument size limit is now 16KB.</li>
+	<li>Environment variable size limit raised to 32KB.</li>
+	<li>Allow to concatenate multiple env. variables in one property (Maria D.)</li>
+	<li>Added launch4j.tmpdir property.</li>
+</ul>
+
+<h4>Changes in version 2.1.2 (03-04-2006)</h4>
+<ul class="changes">
+	<li>Important bugfix: insufficient command line buffer size was increased to 32KB
+	(found by Sebastian Kopsan).</li>
+	<li>Added runtime JVM options from an .ini file.</li>
+	<li>Launch4j's bin directory is now configurable through launch4j.bindir
+	system property.</li>
+</ul>
+
+<h4>Changes in version 2.1.1 (25-01-2006)</h4>
+<ul class="changes">
+	<li>Fixed bug #1402748. Validation error occurred when using an Ant task with
+		embedded config and dontWrapJar option (found by Chris Nokleberg).</li>
+</ul>
+
+<h4>Changes in version 2.1.0 (10-01-2006)</h4>
+<ul class="changes">
+	<li><b>More features and smaller header: 18 KB!!</b></li>
+	<li>Added launcher mode, you can choose whether or not to wrap the jar.</li>
+	<li>Spanish translation of the website/docs and program messages
+		(Patricio Martínez Ros).</li>
+	<li>JRE's bin directory is appended to the Path environment variable
+		(Ianiv Schweber).</li>
+	<li>Added special variables EXEDIR and EXEFILE that hold the executable's
+		directory and full path.</li>
+	<li>Support for mapping environment variables to system properties.</li>
+	<li>Added debug launching mode - various information is displayed before
+		starting the Java application.</li>
+	<li>Fixed min/max JRE version checking, previous versions allowed these
+		to be equal (found by Ryan).</li>
+	<li>Bug fixed. Quotes in jar/JVM arguments were handled incorrectly (found by Juan Alvarez Ferrando).</li>
+	<li>A few other enhancements.</li>
+</ul>
+
+<h4>Changes in version 2.0.0 (31-10-2005)</h4>
+<ul class="changes">
+	<li>Launch4j for Mac OS X is available thanks to Peter Centgraf.</li>
+	<li>Added support for custom headers.</li>
+	<li>Fixed bug #1343908, command line arguments with spaces were handled
+		incorrectly by the console header (found by Oliver Schaefer / Steve Alberty).</li>
+	<li>Fixed stdin redirection bug (found by Timo Santasalo).</li>
+</ul>
+
+<h4>Changes in version 2.0 RC3 (13-08-2005) - final RC</h4>
+<ul class="changes">
+	<li>Correct handling of pathnames with spaces.</li>
+	<li>Fixed the '%20' pathname bug.</li>
+	<li>Fixed basedir bug (Richard Xing).</li>
+	<li>Splash screen can be closed when the application window becomes visible
+		with out specifying it's title (Martin Busik).
+		Update your config file: <em>&lt;waitForTitle&gt;title&lt;/waitForTitle&gt;</em>
+		is now <em>&lt;waitForWindow&gt;true&lt;/waitForWindow&gt;</em>.
+	</li>
+	<li>Fixed build.bat files in demo directories.</li>
+</ul>
+
+<h4>Changes in version 2.0 RC2 (21-06-2005)</h4>
+<ul class="changes">
+	<li>chdir allows to change the current directory to arbitrary paths
+		relative to the executable (FR #1144907). It's incompatible with
+		previous versions, update your config file:
+		<em>&lt;chdir&gt;true&lt;/chdir&gt;</em>
+		is now <em>&lt;chdir&gt;.&lt;/chdir&gt;</em>.
+	</li>
+	<li>Bundled JRE path no longer depends on chdir function.</li>
+	<li>Fixed Ant task bug, build files outside launch4j's directory
+		wouldn't work. Josh Elsasser submitted a patch that works without
+		setting launch4j's home dir in the build file. Thanks!
+	</li>
+	<li>Removed static edge from splash screen (Serge Baranov).</li>
+	<li>Program checks that the output file path doesn't contain spaces.</li>
+	<li>Fixed a NPE bug caused by a missing maxVersion property
+		(found by Morgan Schweers).
+	</li>
+	<li>Fixed relative JRE path bug (found by Nili_).</li>
+	<li>Cleaned up the Builder class.</li>
+	<li>Fixed Ant task NPE where the config was entirely defined in the
+		build file (Josh Elsasser).
+	</li>
+</ul>
+
+<h4>Changes in version 2.0 RC (07-06-2005)</h4>
+<ul class="changes">
+	<li>Added an Ant task for better build integration.</li>
+	<li>Added 2.x documentation.</li>
+	<li>Updated the demo configuration files.</li>
+	<li>Fixed issues with relative paths in the configuration.</li>
+	<li>Removed the '-1' option in console mode.</li>
+	<li>Minor fixes.</li>
+</ul>
+
+<h4>Changes in version 2.0 beta2 (23-05-2005)</h4>
+<ul class="changes">
+	<li># comments are recognized when importing 1.x cfg files.</li>
+	<li>Added version information.</li>
+	<li>Resource file is displayed when a resource error occurs.</li>
+	<li>Fixed a bug found by Max, options on the first tab were always enabled.</li>
+</ul>
+
+<h4>Changes in version 2.0 beta1 (13-05-2005)</h4>
+<ul class="changes">
+	<li>Completely new, cross-platform wrapper - create windows executables on Linux.</li>
+	<li>New .xml configuration file.</li>
+	<li>Application icon with multiple resolutions and color depths.</li>
+	<li>Swing GUI interface.</li>
+	<li>Header compiled with MinGW port of gcc instead of VC++.</li>
+</ul>
+
+<h4>Changes in version 1.4.2 (12-03-2005)</h4>
+<ul class="changes">
+	<li>Fixed bug #1158143, stayAlive without a splash screen caused
+		an infinite loop (found by Gregory Kotsaftis).
+	</li>
+</ul>
+
+<h4>Changes in version 1.4.1 (04-03-2005)</h4>
+<ul class="changes">
+	<li>Fixed bug #1119040, buffer for reading config properties
+		was too short (found by Tom Jensen and Neil).
+	</li>
+	<li>Added configurable splash timeout (FR #1102951).</li>
+	<li>Added option to disable the error message on splash timeout (FR #1109159).</li>
+	<li>Option to keep the gui launcher 'alive' after starting an application (FR #1124653).</li>
+	<li>Removed version info.</li>
+	<li>'waitfor' property is now optional.</li>
+</ul>
+
+<h4>Changes in version 1.4.0 (26-01-2005)</h4>
+<ul class="changes">
+	<li>Removed .lch4j suffix from process name, now it has the
+		form of the executable filename. The temporary launchers are stored in
+		launch4j-tmp directory (suggested by Emmanuel).
+	</li>
+	<li>Added support for console apps (FR #1050053).</li>
+</ul>
+
+<h4>Changes in version 1.3.1 (05-11-2004)</h4>
+<ul class="changes">
+	<li>Fixed a bug where explorer window was opened instead of
+		launching the application when setProcName was set to false
+		(found by Rob Jones).
+	</li>
+	<li>Fixed temporary launcher deletion bug.</li>
+</ul>
+
+<h4>Changes in version 1.3.0 (01-11-2004)</h4>
+<ul class="changes">
+	<li>Now you can configure launch4j to:
+		<ul class="changes">
+			<li>Use a bundled JRE.</li>
+			<li>Search for java, show an error message if the
+				right version cannot be found and open the java download page.</li>
+			<li>And a feature you asked for: use bundled JRE, if
+				that fails search for java and bring up the java download page on error.</li>
+		</ul>
+	</li>
+	<li>Enhanced code that sets the custom process name. In
+		case launch4j can't refresh the temporary launcher, bundled JRE on a
+		read only file system for example, it will use one created previously,
+		if it's present and has the correct size. If not, launching will still
+		continue, but with javaw.exe process name.Temporary launchers are
+		now created in the jre directory instead of jre/bin.
+	</li>
+	<li>errTitle property allows to set the title of the error message box.</li>
+</ul>
+
+<h4>Changes in version 1.2.1 (25-09-2004)</h4>
+<ul class="changes">
+	<li>Bugfix that allows launching from command line using short
+		name (#1026514 / found by Zach Del)
+	</li>
+</ul>
+
+<h4>Changes in version 1.2.0 (10-09-2004)</h4>
+<ul class="changes">
+	<li><strong>Custom process name</strong> (<i>myapp.lch4j.exe</i>)</li>
+	<li><strong>9 KB stub!</strong></li>
+	<li>Jar arguments</li>
+	<li>Bugfix that allows launching from command line.</li>
+	<li>Hide splash on javaw error.</li>
+	<li>Easier configuration with case insensitive parameters + show unrecognized parameter.</li>
+	<li>12 KB demo application, 34 KB with splash screen.</li>
+	<li>Configuration parameter <em>'args'</em> changed to <em>'jvmArgs'</em></li>
+</ul>
+			</div>
+			<div class="footer">
+			    All trademarks mentioned are properties of their respective owners.<br />
+            	Copyright &copy; 2005-2008 Grzegorz Kowal
+            	<p style="margin-top: 2em">
+            		<a href="http://sourceforge.net"><img style="width: 125px; height: 37px; border: none" src="http://sourceforge.net/sflogo.php?group_id=95944&amp;type=4" alt="sf.net"></a>
+            		<a href="http://www.nosoftwarepatents.com"><img style="width: 90px; height: 40px; border: none; margin-left: 5%" src="http://www.nosoftwarepatents.com/banners/90x40_3.jpg" alt=""></a>
+            		<a href="http://validator.w3.org/check?uri=referer"><img style="width: 88px; height: 31px; border: none; margin-left: 5%" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
+            	</p>
+			</div>
+		</div>
+	</body>
+</html>
diff --git a/installer/lib/launch4j/web/docs.html b/installer/lib/launch4j/web/docs.html
new file mode 100644
index 0000000000000000000000000000000000000000..67f898eb27d7d2b501143eb3950b4a3e9da2030d
--- /dev/null
+++ b/installer/lib/launch4j/web/docs.html
@@ -0,0 +1,585 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+	<head>
+		<title>Launch4j - Cross-platform Java executable wrapper</title>
+		<meta name="description" content="Cross-platform Java executable wrapper for creating lightweight Windows native EXEs. Provides better user experience.">
+		<meta name="keywords" content="java executable wrapper, java application wrapper, exe wrapper, jar wrapper, wrap, wraps, wrapping, free software, launch, launcher, linux, mac, windows, open source, ant, solaris, native splash screen, deploy, build tool">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<meta name="author" content="Grzegorz Kowal" >
+		<link rel="stylesheet" type="text/css" href="style.css">
+	</head>
+	<body>
+		<div id="container">
+			<div id="top">
+				<img style="width: 249px; height: 58px;" src="launch4j.gif" alt="launch4j"> <span class="version">3.0.1</span>
+			</div>
+			<div id="leftnav">
+				<ul>
+					<li><a href="index.html">Home</a></li>
+					<li><a href="docs.html">Docs</a></li>
+					<li><a href="changelog.html">Changelog</a></li>
+					<li><a href="http://sourceforge.net/project/screenshots.php?group_id=95944">Screenshots</a></li>
+					<li><a href="http://sourceforge.net/project/showfiles.php?group_id=95944&amp;package_id=192323">Download</a></li>
+					<li><a href="http://sourceforge.net/forum/?group_id=95944">Support</a></li>
+					<li><a href="http://sourceforge.net/projects/launch4j">Project summary</a></li>
+					<li><a href="http://sourceforge.net/tracker/?atid=613100&amp;group_id=95944">Bug tracker</a></li>
+					<li><a href="links.html">Links</a></li>
+				</ul>
+				<!--
+					*** Spanish docs are outdated ***
+					<ul style="margin-top: 20px; font-size: 75%">
+						<li><a href="index.html">English</a></li>
+						<li><a href="index_es.html">Español</a></li>
+					</ul>
+				-->
+			</div>
+			<div id="content">
+<a href="#Running_launch4j">Running launch4j</a><br>
+<a href="#Configuration_file">Configuration file</a><br>
+<a href="#Importing_1.x_configuration">Importing 1.x configuration</a><br>
+<a href="#Ant_task">Ant Task</a><br>
+<a href="#Additional_jvm_options">Additional JVM options at runtime</a><br>
+<a href="#Runtime_options">Runtime options</a><br>
+<a href="#Settings">Settings</a><br>
+
+<h2 id="Running_launch4j">Running launch4j</h2>
+Run <em>launch4j.exe</em> or <em>launch4j</em> script without command
+line arguments to enter the GUI mode.
+
+<pre>launch4j.exe</pre>
+
+To wrap a jar in console mode use <em>launch4jc.exe</em>&nbsp;<em></em>and
+specify the configuration file.
+
+<pre>launch4jc.exe config.xml</pre>
+
+On Linux use the <em>launch4j</em> script.
+
+<pre>launch4j ./demo/l4j/config.xml</pre>
+
+<h2 id="Configuration_file">Configuration file</h2>
+Launch4j requires an xml configuration file for each output executable.
+You can create and edit it conveniently using the graphic user
+interface or your favorite editor. Alternatively it's possible to pass
+all of the configuration parameters through the Ant task. All files
+may be absolute paths or relative to the configuration file path.
+
+<pre>
+&lt;!-- <strong>Bold</strong> elements are required --&gt;
+<strong>&lt;launch4jConfig&gt;</strong>
+  <strong>&lt;headerType&gt;</strong><span class="codeword">gui|console</span><strong>&lt;/headerType&gt;</strong>
+  <strong>&lt;outfile&gt;</strong><span class="codeword">file.exe</span><strong><span class="codeword"></span>&lt;/outfile&gt;</strong>
+  &lt;jar&gt;<span class="codeword">file</span><span class="codeword"></span>&lt;/jar&gt;
+  &lt;dontWrapJar&gt;<span class="codeword">true|<u>false</u></span>&lt;/dontWrapJar&gt;
+  &lt;errTitle&gt;<span class="codeword">text</span>&lt;/errTitle&gt;
+  &lt;downloadUrl&gt;<span class="codeword"><u>http://java.com/download</u></span>&lt;/downloadUrl&gt;
+  &lt;supportUrl&gt;<span class="codeword">url</span>&lt;/supportUrl&gt;
+  &lt;cmdLine&gt;<span class="codeword">text</span>&lt;/cmdLine&gt;
+  &lt;chdir&gt;<span class="codeword">path</span>&lt;/chdir&gt;
+  &lt;priority&gt;<span class="codeword"><u>normal</u>|idle|high</span>&lt;/priority&gt;
+  &lt;customProcName&gt;<span class="codeword">true|<u>false</u></span>&lt;/customProcName&gt;
+  &lt;stayAlive&gt;<span class="codeword">true|false</span>&lt;/stayAlive&gt;
+  &lt;icon&gt;<span class="codeword">file</span>&lt;/icon&gt;
+  &lt;obj&gt;<span class="codeword">header object file</span>&lt;/obj&gt;
+  ...
+  &lt;lib&gt;<span class="codeword">w32api lib</span>&lt;/lib&gt;
+  ...
+  &lt;var&gt;<span class="codeword">var=text</span>&lt;/var&gt;
+  ...
+  &lt;classPath&gt;
+    <strong>&lt;mainClass&gt;</strong><span class="codeword">main class</span><strong>&lt;/mainClass&gt;</strong>
+    <strong>&lt;cp&gt;</strong><span class="codeword">classpath</span><strong>&lt;/cp&gt;</strong>
+    ...
+  &lt;/classPath&gt;
+  &lt;singleInstance&gt;
+    <strong>&lt;mutexName&gt;</strong><span class="codeword">text</span><strong>&lt;/mutexName&gt;</strong>
+    &lt;windowTitle&gt;<span class="codeword">text</span>&lt;/windowTitle&gt;
+  &lt;/singleInstance&gt; 
+  <strong>&lt;jre&gt;</strong>
+    &lt;!-- Specify one of the following or both --&gt;
+    <strong>&lt;path&gt;</strong><span class="codeword">bundled JRE path</span><strong>&lt;/path&gt;</strong>
+    <strong>&lt;minVersion&gt;</strong><span class="codeword">x.x.x[_xx]</span><strong>&lt;/minVersion&gt;</strong>
+    &lt;maxVersion&gt;<span class="codeword">x.x.x[_xx]</span>&lt;/maxVersion&gt;
+    &lt;jdkPreference&gt;<span class="codeword">jreOnly|<u>preferJre</u>|preferJdk|jdkOnly</span>&lt;/jdkPreference&gt;
+    &lt;!-- Heap sizes in MB and % of free memory --&gt;
+    &lt;initialHeapSize&gt;<span class="codeword">MB</span>&lt;/initialHeapSize&gt;
+    &lt;initialHeapPercent&gt;<span class="codeword">%</span>&lt;/initialHeapPercent&gt;
+    &lt;maxHeapSize&gt;<span class="codeword">MB</span>&lt;/maxHeapSize&gt;
+    &lt;maxHeapPercent&gt;<span class="codeword">%</span>&lt;/maxHeapPercent&gt;
+    &lt;opt&gt;<span class="codeword">text</span>&lt;/opt&gt;
+    ...
+  <strong>&lt;/jre&gt;</strong>
+  &lt;splash&gt;
+    <strong>&lt;file&gt;</strong><span class="codeword">file</span><strong>&lt;/file&gt;</strong>
+    &lt;waitForWindow&gt;<span class="codeword"><u>true</u>|false</span>&lt;/waitForWindow&gt;
+    &lt;timeout&gt;<span class="codeword">seconds [60]</span>&lt;/timeout&gt;
+    &lt;timeoutErr&gt;<span class="codeword"><u>true</u>|false</span>&lt;/timeoutErr&gt;
+  &lt;/splash&gt;
+  &lt;versionInfo&gt;
+    <strong>&lt;fileVersion&gt;</strong><span class="codeword">x.x.x.x</span><strong>&lt;/fileVersion&gt;</strong>
+    <strong>&lt;txtFileVersion&gt;</strong><span class="codeword">text</span><strong>&lt;/txtFileVersion&gt;</strong>
+    <strong>&lt;fileDescription&gt;</strong><span class="codeword">text</span><strong>&lt;/fileDescription&gt;</strong>
+    <strong>&lt;copyright&gt;</strong><span class="codeword">text</span><strong>&lt;/copyright&gt;</strong>
+    <strong>&lt;productVersion&gt;</strong><span class="codeword">x.x.x.x</span><strong>&lt;/productVersion&gt;</strong>
+    <strong>&lt;txtProductVersion&gt;</strong><span class="codeword">text</span><strong>&lt;/txtProductVersion&gt;</strong>
+    <strong>&lt;productName&gt;</strong><span class="codeword">text</span><strong>&lt;/productName&gt;</strong>
+    &lt;companyName&gt;<span class="codeword">text</span>&lt;/companyName&gt;
+    <strong>&lt;internalName&gt;</strong><span class="codeword">filename</span><strong>&lt;/internalName&gt;</strong>
+    <strong>&lt;originalFilename&gt;</strong><span class="codeword">filename.exe</span><strong>&lt;/originalFilename&gt;</strong>
+  &lt;/versionInfo&gt;
+  &lt;messages&gt;
+    <strong>&lt;startupErr&gt;</strong>text<strong>&lt;/startupErr&gt;</strong>
+    <strong>&lt;bundledJreErr&gt;</strong>text<strong>&lt;/bundledJreErr&gt;</strong>
+    <strong>&lt;jreVersionErr&gt;</strong>text<strong>&lt;/jreVersionErr&gt;</strong>
+    <strong>&lt;launcherErr&gt;</strong>text<strong>&lt;/launcherErr&gt;</strong>
+  &lt;/messages&gt;
+<strong>&lt;/launch4jConfig&gt;</strong>
+</pre>
+
+<dl>
+	<dt>&lt;headerType&gt;</dt>
+	<dd>
+		Type of the header used to wrap the application.
+		<table>
+			<thead>
+		    	<tr>
+		    		<th>Header type</th>
+		    		<th>Launcher</th>
+		    		<th>Splash screen</th>
+		    		<th style="white-space: nowrap">Wait for the application to close</th>
+		    	</tr>
+			</thead>
+			<tbody>
+		    	<tr>
+		    		<td>gui</td>
+		    		<td>javaw</td>
+		    		<td>yes</td>
+		    		<td class="description">wrapper waits only if <em>stayAlive</em> is set to true,
+		    			otherwise it terminates immediately or after closing
+		    			the splash screen.
+		    		</td>
+		    	</tr>
+		    	<tr>
+		    		<td>console</td>
+		    		<td>java</td>
+		    		<td>no</td>
+		    		<td class="description">always waits and returns application's exit code.</td>
+		    	</tr>
+		    </tbody>
+		</table>
+	</dd>
+</dl>
+<dl>
+	<dt>&lt;outfile&gt;</dt>
+	<dd>Output executable file.</dd>
+</dl>
+<dl>
+	<dt>&lt;jar&gt;</dt>
+	<dd>
+		Optional, by default specifies the jar to wrap. To launch a jar without
+		wrapping it enter the runtime path of the jar relative to
+		the executable and set <em>&lt;dontWrapJar&gt;</em> to true.
+		For example, if the executable launcher and the application jar named
+		<i>calc.exe</i> and <i>calc.jar</i> are in the same directory
+		then you would use <i>&lt;jar&gt;calc.jar&lt;/jar&gt;</i>
+		and <em>&lt;dontWrapJar&gt;true&lt;/dontWrapJar&gt;</em>.
+	</dd>
+</dl>
+<dl>
+	<dt>&lt;dontWrapJar&gt;</dt>
+	<dd>
+		Optional, defaults to false. Launch4j by default wraps jars in native
+		executables, you can prevent this by setting <em>&lt;dontWrapJar&gt;</em> to true.
+		The exe acts then as a launcher and starts the application specified in
+		<em>&lt;jar&gt;</em> or <em>&lt;classPath&gt;&lt;mainClass&gt;</em>
+	</dd>
+</dl>
+<dl>
+	<dt>&lt;errTitle&gt;</dt>
+	<dd>
+		Optional, sets the title of the error message box that's displayed if Java cannot
+		be found for instance. This usually should contain the name of your
+		application. The console header prefixes error messages with this
+		property (myapp: error...)
+	</dd>
+</dl>
+<dl>
+	<dt>&lt;cmdLine&gt;</dt>
+	<dd>Optional, constant command line arguments.</dd>
+</dl>
+<dl>
+	<dt>&lt;chdir&gt;</dt>
+	<dd>Optional. Change current directory to an arbitrary path relative to the executable.
+		If you omit this property or leave it blank it will have no effect.
+		Setting it to <em>.</em> will change the current dir to the same directory
+		as the executable. <em>..</em> will change it to the parent directory, and so on.
+	</dd>
+	<dd>
+		<pre>&lt;chdir&gt;.&lt;/chdir&gt;</pre>
+	</dd>
+	<dd>
+		<pre>&lt;chdir&gt;../somedir&lt;/chdir&gt;</pre>
+	</dd>
+</dl>
+<dl>
+	<dt>&lt;customProcName&gt;</dt>
+	<dd>Optional, defaults to false.
+		Set the process name as the executable filename and use Xp style manifests
+		(if any).
+		Creates a temporary file in launch4j-tmp directory inside the used JRE.
+		These files are deleted by any launch4j wrapped application, which sets
+		the process name and uses the same JRE. The removal takes place
+		when the application <strong>starts</strong>,
+		so at least one copy of this file will always be present.
+	</dd>
+</dl>
+<dl>
+	<dt>&lt;stayAlive&gt;</dt>
+	<dd>Optional, defaults to false in GUI header, always true in console header.
+		When enabled the launcher waits for the Java application
+		to finish and returns it's exit code.
+	</dd>
+</dl>
+<dl>
+	<dt>&lt;icon&gt;</dt>
+	<dd>Application icon in ICO format. May contain multiple color depths/resolutions.</dd>
+</dl>
+<dl>
+	<dt>&lt;obj&gt;</dt>
+	<dd>Optional, custom headers only. Ordered list of header object files.</dd>
+</dl>
+<dl>
+	<dt>&lt;lib&gt;</dt>
+	<dd>Optional, custom headers only. Ordered list of libraries used by header.</dd>
+</dl>
+<dl>
+	<dt>&lt;singleInstance&gt;</dt>
+	<dd>Optional, allow to run only a single instance of the application.</dd>
+</dl>
+<blockquote>
+	<dl>
+		<dt>&lt;mutexName&gt;</dt>
+		<dd>Unique mutex name that will identify the application.</dd>
+		<dt>&lt;windowTitle&gt;</dt>
+		<dd>Optional, recognized by GUI header only. Title or title part of a window
+			to bring up instead of running a new instance.
+		</dd>
+	</dl>
+</blockquote>
+<dl>
+	<dt>&lt;jre&gt;</dt>
+	<dd>Required element that groups JRE settings.</dd>
+</dl>
+<blockquote>
+    <dl>
+    	<dt>&lt;path&gt;, &lt;minVersion&gt;, &lt;maxVersion&gt;</dt>
+        <dd>The <em>&lt;path&gt;</em> property is used
+    		to specify the absolute or relative path (to the executable) of a bundled JRE, it
+    		does not rely on the current directory or <em>&lt;chdir&gt;</em>.
+    		Note that this path is not checked until the actual application execution.
+    		If you'd like the wrapper to search for a JRE (public or SDK private)
+    		use the <em>&lt;minVersion&gt;</em> property, you may also specify
+    		the <em>&lt;maxVersion&gt;</em> to prevent it from using higher Java versions.
+    		Launch4j will always use the highest version available (in the min/max range of course).
+    		If a Sun's JRE is not available or does not satisfy the search criteria,
+    		the search will be repeated on IBM runtimes.
+    		You can also combine these properties to change the startup process...
+    	</dd>
+	</dl>
+	<blockquote>
+        <dl>
+        	<dt>&lt;path&gt;</dt>
+        	<dd>Run if bundled JRE and javaw.exe are present, otherwise stop with error.</dd>
+            <dt>&lt;path&gt; + &lt;minVersion&gt;&nbsp; [+ &lt;maxVersion&gt;]</dt>
+            <dd>Use bundled JRE first, if it cannot be located search for Java,
+        		if that fails display error message and open the Java download page.
+        	</dd>
+            <dt>&lt;minVersion&gt;&nbsp; [+ &lt;maxVersion&gt;]</dt>
+            <dd>Search for Java, if an appropriate version cannot be found display
+        		error message and open the Java download page.
+        	</dd>
+        </dl>
+	</blockquote>
+</blockquote>
+<blockquote>
+	<dl>
+		<dt>&lt;jdkPreference&gt;</dt>
+		<dd>Optional, defaults to preferJre; Allows you to specify a preference
+			for a public JRE or a private JDK runtime. Valid values are:
+		</dd>
+	</dl>
+	<blockquote>
+		<dl>
+			<dt>jreOnly</dt>
+			<dd>Always use a public JRE (equivalent to the
+				old option dontUsePrivateJres=true)</dd>
+			<dt>preferJre</dt>
+			<dd>Prefer a public JRE, but use a JDK private
+				runtime if it is newer than the public
+				JRE (equivalent to the old option
+				dontUsePrivateJres=false)</dd>
+			<dt>preferJdk</dt>
+			<dd>Prefer a JDK private runtime, but use a
+				public JRE if it is newer than the
+				JDK</dd>
+			<dt>jdkOnly</dt>
+			<dd>Always use a private JDK runtime (fails
+				if there is no JDK installed)</dd>
+		</dl>
+	</blockquote>
+	<dl>
+		<dt>HeapSize, HeapPercent</dt>
+		<dd>If size and percent are specified, then the setting which yields
+			more memory will be chosen at runtime. In other words, setting both values
+			means: percent of free memory no less than size in MB.
+		</dd>
+	</dl>
+	<blockquote>
+		<dl>
+			<dt>&lt;initialHeapSize&gt;</dt>
+			<dd>Optional, initial heap size in MB.</dd>
+		</dl>
+		<dl>
+			<dt>&lt;initialHeapPercent&gt;</dt>
+			<dd>Optional, initial heap size in % of free memory.</dd>
+		</dl>
+		<dl>
+			<dt>&lt;maxHeapSize&gt;</dt>
+			<dd>Optional, max heap size in MB.</dd>
+		</dl>
+		<dl>
+			<dt>&lt;maxHeapPercent&gt;</dt>
+			<dd>Optional, max heap size in % of free memory.</dd>
+		</dl>	
+	</blockquote>
+	<dl>
+		<dt>&lt;opt&gt;</dt>
+		<dd>Optional, accepts everything you would normally pass to
+			java/javaw launcher: assertion options, system properties and X options.
+			Here you can map environment and special variables <em>EXEDIR</em>
+			(exe's runtime directory), <em>EXEFILE</em> (exe's runtime full file path)
+			to system properties. All variable references must be surrounded with
+			percentage signs and quoted.
+<pre>
+&lt;opt&gt;-Dlaunch4j.exedir="%EXEDIR%"&lt;/opt&gt;
+&lt;opt&gt;-Dlaunch4j.exefile="%EXEFILE%"&lt;/opt&gt;
+&lt;opt&gt;-Denv.path="%Path%"&lt;/opt&gt;
+&lt;opt&gt;-Dsettings="%HomeDrive%%HomePath%\\settings.ini"&lt;/opt&gt;
+</pre>
+		</dd>
+	</dl>
+</blockquote>
+
+<dl>
+	<dt>&lt;splash&gt;</dt>
+	<dd>Optional, groups the splash screen settings. Allowed only in GUI header.</dd>
+</dl>
+<blockquote>
+	<dl>
+		<dt>&lt;file&gt;</dt>
+		<dd>Splash screen image in BMP format.</dd>
+	</dl>
+	<dl>
+		<dt>&lt;waitForWindow&gt;</dt>
+		<dd>Optional, defaults to true. Close the splash screen when an application
+			window or Java error message box appears. If set to false,
+			the splash screen will be closed on timeout.
+		</dd>
+	</dl>
+	<dl>
+		<dt>&lt;timeout&gt;</dt>
+		<dd>Optional, defaults to 60. Number of seconds after which the splash screen
+			must be closed. Splash timeout may cause an error depending on
+			<em>&lt;timeoutErr&gt;</em>.
+		</dd>
+	</dl>
+	<dl>
+		<dt>&lt;timeoutErr&gt;</dt>
+		<dd>Optional, defaults to true. True signals an error on splash timeout,
+			false closes the splash screen quietly.
+		</dd>
+	</dl>
+</blockquote>
+
+<dl>
+	<dt>&lt;versionInfo&gt;</dt>
+	<dd>Optional, version information to be displayed by the Windows Explorer.</dd>
+</dl>
+<blockquote>
+	<dl>
+		<dt>&lt;fileVersion&gt;</dt>
+		<dd>Version number 'x.x.x.x'</dd>
+	</dl>
+	<dl>
+		<dt>&lt;txtFileVersion&gt;</dt>
+		<dd>Free form file version, for example '1.20.RC1'.</dd>
+	</dl>
+	<dl>
+		<dt>&lt;fileDescription&gt;</dt>
+		<dd>File description presented to the user.</dd>
+	</dl>
+	<dl>
+		<dt>&lt;copyright&gt;</dt>
+		<dd>Legal copyright.</dd>
+	</dl>
+	<dl>
+		<dt>&lt;productVersion&gt;</dt>
+		<dd>Version number 'x.x.x.x'</dd>
+	</dl>
+	<dl>
+		<dt>&lt;txtProductVersion&gt;</dt>
+		<dd>Free form file version, for example '1.20.RC1'.</dd>
+	</dl>
+	<dl>
+		<dt>&lt;productName&gt;</dt>
+		<dd>Text.</dd>
+	</dl>
+	<dl>
+		<dt>&lt;companyName&gt;</dt>
+		<dd>Optional text.</dd>
+	</dl>
+	<dl>
+		<dt>&lt;internalName&gt;</dt>
+		<dd>Internal name without extension, original filename or module name for example.</dd>
+	</dl>
+	<dl>
+		<dt>&lt;originalFilename&gt;</dt>
+		<dd>Original name of the file without the path. Allows to determine
+			whether a file has been renamed by a user.
+		</dd>
+	</dl>
+</blockquote>
+
+<h2 id="Importing_1.x_configuration">Importing 1.x configuration</h2>
+It's possible to import a 1.x configuration file using the GUI
+interface. Open the file, correct the paths and save it as a new xml
+configuration.
+
+<h2 id="Ant_task">Ant task</h2>
+You may set a launch4j directory property or change the task definition.
+
+<pre>&lt;property name="launch4j.dir" location="/opt/launch4j" /&gt;</pre>
+
+Define the task in your Ant build script.
+
+<pre>
+&lt;taskdef name="launch4j"
+    classname="net.sf.launch4j.ant.Launch4jTask"
+    classpath="${launch4j.dir}/launch4j.jar
+        :${launch4j.dir}/lib/xstream.jar" /&gt;
+</pre>
+
+Execute the task!
+
+<pre>&lt;launch4j configFile="./l4j/demo.xml" /&gt;</pre>
+
+You can set or override the following configuration properties...
+<p class="attrib">
+	jar="absolute path or relative to <em>basedir</em>"<br>
+	jarPath="relative path"<br>	
+	outfile<br>
+	fileVersion<br>
+	txtFileVersion<br>
+	productVersion<br>
+	txtProductVersion<br>
+	bindir="<a href="#Settings">alternate bin directory...</a>"<br>
+	tmpdir="<a href="#Settings">alternate working directory...</a>"
+</p>
+
+<pre>
+&lt;launch4j configFile="./l4j/demo.xml" outfile="mydemo.exe"
+    fileVersion="1.0.0.0" txtFileVersion="1.0 RC2" /&gt;
+</pre>
+
+You can also define the entire configuration in the task, but it will
+not be possible to edit such a file in the GUI mode. All paths except
+for <em>&lt;chdir&gt;</em>, <em>&lt;jre&gt;&lt;path&gt;</em> and <em>jarPath</em>
+are calculated using the <em>basedir</em> project attribute.
+
+<pre>
+&lt;launch4j&gt;
+  &lt;config headerType="gui" outfile="demo.exe"
+      dontWrapJar="true" jarPath="demo.jar" &gt;
+    &lt;var&gt;SETTINGS="%HomeDrive%%HomePath%\\settings.ini"&lt;/var&gt;
+    &lt;classPath mainClass="org.demo.DemoApp"&gt;
+        &lt;cp&gt;./lib/looks.jar&lt;/cp&gt;
+        &lt;cp&gt;%USER_LIBS%/*.jar&lt;/cp&gt;
+    &lt;/classPath&gt;
+    &lt;jre minVersion="1.4.0"&gt;
+        &lt;opt&gt;-Dlaunch4j.exedir="%EXEDIR%"&lt;/opt&gt;
+        &lt;opt&gt;-Dlaunch4j.exefile="%EXEFILE%"&lt;/opt&gt;
+    &lt;/jre&gt;
+  &lt;/config&gt;
+&lt;/launch4j&gt;
+</pre>
+
+<h2 id="Additional_jvm_options">Additional JVM options at runtime</h2>
+When you create a wrapper or launcher all configuration details are compiled into the
+executable and cannot be changed without recreating it or hacking with a resource editor.
+Launch4j 2.1.2 introduces a new feature that allows to pass additional JVM options
+at runtime from an .l4j.ini file. Now you can specify the options in the configuration file,
+ini file or in both, but you cannot override them. The ini file's name must correspond
+to the executable's <em>(myapp.exe : myapp.l4j.ini)</em>.
+The arguments should be separated with spaces or new lines, environment variable
+expansion is supported, for example:
+<pre>
+# Launch4j runtime config
+-Dswing.aatext=true
+-Dsomevar="%SOMEVAR%"
+-Xms16m
+</pre>
+
+<h2 id="Runtime_options">Runtime options</h2>
+<dl>
+	<dt class="option">--l4j-debug</dt>
+	<dd>
+		To make sure the output executable is configured correctly you can use the
+		debug launching mode to log various information to the launch4j.log file.
+	</dd>
+	
+	<dt class="option">--l4j-default-proc</dt>
+	<dd>
+		Use default process name.
+	</dd>
+
+	<dt class="option">--l4j-dont-wait</dt>
+	<dd>
+		Disable the "stay alive" function.
+	</dd>
+
+	<dt class="option">--l4j-no-splash</dt>
+	<dd>
+		Disable the splash screen.
+	</dd>
+
+	<dt class="option">--l4j-no-splash-err</dt>
+	<dd>
+		Disable splash screen error on timeout, might be useful on very slow computers.
+	</dd>
+</dl>
+
+<h2 id="Settings">Settings</h2>
+<dl>
+	<dt>Alternate bin directory: launch4j.bindir</dt>
+	<dd>
+		It's possible to override the default bin directory location which contains windres and ld
+		tools using the <em>launch4j.bindir</em> system property. The property can have two forms:
+		a path relative to Launch4j's directory (<em>altbin</em> for example) or an absolute path.
+	<dd>
+
+  <dt>Working directory: launch4j.tmpdir</dt>
+  <dd>Change the working directory if the default path contains spaces which windres cannot handle.</dd>
+</dl>
+			</div>
+			<div class="footer">
+			    All trademarks mentioned are properties of their respective owners.<br />
+            	Copyright &copy; 2005-2008 Grzegorz Kowal
+            	<p style="margin-top: 2em">
+            		<a href="http://sourceforge.net"><img style="width: 125px; height: 37px; border: none" src="http://sourceforge.net/sflogo.php?group_id=95944&amp;type=4" alt="sf.net"></a>
+            		<a href="http://www.nosoftwarepatents.com"><img style="width: 90px; height: 40px; border: none; margin-left: 5%" src="http://www.nosoftwarepatents.com/banners/90x40_3.jpg" alt=""></a>
+            		<a href="http://validator.w3.org/check?uri=referer"><img style="width: 88px; height: 31px; border: none; margin-left: 5%" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
+            	</p>
+			</div>
+		</div>
+	</body>
+</html>
diff --git a/installer/lib/launch4j/web/docs1.html b/installer/lib/launch4j/web/docs1.html
deleted file mode 100644
index 69a7fcf49f9ca2edeefba0fe92fbdb727871a474..0000000000000000000000000000000000000000
--- a/installer/lib/launch4j/web/docs1.html
+++ /dev/null
@@ -1,345 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-  <meta http-equiv="Content-Type"
- content="text/html; charset=iso-8859-1">
-  <title>Launch4j :: Cross-platform java application wrapper for
-creating Windows native executables</title>
-  <meta content="Grzegorz Kowal" name="author">
-  <meta
- content="Cross-platform java application wrapper for creating Windows native executables.
-Features native splash screen, application icon, small stub."
- name="description">
-  <meta name="Keywords"
- content="Java, java, exe, native, windows, Windows, jar, wrap, wrapper, launch,
-run, execute, executable, splash, icon, ico, ant, build, script, deploy, free, freeware, open source,
-gpl, GPL, lgpl, LGPL, sourceforge, c++, C++, W2K, WXP, W98, linux, Linux">
-  <link rel="stylesheet" type="text/css" href="layout.css">
-  <link rel="stylesheet" type="text/css" href="style.css">
-</head>
-<body>
-<div id="container">
-<div id="top"><img style="width: 249px; height: 58px;" alt=""
- src="launch4j.gif"><span style="color: rgb(48, 127, 225);"> <small><span
- style="font-weight: bold; font-family: Helvetica,Arial,sans-serif;">1.4.2,&nbsp;
-2.0.RC3</span></small></span>
-</div>
-<div id="leftnav">
-<ul id="navlist">
-  <li><a href="index.html"><span style="font-weight: bold;"></span>Home</a></li>
-  <li><a href="docs1.html"><span style="font-weight: bold;"></span>1.x
-docs</a></li>
-  <li><a href="docs2.html"><span style="font-weight: bold;"></span>2.x
-docs</a></li>
-  <li><a href="changelog.html"><span style="font-weight: bold;"></span>Changelog</a></li>
-  <li><a
- href="http://sourceforge.net/project/screenshots.php?group_id=95944"><span
- style="font-weight: bold;"></span>Screenshots</a></li>
-  <li><a
- href="http://sourceforge.net/project/showfiles.php?group_id=95944"><span
- style="font-weight: bold;"></span>Download</a></li>
-  <li><a href="http://sourceforge.net/forum/?group_id=95944"><span
- style="font-weight: bold;"></span>Support</a></li>
-  <li><a href="http://sourceforge.net/projects/launch4j"><span
- style="font-weight: bold;"></span>Project
-summary</a></li>
-  <li><a
- href="http://sourceforge.net/tracker/?atid=613100&amp;group_id=95944"><span
- style="font-weight: bold;"></span>Bug
-tracker</a></li>
-  <li><a href="links.html"><span style="font-weight: bold;"></span>Links</a></li>
-</ul>
-</div>
-<div id="content">
-<h2>How to wrap your
-application<br>
-</h2>
-<span style="font-weight: bold;"></span>Launch4j wraps only
-executable jars, which<em> </em>aren't
-very
-difficult
-to create. Package your application in a jar file and include a
-manifest with
-the <em>Main-Class</em>
-attribute
-defined. In order to use external jars, you must also define the <em>Class-Path</em>
-attribute. Create a
-configuration file and run launch4j (launch4j
-my_application.cfg). It's a good idea to run it inside a console
-window to see the output. If the configuration file is invalid,
-launch4j will provide useful information that will help you fix the
-problem. If everything goes fine, the output exe will be created and
-ready to run. All information provided in the config file is stored in
-the executable, so you don't need it to run the application.<br>
-<br>
-<h2><span style="font-weight: bold;">Faster way...<span
- style="font-weight: bold;"><span style="font-weight: bold;"></span></span></span></h2>
-<span style="font-weight: bold;"><span style="font-weight: bold;"><span
- style="font-weight: bold;"> </span></span></span>Create
-the
-configuration file and let Ant do
-the
-rest (SimpleApp/build.xml).<br>
-<br>
-<h2><span style="font-weight: bold;">Configuration file (1.x) </span></h2>
-<strong class="codeword">Bold</strong>
-elements are
-required.<br>
-<pre><span style="font-weight: bold;"></span><span class="codeword">header</span> headfile.bin<br><strong><span
- class="codeword">jar</span></strong> application.jar<br><strong><span
- class="codeword">outfile</span></strong> application.exe<br
- style="font-family: monospace;"><strong><span class="codeword">jrepath</span></strong> ../jre<br> and/or<br><strong><span
- class="codeword">javamin</span></strong> version<br><span
- class="codeword">javamax</span> version&nbsp;&nbsp;&nbsp; // optional, use only in combination with <strong><span
- class="codeword">javamin</span></strong>.<br><span class="codeword">jvmArgs</span> args<br><span
- class="codeword">jarArgs</span> args<br><span class="codeword">chdir</span> true|<span
- style="text-decoration: underline;">false</span><br><span
- class="codeword">setProcName</span> true|<span
- style="text-decoration: underline;">false</span><br><span
- class="codeword">errTitle</span> application_name<br
- style="font-family: monospace;"><span class="codeword">icon</span> icon.ico<br
- style="font-family: monospace;"><span class="codeword">splash</span> splash.bmp<br
- style="font-family: monospace;"><span class="codeword">waitfor</span> beginning_of_application_title<br
- style="font-family: monospace;"><span class="codeword">splashTimeout</span> seconds<br
- style="font-family: monospace;"><span class="codeword">splashTimeoutErr</span> <span
- style="text-decoration: underline;">true</span>|false<br
- style="font-family: monospace;"><span class="codeword">stayAlive</span> true|false</pre>
-<br>
-<h2>Configuration details<span style="font-weight: bold;"></span></h2>
-<span style="font-weight: bold;"> </span>
-<dl>
-  <dt>header</dt>
-  <dd>Optional, defaults to <em>guihead.bin</em>.
-Standard headers are: <em>guihead.bin</em>
-and <em>consolehead.bin</em>,
-you can
-also specify your own.</dd>
-</dl>
-<table style="text-align: left;" border="1" cellpadding="4"
- cellspacing="0">
-  <tbody>
-    <tr>
-      <td style="text-align: center;"><span style="font-weight: bold;">Header</span><br>
-      </td>
-      <td
- style="white-space: nowrap; text-align: center; font-weight: bold;">App&nbsp;
-type<br>
-      </td>
-      <td style="text-align: center;"><span style="font-weight: bold;">Launcher</span><br>
-      </td>
-      <td
- style="white-space: nowrap; text-align: center; font-weight: bold;">Splash
-screen</td>
-      <td
- style="text-align: center; font-weight: bold; white-space: nowrap;">Wait
-for the application to
-close </td>
-    </tr>
-    <tr>
-      <td style="text-align: center;">guihead.bin<br>
-      </td>
-      <td style="text-align: center;">GUI<br>
-      </td>
-      <td style="text-align: center;">javaw<br>
-      </td>
-      <td style="text-align: center;">yes<br>
-      </td>
-      <td>wrapper
-waits only if <span class="codeword">stayAlive</span>
-is set to true, otherwise it terminates immediately or after closing
-the splash screen.<br>
-      </td>
-    </tr>
-    <tr>
-      <td style="text-align: center;">consolehead.bin<br>
-      </td>
-      <td style="text-align: center;">console<br>
-      </td>
-      <td style="text-align: center;">java<br>
-      </td>
-      <td style="text-align: center;">no<br>
-      </td>
-      <td>always waits and
-returns application's exit code.<br>
-      </td>
-    </tr>
-  </tbody>
-</table>
-<br>
-<dl>
-  <dt>jrepath,
-javamin/javamax</dt>
-  <dd>The <span class="codeword">jrepath</span>
-property is used
-to specify the path (usually relative) of a JRE, note that this path is
-not checked until the actual application execution. If you'd like the
-wrapper to search for a JRE (public or SDK
-private) use the <span class="codeword">javamin</span>
-property, you may also specify the <span class="codeword">javamax</span>
-to prevent it from using higher Java versions. Launch4j will always use
-the highest version available (in the min/max range of course). You can
-also combine these properties to change the startup process...</dd>
-</dl>
-<div style="margin-left: 40px;">
-<dl>
-  <dt class="codeword">jrepath</dt>
-  <dd>Run if bundled JRE and
-javaw.exe
-are present, otherwise stop with error.</dd>
-  <dt class="codeword">jrepath
-+ javamin [+ javamax]</dt>
-  <dd>Use bundled JRE first,
-if it
-cannot be located search for Java, if that fails display error message
-and open the Java download page.</dd>
-  <dt class="codeword">javamin
-[+ javamax]</dt>
-  <dd>Search for Java, if an
-appropriate version cannot be found display error message and open the
-Java download page.</dd>
-</dl>
-</div>
-<dl>
-  <dt>jvmArgs</dt>
-  <dd>Optional, accepts
-everything you would normally pass to
-java/javaw
-launcher: assertion options, system properties and X options.</dd>
-</dl>
-<dl>
-  <dt>jarArgs</dt>
-  <dd>Optional, constant
-command line arguments.</dd>
-</dl>
-<dl>
-  <dt>chdir</dt>
-  <dd>Optional, defaults to
-false.
-Change current directory to exe location. Set this property to true, if
-you have resources outside the jar or want to use a bundled JRE which
-location is relative to the executable.</dd>
-</dl>
-<dl>
-  <dt><span style="font-weight: bold;"></span>setProcName</dt>
-  <dd>Optional, defaults to
-false.
-Set the process name as the executable filename. Creates a temporary
-file in launch4j-tmp directory inside the used JRE. These files are
-deleted by
-any launch4j wrapped application, which sets the process name and uses
-the same JRE. The removal takes place when the application <strong>starts</strong>,
-so at least one copy of this file will always be present.</dd>
-</dl>
-<dl>
-  <dt>errTitle</dt>
-  <dd>Optional,
-sets the title of the error message box that's displayed if Java cannot
-be found for instance. This usually should contain the name of your
-application. The console header prefixes error messages with this
-property (myapp: error...)</dd>
-</dl>
-<span style="font-weight: bold;"> </span>
-<dl>
-  <dt>icon</dt>
-  <dd>Accepted file format:
-ICO</dd>
-  <dd>The first icon is used
-and rescaled when needed. </dd>
-</dl>
-<dl>
-  <dt>splash</dt>
-  <dd>Accepted file format:
-BMP<br>
-Ignored by <em>consolehead.bin</em></dd>
-</dl>
-<dl>
-  <dt>waitfor</dt>
-  <dd>Optional. Specifies
-the beginning of the application title,
-used to
-determine when the splash screen is to be closed. Don't include version
-numbers or other information (<strong>My
-Application</strong><span style="color: rgb(0, 0, 0);"> v1.20, </span><strong>My
-App</strong>
-- Program setup...). If omitted, the splash screen
-will
-close on timeout.<br>
-Ignored by <em>consolehead.bin</em></dd>
-</dl>
-<span style="font-style: italic;"></span>
-<dl>
-  <dt>splashTimeout</dt>
-  <dd>Optional, defaults to
-60.
-Number of seconds after which the splash screen must close. Splash
-timeout may cause an error depending on <span class="codeword">splashTimeoutErr</span>
-property.<span style="font-weight: bold;"> </span>Ignored by <em>consolehead.bin</em><span
- style="font-style: italic;"></span></dd>
-</dl>
-<span style="font-weight: bold;"> </span><span
- style="font-style: italic;"></span>
-<dl>
-  <dt>splashTimeoutErr</dt>
-  <dd>Optional, defaults to
-true.
-True signals
-an error on splash timeout, false
-closes the splash screen quietly.<br>
-    <span style="font-weight: bold;"></span>Ignored
-by <em>consolehead.bin</em></dd>
-</dl>
-<span style="font-style: italic;"></span>
-<dl>
-  <dt>stayAlive</dt>
-  <dd>Optional, defaults to
-false
-in <em>guihead.bin</em>
-/ always true<span style="font-weight: bold;"> </span>in <em>consolehead.bin</em>.
-When enabled the
-launcher waits for the Java application to finish and returns it's exit
-code.</dd>
-</dl>
-<h2>Example configurations</h2>
-<pre><span
- style="font-weight: bold; font-family: monospace; color: rgb(51, 51, 255);"><span
- style="font-weight: bold;"><span style="font-weight: bold;"><span
- style="font-weight: bold;"><span style="font-weight: bold;"></span></span></span></span><span
- style="font-weight: bold;"><span style="font-weight: bold;"><span
- style="font-weight: bold;"><span style="font-weight: bold;"></span></span></span></span><span
- style="font-weight: bold;"><span style="font-weight: bold;"><span
- style="font-weight: bold;"><span style="font-weight: bold;"></span></span></span></span></span><span
- class="codeword">jar</span> paint2\paint2.jar<br><span class="codeword">outfile</span> paint2\paint2.exe<br><span
- class="codeword">javamin</span> 1.4.0<br><span class="codeword">javamax</span> 1.4.2<br><span
- class="codeword">icon</span> paint2\paint2.ico<br><span
- class="codeword">errTitle</span> Paint2 Error<br><span class="codeword">splash</span> paint2\paint2.bmp<br><span
- class="codeword">waitfor</span> Paint2<br><span class="codeword">splashTimeout</span> 45<br><span
- class="codeword">chdir</span> true<br><span class="codeword">setProcName</span> true</pre>
-<span style="font-family: monospace;"><span
- style="color: rgb(51, 51, 255);"> </span></span>
-<pre><span class="codeword">header</span> consolehead.bin<br><span
- class="codeword">jar</span> dist\ConsoleApp.jar<br><span
- class="codeword">outfile</span> dist\ConsoleApp.exe<br><span
- class="codeword">jrepath</span> ..\jre<br><span class="codeword">javamin</span> 1.4.2<br><span
- class="codeword">icon</span> l4j\ConsoleApp.ico<br><span
- class="codeword">chdir</span> true<br><span class="codeword">setProcName</span> true<br><span
- class="codeword">errTitle</span> ConsoleApp<br><span class="codeword">jvmArgs</span> -Xloggc:gclog.txt</pre>
-</div>
-<div id="footer">
-Copyright
-&copy; 2005 Grzegorz Kowal
-<br>
-<br>
-<p><a href="http://sourceforge.net"><img
- src="http://sourceforge.net/sflogo.php?group_id=95944&amp;type=4"
- alt="SourceForge.net Logo" border="0" height="37" width="125"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="http://www.nosoftwarepatents.com"><img alt=""
- src="http://www.nosoftwarepatents.com/banners/90x40_3.jpg"
- style="border: 0px solid ; width: 90px; height: 40px;"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="http://validator.w3.org/check?uri=referer"><img
- src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"
- border="0" height="31" width="88"></a>
-</p>
-</div>
-</div>
-</body>
-</html>
diff --git a/installer/lib/launch4j/web/docs2.html b/installer/lib/launch4j/web/docs2.html
deleted file mode 100644
index 9d539c89dff7889d448e199b12dea825025f012d..0000000000000000000000000000000000000000
--- a/installer/lib/launch4j/web/docs2.html
+++ /dev/null
@@ -1,394 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head>
-  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-  
-  <title>Launch4j :: Cross-platform java application wrapper for creating Windows native executables</title><meta content="Grzegorz Kowal" name="author">
-  <meta content="Cross-platform java application wrapper for creating Windows native executables.
-Features native splash screen, application icon, small stub." name="description">
-  <meta name="Keywords" content="Java, java, exe, native, windows, Windows, jar, wrap, wrapper, launch,
-run, execute, executable, splash, icon, ico, ant, build, script, deploy, free, freeware, open source,
-gpl, GPL, lgpl, LGPL, sourceforge, c++, C++, W2K, WXP, W98, linux, Linux">
-  <link rel="stylesheet" type="text/css" href="layout.css">
-  <link rel="stylesheet" type="text/css" href="style.css"></head>
-
-<body>
-<div id="container">
-<div id="top"><img style="width: 249px; height: 58px;" alt="" src="launch4j.gif"><span style="color: rgb(48, 127, 225);"> <small><span style="font-weight: bold; font-family: Helvetica,Arial,sans-serif;">1.4.2,&nbsp;
-2.0.RC3</span></small></span>
-</div>
-<div id="leftnav">
-<ul id="navlist">
-  <li><a href="index.html"><span style="font-weight: bold;"></span>Home</a></li>
-  <li><a href="docs1.html"><span style="font-weight: bold;"></span>1.x
-docs</a></li>
-  <li><a href="docs2.html"><span style="font-weight: bold;"></span>2.x
-docs</a></li>
-  <li><a href="changelog.html"><span style="font-weight: bold;"></span>Changelog</a></li>
-  <li><a href="http://sourceforge.net/project/screenshots.php?group_id=95944"><span style="font-weight: bold;"></span>Screenshots</a></li>
-  <li><a href="http://sourceforge.net/project/showfiles.php?group_id=95944"><span style="font-weight: bold;"></span>Download</a></li>
-  <li><a href="http://sourceforge.net/forum/?group_id=95944"><span style="font-weight: bold;"></span>Support</a></li>
-  <li><a href="http://sourceforge.net/projects/launch4j"><span style="font-weight: bold;"></span>Project
-summary</a></li>
-  <li><a href="http://sourceforge.net/tracker/?atid=613100&amp;group_id=95944"><span style="font-weight: bold;"></span>Bug
-tracker</a></li>
-  <li><a href="links.html"><span style="font-weight: bold;"></span>Links</a></li>
-</ul>
-</div>
-<div id="content">
-<a href="#Running_launch4j">Running
-launch4j</a><br>
-<a href="#Configuration_file">Configuration
-file</a><br>
-<a href="#Importing_1.x_configuration">Importing
-1.x configuration</a><br>
-<a href="#Ant_task">Ant Task</a><br>
-<br>
-<br>
-<h2><a name="Running_launch4j"></a>Running
-launch4j<br>
-</h2>
-Run <em>launch4j.exe</em>
-or <em>launch4j</em>
-script without command
-line arguments to enter the GUI mode.<br>
-<pre>launch4j.exe<br></pre>
-To wrap a jar in console mode use <em>launch4jc.exe</em>&nbsp;<em></em>and
-specify the configuration file using an absolute path.<br>
-<pre>launch4jc.exe c:\src\demo\l4j\config.xml<br></pre>
-On linux use the <em>launch4j</em>
-script.<br>
-<pre>launch4j ~/src/demo/l4j/config.xml<br></pre>
-<br>
-<h2><a name="Configuration_file"></a>Configuration
-file</h2>
-Launch4j requires an xml configuration file for each output executable.
-You can create and edit it conveniently using the graphic user
-interface or your favorite editor. Alternatively it's possible to pass
-all of the configuration parameters through the Ant task. All files
-except for <em>&lt;jre&gt;&lt;path&gt;</em>
-may be absolute paths or
-relative to the configuration file path.<br>
-<pre>&lt;!-- <strong>Bold</strong> elements are required --&gt;<br><strong>&lt;launch4jConfig&gt;<br></strong>  &lt;!-- Header types: 0-GUI, 1-console --&gt;<strong><br></strong>  <strong>&lt;headerType&gt;</strong><span class="codeword">0|1</span><strong>&lt;/headerType&gt;</strong><br>&nbsp; <strong>&lt;jar&gt;</strong><span class="codeword">file</span><span class="codeword"></span><strong>&lt;/jar&gt;<br></strong>  <strong>&lt;outfile&gt;</strong><span class="codeword">file.exe</span><strong><span class="codeword"></span>&lt;/outfile&gt;</strong><br>  &lt;errTitle&gt;<span class="codeword">text</span>&lt;/errTitle&gt;<br>  &lt;jarArgs&gt;<span class="codeword">text</span>&lt;/jarArgs&gt;<br>  &lt;chdir&gt;<span class="codeword">path</span>&lt;/chdir&gt;<br>  &lt;customProcName&gt;<span class="codeword">true|<u>false</u></span>&lt;/customProcName&gt;<br>  &lt;stayAlive&gt;<span class="codeword">true|false</span>&lt;/stayAlive&gt;<br>  &lt;icon&gt;<span class="codeword">file</span>&lt;/icon&gt;<br>  <strong>&lt;jre&gt;<br></strong>    &lt;!-- Specify one of the following or both --&gt;<br>    <strong>&lt;path&gt;</strong><span class="codeword">path</span><strong>&lt;/path&gt;<br>    </strong><strong>&lt;minVersion&gt;</strong><span class="codeword">x.x.x[_xx]</span><strong>&lt;/minVersion&gt;<br></strong>    &lt;maxVersion&gt;<span class="codeword">x.x.x[_xx]</span>&lt;/maxVersion&gt;<br>    &lt;!-- Heap sizes in MB, 0-use default --&gt;<br>    &lt;initialHeapSize&gt;<span class="codeword">MB</span>&lt;/initialHeapSize&gt;<br>    &lt;maxHeapSize&gt;<span class="codeword">MB</span>&lt;/maxHeapSize&gt;<br>    &lt;args&gt;<span class="codeword">text</span>&lt;/args&gt;<br>  <strong>&lt;/jre&gt;</strong><br>  &lt;splash&gt;<br>    <strong>&lt;file&gt;</strong><span class="codeword">file</span><strong>&lt;/file&gt;</strong><br>    &lt;waitForWindow&gt;<span class="codeword"><u>true</u>|false</span>&lt;/waitForWindow&gt;<br>    &lt;timeout&gt;<span class="codeword">seconds [60]</span>&lt;/timeout&gt;<br>    &lt;timeoutErr&gt;<span class="codeword"><u>true</u>|false</span>&lt;/timeoutErr&gt;<br>  &lt;/splash&gt;<br>  &lt;versionInfo&gt;<br>    <strong>&lt;fileVersion&gt;</strong><span class="codeword">x.x.x.x</span><strong>&lt;/fileVersion&gt;</strong><br>    <strong>&lt;txtFileVersion&gt;</strong><span class="codeword">text</span><strong>&lt;/txtFileVersion&gt;</strong><br>    <strong>&lt;fileDescription&gt;</strong><span class="codeword">text</span><strong>&lt;/fileDescription&gt;</strong><br>    <strong>&lt;copyright&gt;</strong><span class="codeword">text</span><strong>&lt;/copyright&gt;</strong><br>    <strong>&lt;productVersion&gt;</strong><span class="codeword">x.x.x.x</span><strong>&lt;/productVersion&gt;</strong><br>    <strong>&lt;txtProductVersion&gt;</strong><span class="codeword">text</span><strong>&lt;/txtProductVersion&gt;</strong><br>    <strong>&lt;productName&gt;</strong><span class="codeword">text</span><strong>&lt;/productName&gt;</strong><br>    &lt;companyName&gt;<span class="codeword">text</span>&lt;/companyName&gt;<br>    <strong>&lt;internalName&gt;</strong><span class="codeword">filename</span><strong>&lt;/internalName&gt;</strong><br>    <strong>&lt;originalFilename&gt;</strong><span class="codeword">filename.exe</span><strong>&lt;/originalFilename&gt;</strong><br>  &lt;/versionInfo&gt;<br><strong>&lt;/launch4jConfig&gt;</strong><br></pre>
-<dl>
-  <dt>&lt;headerType&gt;</dt>
-  <dd>Type of the header used to
-wrap the application.</dd>
-</dl>
-<table style="text-align: left;" border="1" cellpadding="4" cellspacing="0">
-  <tbody>
-    <tr>
-      <td style="text-align: center;"><span style="font-weight: bold;">Header&nbsp;</span><span style="font-weight: bold;">type</span><br>
-      </td>
-      <td style="white-space: nowrap; text-align: center; font-weight: bold;">App
-type<br>
-      </td>
-      <td style="text-align: center;"><span style="font-weight: bold;">Launcher</span><br>
-      </td>
-      <td style="white-space: nowrap; text-align: center; font-weight: bold;">Splash
-screen</td>
-      <td style="text-align: center; font-weight: bold; white-space: nowrap;">Wait
-for the application to
-close </td>
-    </tr>
-    <tr>
-      <td style="text-align: center;">0<br>
-      </td>
-      <td style="text-align: center;">GUI<br>
-      </td>
-      <td style="text-align: center;">javaw<br>
-      </td>
-      <td style="text-align: center;">yes<br>
-      </td>
-      <td>wrapper
-waits only if <em>stayAlive</em>
-is set to true, otherwise it terminates immediately or after closing
-the splash screen.<br>
-      </td>
-    </tr>
-    <tr>
-      <td style="text-align: center;">1<br>
-      </td>
-      <td style="text-align: center;">console<br>
-      </td>
-      <td style="text-align: center;">java<br>
-      </td>
-      <td style="text-align: center;">no<br>
-      </td>
-      <td>always waits and
-returns application's exit code.<br>
-      </td>
-    </tr>
-  </tbody>
-</table>
-<br>
-<dl>
-  <dt>&lt;jar&gt;</dt>
-  <dd>Executable jar to wrap.</dd>
-</dl>
-<dl>
-  <dt>&lt;outfile&gt;</dt>
-  <dd>Output executable file.<strong></strong></dd>
-</dl>
-<dl>
-  <dt>&lt;errTitle&gt;</dt>
-  <dd>Optional,
-sets the title of the error message box that's displayed if Java cannot
-be found for instance. This usually should contain the name of your
-application. The console header prefixes error messages with this
-property (myapp: error...)</dd>
-</dl>
-<dl>
-  <dt>&lt;jarArgs&gt;</dt>
-  <dd>Optional, constant
-command line arguments.</dd>
-</dl>
-<dl>
-  <dt>&lt;chdir&gt;</dt>
-  <dd>Optional. Change current
-directory to an arbitrary path relative to the executable. <br>
-If you omit this property
-or leave it blank it will have no effect. Setting it to <em>.</em>
-will change the current dir to the same directory as the executable. <em>..</em>
-will change it to the parent directory, and so on.</dd>
-  <dd>
-    <pre>&lt;chdir&gt;.&lt;/chdir&gt;</pre>
-  </dd>
-  <dd>
-    <pre>&lt;chdir&gt;../somedir&lt;/chdir&gt;</pre>
-  </dd>
-</dl>
-<dl>
-  <dt>&lt;customProcName&gt;</dt>
-  <dd>Optional, defaults to
-false.
-Set the process name as the executable filename. Creates a temporary
-file in launch4j-tmp directory inside the used JRE. These files are
-deleted by
-any launch4j wrapped application, which sets the process name and uses
-the same JRE. The removal takes place when the application <strong>starts</strong>,
-so at least one copy of this file will always be present.</dd>
-</dl>
-<dl>
-  <dt>&lt;stayAlive&gt;</dt>
-  <dd>Optional, defaults to
-false
-in GUI header, <em></em>
-always true<span style="font-weight: bold;"> </span>in console header.
-When enabled the
-launcher waits for the Java application to finish and returns it's exit
-code.</dd>
-</dl>
-<dl>
-  <dt>&lt;icon&gt;</dt>
-  <dd>Application icon in ICO
-format. May contain multiple color depths/resolutions.<br>
-  </dd>
-</dl>
-<dl>
-  <dt>&lt;jre&gt;</dt>
-  <dd>Required element that groups
-JRE settings.</dd>
-</dl>
-<blockquote>
-  <dl>
-    <dt>&lt;path&gt;,
-&lt;minVersion&gt;, &lt;maxVersion&gt;<br>
-    </dt>
-    <dd>The <em>&lt;path&gt;</em>
-property
-is used
-to specify the relative path (to the executable) of an embedded JRE, it
-does not rely on the current directory or <em>&lt;chdir&gt;</em>.
-Note that this path is
-not checked until the actual application execution. If you'd like the
-wrapper to search for a JRE (public or SDK
-private) use the <em>&lt;minVersion&gt;</em>
-property, you may also specify the <em>&lt;maxVersion&gt;</em>
-to prevent it from using higher Java versions. Launch4j will always use
-the highest version available (in the min/max range of course). You can
-also combine these properties to change the startup process...</dd>
-  </dl>
-  <div style="margin-left: 40px;">
-  <dl>
-    <dt>&lt;path&gt;</dt>
-    <dd>Run if bundled JRE and
-javaw.exe
-are present, otherwise stop with error.</dd>
-    <dt>&lt;path&gt; +
-&lt;minVersion&gt;&nbsp; [+ &lt;maxVersion&gt;]</dt>
-    <dd>Use bundled JRE first,
-if it
-cannot be located search for Java, if that fails display error message
-and open the Java download page.</dd>
-    <dt>&lt;minVersion&gt;&nbsp;
-[+ &lt;maxVersion&gt;]</dt>
-    <dd>Search for Java, if an
-appropriate version cannot be found display error message and open the
-Java download page.</dd>
-  </dl>
-  </div>
-</blockquote>
-<blockquote>
-  <dl>
-    <dt>&lt;initialHeapSize&gt;</dt>
-    <dd>Optional, initial heap
-size in MB, 0 - use default.</dd>
-  </dl>
-  <dl>
-    <dt>&lt;maxHeapSize&gt;</dt>
-    <dd>Optional, max heap size in
-MB, 0 - use default.</dd>
-  </dl>
-  <dl>
-    <dt>&lt;args&gt;</dt>
-    <dd>Optional, accepts
-everything you would normally pass to
-java/javaw
-launcher: assertion options, system properties and X options.</dd>
-  </dl>
-</blockquote>
-<dl>
-  <dt>&lt;splash&gt;</dt>
-  <dd>Optional, groups the splash
-screen settings. Allowed only in GUI header.<br>
-  </dd>
-</dl>
-<blockquote>
-  <dl>
-    <dt>&lt;file&gt;</dt>
-    <dd>Splash screen image in BMP
-format.</dd>
-  </dl>
-  <dl>
-    <dt>&lt;waitForWindow&gt;</dt>
-    <dd>Optional,
-defaults to true. Close the splash screen when an application window or
-Java error message box appears. If set to false, the splash screen will
-be closed on timeout.<br>
-    </dd>
-    
-  </dl>
-  <dl>
-    <dt>&lt;timeout&gt;</dt>
-    <dd>Optional, defaults to
-60.
-Number of seconds after which the splash screen must be closed. Splash
-timeout may cause an error depending on <em>&lt;timeoutErr&gt;</em>.</dd>
-  </dl>
-  <dl>
-    <dt>&lt;timeoutErr&gt;</dt>
-    <dd>Optional, defaults to
-true.
-True signals
-an error on splash timeout, false
-closes the splash screen quietly.</dd>
-  </dl>
-</blockquote>
-<dl>
-  <dt>&lt;versionInfo&gt;</dt>
-  <dd>Optional, version
-information to be displayed by the Windows
-Explorer.</dd>
-</dl>
-<blockquote>
-  <dl>
-    <dt>&lt;fileVersion&gt;</dt>
-    <dd>Version number 'x.x.x.x'<br>
-    </dd>
-  </dl>
-  <dl>
-    <dt>&lt;txtFileVersion&gt;</dt>
-    <dd>Free form file version,
-for example '1.20.RC1'.<br>
-    </dd>
-  </dl>
-  <dl>
-    <dt>&lt;fileDescription&gt;</dt>
-    <dd>File description presented
-to the user.<br>
-    </dd>
-  </dl>
-  <dl>
-    <dt>&lt;copyright&gt;</dt>
-    <dd>Legal copyright.<br>
-    </dd>
-  </dl>
-  <dl>
-    <dt>&lt;productVersion&gt;</dt>
-    <dd>Version number 'x.x.x.x'<br>
-    </dd>
-  </dl>
-  <dl>
-    <dt>&lt;txtProductVersion&gt;</dt>
-    <dd>Free form file version,
-for example '1.20.RC1'.<br>
-    </dd>
-  </dl>
-  <dl>
-    <dt>&lt;productName&gt;</dt>
-    <dd>Text.<br>
-    </dd>
-  </dl>
-  <dl>
-    <dt>&lt;companyName&gt;</dt>
-    <dd>Optional text.<br>
-    </dd>
-  </dl>
-  <dl>
-    <dt>&lt;internalName&gt;</dt>
-    <dd>Internal name without
-extension, original filename or module
-name for example.<br>
-    </dd>
-  </dl>
-  <dl>
-    <dt>&lt;originalFilename&gt;</dt>
-    <dd>Original name of the file
-without the path. Allows to determine
-whether a file has been renamed by a user.<br>
-    </dd>
-  </dl>
-</blockquote>
-<br>
-<h2><a name="Importing_1.x_configuration"></a>Importing
-1.x
-configuration</h2>
-It's possible to import a 1.x configuration file using the GUI
-interface. Open the file, correct the paths and save it as a new xml
-configuration.<br>
-<br>
-<h2><a name="Ant_task"></a>Ant
-task</h2>
-You may set a launch4j directory property or change the task definition.
-<pre>&lt;property name="launch4j.dir" location="/opt/launch4j" /&gt;</pre>
-Define the task in your Ant build script.<br>
-<pre>&lt;taskdef name="launch4j"<br>  classname="net.sf.launch4j.ant.Launch4jTask"<br>  classpath="${launch4j.dir}/launch4j.jar<br>    :${launch4j.dir}/lib/xstream.jar" /&gt;<br></pre>
-Execute the task!<br>
-<pre>&lt;launch4j configFile="./l4j/demo.xml" /&gt;</pre>
-You can set or override the following configuration properties...<br>
-<em>&lt;jar&gt;<br>
-&lt;outfile&gt;<br>
-&lt;versionInfo&gt;<br>
-&nbsp;&nbsp;&nbsp; &lt;fileVersion&gt;<br>
-&nbsp;&nbsp;&nbsp; &lt;txtFileVersion&gt;<br>
-&nbsp;&nbsp;&nbsp; &lt;productVersion&gt;<br>
-&nbsp;&nbsp;&nbsp; &lt;txtProductVersion&gt;</em><em><br>
-</em>
-<pre>&lt;launch4j configFile="./l4j/demo.xml"<br>  outfile="mydemo.exe"<br> &nbsp;fileVersion="1.0.0.0" txtFileVersion="1.0 RC2" /&gt;<br></pre>
-You can also define the entire configuration in the task, but it will
-not be possible to edit such a file in the GUI mode. All paths except
-for <em>&lt;chdir&gt;</em> and <em>&lt;jre&gt;&lt;path&gt;</em> are
-calculated using the <em>basedir</em> project attribute.
-<pre>&lt;launch4j&gt;<br>  &lt;config headerType="0" jar="demo.jar" outfile="demo.exe"&gt;<br>    &lt;jre minVersion="1.4.0" /&gt;<br>  &lt;/config&gt;<br>&lt;/launch4j&gt;<br></pre>
-</div>
-<div id="footer">Copyright
-&copy; 2005 Grzegorz Kowal
-<br>
-<br>
-<p><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=95944&amp;type=4" alt="SourceForge.net Logo" border="0" height="37" width="125"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="http://www.nosoftwarepatents.com"><img alt="" src="http://www.nosoftwarepatents.com/banners/90x40_3.jpg" style="border: 0px solid ; width: 90px; height: 40px;"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" border="0" height="31" width="88"></a>
-</p>
-</div>
-</div>
-</body></html>
\ No newline at end of file
diff --git a/installer/lib/launch4j/web/index.html b/installer/lib/launch4j/web/index.html
index 742124946ae0a79c4395e4dadaed4d8daec965ba..d1f928e6ec4359a688ce829d914799e4d4513aaa 100644
--- a/installer/lib/launch4j/web/index.html
+++ b/installer/lib/launch4j/web/index.html
@@ -1,152 +1,128 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head>
-  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-  
-  <title>Launch4j :: Cross-platform Java application wrapper for creating Windows native executables</title><meta content="Grzegorz Kowal" name="author">
-  <meta content="Cross-platform java application wrapper for creating Windows native executables.
-Features native splash screen, application icon, small stub." name="description">
-  <meta name="Keywords" content="Java, java, exe, native, windows, Windows, jar, wrap, wrapper, launch,
-run, execute, executable, splash, icon, ico, ant, build, script, deploy, free, freeware, open source,
-gpl, GPL, lgpl, LGPL, sourceforge, c++, C++, W2K, WXP, W98, linux, Linux">
-  <link rel="stylesheet" type="text/css" href="layout.css">
-  <link rel="stylesheet" type="text/css" href="style.css"></head>
-
-<body>
-<div id="container">
-<div id="top"><img style="width: 249px; height: 58px;" alt="" src="launch4j.gif"><span style="color: rgb(48, 127, 225);"> <small><span style="font-weight: bold; font-family: Helvetica,Arial,sans-serif;">1.4.2,&nbsp;
-2.0.RC3</span></small></span>
-</div>
-<div id="leftnav">
-<ul id="navlist">
-  <li><a href="index.html"><span style="font-weight: bold;"></span>Home</a></li>
-  <li><a href="docs1.html"><span style="font-weight: bold;"></span>1.x
-docs</a></li>
-  <li><a href="docs2.html"><span style="font-weight: bold;"></span>2.x
-docs</a></li>
-  <li><a href="changelog.html"><span style="font-weight: bold;"></span>Changelog</a></li>
-  <li><a href="http://sourceforge.net/project/screenshots.php?group_id=95944"><span style="font-weight: bold;"></span>Screenshots</a></li>
-  <li><a href="http://sourceforge.net/project/showfiles.php?group_id=95944"><span style="font-weight: bold;"></span>Download</a></li>
-  <li><a href="http://sourceforge.net/forum/?group_id=95944"><span style="font-weight: bold;"></span>Support</a></li>
-  <li><a href="http://sourceforge.net/projects/launch4j"><span style="font-weight: bold;"></span>Project
-summary</a></li>
-  <li><a href="http://sourceforge.net/tracker/?atid=613100&amp;group_id=95944"><span style="font-weight: bold;"></span>Bug
-tracker</a></li>
-  <li><a href="links.html"><span style="font-weight: bold;"></span>Links</a></li>
-</ul>
-</div>
-<div id="content"><big><span style="color: rgb(48, 127, 225);">
-Cross-platform Java application wrapper for creating Windows </span></big><big><span style="color: rgb(48, 127, 225);">native </span></big><big><span style="color: rgb(48, 127, 225);">EXEs.</span></big>
-<h2><span style="font-weight: bold;"></span></h2>
-Launch4j is a cross-platform tool for wrapping
-Java applications distributed as jars in lightweight Windows
-native executables. The executable can be
-configured to search for a certain JRE version or
-use a bundled one, and it's possible to set
-runtime options, like the initial/max heap size.
-The wrapper also provides better user experience
-through an application icon, a native pre-JRE
-splash screen, a custom process name, and a Java
-download page in case the appropriate JRE cannot
-be found.<br>
-<br>
-<h2><span style="font-weight: bold;"></span><small><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);"></span></span></small>
-Features (2.x)</h2>
-<ul>
-  <li>Launch4j wraps jars in
-Windows native executables and
-allows to
-run them like a regular Windows program. It's possible to wrap
-applications on Linux!<br>
-  </li>
-  <li><strong>Doesn't
-extract the jar</strong> from the
-executable.</li>
-  <li>Custom application icon with
-multiple resolutions and color
-depths.</li>
-  <li><strong>Native pre-JRE
-splash screen</strong> in BMP format
-shown until
-the
-Java
-application starts.</li>
-  <li><strong>Process
-name</strong> as the executable
-filename to
-easily
-identify your application.<i> </i><span style="font-weight: bold; color: rgb(255, 0, 0);"></span></li>
-  <li>Works with a bundled JRE or
-searches for newest JRE / SDK
-in
-given range.</li>
-  <li>Opens <strong>Java
-download page</strong> if an
-appropriate Java version
-cannot be found.</li>
-  <li>Supports <strong>GUI
-and
-console apps</strong>.<br>
-  </li>
-  <li>Passes command line
-arguments, also supports constant arguments.</li>
-  <li>Allows to set the initial/max heap size.<br>
-  </li>
-  <li>JVM options: set system properties, tweak the garbage
-collection...<span style="font-weight: bold;"> </span><span style="font-weight: bold; color: rgb(255, 0, 0);"></span></li>
-  <li><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);">Option
-to change current directory to the executable location.</span></span></li>
-  <li><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);">Custom <strong>version
-information</strong> shown by Windows Explorer.<br>
-    </span></span></li>
-  <li><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);"><strong>GUI</strong> and command line
-interface.</span></span></li>
-  <li><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);">Build integration through an <strong>Ant
-task</strong>.<br>
-    </span></span></li>
-  <li><big><b>Lightweight: 21 KB!</b></big> <span style="font-weight: bold; color: rgb(255, 0, 0);"></span></li>
-  <li><strong>It's
-free</strong> and may be used for
-commercial
-purposes.</li>
-  <li>Includes a sample
-application and <strong>Ant script</strong>
-that
-automates the
-build
-process from Java sources to native executable.<br>
-  </li>
-  <li><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);">The wrapped program
-works on all Windows platforms (98/Me/NT/2K/Xp), launch4j works on
-NT/2K/Xp, Linux (developed and tested on FC2).<br>
-    </span></span></li>
-</ul>
-<h2>License</h2>
-This program is free software licensed under the <a href="http://www.gnu.org/copyleft/gpl.html">GPL
-license</a>, the <i>head</i>
-subproject (the code which is attached to the wrapped jars) is licensed
-under the <span style="font-weight: bold;"></span><a href="http://www.gnu.org/copyleft/lesser.html">LGPL
-license</a>.
-Launch4j may be used for wrapping closed source, commercial
-applications.<br>
-<br>
-<h2>Info</h2>Running Launch4j on other Java enabled platforms is a matter
-of getting a binary version of <a href="http://www.mingw.org/">MinGW</a>
-binutils 2.15.90 (<b>windres</b>
-and <b>ld</b>
-only) for your system or compiling them. If you'll
-provide these, I'll be able to create a binary package
-available for download.<br>
-<br>
-<a href="http://sourceforge.net/forum/forum.php?forum_id=332683"></a></div>
-<div id="footer">
-Copyright
-&copy; 2005 Grzegorz Kowal
-<br>
-<br>
-<p><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=95944&amp;type=4" alt="SourceForge.net Logo" border="0" height="37" width="125"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="http://www.nosoftwarepatents.com"><img alt="" src="http://www.nosoftwarepatents.com/banners/90x40_3.jpg" style="border: 0px solid ; width: 90px; height: 40px;"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" border="0" height="31" width="88"></a>
-</p>
-</div>
-</div>
-</body></html>
\ No newline at end of file
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+	<head>
+		<title>Launch4j - Cross-platform Java executable wrapper</title>
+		<meta name="description" content="Cross-platform Java executable wrapper for creating lightweight Windows native EXEs. Provides better user experience.">
+		<meta name="keywords" content="java executable wrapper, java application wrapper, exe wrapper, jar wrapper, wrap, wraps, wrapping, free software, launch, launcher, linux, mac, windows, open source, ant, solaris, native splash screen, deploy, build tool">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<meta name="author" content="Grzegorz Kowal" >
+		<link rel="stylesheet" type="text/css" href="style.css">
+	</head>
+	<body>
+		<div id="container">
+			<div id="top">
+				<img style="width: 249px; height: 58px;" src="launch4j.gif" alt="launch4j"> <span class="version">3.0.1</span>
+			</div>
+			<div id="leftnav">
+				<ul>
+					<li><a href="index.html">Home</a></li>
+					<li><a href="docs.html">Docs</a></li>
+					<li><a href="changelog.html">Changelog</a></li>
+					<li><a href="http://sourceforge.net/project/screenshots.php?group_id=95944">Screenshots</a></li>
+					<li><a href="http://sourceforge.net/project/showfiles.php?group_id=95944&amp;package_id=192323">Download</a></li>
+					<li><a href="http://sourceforge.net/forum/?group_id=95944">Support</a></li>
+					<li><a href="http://sourceforge.net/projects/launch4j">Project summary</a></li>
+					<li><a href="http://sourceforge.net/tracker/?atid=613100&amp;group_id=95944">Bug tracker</a></li>
+					<li><a href="links.html">Links</a></li>
+				</ul>
+				<!--
+					*** Spanish docs are outdated ***
+					<ul style="margin-top: 20px; font-size: 75%">
+						<li><a href="index.html">English</a></li>
+						<li><a href="index_es.html">Español</a></li>
+					</ul>
+				-->
+			</div>
+			<div id="content">
+<h2>Cross-platform Java executable wrapper</h2>
+<p>
+    Launch4j is a cross-platform tool for wrapping
+    Java applications distributed as jars in lightweight Windows
+    native executables. The executable can be
+    configured to search for a certain JRE version or
+    use a bundled one, and it's possible to set
+    runtime options, like the initial/max heap size.
+    The wrapper also provides better user experience
+    through an application icon, a native pre-JRE
+    splash screen, a custom process name, and a Java
+    download page in case the appropriate JRE cannot
+    be found.
+</p>
+<img style="width: 352px; height: 498px; margin-left: 100px;" src="launch4j-use.gif" alt="How to use Launch4">
+<h2>Features</h2>
+<ul>
+	<li>Launch4j wraps jars in Windows native executables and allows to run them
+		like a regular Windows program. It's possible to wrap applications
+		on Windows, Linux, Mac OS X and Solaris!
+	</li>
+	<li>Also creates <strong>launchers</strong> for jars and class files without wrapping.</li>
+	<li>
+		Supports executable jars and <strong>dynamic classpath</strong> resolution using
+		environment variables and wildcards.
+	</li>
+	<li><strong>Doesn't extract the jar</strong> from the executable.</li>
+	<li>Custom application icon with multiple resolutions and color depths.</li>
+	<li><strong>Native pre-JRE splash screen</strong> in BMP format shown until
+		the Java application starts.
+	</li>
+	<li><strong>Process name</strong> as the executable filename to easily
+		identify your application, initial <strong>priority</strong> and
+		<strong>single aplication instance</strong> features.
+	</li>
+	<li>Works with a bundled JRE or searches for newest Sun or IBM JRE / JDK in given
+		version range.</li>
+	<li>Opens <strong>Java download page</strong> if an appropriate Java version cannot be
+		found or a <strong>support website</strong> in case of an error.
+	</li>
+	<li>Supports <strong>GUI and console apps</strong>.</li>
+	<li>Supports <strong>Vista manifests</strong> and <strong>XP visual style manifests</strong>.</li>
+	<li>Passes command line arguments, also supports constant arguments.</li>
+	<li>Allows to set the initial/max heap size also <strong>dynamically</strong> in percent of free memory.</li>
+	<li>JVM options: set system properties, tweak the garbage collection...</li>
+	<li>Runtime JVM options from an .l4j.ini file.</li>
+	<li>Runtime command line switches to change the compiled options.</li>
+	<li>Access to environment variables, the <strong>registry</strong> and executable file path through system properties.</li>
+	<li><strong>Set environment variables.</strong></li>
+	<li>Option to change current directory to the executable location.</li>
+	<li>The JRE's bin directory is appended to the Path environment variable.</li>
+	<li>Custom <strong>version information</strong> shown by Windows Explorer.</li>
+	<li><strong>GUI</strong> and command line interface.</li>
+	<li>Build integration through an <strong>Ant task</strong> and a <strong><a href="http://9stmaryrd.com/tools/launch4j-maven-plugin/">Maven Plugin</a></strong>.</li>
+	<li><big><strong>Lightweight: 26 KB!</strong></big></li>
+	<li><strong>It's free</strong> and may be used for commercial purposes.</li>
+	<li>Includes a sample application and <strong>Ant script</strong>
+		that automates the build process from Java sources to native executable.
+	</li>
+	<li>The wrapped program works on all Windows platforms (98/Me/NT/2K/XP/Vista),
+		Launch4j works on NT/2K/XP/Vista, Linux, Mac OS X (build on 10.4) and Sparc Solaris 8-10.
+	</li>
+</ul>
+<h2>License</h2>
+<p>
+	This program is free software licensed under the
+	<a href="http://www.opensource.org/licenses/bsd-license.html">BSD license</a>, the <em>head</em> subproject
+	(the code which is attached to the wrapped jars) is licensed under the
+	<a href="http://www.opensource.org/licenses/mit-license.html">MIT license</a>.
+	Launch4j may be used for wrapping closed source, commercial applications.
+</p>
+<h2>Info</h2>
+<p>
+	Running Launch4j on other Java enabled platforms is a matter of getting a binary version
+	of <a href="http://www.mingw.org/">MinGW</a> binutils 2.15.90 (<em>windres</em> and <em>ld</em> only)
+	for your system or compiling them. If you'll provide these, I'll be able to create a binary package
+	available for download.
+</p>
+<a href="http://sourceforge.net/forum/forum.php?forum_id=332683"></a>
+			</div>
+			<div class="footer">
+			    All trademarks mentioned are properties of their respective owners.<br />
+            	Copyright &copy; 2005-2008 Grzegorz Kowal
+            	<p style="margin-top: 2em">
+            		<a href="http://sourceforge.net"><img style="width: 125px; height: 37px; border: none" src="http://sourceforge.net/sflogo.php?group_id=95944&amp;type=4" alt="sf.net"></a>
+            		<a href="http://www.nosoftwarepatents.com"><img style="width: 90px; height: 40px; border: none; margin-left: 5%" src="http://www.nosoftwarepatents.com/banners/90x40_3.jpg" alt=""></a>
+            		<a href="http://validator.w3.org/check?uri=referer"><img style="width: 88px; height: 31px; border: none; margin-left: 5%" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
+            	</p>
+			</div>
+		</div>
+	</body>
+</html>
diff --git a/installer/lib/launch4j/web/launch4j-use.gif b/installer/lib/launch4j/web/launch4j-use.gif
new file mode 100644
index 0000000000000000000000000000000000000000..ccb888247ea08769fc3cdd4b402529ad8b8d5f3b
Binary files /dev/null and b/installer/lib/launch4j/web/launch4j-use.gif differ
diff --git a/installer/lib/launch4j/web/layout.css b/installer/lib/launch4j/web/layout.css
deleted file mode 100644
index d03a57a42fd47f60a955f2cfdfd7a09a7662036e..0000000000000000000000000000000000000000
--- a/installer/lib/launch4j/web/layout.css
+++ /dev/null
@@ -1,83 +0,0 @@
-/* Generated by CaScadeS, a stylesheet editor for Mozilla Composer */
-
-  #container { border-width: 0px;
-    margin: 10px auto;
-    width: 90%;
-    color: rgb(51, 51, 51);
-    line-height: 130%;
-    background-color: rgb(255, 255, 255);
-    }
-
-  #top { padding: 0.5em;
-    background-color: rgb(255, 255, 255);
-    }
-
-  #top h1 { margin: 0pt;
-    padding: 0pt;
-    }
-
-  #leftnav { margin: 0pt;
-    padding: 0.5em;
-    float: left;
-    width: 160px;
-    background-color: rgb(255, 255, 255);
-    }
-
-  #leftnav ul { border-width: 0px;
-    margin-left: 0pt;
-    padding-left: 0pt;
-    list-style-type: none;
-    font-family: Arial,Helvetica,sans-serif;
-    font-weight: inherit;
-    }
-
-  #leftnav a { padding: 2px;
-    display: block;
-    width: 160px;
-    }
-
-  #leftnav a:link, #navlist a:visited { text-decoration: none;
-    color: rgb(102, 102, 102);
-    }
-
-  #leftnav a:hover { color: rgb(255, 255, 255);
-    background-color: rgb(48, 127, 225);
-    }
-
-  #content { border-width: 0pt 0pt 0pt 1px;
-    border-left: 1px solid rgb(204, 204, 204);
-    padding: 1em;
-    margin-left: 200px;
-    background-color: rgb(255, 255, 255);
-    max-width: 36em;
-    }
-
-  #content a:link { text-decoration: none;
-    color: rgb(102, 102, 102);
-    }
-
-  #content a:visited { text-decoration: none;
-    color: rgb(69, 69, 69);
-    }
-
-  #content a:hover { color: rgb(48, 127, 255);
-    text-decoration: underline;
-    }
-
-  #footer { border-color: gray;
-    border-width: 1px;
-    margin: 0pt;
-    padding: 0.5em;
-    clear: both;
-    color: rgb(51, 51, 51);
-    background-color: rgb(255, 255, 255);
-    text-align: center;
-    font-size: 90%;
-    }
-
-  #leftnav p { margin: 0pt 0pt 1em;
-    }
-
-  #content h2 { margin: 0pt 0pt 0.5em;
-    }
-
diff --git a/installer/lib/launch4j/web/links.html b/installer/lib/launch4j/web/links.html
index ae5d2143a49aaeb3872cddaa04457b9edfdd1894..4213b86f9d65bba1315b304e89c38cc2e649f59c 100644
--- a/installer/lib/launch4j/web/links.html
+++ b/installer/lib/launch4j/web/links.html
@@ -1,88 +1,73 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-  <meta http-equiv="Content-Type"
- content="text/html; charset=iso-8859-1">
-  <title>Launch4j :: Cross-platform java application wrapper for
-creating Windows native executables</title>
-  <meta content="Grzegorz Kowal" name="author">
-  <meta
- content="Cross-platform java application wrapper for creating Windows native executables.
-Features native splash screen, application icon, small stub."
- name="description">
-  <meta name="Keywords"
- content="Java, java, exe, native, windows, Windows, jar, wrap, wrapper, launch,
-run, execute, executable, splash, icon, ico, ant, build, script, deploy, free, freeware, open source,
-gpl, GPL, lgpl, LGPL, sourceforge, c++, C++, W2K, WXP, W98, linux, Linux">
-  <link rel="stylesheet" type="text/css" href="layout.css">
-  <link rel="stylesheet" type="text/css" href="style.css">
-</head>
-<body>
-<div id="container">
-<div id="top"><img style="width: 249px; height: 58px;" alt=""
- src="launch4j.gif"><span style="color: rgb(48, 127, 225);"> <small><span
- style="font-weight: bold; font-family: Helvetica,Arial,sans-serif;">1.4.2,&nbsp;
-2.0.RC3</span></small></span>
-</div>
-<div id="leftnav">
-<ul id="navlist">
-  <li><a href="index.html"><span style="font-weight: bold;"></span>Home</a></li>
-  <li><a href="docs1.html"><span style="font-weight: bold;"></span>1.x
-docs</a></li>
-  <li><a href="docs2.html"><span style="font-weight: bold;"></span>2.x
-docs</a></li>
-  <li><a href="changelog.html"><span style="font-weight: bold;"></span>Changelog</a></li>
-  <li><a
- href="http://sourceforge.net/project/screenshots.php?group_id=95944"><span
- style="font-weight: bold;"></span>Screenshots</a></li>
-  <li><a
- href="http://sourceforge.net/project/showfiles.php?group_id=95944"><span
- style="font-weight: bold;"></span>Download</a></li>
-  <li><a href="http://sourceforge.net/forum/?group_id=95944"><span
- style="font-weight: bold;"></span>Support</a></li>
-  <li><a href="http://sourceforge.net/projects/launch4j"><span
- style="font-weight: bold;"></span>Project
-summary</a></li>
-  <li><a
- href="http://sourceforge.net/tracker/?atid=613100&amp;group_id=95944"><span
- style="font-weight: bold;"></span>Bug
-tracker</a></li>
-  <li><a href="links.html"><span style="font-weight: bold;"></span>Links</a></li>
-</ul>
-</div>
-<div id="content">
-<h2>Links</h2>
-<p><a href="http://www.mingw.org/">MinGW</a><br>
-<a href="http://jakarta.apache.org/commons/beanutils/">Commons
-BeanUtils</a><br>
-<a href="http://jakarta.apache.org/commons/logging/">Commons
-Logging</a><br>
-<a href="http://xstream.codehaus.org/">XStream</a><br>
-<a href="http://www.jgoodies.com/freeware/forms/">JGoodies Forms</a><br>
-<a href="http://www.jgoodies.com/freeware/looks/">JGoodies Looks</a><br>
-<a href="http://www.icon-king.com/">Nuvola Icon Theme</a><br>
-<a href="https://abeille.dev.java.net/">Abeille Forms Designer</a><br>
-<a href="http://www.eclipse.org/">Eclipse</a><br>
-<a href="http://www.bloodshed.net/devcpp.html">Bloodshed Dev-C++
-IDE</a><br>
-</p>
-</div>
-<div id="footer">
-Copyright
-&copy; 2005 Grzegorz Kowal
-<br>
-<br>
-<p><a href="http://sourceforge.net"><img
- src="http://sourceforge.net/sflogo.php?group_id=95944&amp;type=4"
- alt="SourceForge.net Logo" border="0" height="37" width="125"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="http://www.nosoftwarepatents.com"><img alt=""
- src="http://www.nosoftwarepatents.com/banners/90x40_3.jpg"
- style="border: 0px solid ; width: 90px; height: 40px;"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="http://validator.w3.org/check?uri=referer"><img
- src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"
- border="0" height="31" width="88"></a>
-</p>
-</div>
-</div>
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+	<head>
+		<title>Launch4j - Cross-platform Java executable wrapper</title>
+		<meta name="description" content="Cross-platform Java executable wrapper for creating lightweight Windows native EXEs. Provides better user experience.">
+		<meta name="keywords" content="java executable wrapper, java application wrapper, exe wrapper, jar wrapper, wrap, wraps, wrapping, free software, launch, launcher, linux, mac, windows, open source, ant, solaris, native splash screen, deploy, build tool">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<meta name="author" content="Grzegorz Kowal" >
+		<link rel="stylesheet" type="text/css" href="style.css">
+	</head>
+	<body>
+		<div id="container">
+			<div id="top">
+				<img style="width: 249px; height: 58px;" src="launch4j.gif" alt="launch4j"> <span class="version">3.0.1</span>
+			</div>
+			<div id="leftnav">
+				<ul>
+					<li><a href="index.html">Home</a></li>
+					<li><a href="docs.html">Docs</a></li>
+					<li><a href="changelog.html">Changelog</a></li>
+					<li><a href="http://sourceforge.net/project/screenshots.php?group_id=95944">Screenshots</a></li>
+					<li><a href="http://sourceforge.net/project/showfiles.php?group_id=95944&amp;package_id=192323">Download</a></li>
+					<li><a href="http://sourceforge.net/forum/?group_id=95944">Support</a></li>
+					<li><a href="http://sourceforge.net/projects/launch4j">Project summary</a></li>
+					<li><a href="http://sourceforge.net/tracker/?atid=613100&amp;group_id=95944">Bug tracker</a></li>
+					<li><a href="links.html">Links</a></li>
+				</ul>
+				<!--
+					*** Spanish docs are outdated ***
+					<ul style="margin-top: 20px; font-size: 75%">
+						<li><a href="index.html">English</a></li>
+						<li><a href="index_es.html">Español</a></li>
+					</ul>
+				-->
+			</div>
+			<div id="content">
+<h2>Links</h2>
+<p>
+	<a href="http://9stmaryrd.com/tools/launch4j-maven-plugin/">Launch4j Maven Plugin by Paul A. Jungwirth</a><br>
+	<a href="http://www.nbextras.org/2006/04/04/1144154738434.html">Launch4j integration module for NetBeans by Dafe Simonek</a><br><br>
+	<a href="http://www.mingw.org/">MinGW</a><br>
+	<a href="http://jakarta.apache.org/commons/beanutils/">Commons BeanUtils</a><br>
+	<a href="http://jakarta.apache.org/commons/logging/">Commons Logging</a><br>
+	<a href="http://xstream.codehaus.org/">XStream</a><br>
+	<a href="http://www.jgoodies.com/freeware/forms/">JGoodies Forms</a><br>
+	<a href="http://www.jgoodies.com/freeware/looks/">JGoodies Looks</a><br>
+	<a href="http://www.icon-king.com/">Nuvola Icon Theme</a><br>
+	<a href="http://abeille.dev.java.net/">Abeille Forms Designer</a><br>
+	<a href="http://www.eclipse.org/">Eclipse</a><br>
+	<a href="http://www.bloodshed.net/devcpp.html">Bloodshed Dev-C++ IDE</a><br>
+</p>
+<h3>Windows native installers</h3>
+<p>
+	<a href="http://nsis.sourceforge.net/">NSIS</a> (cross-platform, targets Windows)<br>
+	<a href="http://www.jrsoftware.org/isinfo.php">Inno Setup</a><br>
+</p>
+<h3>Cross-platform Java installers</h3>
+<p>
+	<a href="http://www.izforge.com/izpack/">IzPack<a><br>
+</p>
+			</div>
+			<div class="footer">
+			    All trademarks mentioned are properties of their respective owners.<br />
+            	Copyright &copy; 2005-2008 Grzegorz Kowal
+            	<p style="margin-top: 2em">
+            		<a href="http://sourceforge.net"><img style="width: 125px; height: 37px; border: none" src="http://sourceforge.net/sflogo.php?group_id=95944&amp;type=4" alt="sf.net"></a>
+            		<a href="http://www.nosoftwarepatents.com"><img style="width: 90px; height: 40px; border: none; margin-left: 5%" src="http://www.nosoftwarepatents.com/banners/90x40_3.jpg" alt=""></a>
+            		<a href="http://validator.w3.org/check?uri=referer"><img style="width: 88px; height: 31px; border: none; margin-left: 5%" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
+            	</p>
+			</div>
+		</div>
+	</body>
+</html>
diff --git a/installer/lib/launch4j/web/style.css b/installer/lib/launch4j/web/style.css
index 0f15e5493c41d95760892f51e3dc15f0d74885ef..f57c086d684da1bb5bd785486825cb4478914edd 100644
--- a/installer/lib/launch4j/web/style.css
+++ b/installer/lib/launch4j/web/style.css
@@ -1,23 +1,159 @@
-/* Generated by CaScadeS, a stylesheet editor for Mozilla Composer */
-
-  pre { border: 1px dashed rgb(153, 153, 153);
-    padding: 8px;
-    background-color: rgb(241, 241, 241);
-    font-family: Courier New,Courier,monospace;
-    font-size: smaller;
-    }
-
-  .codeword { color: rgb(51, 51, 255);
-    }
-
-  dt { font-weight: bold;
-    }
-
-  em { font-weight: bold;
-    color: rgb(102, 102, 102);
-    font-style: normal;
-    }
-
-  body { font-family: Times New Roman,Times,serif;
-    }
-
+body, table {
+	font: 12px/20px Verdana, Arial, Helvetica, sans-serif;
+}
+
+
+pre {
+	padding: 8px;
+	border: 1px dashed #999999;
+	background-color: #f1f1f1;
+	font: 13px/20px "Courier New", Courier, monospace;
+}
+
+
+.version {
+	color: #307fe1;
+	font-weight: bold;
+}
+
+
+.codeword {
+	color: #3333ff;
+}
+.attrib {
+	color: #404040;
+}
+.option {
+	font-family: "Courier New", Courier, monospace;
+	font-weight: bold;
+}
+
+
+dt {
+	margin-top: 1.5em;
+	color: #404040;
+	font-size: 115%;
+	border-bottom: 1px solid #cccccc;
+}
+dd {
+	margin-left: 1em;
+}
+
+
+.warn, ul.changes em {
+	color: #ff0000;
+}
+
+
+table {
+	margin-top: 1em;
+	padding: 0;
+	border: 1px solid #999999;
+	border-collapse: collapse;
+	text-align: center;
+}
+table th {
+	padding: 2px 4px;
+	border: 1px solid #999999;
+	background-color: #f1f1f1;
+}
+table td {
+	padding: 2px 4px;
+	border: 1px solid #999999;
+}
+.description {
+	text-align: left;
+}
+
+
+#container {
+	width: 90%;
+	margin: 10px auto;
+	border-width: 0;
+	background-color: #ffffff;
+}
+
+
+#top {
+	padding: 0.5em;
+	background-color: #ffffff;
+}
+#top h1 {
+	margin: 0;
+	padding: 0;
+}
+
+
+#leftnav {
+	float: left;
+	width: 170px;
+	margin: 0;
+	padding: 0.5em;
+	background-color: #ffffff;
+}
+#leftnav ul {
+	margin: 0;
+	padding: 0;
+	border: none;
+	list-style-type: none;
+	font-size: 115%;
+}
+#leftnav a {
+	width: 170px;
+	height: 1.6em;
+	line-height: 1.6em;
+	display: block;
+	padding-left: 0.2em;
+}
+#leftnav a:link, #leftnav a:visited {
+	text-decoration: none;
+	color: #666666;
+}
+#leftnav a:hover {
+	background-color: #307fe1;
+	color: #ffffff;
+}
+
+
+#content {
+	max-width: 52em;
+	margin-left: 190px;
+	padding: 1em;
+	border-left: 1px solid #cccccc;
+	background-color: #ffffff;
+}
+
+#content ul {
+	list-style-image: url('bullet.gif');
+}
+
+#content a:link {
+	text-decoration: none;
+	color: #307fe1;
+}
+#content a:visited {
+	text-decoration: none;
+	color: #307fe1;
+}
+#content a:hover {
+	color: #307fe1;
+	text-decoration: underline;
+}
+
+#content h2 {
+	font-size: 150%;
+}
+#content h2:first-child {
+	margin: 0 0 0.5em;
+}
+
+
+.footer {
+	clear: both;
+	margin: 0;
+	padding: 0.5em;
+	background-color: #ffffff;
+	color: #333333;
+	text-align: center;
+	font-size: 90%;
+}