When installing WinPcap 4.1.2 on Windows 7 I receive the following message

"A previous version of WinPcap has been detected on this system and cannot be
 removed because in use by another application.  Please close all the
 WinPcap-based applications and run the installer again."

I've installed and uninstalled the program several times.

According to the WinPcap FAQ one should:

Delete packet.* (packet.dll, packet.lib, etc.)

Delete wpcap.dll

Delete npf.sys.

This was done and it still wouldn't install.

Additionally, I've removed the Network Packet Filter 'device' using the device manager.

I also did a search in the registry for winpcap with no results. I searched for wpcap and found only one entry - a header file in an include directory. I renamed it to .old with no success.

Further, I downloaded the source code and searched for part of the message above hoping to find how it checks for previous versions. That string (version of WinPcap) was not found in the source code (using grep in cygwin).

Finally, I emailed the two people who are listed as contacts for the program.

I also tried installing the program as an Administrator.

No luck. You all are my last hope. :)

The question is as above - I want to remove the old version of WinPcap. But other questions that could help me are, how does a program check for previous versions? Is there something else I should be searching for in the registry? Is there a way to find out which program is using winpcap? Is there a way to see if any programs have a dependency on winpcap? Any leads would be greatly appreciated.

Thanks!


Solution 1:

I resolved this issue on Windows 7 x64 by:

  1. opening a command prompt as administrator (Win+R > cmd > Enter)
  2. navigate to \windows\syswow64
  3. delete Packet.dll
  4. reboot
  5. Install new version of Winpcap

Solution 2:

While I never found a way to remove the old WinpCap my colleague suggested I boot up in safe mode in order to stop the mystery program from using it. Although I still got a warning that an old version was unable to be removed (and do I want to continue with the install?) the installation this time was successful.

So if you find yourself in this dilemma a possible workaround is to boot up in safe mode and install from there.

Solution 3:

When I uninstalled some Netgear Wireless Adapter software, packet.dll was removed, enabling me to successfully install WinPcap.