Re: dpinst - uninstall problems - when hardware is not present



kota <kota@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I am using dpinst tool for installation & uninstallation of the driver.
removal process is working fine in below sequence:
installation -> Uninstallation -> shutdown -> Remove hardware
------but not in below sequence------------------
installation -> shutdown->Remove hardware -> uninstallation.
Here i am finding that, it is leaving lot of registry info and not cleaning
correctly.

Command which i used is: DPInst.exe /U device.inf /D
device: PCI PNP device.
Not cleaning the below Registy info, when device removed before the
uninstallation:
HKLM\system\controlset001\control\class\GUID
HKLM\system\controlset001\Enum\PCI\DeviceHardwareID
HKLM\system\controlset003\control\class\GUID
HKLM\system\controlset003\Enum\PCI\DeviceHardwareID
HKLM\system\Currentcontrolset\control\class\GUID
HKLM\system\Currentcontrolset\Enum\PCI\DeviceHardwareID

That's only 2 entries. CurrentControlSet is a symbolic link to one of the
numbered control sets. The other one is probably your "last known good"
configuration, and will never be touched by the live system.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.