Re: Command-line options for setup.exe

2003-02-25 Thread Igor Pechtchanski
On Mon, 24 Feb 2003, Lars Munch wrote:

 On Sat, Feb 22, [EMAIL PROTECTED]:15:29PM -0500, Garg, Rajiv wrote:
  Does setup.exe support command-line options?  If so, where can I find
  the documentation for them?  I would like to roll-out Cygwin to 300+
  machines and command-line options to install all packages found in
  network share would be simplest method, otherwise I might have to
  repackage it into a MSI using Wise Package Studio or something similar.

 I have tried to create a MSI package but the result is *very* slow
 because of the size and a huge number of files, also sym-links did not
 work after installation of the MSI package.

 Instead I use Nullsoft Scriptable Install System
 http://nsis.sourceforge.net/ (remember to use -a to preserve file attributes).
 Take a [EMAIL PROTECTED] homepage for more information:
 http://lwb1.it.dtu.dk/~lmc/rebuilt.php

 Anyway, I would also like to know the command-line options for setup (if
 they exists)

  I saw a discussion about adding support for this in the
  cygwin-developers mailing list (~ 10/2001, topic=setup.exe command-line
  options) -- but cannot find any documentation about whether this was
  completed.
 
  Thanks in advance,
  Rajiv

Lars,

Use the source^{TM}

Seriously, there are no command-line options to speak of in the official
setup.exe on the cygwin.com site (v. 2.249.2.5).  There are quite a few in
the CVS HEAD of setup.exe.  A look at the source, however, will show you
all the relevant options, with explanations.  Check out the CVS HEAD (as
described at http://sources.redhat.com/cygwin-apps/setup.html), and grep
all .cc files for Option.  There is even a patch outstanding that adds a
--help option to list all available options:
http://cygwin.com/ml/cygwin-apps/2003-02/msg0.html (with one caveat:
setup has to be built as a Cygwin app from source for you to see console
output).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Command-line options for setup.exe

2003-02-25 Thread Max Bowsher
Igor Pechtchanski wrote:
 There is even a patch outstanding that
 adds a --help option to list all available options:
 http://cygwin.com/ml/cygwin-apps/2003-02/msg0.html (with one
 caveat: setup has to be built as a Cygwin app from source for you to
 see console output).

No, building it as a MinGW app is fine.
But it must be run from a CYGWIN=tty shell.

Max.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Command-line options for setup.exe

2003-02-25 Thread Igor Pechtchanski
On Tue, 25 Feb 2003, Max Bowsher wrote:

 Igor Pechtchanski wrote:
  There is even a patch outstanding that
  adds a --help option to list all available options:
  http://cygwin.com/ml/cygwin-apps/2003-02/msg0.html (with one
  caveat: setup has to be built as a Cygwin app from source for you to
  see console output).

 No, building it as a MinGW app is fine.
 But it must be run from a CYGWIN=tty shell.

 Max.

Oh, ok.  I don't use tty myself, so I needed it built as a Cygwin app.
Could it, perhaps, pop up a dialog box instead if stdout is not available?
Is there any way of detecting whether output to stdout will be seen?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Command-line options for setup.exe

2003-02-25 Thread Max Bowsher
Igor Pechtchanski wrote:
 On Tue, 25 Feb 2003, Max Bowsher wrote:
 No, building it as a MinGW app is fine.
 But it must be run from a CYGWIN=tty shell.
 
 Oh, ok.  I don't use tty myself, so I needed it built as a Cygwin
 app. Could it, perhaps, pop up a dialog box instead if stdout is not
 available? Is there any way of detecting whether output to stdout
 will be seen? 

Detection is the tricky part. I can't figure out how.

Max.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Command-line options for setup.exe

