Removing registry entries
Roland Glenn McIntosh
roland@steeltorch.com
Tue Feb 5 09:01:00 GMT 2002
Well the keys in HKEY_USERS are going to be under a different user id string on your system.
There's probably a more straightforward way to extract this via script, but I came up with:
cat /etc/passwd | grep `whoami` | awk -F":" '{print $5}' | cut -f2 -d","
In any case, from what I've found, this might work on a Windows 2000 system:
-----------------------------
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygnus Solutions]
[-HKEY_CURRENT_USER\Software\Cygnus Solutions]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions]
[-HKEY_USERS\.DEFAULT\Software\Cygnus Solutions]
[-HKEY_USERS\S-1-5-21-117609710-789336058-1957994488-1000\Software\Cygnus Solutions]
[-HKEY_USERS\S-1-5-21-117609710-789336058-1957994488-1000\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygnus Solutions]
------------------------------
Save that to a file ending in .reg and double click on it. WARNING: This will delete registry keys. Don't expect cygwin to work without a reinstall.
This WON'T work in windows 95, and in Windows 98 you need to use something like:
REGEDIT4 [-HKEY_CURRENT_USER\keyname]
The REGEDIT4 thing might work in Win2000 too, I didn't try it.
-rgm
--
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/
More information about the Cygwin
mailing list