Driver uninstallation!!

Hi all,
Driver uninstallation leaves the manufacturer’s name and driver version
and it can be seen in the Add/Remove Hardware wizard next time.
Does anybody know how to avoid it??
I searched in the registry but could not locate this info.
Also searched the system files and deleted all driver installation
files, still it shows up name in the Add/Remove Hardware wizard.

Is it stored in the cryptic form by windows??
What is the way to avoid it??
thanks and regards,
Sonal

MessageThe following is something I have been using to tell people how to
completely remove a device. I understand a tool may be in the works to do
this:

Removing all traces of a driver from a system

When testing a device install developers want to cleanup the system so
they can try reinstalling the device, unfortunately this is something
Microsoft hasn’t provided an easy way to do. The steps needed are:

  1. Delete the files copied by the INF from the system.

  2. Delete the INF and corresponding PNF files for the device, from the
    inf directory off of the system root. Note, this file is named OEM*.INF and
    OEM*.PNF if your driver is not signed. Searching the OEM*.INF files for
    your device identifier will determine the OEM* name of your inf file.

  3. If your device has a unique class, delete the registry entry in
    HLKM\System\CurrentControlSet\Control\Class corresponding to the device
    class you created for device. Note the key is named for the GUID of the
    class.

  4. If your device has a CoInstaller, delete the registry entry in
    HLKM\System\CurrentControlSet\Control\CoDeviceInstallers corresponding to
    the device class you created for device. Note the key is named for the GUID
    of the class.

  5. Delete the registry entries in HLKM\System\CurrentControlSet\Enum
    corresponding to the device you specified in the inf file. For PCI devices
    this is under the PCI key, for legacy devices this is under the Root key.
    Note: if you specify more than one device in the inf, you will have an entry
    for each device type the system has seen. DELETING THIS KEY REQUIRES
    CHANGING ITS SECURITY FIRST.

  6. Delete the registry entry in
    HLKM\System\CurrentControlSet\Services corresponding to the driver you
    specified in the inf file. Note this is the standard cleanup one would have
    done in the pre-PNP days.

  7. Reboot the system, now that was easy and intuitive wasn’t it.

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting

----- Original Message -----
From: Sonal Pandey
To: Windows System Software Developers Interest List
Sent: Friday, August 01, 2003 4:28 PM
Subject: [ntdev] Driver uninstallation!!

Hi all,
Driver uninstallation leaves the manufacturer’s name and driver version
and it can be seen in the Add/Remove Hardware wizard next time.
Does anybody know how to avoid it??
I searched in the registry but could not locate this info.
Also searched the system files and deleted all driver installation files,
still it shows up name in the Add/Remove Hardware wizard.

Is it stored in the cryptic form by windows??
What is the way to avoid it??
thanks and regards,
Sonal


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@acm.org
To unsubscribe send a blank email to xxxxx@lists.osr.com

Note you may also have to delete your entries in
HLKM\System\CurrentControlSet\Control\DeviceClasses as well. These are
similiar the Class registry entry but are the unique entries for drivers
installed. They use the GUID as part of the name.

Message
Hello,

IIRC , the information is taken from the *.inf installation file has been copied into the %Systemroot%\inf. If you find your *.inf file again (remember , the \inf directory is “hidden” ), you may try to delete it and check if your particular information still appears in the wizard.
If you want get rid of the device type in the hardware list, you will have to delete the class too from the registry :

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{your-class-id}

Christiaan

----- Original Message -----
From: Sonal Pandey
To: Windows System Software Developers Interest List
Sent: Friday, August 01, 2003 10:28 PM
Subject: [ntdev] Driver uninstallation!!

Hi all,
Driver uninstallation leaves the manufacturer’s name and driver version
and it can be seen in the Add/Remove Hardware wizard next time.
Does anybody know how to avoid it??
I searched in the registry but could not locate this info.
Also searched the system files and deleted all driver installation files, still it shows up name in the Add/Remove Hardware wizard.

