how can I delete registry key value in HKLM

Posted: 09-05-2006, 01:23 PM
Hey! I write a driver for usb device.
I can call UpdateDriverForPlugAndPlayDevices to replace inbox driver with my
driver when device is on system.
But if device is not on system, I must delete HKLM/CurrentControlSet/
Enum/USB/{ID Value} to force device recgonize
when it replug on system.
In XP I can delete it, but how can I do it in Vista?
Thanks a lot!






how can I delete registry key value in HKLM


Responses to "how can I delete registry key value in HKLM"

Jimmy Brush
Guest
Posts: n/a
 
Re: how can I delete registry key value in HKLM
Posted: 09-05-2006, 01:39 PM
Hello,

Your setup program must ask to be ran "as administrator" in order to perform
these functions. Otherwise, Windows Vista will run the program as a standard
user, which will not be able to change registry keys under HKLM.

Here is a very detailed document explaining how to do this:

http://msdn.microsoft.com/library/en...asp?frame=true


--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/

Jamie Hunter [MS]
Guest
Posts: n/a
 
Re: how can I delete registry key value in HKLM
Posted: 09-08-2006, 01:42 PM
Hi, wrong news group, but please refer to the "devcon" example in the DDK
for performing re-install of devices. Do not delete these keys... One time I
spent weeks debugging end-users issues because a driver installer writer of
a single unnamed product decided to modify the Enum keys directly! Search
for "Device Installs: The Good, the Bad and the Ugly" to find a WinHEC 2002
presentation on these issues.

-
Jamie Hunter [MS]

"Rastlin Chen" <rastlin@realtek.com.tw> wrote in message
news:OsrN35O0GHA.4392@TK2MSFTNGP04.phx.gbl...
> Hey! I write a driver for usb device.
> I can call UpdateDriverForPlugAndPlayDevices to replace inbox driver with
> my
> driver when device is on system.
> But if device is not on system, I must delete HKLM/CurrentControlSet/
> Enum/USB/{ID Value} to force device recgonize
> when it replug on system.
> In XP I can delete it, but how can I do it in Vista?
> Thanks a lot!
>
>
>
>
>
>
 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Err Message: Registry Editing has been disabled by your administra Danny Windows Vista File Management 6 03-03-2007 04:59 AM
NTFS/registry permissions for a service-specific SID Sharon2323 Windows Vista Security 3 08-05-2006 07:31 PM
Vista Registry Layout LuisNeto Windows Vista Performance & Maintenance 2 06-18-2006 12:33 PM
Registry Cleaner type programs? Tim D Windows Vista Performance & Maintenance 1 06-13-2006 11:30 AM
Purpose of Registry key: Wow6432Node (does anyone know?) GSLockwood (IUnknown) Windows Vista Install & Setup 1 04-11-2006 11:06 PM