[izpack-users] Reg: Command Line User Inputs

Miraodb miraodb at hotmail.com
Tue Jan 24 09:57:47 CET 2006


hi,

Here's my thoughts:

In the FinishPanel, there's a button for generating an automated file which
can be used by izpack to run in command line without any user interaction.
We can trick that to do your job.

First you need to run your installer somewhere which can have the gui. (with
all aspects! ) Do it as if you were gonna install it on your Solaris 9.
(leave the userinputs empty)
Once you click on the button to generate the xml file. you can edit it and
replace the empty strings with a specific variable name of your choice.
let's say you have:

<com.izforge.izpack.panels.UserInputPanel>
        <userInput>
            <entry key="ServerName" value="xxxxxxxxx"/>
        </userInput>
    </com.izforge.izpack.panels.UserInputPanel>

Then with a simple SH script you can look for the "xxxxxxxxx" string and
replace it with the user input that your script would have asked for
previously.

Then all you have to do is launch your installer with the xml file as a
parameter: java -jar yourinstaller.jar yourfile.xml

hope this helps.
fabrice

----- Original Message ----- 
From: "Friend" <follow_from at yahoo.co.uk>
To: <izpack-users at berlios.de>
Sent: Tuesday, January 24, 2006 7:32 AM
Subject: Re: [izpack-users] Reg: Command Line User Inputs


> Hi Hal,
>
>   Thanks a lot for your sharing,
>
>   Am stating that there will not be any graphics rendering or windowing
related software on the server side, even to have the X11 events,,
>
>   Am working on Solaris 9 platform.
>
>   All we have even at the server machine's screen is the console and bash
shell prompt that it provides to interact with the server, thats it.
>
>   There we want the user(server admin may be) to have our product
installed from our GUI installer just by finguring necessary user input
values at the shell prompt, eventhough ours is the GUI installer.
>
>   regards,
>
>   Se.
>
> Hal Vaughan <hal at thresholddigital.com> wrote:
>   On Monday 23 January 2006 11:33 pm, Friend wrote:
> > Hi Friends,
> >
> > Hope you all well,
> >
> > As with all your guidance and help I successfully completed writing the
> > installer for the product which am working for,
> >
> > At last I came to understand that there is a need for installing the
> > product with the same installer in the environment where there will not
be
> > any GUI desktops at the high profile clients at times, even they only
allow
> > us to connect to their server through Secure SHells, the problem is
still
> > we need to have the user input read from the console's (character based
> > screen's) command prompt one by one including the installpath. Need a
way
> > to do this...
> >
> > I just studied and understood the silent installer "auto-install.xml",
> > but it is not helpful to sort out this problem,,
> >
> > Friends, please guide me on this issue.
>
> You've probably thought of this, but just in case, let me ask this: If
you're
> logging in through ssh, is it on some breed of Unix/BSD/Linux where you
can
> forward X11 events? I do that on some of my systems. That way I can run a
> command in the command line, on ssh, and it opens the window on my
computer.
>
> Hal
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> http://lists.berlios.de/mailman/listinfo/izpack-users
>
>
>
>
> ---------------------------------
> Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with
voicemail





More information about the izpack-users mailing list