<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -25,8 +25,8 @@ from optparse import OptionParser
 
 def parse_options():
     parser = OptionParser()
-    parser.add_option(&quot;--file&quot;, action=&quot;store&quot;, dest=&quot;file&quot;,
-                      help=&quot;The installer JAR file&quot;)
+    parser.add_option(&quot;--file&quot;, action=&quot;append&quot;, dest=&quot;file&quot;,
+                      help=&quot;The installer JAR file / files&quot;)
     parser.add_option(&quot;--output&quot;, action=&quot;store&quot;, dest=&quot;output&quot;,
                       default=&quot;setup.exe&quot;,
                       help=&quot;The executable file&quot;)
@@ -39,16 +39,23 @@ def parse_options():
     parser.add_option(&quot;--no-upx&quot;, action=&quot;store_true&quot;, dest=&quot;no_upx&quot;,
                       default=False,
                       help=&quot;Do not use UPX to further compress the output&quot;)
+    parser.add_option(&quot;--launch-file&quot;, action=&quot;store&quot;, dest=&quot;launch&quot;,
+                      default=&quot;launcher.exe&quot;,                      
+                      help=&quot;File to launch after extract&quot;)
     (options, args) = parser.parse_args()
     if (options.file is None):
         parser.error(&quot;no installer file has been given&quot;)
     return options    
 
 def create_exe(settings):
-    filename = os.path.basename(settings.file)
-    p7z = '&quot;%s&quot; a -t7z -mx=9 -ms=off installer.7z %s' % (settings.p7z, settings.file)
-    os.system(p7z)
+    filename = os.path.basename(settings.launch)
+    if(len(settings.file) == 1):
+        filename = os.path.basename(settings.file[0])
+
+    files = &quot; &quot;.join(settings.file);  
+    p7z = '&quot;%s&quot; a -t7z -mx=9 -ms=off installer.7z %s' % (settings.p7z, files)
 
+    os.system(p7z)
     config = open('config.txt', 'w')
     config.write(';!@Install@!UTF-8!\r\n')
     config.write('Title=&quot;IzPack&quot;\r\n')</diff>
      <filename>izpack2exe/izpack2exe.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a537e3f24460e2e6a870929db2ece63a29cba813</id>
    </parent>
  </parents>
  <author>
    <name>jponge</name>
    <email>jponge@7d736ef5-cfd4-0310-9c9a-b52d5c14b761</email>
  </author>
  <url>http://github.com/jponge/izpack-utils/commit/40da30f83bc23820af06f16b7294b7cff729d0a6</url>
  <id>40da30f83bc23820af06f16b7294b7cff729d0a6</id>
  <committed-date>2009-05-26T13:16:51-07:00</committed-date>
  <authored-date>2009-05-26T13:16:51-07:00</authored-date>
  <message>Fix for IZPACK-380 by Krzysztof Piech

git-svn-id: https://svn.codehaus.org/izpack/izpack-utils/trunk@2780 7d736ef5-cfd4-0310-9c9a-b52d5c14b761</message>
  <tree>ef8dc73cccf628634f6269c67e4db74044bb4fd9</tree>
  <committer>
    <name>jponge</name>
    <email>jponge@7d736ef5-cfd4-0310-9c9a-b52d5c14b761</email>
  </committer>
</commit>
