Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 27 Jun 2003 12:40:12 +1000 (EST) From: luke DOT kendall AT cisra DOT canon DOT com DOT au Subject: Re: Determining the location of a Cygwin installation To: Andrew DeFaria Cc: cygwin AT cygwin DOT com In-Reply-To: <3E8212D3.5070004@Salira.com> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: <20030627024012.CF25734C59@nevin.research.canon.com.au> On 26 Mar, Andrew DeFaria wrote: > Let me describe a problem scenerio (real world). > > You have a bunch of people in your domain who rely on Cygwin but who do > not always keep up with the latest. Indeed often they are way behind. > These people do not bother to add Cygwin's bin directory to their PATH > either. A problem crops up and they call you. So you investigate and > think that perhaps updating their Cygwin to a relatively recent version > would correct their problem. So you do that. Then you think "Gee, > wouldn't it be nice if I could keep everybody's Cygwin up to some > relatively recent (and stable) version..." and you attempt to scriptize > this. The first road block you hit is trying to determine where the user > installed Cygwin - some in C:\Cygwin, others in D:\Cygwin and still > others in some other odd path. Now what do you to? > > (Of course, going hand in hand with this would be a command line driven > setup.exe but perhaps we shouldn't go there just yet...) Sorry for jumping in late. Basically that's what I've set up here. We rsync one of the mirror sites locally, so anyone can easily update. We have a .bat script to run setup and the local post-install script for lots of extra tailoring. Much of this can also be found at my personal web page: http://members.optushome.com.au/lukekendall/xwin-network.html Yes, to sort out the cygwin path you'd have to run a registry examining command line tool (and yes, I think that running regtool off a server on your local network that has Cygwin installed should do the trick). I must admit I haven't bothered with that. My approach was to integrate the installation of Cygwin into the setup of a new PC when it's configured by SysAdmin. They know to restrict their choices to either C:\cygwin or D:\cygwin. I also modify our startx.bat script to hard-wire in the correct location during our post-install stuff. luke -- 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/