Operating System - HP-UX
1828225 Members
2442 Online
109975 Solutions
New Discussion

Add user menu driven in swinstall

 
viswesuwar
Occasional Contributor

Add user menu driven in swinstall

Hi Folks,
I would like to add my own user menu like "Ok/Cancel" during swinstall; Is it possible on swinstall ? if so pls let me know how can we handle this. Thanks in advance
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Add user menu driven in swinstall

Hi:

Use the '-p' (preview) switch and you will have the equivalent of a "cancel".

Regards!

...JRF...
Kenan Erdey
Honored Contributor

Re: Add user menu driven in swinstall

Hi,

you can write your own menu using scripting. You can downoad dialog depot here:

http://hpux.connect.org.uk/hppd/hpux/Shells/dialog-1.1/

and use this tutorial:

http://www.linuxjournal.com/article/2807

Kenan.

Computers have lots of memory but no imagination
Dennis Handly
Acclaimed Contributor

Re: Add user menu driven in swinstall

>I would like to add my own user menu

What would you be asking the sys admin? And when during the swinstall process? They are suppose to know everything anyway. :-)

If you are packaging depots, there is a swask(1m).
viswesuwar
Occasional Contributor

Re: Add user menu driven in swinstall

Hi Folks,
I have a software package during extraction of binary's it has to ask the user for ONLY one binary "Do you like to copy this binary" (bcz its size is 50MB and not need for all user). So i would like to have "Ok/Cancel" dialog driven approach during swinstall. Is it possible during swinstall if so pls let me know that. Thanks in advance.
Matti_Kurkela
Honored Contributor

Re: Add user menu driven in swinstall

You don't need a user menu to make that one component optional.

Package your software as two products:

ProductA
ProductB

The ProductB will contain the 50MB binary, and the ProductA will contain the rest of your software. Of course you're free to choose your product names and descriptions as you wish.

In the .psf file, specify that ProductB's fileset requires ProductA's fileset as a prerequisite.

Now, if someone tries to install ProductB only, it will automatically select ProductA too - and it will install ProductA first, then ProductB.

In other words, the swinstall command will allow the user to install either just ProductA or both ProductA and ProductB, but not ProductB alone.

You can do it with just one product and two filesets, if you wish. But setting it up as two products will allow the user to immediately notice that there are several pieces of software in the installation depot.

MK
MK
viswesuwar
Occasional Contributor

Re: Add user menu driven in swinstall

Hi Matti,
The prerequisite is.. there should not be another package during shipment. The second package should be the optional one and it is up to the user to decide whether to copy that file or not during installation. I come across swask and swinstall with -x ask option which do dialog option with request file but i don;t find any example program to do this; pls let me know if there is any link which gives detail explanation on this. Thanks in advance
Dennis Handly
Acclaimed Contributor

Re: Add user menu driven in swinstall

MK: Package your software as two products:

And possibly putting both in the same bundle. So people who want both or don't want to choose get both.