WinPcap Silent Install Issues

Hi All,

I am trying to get the WinPcap 4.0.2 to install silently. I am using the Nmap's version of the winpcap which allows the exe to the executed silently using the /S switch.

However when i do this, the default capture interface called "Adapter for generic dialup and vpn capture" does not get listed in the interface.

Could anyone please let me know if there is a way to do this?

Thanks in advance

0 Comments   [ + ] Show comments

Answers (6)

Posted by: JillBA 13 years ago
Senior Yellow Belt
When we had problems with installing WinPcap silently, we tried many options but weren't able to get a completely silent install.
In the end after weighing up the options we ended up capturing the install and creating our own MSI, so that we can be sure that the application will install silently when we deploy using SMS.
As always it's a calculated risk, but for our company we were better off recapturing than the install not being silent.
Posted by: gopal787 13 years ago
Senior Yellow Belt
Thanks for pitching in Jill.. We tried to recapture winpcap as well, everyting seem to go fine with the only one thing missing.

I cant seem to get the default VPN capture interface at all.. Would you know how can i get that interface to show up in my MSI???

Posted by: PackageExpert 13 years ago
Blue Belt
Install your captured MSI, take a Pre-Snapshot, install the original installer, take a post snapshot. Include the captured bits into your earlier captured MSI and test it again. Your MSI could have missed something.
Posted by: niveknonrev 11 years ago
Yellow Belt
This looks old but since I have an answer I thought I would post it just in case it help someone else that comes across WinPcap.
Basically all WinPcap does is copy DLL's to their proper locations, then creates and starts a service that runs the npf.sys driver.

Here is what you need to do for a silent installation:
1. Extract the files from the WinPcap installer - using 7zip - using the autorename feature
2. There will be several duplicates that have a _1 or _2 etc on the end of their name
3. You will have to copy the proper versions of each file to their respecitive locations
4. Each file is for a different version of windows - jsut check the properties - details tab to see which version it is.
5. For 32bit Windows (I was using Windows 7) copy the following to C:\Windows\System32

Then copy the driver to C:\Windows\System32\Drivers

Next create a service for the driver using the following command:
sc create npf binPath= system32\drivers\npf.sys type= kernel start= auto error= normal tag= no DisplayName= "NetGroup Packet Filter Driver"

For 64bit windows it is almost the same except the 32bit versions of the DLL's go into C:\Windows\sysWOW64
and the 64bit versions go into C:\Windows\System32

File names are the same so on 64bit you end up with a 64bit version in C:\Windows\System32

32bit versions end up in C:\windows\System32

Driver npf.sys ends up in the same place either way.

hope this helps someone
Posted by: anonymous_9363 11 years ago
Red Belt
This is great, very useful. Have you posted it in the 'Package KB'?
Posted by: niveknonrev 11 years ago
Yellow Belt
Yes I did post it in the KB plus the following addition:

An addition to the note above:
when distributing this from SCCM on a 64bit system (Windows 7 for me) you will have to copy the files from a 32bit process such as CMD.exe and utilize the %windir%\sysnative to get the proper files into the real system32 directory

If you use the normal cmd or xcopy the files will be redirected to C:\windows\Syswow64 and Wireshare doesn't like that! it wants packet.dll to be in the system32 native directory - who knew?

At any rate here was my work around:
use a CMD file as the initial program in the SCCM package
C:\windows\syswow64\cmd.exe /c "%~dp0<SilentInstall.cmd>

obviously that silentInstall.cmd file can be called whatever you want to name it

then inside the silentinstall.cmd file put your "copy" commands and use the sysnative directory for system32
copy "%~dp0npf.sys" %windir%\Sysnative\drivers

then copy the sysWOW64 files into their directory using the normal syntax.

Hope that helps for sccm
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