Is it stored in the cryptic form by windows??
What is the way to avoid it??
thanks and regards,
Sonal


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compaqnet.be
To unsubscribe send a blank email to xxxxx@lists.osr.com

Or you can just leave your stuff right where it is and let microsoft deal
with the deleted driver cruft problem. I find it easier to just re-ghost (or
whatever equivalent process you use) test systems to get them back to a
known clean state.

=====================
Mark Roddy
Hollis Technology Solutions
www.hollistech.com
xxxxx@hollistech.com

-----Original Message-----
From: William Michael Jones [mailto:xxxxx@earthlink.net]
Sent: Friday, August 01, 2003 4:47 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: Driver uninstallation!!

Note you may also have to delete your entries in
HLKM\System\CurrentControlSet\Control\DeviceClasses as well. These are
similiar the Class registry entry but are the unique entries for drivers
installed. They use the GUID as part of the name.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

“Don Burn” wrote in message news:xxxxx@ntdev…
>
> MessageThe following is something I have been using to tell people how to
> completely remove a device. I understand a tool may be in the works to do
> this:
>

This list was the inspiration for an new free OSR utility that does just
what Don describes.

Stay tuned for details…

Peter
OSR

Thanks for the information,
I was deleting the registry entries but not the OEM*.INF * PNF files.
Deleted them and it worked,
Thanks
Sonal

-----Original Message-----
From: Don Burn [mailto:xxxxx@acm.org]
Sent: Friday, August 01, 2003 2:40 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: Driver uninstallation!!

MessageThe following is something I have been using to tell people how
to completely remove a device. I understand a tool may be in the works
to do
this:

Removing all traces of a driver from a system

When testing a device install developers want to cleanup the system
so they can try reinstalling the device, unfortunately this is something
Microsoft hasn’t provided an easy way to do. The steps needed are:

  1. Delete the files copied by the INF from the system.

  2. Delete the INF and corresponding PNF files for the device, from
    the inf directory off of the system root. Note, this file is named
    OEM*.INF and OEM*.PNF if your driver is not signed. Searching the
    OEM*.INF files for your device identifier will determine the OEM* name
    of your inf file.

  3. If your device has a unique class, delete the registry entry
    in HLKM\System\CurrentControlSet\Control\Class corresponding to the
    device class you created for device. Note the key is named for the GUID
    of the class.

  4. If your device has a CoInstaller, delete the registry entry in
    HLKM\System\CurrentControlSet\Control\CoDeviceInstallers corresponding
    to the device class you created for device. Note the key is named for
    the GUID of the class.

  5. Delete the registry entries in
    HLKM\System\CurrentControlSet\Enum
    corresponding to the device you specified in the inf file. For PCI
    devices this is under the PCI key, for legacy devices this is under the
    Root key.
    Note: if you specify more than one device in the inf, you will have an
    entry for each device type the system has seen. DELETING THIS KEY
    REQUIRES CHANGING ITS SECURITY FIRST.

  6. Delete the registry entry in
    HLKM\System\CurrentControlSet\Services corresponding to the driver you
    specified in the inf file. Note this is the standard cleanup one would
    have done in the pre-PNP days.

  7. Reboot the system, now that was easy and intuitive wasn’t it.

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting

----- Original Message -----
From: Sonal Pandey
To: Windows System Software Developers Interest List
Sent: Friday, August 01, 2003 4:28 PM
Subject: [ntdev] Driver uninstallation!!

Hi all,
Driver uninstallation leaves the manufacturer’s name and driver version
and it can be seen in the Add/Remove Hardware wizard next time. Does
anybody know how to avoid it?? I searched in the registry but could not
locate this info. Also searched the system files and deleted all driver
installation files, still it shows up name in the Add/Remove Hardware
wizard.

Is it stored in the cryptic form by windows??
What is the way to avoid it??
thanks and regards,
Sonal


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@acm.org
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@lefthandnetworks.com To unsubscribe send a blank email to
xxxxx@lists.osr.com