2003-02-25 Thread Igor Pechtchanski
On 26 Feb 2003, Robert Collins wrote:

 On Wed, [EMAIL PROTECTED]:46, Max Bowsher wrote:
  Igor Pechtchanski wrote:
   On Tue, 25 Feb 2003, Max Bowsher wrote:
   No, building it as a MinGW app is fine.
   But it must be run from a CYGWIN=tty shell.
  
   Oh, ok.  I don't use tty myself, so I needed it built as a Cygwin
   app. Could it, perhaps, pop up a dialog box instead if stdout is not
   available? Is there any way of detecting whether output to stdout
   will be seen?
 
  Detection is the tricky part. I can't figure out how.

 I wouldn't bother with detection. setup.exe is a gui, it's fine for it
 to show help as a gui.

 What is needed is this:
 The current libgetopt call to show the parameter help should become a
 convenience call over a lower interface.

 That interface should:
 * Provide a const interator to all the options in the optionset.

 That will let setup iterate over the options, extracting the help text
 and placing into a GUI text area (or a combobox etc etc).

Hmm, build a const String and pop up a MessageBox?
Igor

 This is also on my TODO, and why I haven't applied your trivial 'add
 help' option to setup - because it will need to be changed no matter
 what.

 Rob

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Command-line options for setup.exe

2003-02-25 Thread Robert Collins
On Wed, 2003-02-26 at 10:26, Igor Pechtchanski wrote:


  That will let setup iterate over the options, extracting the help text
  and placing into a GUI text area (or a combobox etc etc).
 
 Hmm, build a const String and pop up a MessageBox?
   Igor

As a 'For instance', yes.

Rob

-- 
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.


signature.asc
Description: This is a digitally signed message part


Re: Command-line options for setup.exe

2003-02-25 Thread Robert Collins
A cute thing that the iteration interface to the command line options
would enable is a 'tip of the day' - randomly choose a parameter from
the collection, and show just it to the user. (Presumably combined with
some static tips on the GUI :]).

Rob
-- 
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.


signature.asc
Description: This is a digitally signed message part


Re: Command-line options for setup.exe

2003-02-25 Thread Igor Pechtchanski
On 26 Feb 2003, Robert Collins wrote:

 A cute thing that the iteration interface to the command line options
 would enable is a 'tip of the day' - randomly choose a parameter from
 the collection, and show just it to the user. (Presumably combined with
 some static tips on the GUI :]).

 Rob

Yep.  And the next step is Clippy... :-D
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Command-line options for setup.exe

2003-02-25 Thread Gary R. Van Sickle
 On 26 Feb 2003, Robert Collins wrote:
 
  A cute thing that the iteration interface to the command line options
  would enable is a 'tip of the day' - randomly choose a parameter from
  the collection, and show just it to the user. (Presumably combined with
  some static tips on the GUI :]).
 
  Rob
 
 Yep.  And the next step is Clippy... :-D

Uh, that's Cyppy thankyouverymuch, and I'm working on it, don't rush me.

;-)

-- 
Gary R. Van Sickle
Brewer.  Patriot. 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Command-line options for setup.exe

2003-02-24 Thread Lars Munch
On Sat, Feb 22, 2003 at 12:15:29PM -0500, Garg, Rajiv wrote:
 Does setup.exe support command-line options?  If so, where can I find
 the documentation for them?  I would like to roll-out Cygwin to 300+
 machines and command-line options to install all packages found in
 network share would be simplest method, otherwise I might have to
 repackage it into a MSI using Wise Package Studio or something similar.

I have tried to create a MSI package but the result is *very* slow
because of the size and a huge number of files, also sym-links did not
work after installation of the MSI package.

Instead I use Nullsoft Scriptable Install System
http://nsis.sourceforge.net/ (remember to use -a to preserve file attributes).
Take a look at my homepage for more information:
http://lwb1.it.dtu.dk/~lmc/rebuilt.php

Anyway, I would also like to know the command-line options for setup (if
they exists)

 I saw a discussion about adding support for this in the
 cygwin-developers mailing list (~ 10/2001, topic=setup.exe command-line
 options) -- but cannot find any documentation about whether this was
 completed.
 
 Thanks in advance,
 Rajiv  
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/

-- Lars Munch


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Command-line options for setup.exe

2003-02-24 Thread Barry Buchbinder
On Sat, Feb 22, 2003 at 12:15:29PM -0500, Garg, Rajiv
wrote:
 Does setup.exe support command-line options?

see
http://sources.redhat.com/ml/cygwin/2002-11/msg01490.html

- Barry Buchbinder

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/