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 Message-ID: <3DC8A128.90309@pobox.com> Date: Wed, 06 Nov 2002 15:57:12 +1100 From: Chris Walters User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: CYGWIN Installer should setup a root environment variable Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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". 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? -- Chris Walters +-------------------------------------------------------+ | ,-_|\ Chris Walters | | / \ | | \_,-._/ | | v | +-------------------------------------------------------+ -- 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/