New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Npcap 0.92 fails to install in WinPcap API Compatible Mode #414
Comments
Thanks for the report, we'll start looking at it. |
Yup, same issue here. |
@BigbyBoss Can you also provide NPFInstall.log? Is the error number identical? |
@dmiller-nmap Added it to my previous comment. |
Ok, it looks like the problem is that you have WinPcap (not Npcap) installed in some way that Npcap is unable to clean up. The "WinPcap API-compatible mode" is intended to completely replace WinPcap (instead of installing as Npcap with all Npcap features), so if we can't uninstall WinPcap, we can't safely install in WinPcap API-compatible mode. Can you provide the output of DiagReport that will help us identify why the installer thinks WinPcap is installed? Maybe there is something that must be manually removed. |
@dmiller-nmap I tried installing again a few days ago, expecting a change. And i actually managed to install it just fine this time. I got no warning stating i have WinPcap installed and the installation itself was successful. Still, here's my DiagReport if it's of any use now. |
Thanks @dmiller-nmap DiagReport-20170707-232033.txt David |
I too have the same problem after the Creator update, with the installation failing. It complains that winpcap is installed (It is not, I have been using npcap in winpcap compatibility mode), then it halts when failing to uninstall Winpcap. After a clean install without compatibility selected, and an uninstall, it still failed. Here are the logs, from using DiagReport, and near the end are mentioned four winpcap related files, dating back to when I installed winpcap when I was trying to understand why an application using npcap was not working (that was entirely my fault). Deleting the files from C:Windows\SysWOW64 seems to have cleared the problem. Files were NpcapHelper.exe, Packet.dll, WlanHelper.exe and wpcap.dll. DiagReport-20170708-112649.txt Ed |
I also started having this problem after the Creator Update. It installs fine if I don't try to install in WinPcap API-compatible mode. |
Try uninstalling the standard version of npcap, then look for the files in C:Windows\SysWOW64 (NpcapHelper.exe, Packet.dll, WlanHelper.exe and wpcap.dll.). If they are there delete them, then try installing API-compatible version (this worked for me). |
@EJMarr Thanks especially for the @sinfulgurotesque @davemidd @BigbyBoss Do any of you have an |
@EJMarr That worked you wonderful, beautiful bastard. |
Here's an install log that I recovered from Deleted Files. I don't have a DiagReport to go with this one, as I first needed a successful install to get the utility available (bit of a bootstrap problem there). It is 0.92, in WinPCap compatible mode, and it did fail. |
Linking to discussion on the nmap-dev mailing list: http://seclists.org/nmap-dev/2017/q3/44 |
I can confirm that @EJMarr 's solution worked for me as well. Windows 10, all latest patches. While upgrading from Nmap 7.30 to 7.50 the bundled Npcap 0.91 installer failed. I restarted and removed all traces of Winpcap from Add/Remove Programs, disk, and the registry. No luck. Tried Npcap 0.92 same issue. Note: I also have Wireshark installed which required Winpcap. I've verified that both Wireshark and Nmap work after successfully installing Npcap 0.92. CC: @dmiller-nmap |
The issue appears to be that the Creators Update "reinstalls" Windows drivers. The diff from DiagReport before and after the install is attached. The essential changes are as follows:
|
Nonstandard registry values in the service's registry key get wiped out by Windows updates like the Creators Update. They should be kept in the Parameters subkey instead; and now they are. See nmap/nmap#906
Everyone who reported this issue: thank you! Please try Npcap 0.93, which
should resolve this issue. Applying it before the Creators Update ought to
prevent the broken installation, and the installer should safely recover
and reinstall if you already are experiencing this issue.
Please let us know how it works for you!
|
for me... it dont work |
Tried to install npcap-0.93 two times today, after successful uninstall of npcap-0.83. Both times installation failed with error message -> windows restore point gets recovered before installation, but afterwards it was installed ? I then had to de-install it from windows "Apps & features" too, just to get sure I have no broken/corrupt installation on my machine. |
Recommended procedure for this issue:
I am closing this issue. For problems with Npcap installations not working after applying Windows feature updates (version upgrades), see #93. |
I previously had 0.91 installed (in Winpcap API Compatible Mode).
Windows 10 64 bit.
Installing 0.92 shows the following error on screen -
Install log attached - NPFInstall.log.txt
If I un-select WinPcap API Compatible Mode then installation does complete ok.
The text was updated successfully, but these errors were encountered: