How to make installer with izpack

Help to make installer with izpack
——————————————

Link below contains a detailed pdf to make installer.

http://www.imrantariq.com/blog/?attachment_id=112

 

 

Here is the brief summary.

Download izpack from http://izpack.org/downloads/

run IzPack-install.jar. there should be jdk installed on your pc.

After installation open folder where it is installed.

normally its in C:\Program Files\IzPack

go to bin folder

make install.xml file. Sample file is given below.

:::::::::::::::::::::::::::::
install.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>Test installer</appname>
<appversion>1.0</appversion>
<authors>
<author name=”Imran Tariq” email=”m.imran.tariq@gmail.com”/>
</authors>
<url>http://www.imran.com/</url>
</info>

<!–
The gui preferences indication.
Sets the installer window to 640×480. It will not be able to change the size.
–>
<guiprefs width=”660″ height=”480″ resizable=”yes”>
<modifier key=”allXGap” value=”0″/>
<modifier key=”allYGap” value=”0″/>
<modifier key=”useHeadingPanel” value=”yes”/>
<modifier key=”useButtonIcons” value=”yes”/>
<modifier key=”useHeadingForSummary” value=”yes”/>
<modifier key=”headingImageOnLeft” value=”yes”/>
<modifier key=”headingLineCount” value=”1″/>
<modifier key=”headingFontSize” value=”1.5″/>
<modifier key=”headingBackgroundColor” value=”0x00ffffff”/>
<modifier key=”headingPanelCounter” value=”text”/>
<modifier key=”headingPanelCounterPos” value=”inHeading”/>
</guiprefs>
<!–
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=”HTMLLicencePanel.licence” src=”license.html”/>
<res id=”InfoPanel.info” src=”Readme.txt”/>
<res id=”SummaryPanel.info” src=”Summry.txt”/>
</resources>

<!–
The panels section.
We indicate here which panels we want to use. The order will be respected.
–>
<panels>
<panel classname=”HelloPanel”/>
<panel classname=”HTMLLicencePanel”/>
<panel classname=”SimpleFinishPanel”/>

</panels>

<!–
The packs section.
We specify here our packs.
–>
<packs>
<pack name=”Base” required=”yes” preselected=”yes”>
<description>The base files</description>
<file src=”Readme.txt” targetdir=”$INSTALL_PATH”/>
<file src=”Licence.txt” targetdir=”$INSTALL_PATH”/>
</pack>
</packs>

</installation>

::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::

Make sure that the resources specified in the <resources> tag are available in the bin folder.

To compile it. Open command prompt. Go to bin folder and run this command. In my case path to bin directory is: C:\Program Files\IzPack\bin

Type c: and press enter. Then type cd C:\Program Files\IzPack\bin and pres enter then type compile install.xml -b . -o install.jar -k standard and press enter.

:::::::::::::::::::::

c:

cd C:\Program Files\IzPack\bin

compile install.xml -b . -o install.jar -k standard
:::::::::::::::::::::

It will make install.jar in the bin directory.
Open it and your simple installer is ready.

*****************************

Link below contains a detailed pdf to make installer.

http://www.imrantariq.com/blog/?attachment_id=112

