Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista security

Vista - how can I delete registry key value in HKLM

Reply
 
Old 09-05-2006   #1 (permalink)
Rastlin Chen


 
 

how can I delete registry key value in HKLM

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!







My System SpecsSystem Spec
Old 09-05-2006   #2 (permalink)
Jimmy Brush


 
 

Re: how can I delete registry key value in HKLM

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/

My System SpecsSystem Spec
Old 09-08-2006   #3 (permalink)
Jamie Hunter [MS]


 
 

Re: how can I delete registry key value in HKLM

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


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: Cannot read registry keys under HKLM with UAC enabled on Vista? Vista security
Can't Delete Registry Key General Discussion
Unable to access HKLM registry key remotely Vista General
Remotely reading HKLM registry key Vista security
UAC and permissions on HKLM registry Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46