X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0	tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew Schulman <schulman.andrew@epamail.epa.gov>
Subject: automated cygwin install
Date: Fri, 09 Sep 2011 09:52:23 -0400
Lines: 33
Message-ID: <6p4k675lc62jj9ngemb18v2h94mpnjcpsu@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Archive: encrypt
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

I just had to reinstall Cygwin on a reimaged computer, and decided to finally tackle the automated
installation.  I didn't find any recent posts on the topic, so here's my solution.

In a new installation, we have to write an (ugh) MSDOS CMD script, since bash isn't available.  One
way around that would be to install just the base, then run a bash script, but I decided to bite the
bullet and write a CMD script that would do it all in one go.

Here's what mine looks like:

setup.exe ^
--no-shortcuts ^
--quiet-mode ^
--disable-buggy-antivirus ^
--packages ^
aria2,^
atool,^
autoconf,^
automake,^
autossh,^

and so on.  Two things to notice:

* The caret (^) character at the end of every line is CMD's line continuation character.  (Maybe you
already knew that, but not being very experienced with CMD, I had to look around to find it out.)

* The list of package names is comma-delimited.  This doesn't seem to be documented anywhere in the
setup help, but the --packages option expects a comma-delimited list of package names.  If you
space-delimit them, only the first one will be installed and the rest will be ignored.

Nirvana.  A one-click new Cygwin installation, with all of my favorite packages.  I hope it's useful
to others.

Andrew.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

