Results 1 to 13 of 13
Thread: Izpack and the others
- 09-15-2010, 07:26 AM #1
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
- 09-15-2010, 07:40 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
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.
- 09-15-2010, 02:18 PM #3
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
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>
- 09-15-2010, 02:42 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
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.
- 09-16-2010, 04:34 PM #5
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
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>
- 09-16-2010, 05:50 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
Again, I don't know; all I can do is show you one of my shortcut files:
I hope you can find a clue because I forgot about all those gory details ...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>
kind regards,
Jos
- 09-17-2010, 02:48 AM #7
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
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
RegardsLast edited by newbiejava; 09-17-2010 at 02:55 AM.
- 09-17-2010, 07:53 AM #8
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
- 09-17-2010, 08:08 AM #9
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
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 ?
- 09-17-2010, 08:13 AM #10
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
- 09-18-2010, 05:48 AM #11
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
Noted and Thanks Josh!..
it works now :)
- 09-18-2010, 07:43 AM #12
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
- 09-18-2010, 03:00 PM #13
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
Similar Threads
-
IzPack 3.10.2
By levent in forum Java SoftwareReplies: 0Last Post: 05-12-2007, 12:21 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks