[izpack-users] Copy a file in JRE install directory
Bartz, Klaus
Klaus.Bartz at coi.de
Mon Aug 28 09:30:57 CEST 2006
Hi Christophe,
as Mika adumbrate nearly all is possible with IzPack.
On Windows often environment variables are not set or
not up to date. If your customer also do not tend there
environmet there are some other ways to Rom.
You know which JRE will be used for the installation. In
JDKPathPanel you can see how to resolve and verify the JDK/JRE.
An other way will be to look into the registry. The key for the
JRE path is
HKLM\Software\JavaSoft\Java Runtiome Environment\[version]\JavaHome
For registry access you need some more steps to include the
support. See the installation definition file of IzPack for
registry access (there are two definition files in
%IZ_HOME%\src\\dist-files).
CheckedHelloPanel can be used as example how to access registry.
Cheers
Klaus
>-----Original Message-----
>From: izpack-users-bounces at lists.berlios.de
>[mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of mika
>Sent: Monday, August 28, 2006 8:20 AM
>To: izpack-users at lists.berlios.de
>Subject: Re: [izpack-users] Copy a file in JRE install directory
>
>
>Hello Christophe,
>
>as we are programmers the question if anything is possible is
>valueless.
>Because everything is possible ;-).
>
>Also in your chase.
>For sure is it possible to copy the soundbank file, or each
>other file. You only have to know where to copy it to!
>
>There is a file section in the installation. The file element
>has an attribute override. It can contain the values 'true',
>'false', 'asktrue', 'askfalse' or 'update'.
>
>Like said, the only thing to know is where the JRE is
>installed to. But this may be not the problem getting to know,
>if the environment variable JRE_HOME or JDK_HOME (in your
>sence it may be the first) has been set.
>
>To gain access to the environment variable you can write
>${ENV[variable]},
>in your case it would be ${ENV[JRE_HOME]}.
>
>Finally... As I said at first, nothing is impossible! :-)
>
>regards,
>mika
>
>-------- Original-Nachricht --------
>Datum: Sun, 27 Aug 2006 22:47:06 +0200
>Von: Richard Christophe <cvrichard at infonie.fr>
>An: izpack-users at lists.berlios.de
>Betreff: [izpack-users] Copy a file in JRE install directory
>
>> Hello,
>>
>> I've make an application using JAVA MIDI Synthesizer but on
>Windows, the
>> JRE does not install a soundbank by default.
>> Do you think is it possible to copy at the installation with
>Izpack the
>> sounbank file in folder /lib/audio of the JRE install directory (and
>> create the folder audio if is not present)
>> (http://java.sun.com/products/java-media/sound/soundbanks.html) ?
>> Thanks.
>>
>> Christophe
>> _______________________________________________
>> izpack-users mailing list
>> izpack-users at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/izpack-users
>>
>
>--
>
>
>Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
>Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>_______________________________________________
>izpack-users mailing list
>izpack-users at lists.berlios.de
>https://lists.berlios.de/mailman/listinfo/izpack-users
>
More information about the izpack-users
mailing list