WinPcap installation issue

Kaito's Avatar

Kaito

08 Jun, 2015 04:27 AM

Hello,

I'm developing a Java packet capture library which is actually a wrapper of WinPcap, and now trying to set up AppVeyor CI for it.
I wrote appveyor.yml as this, which installs WinPcap using Chocolatey at line #45 and then finds its runtime library wpcap.dll at line #55.
When I run a build, always the finding fails although it looks WinPcap installation completes successfully. (see build log).
At line #55, I search for wpcap in all files under C:\ but I can't find wpcap.dll at all, while I could find wpcap.dll in C:\Windows\system32\ when I tried choco install winpcap on my PC.
Why is the difference? How can I correctly install WinPcap on AppVeyor?

Thank you for your help in advance,
Kaito

  1. Support Staff 1 Posted by Feodor Fitsner on 08 Jun, 2015 06:56 PM

    Feodor Fitsner's Avatar

    Hi Kaito,

    Looking at WinPcap package installation code here https://chocolatey.org/packages/WinPcap I've noticed it uses AutoHotKey library to automate UI-based installation wizard (seems like a nice idea if the installer doesn't have built-in support for silent installs). However, AppVeyor build agent on default image runs in "headless" mode and I guess installer window can't be located by automation script.

    You can try running your build on "unstable" OS image - build agent there runs in "interactive" mode, so it might work.

  2. 2 Posted by Kaito on 09 Jun, 2015 06:13 AM

    Kaito's Avatar

    Thank you for your prompt reply.

    I tried the unstable image and succeeded in the build. Thank you!
    But there was yet another problem, where AutoHotKey install randomly fails and succeeds.
    So, I gave up to install WinPcap itself and instead now I install nmap which includes WinPcap. The nmap has the silent installer and so doesn't depend on AutoHotKey.
    This way is working very well even on "Windows Server 2012 R2".

    Anyway, thank you again for your help,
    Kaito

  3. Support Staff 3 Posted by Feodor Fitsner on 09 Jun, 2015 06:23 AM

    Feodor Fitsner's Avatar

    Cool, thanks for the update!

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Jul, 2019 04:51 AM
15 Jul, 2019 06:33 PM
15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM
15 Jul, 2019 05:46 PM