OK, I will bite. Any chance it will be posted with source or does
snowball’s chance still apply?

“Peter Viscarola” wrote in message news:xxxxx@ntdev…
>
>
> “Don Burn” wrote in message news:xxxxx@ntdev…
> >
> > MessageThe following is something I have been using to tell people how
to
> > completely remove a device. I understand a tool may be in the works to
do
> > this:
> >
>
> This list was the inspiration for an new free OSR utility that does just
> what Don describes.
>
> Stay tuned for details…
>
> Peter
> OSR
>
>
>
>

I do not remember the exact name, but look in the INF directory. I think
there are some INF files named INF0.INF, INF1.INF or something like that
(maybe OEM0.INF, etc… This is where Windows stores this information.
Once you find the file, it would be easy to remove programmatically.

Sorry I can not be more precise, it is late.

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Sonal Pandey
Sent: Friday, August 01, 2003 1:28 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Driver uninstallation!!
Importance: High

Hi all,

Driver uninstallation leaves the manufacturer’s name and driver version

and it can be seen in the Add/Remove Hardware wizard next time.

Does anybody know how to avoid it??

I searched in the registry but could not locate this info.

Also searched the system files and deleted all driver installation
files, still it shows up name in the Add/Remove Hardware wizard.

Is it stored in the cryptic form by windows??

What is the way to avoid it??

thanks and regards,

Sonal


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Good job. Maybe this should be added to the FAQ!

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Friday, August 01, 2003 1:40 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: Driver uninstallation!!

MessageThe following is something I have been using to tell people how
to
completely remove a device. I understand a tool may be in the works to
do
this:

Removing all traces of a driver from a system

When testing a device install developers want to cleanup the system
so
they can try reinstalling the device, unfortunately this is something
Microsoft hasn’t provided an easy way to do. The steps needed are:

  1. Delete the files copied by the INF from the system.

  2. Delete the INF and corresponding PNF files for the device, from
    the
    inf directory off of the system root. Note, this file is named OEM*.INF
    and
    OEM*.PNF if your driver is not signed. Searching the OEM*.INF files for
    your device identifier will determine the OEM* name of your inf file.

  3. If your device has a unique class, delete the registry entry
    in
    HLKM\System\CurrentControlSet\Control\Class corresponding to the device
    class you created for device. Note the key is named for the GUID of the
    class.

  4. If your device has a CoInstaller, delete the registry entry in
    HLKM\System\CurrentControlSet\Control\CoDeviceInstallers corresponding
    to
    the device class you created for device. Note the key is named for the
    GUID
    of the class.

  5. Delete the registry entries in
    HLKM\System\CurrentControlSet\Enum
    corresponding to the device you specified in the inf file. For PCI
    devices
    this is under the PCI key, for legacy devices this is under the Root
    key.
    Note: if you specify more than one device in the inf, you will have an
    entry
    for each device type the system has seen. DELETING THIS KEY REQUIRES
    CHANGING ITS SECURITY FIRST.

  6. Delete the registry entry in
    HLKM\System\CurrentControlSet\Services corresponding to the driver you
    specified in the inf file. Note this is the standard cleanup one would
    have
    done in the pre-PNP days.

  7. Reboot the system, now that was easy and intuitive wasn’t it.

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting

----- Original Message -----
From: Sonal Pandey
To: Windows System Software Developers Interest List
Sent: Friday, August 01, 2003 4:28 PM
Subject: [ntdev] Driver uninstallation!!

Hi all,
Driver uninstallation leaves the manufacturer’s name and driver version
and it can be seen in the Add/Remove Hardware wizard next time.
Does anybody know how to avoid it??
I searched in the registry but could not locate this info.
Also searched the system files and deleted all driver installation
files,
still it shows up name in the Add/Remove Hardware wizard.

Is it stored in the cryptic form by windows??
What is the way to avoid it??
thanks and regards,
Sonal


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@acm.org
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com