Re: Purging System of Driver Junk by Dennis
Dennis
Fri Sep 17 13:45:51 CDT 2004
Hi Don,
Thanks for the excellent and thorough reply!
Dennis
"Don Burn" <burn@stopspam.acm.org> wrote in message
news:10kmb4ssggo4047@corp.supernews.com...
> Here is my standard answer to this question.
>
> 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
> Remove StopSpam from the email to reply
>
>
> "Dennis Burns" <dburns@rtessentials.com> wrote in message
> news:e3a9iuNnEHA.4004@TK2MSFTNGP10.phx.gbl...
> > I've been experimenting with USB driver development for a few months
now,
> > including "from-scratch" and using existing off-the-shelf drivers and
> tools.
> > I'd like to completely purge my system of all accumulated junk related
to
> > these experiments.
> >
> > I figure I could do it as follows:
> > 1) Browse the registry and remove all folders and symbolic links that
> > contain my vendor and product ID?.
> > 2) Search for and delete all .sys and .inf files that are specific to my
> > driver.
> >
> > Is this the proper approach?
> > Other suggestions?
> >
> > Thanks in advance for the help,
> > Dennis
> >
> >
>
>