X-Spam-Check-By: sourceware.org Date: Fri, 30 Jun 2006 22:47:09 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Harry Dellicker cc: cygwin AT cygwin DOT com Subject: Re: Customizing setup.exe (How to specify "default" packages) In-Reply-To: <44A5DAC4.1040708@earthlink.net> Message-ID: References: <44A5DAC4 DOT 1040708 AT earthlink DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Fri, 30 Jun 2006, Harry Dellicker wrote: > I know this has been asked before but I have not yet found a real answer. > > ---> How does setup.exe "decide" which packages are to be installed by > default? <--- Simple. Everything in the "Base" and "Misc" categories is installed by default. Any package that an installed package requires is installed by default. Shampoo, rinse, repeat. > I do not see anything in setup.ini that controls this. You didn't look hard enough. It's everything with "category:.* Base" or "category:.* Misc". > It is also not hard-coded in the setup program itself, as far as I can > tell, nor does there seem to be any other obvious external source (file) > which provides the necessary information. Ah, but it *is* hard-coded in setup. In two places. See PickView::defaultTrust() and packagemeta::set_action(). > I have seen the suggestion that any packages placed in "Base" will be > included in the default package list, but that seems like a bit of a > kluge. Perhaps, but that's how it is. > I have spent hours with google, and hours studying the setup.exe source > code without any success. > > Does anyone have a answer to this? Is it just so simple that "any six > year old" could see it, but I'm no longer six? It is pretty simple. And, to answer the question you've put in your subject line but never asked in the body of the message, the easiest way to make some packages install by default is to create an empty dummy package, put it in the "Base" category, and make it require all the packages you want installed. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/