Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added info and license panel and using variables for target directory as per IzPack 5.x.x #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion installer/src/main/izpack/Licence.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
By clicking here you hereby relinquish all rights to have any fun whatsoever in your life. You will do nothing but toil day in and day out working behind a computer screen on things that in the big scheme of eternity amount to absolutely nothing significant. (ouch!)
By clicking here you hereby relinquish all rights to have any fun whatsoever in your life. You will do nothing but toil day in and day out working behind a computer screen on things that in the big scheme of eternity amount to absolutely nothing significant. (ouch!)
1 change: 0 additions & 1 deletion installer/src/main/izpack/TargetDirUnix.txt

This file was deleted.

1 change: 0 additions & 1 deletion installer/src/main/izpack/TargetDirWindows.txt

This file was deleted.

30 changes: 15 additions & 15 deletions installer/src/main/izpack/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</authors>
</info>

<guiprefs height="400" resizable="no" width="640">
<guiprefs width="640" height="400" resizable="no">
<modifier key="useButtonIcons" value="yes"/>
<modifier key="useLabelIcons" value="no"/>
<modifier key="labelGap" value="2"/>
Expand All @@ -28,37 +28,37 @@
</locale>

<resources>
<res id="CustomLangPack.xml_eng" src="CustomLangPack_eng.xml"/>
<res id="HTMLHelloPanel.welcome" src="welcome.html"/>
<res id="HTMLInfoPanel.welcome" src="welcome.html"/>
<res id="InfoPanel.info" src="Readme.txt"/>
<res id="Installer.image" src="clouds.jpg"/>
<res id="IZPackLogo" src="izpack-logo-medium.png"/>
<res id="LicencePanel.licence" src="Licence.txt"/>
<res id="TargetPanel.dir.windows" src="TargetDirWindows.txt"/>
<res id="TargetPanel.dir.unix" src="TargetDirUnix.txt"/>
<res id="CustomLangPack.xml_eng" src="CustomLangPack_eng.xml"/>
</resources>

<variables>
<variable name="InstallerFrame.logfilePath" value="Default"/>
<variable name="WELCOME_TEXT" value="IZpack installer example"/>
<variable name="WELCOME_VERSION" value="Version: 12345"/>
<variable name="WELCOME_TEXT" value="Welcome to IzPack Installer Example"/>
<variable name="TargetPanel.dir.windows" value="$USER_HOME\IzPackExample"/>
<variable name="TargetPanel.dir.unix" value="$USER_HOME/IzPackExample"/>
</variables>

<!-- pull in the built jar file for our custom panel -->
<jar src="custom/izpack-panels.jar" stage="both"/>

<panels>
<!-- FIXME why doesn't HTMLHelloPanel work any more? it is nice not to have the "Please read the following information" text ... -->
<panel classname="HTMLInfoPanel" id="welcome"/>

<!-- Default id for HTMLHelloPanel is info, changing it to welcome for better readability. -->
<panel classname="HTMLHelloPanel" id="welcome"/>
<!-- Default id for InfoPanel is info, no need to specify. -->
<panel classname="InfoPanel"/>
<panel classname="LicencePanel"/>
<!-- this is our custom panel, loaded from the izpack-panels.jar file -->
<panel classname="com.izforge.izpack.panels.mypanels.MyHelloPanel" id="myHello"/>
<panel classname="com.izforge.izpack.panels.mypanels.MyHelloPanel"/>

<panel classname="TargetPanel" id="install_dir"/>
<panel classname="PacksPanel" id="sdk_pack_select"/>
<panel classname="InstallPanel" id="install"/>
<panel classname="FinishPanel" id="finish"/>
<panel classname="TargetPanel"/>
<panel classname="PacksPanel"/>
<panel classname="InstallPanel"/>
<panel classname="FinishPanel"/>
</panels>

<packs>
Expand Down
5 changes: 3 additions & 2 deletions installer/src/main/izpack/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
</tr>
<tr height="20%">
<td valign=middle align="center" width="100%">
<h1>$WELCOME_TEXT</h1>
<h2>$WELCOME_TEXT</h2>
</td>
</tr>
<tr height="20%">
<td valign=middle align="center" width="100%">
<h2>$WELCOME_VERSION</h2>
$APP_NAME<br/>
$APP_VER
</td>
</tr>

Expand Down