delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/07/02:16:06

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
Date: Tue, 7 May 2002 16:12:13 +1000 (EST)
From: luke DOT kendall AT cisra DOT canon DOT com DOT au
Subject: regtool problem
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-Id: <20020507054614.7B3A18B1E@bellmann.research.canon.com.au>

I'm trying to use regtool to find the locations that software is
installed on a system, so as to write some post-install scripts
so that scripts like "word" and "excel" work (i.e., build in
pathname to executable, or define an MSOFFICE environment variable, or
whatever), and a desktop shortcut to start X11.

But I discovered on the way that regtool doesn't appear to work if the
key name has slashes in it.  E.g. while you can use cygpath -w to
determine the install directory for cygwin, you don't seem to be able
to do it with regtool.  I tried what seemed the right way:

regtool -p list "\HKLM\software\Cygnus solutions\cygwin\mounts v2\/\native"  

and every other combo I could think of, but always got the error:

Error: The system cannot find the file specified.

Regedit shows that the key and value is there.  I can't access it via
regtool, though.

What I really want, actually, is grepreg, so I can say:

	grepreg word\.exe

Ah, wait, I can answer my own question.  The "regtool -p list" shows
that those keys aren't "directories", so for such leaf keys you then
have to use a "get".  My trouble is the regtool terminology, I think. 
You have keys and values, and I wanted to find the value of the "value"
"\HKLM\software\Cygnus solutions\cygwin\mounts v2\/\native".

I guess regtool calls these leaf keys "values", and all the other keys
"keys".  I think the man page would be greatly helped if the terms key
and value in regtool's context were carefully defined.

BTW, where is the source code for regtool?  I guessed it might have been
in sh-utils or cyg-utils or even pkgconfig, but it isn't.  Is there a
way to find the package that a program comes from?

luke



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