39 thoughts on “How to make installer with izpack

  1. That is a interesting article incidentally. My goal is to go on and bookmark the next few paragraphs for my sister to think about afterwards tomorrow. Carry on the fine work.

  2. After read several the posts with your site now, we appreciate to your website of blogging. I tag it to my top picks website list and are checking back soon. Please visit my web page at the same time and tell me your opinion.

  3. “I’ve gone ahead and bookmarked http://www.imrantariq.com/blog/?p=89 at Digg.com so my friends can see it too. I simply used How to make installer with izpack | Imran Tariq's Blog as the entry title in my Digg.com bookmark, as I figured if it is good enough for you to title your blog post that, then you probably would like to see it bookmarked the same way

  4. Hi, first-class post. I am pondering this topic, so many thanks for sharing. I’ll likely be arrival back to you. Keep up to date the respectable work

  5. I absolutely enjoyed looking through this write-up! I definitely will probably be coming back to read extra intriguing ideas! Many thanks!

  6. It really is perfect a chance to cook some plans for the future and it is time for you to be happy. Ive see this post in case I can I would like to suggest you few interesting things or advice. Maybe you could write next articles making reference to the next few paragraphs. I want to read even more aspects of it!

  7. Substantially, the article is really the best on this laudable topic. I concur with your conclusions and will eagerly look forward to your future updates.Just saying thanx will not just be enough, for the wonderful lucidity in your writing.

  8. A very informationrmative article and lots of really honest and forthright comments made! This certainly got me thinking a lot about this issue so nice one a lot for posting!

  9. This blog post is excellent, probably because of how well the subject was developped. I like some of the comments too though I would prefer we all stay on the suject in order add value to the subject!

  10. Hey i am for the primary time here. I found this board and I in finding It really helpful & it helped me out much. I’m hoping to provide one thing again and aid others such as you helped me.

  11. Hi, I tried ti istall izpack in my winndows 7 64 bit by when i try to execute the compile install.xml -b . -o install.jar -k standard it doesn’t work: it show me thi message:”IZPACK_HOME is set incorrectly or Izpack could not be located. Please set IZPACK
    _HOME.” my IZPACK_HOME is “C:\Program Files (x86)\IzPack” can someone help me?
    TNK

  12. Incredible, amazing blog layout! How much time are you blogging regarding? you’re making blogging and site-building look straightforward. The entire search of your respective website is excellent, along with the written content!…

  13. Hi,
    Can you plz let me know how to add external executable jar files into the installer, and these jar files should execute at the time of installing the main installer, as i wanted to install db at the time of installation….
    plz help me

    • Hi,
      You need to pack DB server installer along-with installer files. Then you need to write script that will run that DB installer and installs DB. You need to care all the possible problems like ‘where to install db server C drive or D. Is it already installed etc’

      • now i wanted to know that how can i pack the db server installer along with my installer file..m using izpack installer but m stuck at this point…can you help me….
        thanks in advance

  14. Please help me create an installer for a war file..
    I get this error after i follow the above steps,
    Invalid byte 1 of 1-byte UTF-8 sequence

    Please Help.

  15. I followed all the instructions above, but no exe jar file was created in the bin directory, even though on the cmd prompt it showed that it was being created

  16. Hello Imran,

    I am trying to implement MultiVolume Installer using Izpack4.3.5 (and also tried with version 5.0 beta).

    The documentation specifies the configuration settings in the install.xml. Mentioned below is the config setting I implemented.

    I configured the same accordingly. However when I try to execute the run.bat, I get a ClassNotFound exception bcoz the class Multivolume packager seems to be moved in different package installer package and renamed as MultiVolumeInstaller.

    I used the 4.3.5 APIs , changed the path in the install.xml in the Packaging tag. However it is still not working. Giving me Compiler exception with a big stack trace.

    Can you pls help me, I will be extremely grateful to you for the same. Thanks a lot.

    Pls send me some sample code or config file on my mail id sinkar.makarand@gmail.com. Thank you

  17. Hi Imran,

    I just want to customize the SimpleFinishPanel based on the previous panel result i.e InstallPanel.

    As a part of installer am installing the “Postgres DataBase” too, and mid of the postgres installation I want to Abort the installation process. Currently even if you aborted the installation, am getting the SimpleFinishPanel with message i.e Installatio Has Completed Successfully and An Uninstaller Program Has Created At “$INSTALL-PATH/Uninstall”.

    Here what I am expecting is installation GUI should indicate that the installation was aborted and is not successful.

    Thanks In Advance.

  18. I am using Izpack 5. I have added myapplication.jar in the install.xml as follows:

    Core Installation Files

    After compiling the xml, it shows in the logs that the file has been extracted and added at the target location. But it does not appear physically at that location. Hence the actual application is not installed. Am I missing any configuration?

Leave a Reply to john Cancel reply

Your email address will not be published. Required fields are marked *