delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/09/08:51:26

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
Message-ID: <000001c31629$8c4f8e00$6fc82486@medschool.dundee.ac.uk>
Reply-To: <fergus AT bonhard DOT uklinux DOT net>
From: <fergus AT bonhard DOT uklinux DOT net>
To: <cygwin AT cygwin DOT com>
Cc: <fergus AT bonhard DOT uklinux DOT net>
Subject: Re: cygwin and windows registry
Date: Fri, 9 May 2003 13:46:29 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

> ... is there a method to make cygwin portable?
> ... to make it so that it doesn't write to the registry?

If you have one directory containing two files, being cygwin1.dll and a
single Cygwin executable, then running that executable will write to the
registry. (Try it on a clean -- or cleaned -- machine with ls, for instance,
or md5sum or ddate or anything you like. Then run regedit and look for the
string "cyg".) So whatever you invent, and however sparse, this will happen.
It's not really a problem.

There's a recent discussion "Portable Cygwin on a CD" on the list. Depending
on the complexity of your requirements, you might need just some executables
and dll's: in which case, just store them and use them. Or, because of
dependencies and lurking relative paths etc in what you do, you might find
you need to mimic the conventional architecture /bin, /etc, /usr, ... under
g:\. If you do this then you should be able simply to walk up to a vacant
PC, mount your CD at the start (g:\bin\mount -bfu g:/ /) umount it at the
end (g:\bin\umount -A) and walk away again.

I do that round here the whole time. Nobody wants my stuff on their machine,
and nor do I want them to have it. But it is convenient to work with them,
at their machine. If it happens to be a Cygwin machine, then you'll not only
want your mount point to be temporary, but probably to recover theirs after
it's all over. Potentially awkward, but there's something about this in the
thread.

Fergus


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