Re: Building the setup project
Justin Dearing <[email protected]> Sat, 31 Oct 2015 04:33:57 +0000
| Newsgroups | gmane.comp.java.tn5250j.devel |
|---|---|
| Message-ID | <CABsCM1O-mH1NF+TNZ2y8Zjn--RC3jguAXZp0M7N+91Q4C7eGmQ@mail.gmail.com> |
--===============0326244372795138781==
Content-Type: multipart/alternative; boundary=001a1135a96cfb669e05235f0d35
--001a1135a96cfb669e05235f0d35
Content-Type: text/plain; charset=UTF-8
I was not aware of that per user properties trick. I'm not a java expert.
Thanks for pointing that out.
This makes the installer generate icons with izpack 5.0.5
diff --git a/tn5250j/installer/install.xml b/tn5250j/installer/install.xml
index 54bef56..5a8c2ca 100644
--- a/tn5250j/installer/install.xml
+++ b/tn5250j/installer/install.xml
@@ -38,7 +38,7 @@
<res src="installer/COPYING" id="LicencePanel.licence"/>
<res src="installer/installShortcutSpec.xml"
id="shortcutSpec.xml"/>
<res src="installer/NativeLAF" id="useNativeLAF"/>
- <res src="installer/tn5250jSplash.jpg" id="installer.langsel.img"/>
+ <res src="installer/tn5250jSplash.jpg"
id="installer.langsel.img"/>
</resources>
<panels>
<panel classname="HelloPanel"/>
@@ -102,6 +102,10 @@
<file targetdir="$INSTALL_PATH" src="installer/applet.txt"/>
</pack>
</packs>
- <native name="ShellLink.dll" type="izpack"/>
- <native name="ShellLink_x64.dll" type="izpack"/>
+ <natives>
+ <native type="izpack" name="WinSetupAPI.dll"/>
+ <native type="izpack" name="WinSetupAPI_x64.dll"/>
+ <native name="ShellLink.dll" type="izpack"/>
+ <native name="ShellLink_x64.dll" type="izpack"/>
+ </natives>
</izpack:installation>
diff --git a/tn5250j/installer/installShortcutSpec.xml
b/tn5250j/installer/installShortcutSpec.xml
index bec6c39..85e1949 100644
--- a/tn5250j/installer/installShortcutSpec.xml
+++ b/tn5250j/installer/installShortcutSpec.xml
@@ -2,14 +2,16 @@
<shortcuts>
- <programGroup defaultName="tn5250j" location="applications"/>
+ <skipIfNotSupported />
+
+ <programGroup defaultName="tn5250j" location="startMenu"/>
<shortcut
name="tn5250j"
programGroup="yes"
desktop="yes"
applications="no"
- startMenu="no"
+ startMenu="yes"
startup="no"
target="$INSTALL_PATH\bin\tn5250j.bat"
workingDirectory="$INSTALL_PATH\lib"
@@ -17,24 +19,17 @@
description="A 5250 Telnet emulator written in Java"
iconFile="$INSTALL_PATH\bin\icons\tn5250j-icon.ico"
iconIndex="0"
- initialState="noShow">
-
- <createForPack name="Core"/>
-
- </shortcut>
+ initialState="noShow"/>
<shortcut
name="Uninstaller"
programGroup="yes"
desktop="no"
applications="no"
- startMenu="no"
+ startMenu="yes"
startup="no"
target="$INSTALL_PATH\Uninstaller\uninstaller.jar"
commandLine=""
- description="tn5250j uninstaller">
-
- <createForPack name="Core" />
- </shortcut>
+ description="tn5250j uninstaller"/>
</shortcuts>
On Fri, Oct 30, 2015 at 4:41 PM Martin W. Kirst <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Justin,
>
> I found the reason: there's also a install.xml file.
> This needs to use version=5.0 also.
> Just look at my latest SVN commit ;-)
>
> Regards
> Martin
>
>
> Am 29.10.2015 um 02:47 schrieb Justin Dearing:
> > Hello,
> >
> > I would like to add start menu icons to the setup project. However,
> > I have yet to get generate-installer to work. The current error
> > message is
> >
> > [izpack] Oct 28, 2015 8:43:21 PM
> > com.izforge.izpack.core.container.PlatformProvider provide [izpack]
> > INFO: Detected platform:
> > windows,version=10.0,arch=x64,symbolicName=null,javaVersion=1.8.0_66
> >
> >
> [izpack] Exception in thread "Thread-0"
> > com.izforge.izpack.api.exception.CompilerException:
> > C:\Users\Justin\Documents\tn5250j-code\tn5250j/dist/installer/install.
> xml:1:
> >
> >
> the file version is different from the compiler version
> > [izpack] at
> > com.izforge.izpack.ant.IzpackAntRunnable.run(IzpackAntRunnable.java:79
> )
> >
> >
> [izpack] at java.lang.Thread.run(Thread.java:745)
> > [izpack] Caused by:
> > com.izforge.izpack.api.exception.CompilerException:
> > C:\Users\Justin\Documents\tn5250j-code\tn5250j/dist/installer/install.
> xml:1:
> >
> >
> the file version is different from the compiler version
> > [izpack] at
> > com.izforge.izpack.compiler.helper.AssertionHelper.parseError(Assertio
> nHelper.java:61)
> >
> >
> [izpack] at
> > com.izforge.izpack.compiler.resource.ResourceFinder.getXMLTree(Resourc
> eFinder.java:188)
> >
> >
> [izpack] at
> > com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerCon
> fig.java:316)
> >
> >
> [izpack] at
> > com.izforge.izpack.ant.IzpackAntRunnable.run(IzpackAntRunnable.java:75
> )
> >
> >
> [izpack] ... 1 more
> >
> >
> > Here are the changes I made to get it to talk to my Izrepack
> > install:
> >
> > C:\Users\Justin\Documents\tn5250j-code\tn5250j>git diff diff --git
> > a/tn5250j/build.properties b/tn5250j/build.properties index
> > 7e9f7b8..736ec1d 100644 --- a/tn5250j/build.properties +++
> > b/tn5250j/build.properties @@ -20,7 +20,7 @@ Name=Tn5250j
> > version=0.7.7-Snapshot year=2001-2015
> >
> > -IzPack.dir=c:/IzPack/ +IzPack.dir=C:/Program Files/IzPack^M
> >
> > main.class=org.tn5250j.My5250
> >
> > diff --git a/tn5250j/build.xml b/tn5250j/build.xml index
> > a4eef44..60d0326 100644 --- a/tn5250j/build.xml +++
> > b/tn5250j/build.xml @@ -301,9 +301,11 @@ <!-- Creates an installer
> > for tn5250j --> <target name="generate-installer" depends="dist"
> > description="Creates installer using IzPack">
> >
> > + <path id="build.classpath"> + <fileset
> > dir="${IzPack.dir}/lib" includes="*.jar"/> + </path> <!-- Allows
> > us to use the IzPack Ant task --> - <taskdef name="izpack"
> > classpath="${IzPack.dir}/lib/compiler.jar" -
> > classname="com.izforge.izpack.ant.IzPackTask"/> + <taskdef
> > name="izpack" classpathref="build.classpath"
> > classname="com.izforge.izpack.ant.IzPackTask"/>
> >
> > <!-- Copies the files to the dist directory --> <echo
> > message="Copies the image of the distribution to ${dist.dir}"/>
> >
> > Any ideas for next steps?
> >
> > Justin Dearing
> >
> >
> > ----------------------------------------------------------------------
> - --------
> >
> >
> >
> >
> > _______________________________________________ Tn5250j-develop
> > mailing list [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tn5250j-develop
> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iEYEARECAAYFAlYz1fkACgkQefmD4St1GNHyLACgzaivSw1t9fQXZ9So3hDcgDqR
> cA4AoNBcXUzkZ7IxELVPWQxWMvCq7kNg
> =vKvV
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Tn5250j-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tn5250j-develop
>
--001a1135a96cfb669e05235f0d35
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">I was not aware of that per user properties trick. I'm=
not a java expert. Thanks for pointing that out.=C2=A0<div><br></div><div>=
This makes the installer generate icons with izpack 5.0.5=C2=A0</div><div><=
br></div><div><div>diff --git a/tn5250j/installer/install.xml b/tn5250j/ins=
taller/install.xml</div><div>index 54bef56..5a8c2ca 100644</div><div>--- a/=
tn5250j/installer/install.xml</div><div>+++ b/tn5250j/installer/install.xml=
</div><div>@@ -38,7 +38,7 @@</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&l=
t;res src=3D"installer/COPYING" id=3D"LicencePanel.licence&q=
uot;/></div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<res src=3D"i=
nstaller/installShortcutSpec.xml" id=3D"shortcutSpec.xml"/&g=
t;</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<res src=3D"installe=
r/NativeLAF" id=3D"useNativeLAF"/></div><div>-<span class=
=3D"Apple-tab-span" style=3D"white-space:pre"> </span><res src=3D"=
installer/tn5250jSplash.jpg" id=3D"installer.langsel.img"/&g=
t; =C2=A0 =C2=A0 =C2=A0 =C2=A0</div><div>+ =C2=A0 =C2=A0 =C2=A0 =C2=A0<r=
es src=3D"installer/tn5250jSplash.jpg" id=3D"installer.langs=
el.img"/> =C2=A0 =C2=A0 =C2=A0 =C2=A0</div><div>=C2=A0 =C2=A0 =C2=
=A0</resources></div><div>=C2=A0 =C2=A0 =C2=A0<panels></div><di=
v>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<panel classname=3D"HelloPanel&=
quot;/></div><div>@@ -102,6 +102,10 @@</div><div>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0<file targetdir=3D"$INSTALL_PATH" s=
rc=3D"installer/applet.txt"/></div><div>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0</pack></div><div>=C2=A0 =C2=A0 =C2=A0</packs></di=
v><div>- =C2=A0 =C2=A0<native name=3D"ShellLink.dll" type=3D&q=
uot;izpack"/></div><div>- =C2=A0 =C2=A0<native name=3D"Shel=
lLink_x64.dll" type=3D"izpack"/></div><div>+ =C2=A0 =C2=
=A0<natives></div><div>+ =C2=A0 =C2=A0 =C2=A0<native type=3D"=
izpack" name=3D"WinSetupAPI.dll"/></div><div>+ =C2=A0 =C2=
=A0 =C2=A0<native type=3D"izpack" name=3D"WinSetupAPI_x64=
.dll"/></div><div>+ =C2=A0 =C2=A0 =C2=A0<native name=3D"She=
llLink.dll" type=3D"izpack"/></div><div>+ =C2=A0 =C2=A0 =
=C2=A0<native name=3D"ShellLink_x64.dll" type=3D"izpack&q=
uot;/></div><div>+ =C2=A0 =C2=A0</natives></div><div>=C2=A0</iz=
pack:installation></div><div>diff --git a/tn5250j/installer/installShort=
cutSpec.xml b/tn5250j/installer/installShortcutSpec.xml</div><div>index bec=
6c39..85e1949 100644</div><div>--- a/tn5250j/installer/installShortcutSpec.=
xml</div><div>+++ b/tn5250j/installer/installShortcutSpec.xml</div><div>@@ =
-2,14 +2,16 @@</div><div>=C2=A0</div><div>=C2=A0<shortcuts></div><div=
>=C2=A0</div><div>- =C2=A0<programGroup defaultName=3D"tn5250j"=
; location=3D"applications"/></div><div>+ =C2=A0<skipIfNotS=
upported /></div><div>+</div><div>+ =C2=A0<programGroup defaultName=
=3D"tn5250j" location=3D"startMenu"/></div><div>=C2=
=A0</div><div>=C2=A0 =C2=A0<shortcut</div><div>=C2=A0 =C2=A0 =C2=A0 name=
=3D"tn5250j"</div><div>=C2=A0 =C2=A0 =C2=A0 programGroup=3D"=
yes"</div><div>=C2=A0 =C2=A0 =C2=A0 desktop=3D"yes"</div><di=
v>=C2=A0 =C2=A0 =C2=A0 applications=3D"no"</div><div>- =C2=A0 =C2=
=A0 startMenu=3D"no"</div><div>+ =C2=A0 =C2=A0 startMenu=3D"=
yes"</div><div>=C2=A0 =C2=A0 =C2=A0 startup=3D"no"</div><div=
>=C2=A0 =C2=A0 =C2=A0 target=3D"$INSTALL_PATH\bin\tn5250j.bat"</d=
iv><div>=C2=A0 =C2=A0 =C2=A0 workingDirectory=3D"$INSTALL_PATH\lib&quo=
t;</div><div>@@ -17,24 +19,17 @@</div><div>=C2=A0 =C2=A0 =C2=A0 description=
=3D"A 5250 Telnet emulator written in Java"</div><div>=C2=A0 =C2=
=A0 =C2=A0 iconFile=3D"$INSTALL_PATH\bin\icons\tn5250j-icon.ico"<=
/div><div>=C2=A0 =C2=A0 =C2=A0 iconIndex=3D"0"</div><div>- =C2=A0=
=C2=A0 initialState=3D"noShow"></div><div>-</div><div>- =C2=
=A0 =C2=A0 <createForPack name=3D"Core"/></div><div>-</div>=
<div>- =C2=A0 </shortcut></div><div>+ =C2=A0 =C2=A0 initialState=3D&q=
uot;noShow"/></div><div>=C2=A0</div><div>=C2=A0 =C2=A0 <shortcut=
</div><div>=C2=A0 =C2=A0 =C2=A0 name=3D"Uninstaller"</div><div>=
=C2=A0 =C2=A0 =C2=A0 programGroup=3D"yes"</div><div>=C2=A0 =C2=A0=
=C2=A0 desktop=3D"no"</div><div>=C2=A0 =C2=A0 =C2=A0 application=
s=3D"no"</div><div>- =C2=A0 =C2=A0 startMenu=3D"no"</di=
v><div>+ =C2=A0 =C2=A0 startMenu=3D"yes"</div><div>=C2=A0 =C2=A0 =
=C2=A0 startup=3D"no"</div><div>=C2=A0 =C2=A0 =C2=A0 target=3D&qu=
ot;$INSTALL_PATH\Uninstaller\uninstaller.jar"</div><div>=C2=A0 =C2=A0 =
=C2=A0 commandLine=3D""</div><div>- =C2=A0 =C2=A0 description=3D&=
quot;tn5250j uninstaller"></div><div>-</div><div>- =C2=A0 =C2=A0 &l=
t;createForPack name=3D"Core" /></div><div>- =C2=A0 </short=
cut></div><div>+ =C2=A0 =C2=A0 description=3D"tn5250j uninstaller&q=
uot;/></div><div>=C2=A0</div><div>=C2=A0</shortcuts></div></div><d=
iv><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Fri, =
Oct 30, 2015 at 4:41 PM Martin W. Kirst <<a href=3D"mailto:maki@bitkings=
.de">[email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Justin,<br>
<br>
I found the reason: there's also a install.xml file.<br>
This needs to use version=3D5.0 also.<br>
Just look at my latest SVN commit ;-)<br>
<br>
Regards<br>
Martin<br>
<br>
<br>
Am 29.10.2015 um 02:47 schrieb Justin Dearing:<br>
> Hello,<br>
><br>
> I would like to add start menu icons to the setup project. However,<br=
>
> I have yet to get generate-installer to work. The current error<br>
> message is<br>
><br>
> [izpack] Oct 28, 2015 8:43:21 PM<br>
> com.izforge.izpack.core.container.PlatformProvider provide [izpack]<br=
>
> INFO: Detected platform:<br>
> windows,version=3D10.0,arch=3Dx64,symbolicName=3Dnull,javaVersion=3D1.=
8.0_66<br>
><br>
><br>
[izpack] Exception in thread "Thread-0"<br>
> com.izforge.izpack.api.exception.CompilerException:<br>
> C:\Users\Justin\Documents\tn5250j-code\tn5250j/dist/installer/install.=
<br>
xml:1:<br>
><br>
><br>
the file version is different from the compiler version<br>
> [izpack]=C2=A0 =C2=A0 =C2=A0at<br>
> com.izforge.izpack.ant.IzpackAntRunnable.run(IzpackAntRunnable.java:79=
<br>
)<br>
><br>
><br>
[izpack]=C2=A0 =C2=A0 =C2=A0at java.lang.Thread.run(Thread.java:745)<br>
> [izpack] Caused by:<br>
> com.izforge.izpack.api.exception.CompilerException:<br>
> C:\Users\Justin\Documents\tn5250j-code\tn5250j/dist/installer/install.=
<br>
xml:1:<br>
><br>
><br>
the file version is different from the compiler version<br>
> [izpack]=C2=A0 =C2=A0 =C2=A0at<br>
> com.izforge.izpack.compiler.helper.AssertionHelper.parseError(Assertio=
<br>
nHelper.java:61)<br>
><br>
><br>
[izpack]=C2=A0 =C2=A0 =C2=A0at<br>
> com.izforge.izpack.compiler.resource.ResourceFinder.getXMLTree(Resourc=
<br>
eFinder.java:188)<br>
><br>
><br>
[izpack]=C2=A0 =C2=A0 =C2=A0at<br>
> com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerCon=
<br>
fig.java:316)<br>
><br>
><br>
[izpack]=C2=A0 =C2=A0 =C2=A0at<br>
> com.izforge.izpack.ant.IzpackAntRunnable.run(IzpackAntRunnable.java:75=
<br>
)<br>
><br>
><br>
[izpack]=C2=A0 =C2=A0 =C2=A0... 1 more<br>
><br>
><br>
> Here are the changes I made to get it to talk to my Izrepack<br>
> install:<br>
><br>
> C:\Users\Justin\Documents\tn5250j-code\tn5250j>git diff diff --git<=
br>
> a/tn5250j/build.properties b/tn5250j/build.properties index<br>
> 7e9f7b8..736ec1d 100644 --- a/tn5250j/build.properties +++<br>
> b/tn5250j/build.properties @@ -20,7 +20,7 @@ Name=3DTn5250j<br>
> version=3D0.7.7-Snapshot year=3D2001-2015<br>
><br>
> -IzPack.dir=3Dc:/IzPack/ +IzPack.dir=3DC:/Program Files/IzPack^M<br>
><br>
> main.class=3Dorg.tn5250j.My5250<br>
><br>
> diff --git a/tn5250j/build.xml b/tn5250j/build.xml index<br>
> a4eef44..60d0326 100644 --- a/tn5250j/build.xml +++<br>
> b/tn5250j/build.xml @@ -301,9 +301,11 @@ <!-- Creates an installer<=
br>
> for tn5250j --> <target name=3D"generate-installer" de=
pends=3D"dist"<br>
> description=3D"Creates installer using IzPack"><br>
><br>
> +=C2=A0 =C2=A0 <path id=3D"build.classpath"> +=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 <fileset<br>
> dir=3D"${IzPack.dir}/lib" includes=3D"*.jar"/> =
+=C2=A0 =C2=A0 </path> <!-- Allows<br>
> us to use the IzPack Ant task --> -=C2=A0 =C2=A0 <taskdef name=
=3D"izpack"<br>
> classpath=3D"${IzPack.dir}/lib/compiler.jar" -<br>
> classname=3D"com.izforge.izpack.ant.IzPackTask"/> +=C2=A0=
=C2=A0 <taskdef<br>
> name=3D"izpack" classpathref=3D"build.classpath"<b=
r>
> classname=3D"com.izforge.izpack.ant.IzPackTask"/><br>
><br>
> <!-- Copies the files to the dist directory --> <echo<br>
> message=3D"Copies the image of the distribution to ${dist.dir}&qu=
ot;/><br>
><br>
> Any ideas for next steps?<br>
><br>
> Justin Dearing<br>
><br>
><br>
> ----------------------------------------------------------------------=
<br>
- --------<br>
><br>
><br>
><br>
><br>
> _______________________________________________ Tn5250j-develop<br>
> mailing list <a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a><br>
> <a href=3D"https://lists.sourceforge.net/lists/listinfo/tn5250j-develo=
p" rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists=
/listinfo/tn5250j-develop</a><br>
><br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
iEYEARECAAYFAlYz1fkACgkQefmD4St1GNHyLACgzaivSw1t9fQXZ9So3hDcgDqR<br>
cA4AoNBcXUzkZ7IxELVPWQxWMvCq7kNg<br>
=3DvKvV<br>
-----END PGP SIGNATURE-----<br>
<br>
---------------------------------------------------------------------------=
---<br>
_______________________________________________<br>
Tn5250j-develop mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/tn5250j-develop" re=
l=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/list=
info/tn5250j-develop</a><br>
</blockquote></div>
--001a1135a96cfb669e05235f0d35--
--===============0326244372795138781==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
--===============0326244372795138781==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Tn5250j-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tn5250j-develop
--===============0326244372795138781==--