delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/06/01:10:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 6 Nov 2002 01:10:30 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Chris Walters <chris DOT walters AT pobox DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: CYGWIN Installer should setup a root environment variable
In-Reply-To: <3DC8A128.90309@pobox.com>
Message-ID: <Pine.GSO.4.44.0211060108050.24745-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Wed, 6 Nov 2002, Chris Walters wrote:

> I have experienced many times situations which I would like to refer to
> CYGWIN's root directory from a bat script. The most generic solution
> would be to utilise an environment variable such as CYGROOT or (as in
> startxwin.bat) CYGWIN_ROOT to refer to the absolute windows pathname
> (e.g. D:\cygwin). This would free us from making assumptions if it was
> setup during the installation utility. The environment variable should
> be setup for system if installed for "All Users".

`cygpath -w /`

> NT Question: How does cygwin update the System registry (for environment
> variables) if it is installed as a normal user? I can't modify it
> myself, so how does the installer do it?

It doesn't.  It only updates HKEY_CURRENT_USER, which it's always allowed
to do.  And, AFAIK, it doesn't set any environment variables, just the
mount settings...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019