This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]


On Thu, 21 Oct 2004, Buchbinder, Barry (NIH/NIAID) wrote:

> At Wednesday, October 20, 2004 3:51 PM, Igor Pechtchanski wrote:
> > Dave,
> >
> > A few suggestions...
> >
> > On Wed, 20 Oct 2004, Dave wrote (heavily snipped):
> >
> >> You must have Admin privileges to install the context menus.
> >
> > Why?  Can't they go into HKCU?
> I do not have Admin privileges and I could get the MS "Command Prompt Here"
> powertoy to install.  If chere could be configured to allow one to choose
> installation for "all users" or "just me", like setup does, it would be
> appreciated.

That's exactly what I asked above.  HKCU is also known as
HKEY_CURRENT_USER, and it's a registry subtree that the current user
should normally have write access to.

> (If that is possible, it might be even better if chere would figure out
> how cygwin was installed and just do it the same way.)

That won't work for two reasons: first off, "just me" vs. "all users" is a
choice for the *initial* mount configuration, and it can be changed at any
point by anyone with Admin privileges, and secondly, Cygwin could have
been installed by someone with Admin privileges, so the *current* user may
not be able to write the HKLM (HKEY_LOCAL_MACHINE) registry tree. In fact,
it's possible (after suitable mount invocations) to have *both* system and
user mounts, and what should "chere" do then? ;-)

Probably the most reasonable courses of action are to either provide a
command-line flag (as you suggested), or try to install in HKLM, and if
that fails, fall back to HKCU (as the xorg-x11-f* postinstall scripts used
to do).
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]