delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/06/20:04:52

X-Spam-Check-By: sourceware.org
Date: Mon, 6 Nov 2006 20:04:32 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Dave Korn <dave DOT korn AT artimi DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: setup.exe creates files outside install directory
In-Reply-To: <00d801c701c6$b08dbda0$a501a8c0@CAM.ARTIMI.COM>
Message-ID: <Pine.GSO.4.63.0611062000440.11418@access1.cims.nyu.edu>
References: <00d801c701c6$b08dbda0$a501a8c0 AT CAM DOT ARTIMI DOT COM>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Mon, 6 Nov 2006, Dave Korn wrote:

> On 06 November 2006 16:54, Ben Collver wrote:
>
> > Good day,
> >
> > I installed cygwin to C:\bens\cygwin, and afterwards I found install.log
> > and install.log.full under C:\cygwin\var\log.
>
>   When setup.exe starts up, it has to open the logfile before it asks you
> where you want it installed to.  If there's already a cygwin installation on
> the machine, it'll use that one's /var, but if there isn't because it's the
> very first run ever on the machine....  well, you can see the problem.  I
> reckon you can just delete them and it won't create them again next time you
> use setup.

Umm, actually, setup doesn't write the log file until it exits, by which
point it would have already created the Cygwin mounts.  One possibility
that comes to mind is that setup was started with the default root
directory, but cancelled before it actually got to install anything, and
then re-run.

>   (Disclaimer:  I haven't checked the source code to see that this is
> actually exactly what happens, but I don't see what else it could do on
> a first-ever-run.)
>
>   Hmm, maybe it would be better to fall back on %TEMP% instead of the
> default cygwin install path, or to do so if the C:\cygwin directory
> doesn't exist.

If setup exits before a certain point in the setup process, the log file
ends up in the "current directory" (i.e., the directory setup was run
from).  If it exits after that point, the log file goes to /var/log (where
"/" is whatever the root mount points to).
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/

- Raw text -


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