Results 1 to 13 of 13
  1. #1
    newbiejava is offline Senior Member
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    0

    Default Izpack and the others

    Hallo All,

    I tried to use Izpack ..but I dont understand how to run it on NetBeans 6.9
    could any body please advise .. what is the other freeware of Java Package Deployment..? :confused:

    thanks & regards

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by newbiejava View Post
    Hallo All,

    I tried to use Izpack ..but I dont understand how to run it on NetBeans 6.9
    could any body please advise .. what is the other freeware of Java Package Deployment..? :confused:
    Why do people always want to run everything 'on' Netbeans? IzPack already existed way before Netbeans saw the light so I guess you have to complain at Sun (Netbeans). IzPack is configured with an xml file (there's a template available) that tells IzPack what files to pack. Normally those are .jar files, resources, .dll files, licence agreement text etc. You run IzPack, given this xml file and everything you want to pack and it creates an installer. Voila, piece of cake.

    kind regards,

    Jos

    ps. IzPack comes with ample documentation; read it.

  3. #3
    newbiejava is offline Senior Member
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    0

    Default

    Ok, noted and thanks..
    I tried to create installer.xml ..
    what I missed?

    Java Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <!--
        Document   : installer.xml
        Created on : September 15, 2010, 7:33 PM
        Author     : newbiejava
        Description:
            Purpose of the document follows.
    -->
    
    <installation version="1.0">
        <info>
        <appname>My Java Learning 18</appname>
            <appversion>1.0</appversion>
            <authors>
                <author name="newbiejava" email="newbiejava@mytestserver.com"/>
            </authors>
            <url>http://www.mytestserver.com</url>
            <javaversion>1.6.0</javaversion>
        </info>
            <guiprefs width="800" height="600" resizable="yes"/>
            <locale>
                <langpack iso3="eng" />
            </locale>
            <resources>
                <res src="installer/application-description.html" id="HTMLInfoPanel.info"/>
                <res src="installer/gpl.txt" id="LicencePanel.licence"/>
            </resources>
            <panels>
                <panel classname="HelloPanel"/>
                <panel classname="HTMLInfoPanel"/>
                <panel classname="LicencePanel"/>
                <panel classname="PacksPanel"/>
                <panel classname="TargetPanel"/>
                <panel classname="InstallPanel"/>
                <panel classname="SimpleFinishPanel"/>
            </panels>
            <packs>
                <pack name="Base" required="yes">
                    <description>Base System files</description>
                    <fileset dir="." targetdir="$INSTALL_PATH">
                        <include name="src/*"/>
                        <include name="dist/*"/>
                        <include name="export/*"/>
                        <include name="raw/*"/>
                        <include name="*.gif"/>
                    </fileset>
                </pack>
            </packs>
    </installation>

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by newbiejava View Post
    Ok, noted and thanks..
    I tried to create installer.xml ..
    what I missed?
    I don't know; I simply followed that template xml file as close as possible; check your file details (all I saw was a LicencePanel, all I know is that an HTMLLicencePanel can do the job; I don't know of a LicencePanel class).

    kind regards,

    Jos

    ps. and closely study the available documentation.

  5. #5
    newbiejava is offline Senior Member
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    0

    Default

    it works now! ;) ..

    installer.xml and shortcutSpec.xml are in the same folder

    but it cannot create shortcut :confused:

    Java Code:
    my installer.xml
    
    <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
    
    <!-- 
        A sample installation file.
        Use it as a base for your own installers :-)
        
        To compile it :
        - go in the bin directory where you installed IzPack
        - call "compile ../sample/install.xml -b ../sample"
    -->
    
    <installation version="1.0">
    
        <!-- 
            The info section.
            The meaning of the tags should be natural ...
        -->
        <info>
            <appname>Learn 19</appname>
            <appversion>1.0 beta 1</appversion>
            <authors>
                <author name="Technical Support" email="myemail@iamlearnjava.com"/>
            </authors>
            <url>http://www.iamlearnjava.com/</url>
        </info>
    
        <!-- 
            The gui preferences indication.
            Sets the installer window to 640x480. It will not be able to change the size.
        -->
        <guiprefs width="640" height="480" resizable="yes"/>
    
        <variables>
            <variable name="DesktopShortcutCheckboxEnabled" value="true"/>
            <variable name="ApplicationShortcutPath" value="ApplicationShortcuts"/>
        </variables>
    
    
        <!-- 
            The locale section.
            Asks here to include the English and French langpacks.
        -->
        <locale>
            <langpack iso3="eng"/>
        </locale>
    
        <!-- 
            The resources section.
            The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel.
        -->
        <resources>
            <res id="LicencePanel.licence" src="Licence.txt"/>
            <res id="InfoPanel.info" src="Readme.txt"/>
    	<res id="shortcutSpec.xml" src="shortcutSpec.xml"/>
       </resources>
    
        <!-- 
            The panels section.
            We indicate here which panels we want to use. The order will be respected.
        -->
        <panels>
            <panel classname="HelloPanel"/>
            <panel classname="PacksPanel"/>
            <panel classname="TargetPanel"/>
            <panel classname="InstallPanel"/>
    	<panel classname="ShortcutPanel"/>
    	<panel classname="FinishPanel"/>
        </panels>
    
        <!-- 
            The packs section.
            We specify here our packs.
        -->
    
        <packs>
            <pack name="learning java" required="yes">
                <description>The core files </description>
    	    <file src="../dist/mylearn19.jar" targetdir="$INSTALL_PATH" override="true"/>
    	    <file src="../action_go.gif" targetdir="$INSTALL_PATH" override="true"/>
    	    <file src="learn19.ico" targetdir="$INSTALL_PATH" override="true"/>
    	    <file src="launch.bat" targetdir="$INSTALL_PATH" override="true"/>
                <file src="../dist/lib"  targetdir="$INSTALL_PATH" override="true"/>
                <file src="uninstall.bat" targetdir="$INSTALL_PATH" override="true"/>
                <!-- The file will be parsed -->
            </pack>
           
        </packs>
    
        <!-- The native libraries to add -->
        <native type="izpack" name="ShellLink.dll"/>
        <native type="izpack" name="ShellLink_x64.dll"/>
        <native type="3rdparty" name="COIOSHelper.dll" stage="both">
            <os family="windows"/>
        </native>
    </installation>
    
    
    my shortcutSpec.xml
    
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    
    <shortcuts>
    
        <skipIfNotSupported/>
    
        <programGroup defaultName="IzPack@build.number@" location="applications"/>
    
        <!--
          <shortcut
             name="IzPack"
             programGroup="yes"
             desktop="yes"
             applications="no"
             startMenu="no"
             startup="no"
             target="$INSTALL_PATH\launcher.bat"
             commandLine=""
             description="Front-End for IzPack installation tool"
             iconFile="$INSTALL_PATH\mylearn19.ico"
             iconIndex="0"
             initialState="noShow">
    
             <createForPack name="Core"/>
    
           </shortcut>
    </shortcuts>

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by newbiejava View Post
    it works now! ;) ..

    installer.xml and shortcutSpec.xml are in the same folder

    but it cannot create shortcut :confused:
    Again, I don't know; all I can do is show you one of my shortcut files:

    Java Code:
    <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
    
    <!-- 
    	This XML file defines the shortcut(s) for the application.
    	This file is included automatically as a resource for the installer .XML definition.
    -->
        
        <shortcuts>
    
    	<skipIfNotSupported/>
        	<programGroup defaultName="MY Application" location="applications"/>
    
    	<shortcut
    		name="myApplication"
    		programGroup="yes"
    		desktop="yes" 
    		applications="no"
    		startMenu="no"
    		startup="no"
    		target="$INSTALL_PATH\myapplication.jar"
    		description= "My Application">
    	</shortcut>
    
    	<shortcut
         		name="Uninstaller"
         		programGroup="yes"
         		desktop="no"
         		applications="no"
         		startMenu="no"
         		startup="no"
         		target="$INSTALL_PATH\Uninstaller\uninstaller.jar"
         		description="MyApplication uninstaller">
    	</shortcut>
        </shortcuts>
    I hope you can find a clue because I forgot about all those gory details ...

    kind regards,

    Jos

  7. #7
    newbiejava is offline Senior Member
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    0

    Default

    strange :confused:

    I changed mine and it's already exactly the same with yours.. but still unable to create shortcut..

    could you please also give me your installer.xml ? :o

    many thanks in advance

    Regards
    Last edited by newbiejava; 09-17-2010 at 02:55 AM.

  8. #8
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by newbiejava View Post
    strange :confused:

    I changed mine and it's already exactly the same with yours.. but still unable to create shortcut..
    I only have the following line in the native section:

    Java Code:
        <native type="izpack" name="ShellLink.dll"/>
    You seem to need three .dll files for those shortcuts ...

    kind regards,

    Jos

  9. #9
    newbiejava is offline Senior Member
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    0

    Default

    Thanks!..

    I also had changed to

    <native type="izpack" name="ShellLink.dll"/>

    but still unable to create shortcut :confused:

    hmmm ..
    any other free deployment tools ?

  10. #10
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by newbiejava View Post
    Thanks!..

    I also had changed to

    <native type="izpack" name="ShellLink.dll"/>

    but still unable to create shortcut :confused:

    hmmm ..
    any other free deployment tools ?
    Any other deployment tool comes with documentation too; and you do have to read it ...

    kind regards,

    Jos

  11. #11
    newbiejava is offline Senior Member
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    0

    Default

    Noted and Thanks Josh!..
    it works now :)

  12. #12
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by newbiejava View Post
    Noted and Thanks Josh!..
    it works now :)
    Good; what was the last thing you needed to change?

    kind regards,

    Jos

  13. #13
    newbiejava is offline Senior Member
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    0

    Default

    the value createForPack of shortcutSpec.xml is different than the pack name value that I have defined in installer.xml ;)

Similar Threads

  1. IzPack 3.10.2
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-12-2007, 12:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •