Jump to content
Sign in to follow this  
Hirakawa

RegDelete problem in Vista and 2K

Recommended Posts

Hirakawa

Good day. This is my first post in this forum.

Recently I am using AutoIt v3 to create a script to work with Vista and I found out that I have problem using RegDelete to delete some node under HKLM\SYSTEM\CurrentControlSet\Enum\USB and HKLM\SYSTEM\CurrentControlSet\Enum\USBStor.

I also found out that this doesn't work with Windows 2000 as well but it work very well in Windows XP.

Is anybody here have the same problem as mine?

Below is my script:

If Not RegDelete("HKLM\SYSTEM\CurrentControlSet\Enum\USBSTOR\CdRom&Ven_XXXX&Prod_XXXX&Rev_1.00")

MsgBox(4096, 'Error', @error);

EndIf

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.