delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Tue, 24 Oct 2000 15:35:55 -0400 |
Message-Id: | <200010241935.PAA29464@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | enolte AT campuspipeline DOT com |
CC: | cygwin AT sources DOT redhat DOT com |
In-reply-to: | <00d601c03dd6$d8566450$c4acb018@home.com> |
(enolte AT campuspipeline DOT com) | |
Subject: | Re: source for setup.exe? |
References: | <NEBBJPGNBOKKDAEIIMIKOEEOCCAA DOT jpollock AT curl DOT com> <20001024112449 DOT C26654 AT redhat DOT com> <00d601c03dd6$d8566450$c4acb018 AT home DOT com> |
> Obviously my needs are going to be different from other people's. > So rather than me hacking in just my changes (and having them > rejected :-), it would be nice to hear others and see where DJ wants > the program to go. If I remember correctly, DJ said prior versions > of setup were scriptable and that this is on the to-do list. Maybe > he already has an idea of what to do. Each do_* function has a call to DialogBox (or CreateDialog, or whatever). All you need to do is parse command line parameters (optionally reading from a file, but please support command-line-only mode also) in main() to set the variables in state.h and a global that says "auto-install" (add that to state.h also, I guess) and then teach setup to skip the obviously unneeded dialogs completely (start with do_ini or something, instead of do_source) and for the remaining dialogs to skip the DialogBox function. You'll also have to teach note() and fail() (and the fprintf wrapper in dialog.cc) to use the console instead of popups, if you want that. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |