WinPcap repackaging - Advanced Installer Community
Eric_Liu
Posts: 16
Joined: Fri Dec 16, 2016 6:07 pm

WinPcap repackaging

Hi Support team,

WinPcap is the prerequisite software for wireshark for packet capture.
I am attempting to repackage the WinPcap since the exe installer does not support silent installation.
I try to use Advanced installer repackaging function to repackage it.
My package works great but reboot is required in order for it to work properly. The native exe installer does not require a reboot .

I found that the npf driver services will not be loaded and the "Remote Packet Capture Protocol v.0 (experimental)" not show until the machine is rebooted.
How can I load the service without reboot by MSI package ?

https://www.winpcap.org/install/bin/WinPcap_4_1_3.exe
Attachments
Untitled.png
Untitled.png (77.04 KiB) Viewed 7842 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: WinPcap repackaging

Hello,

I tested and replicate the behavior. Please give us some time to further investigate this and we'll get back to you as soon as we have more details.

Thank you for your patience and understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: WinPcap repackaging

Hello,

Indeed, it seems the Repackaging operation doesn't import the "rpcad" service as a service item (i.e. in "Services" page) in your repacked setup. Instead only the service configuration registries are imported (i.e. in "Registry" page). However, as a workaround you can manually create the "rpcad" service item in your repackaged setup project. Here is how you can proceed:
1. go to "Registry" page and delete the following registry key:

Code: Select all

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\rpcapd
2. go to "Services" page and add a "New Service Installation " operation configured like this:
serviceInstall.jpg
serviceInstall.jpg (120.39 KiB) Viewed 7816 times
3. configure the service control operation like this:
serviceControl.jpg
serviceControl.jpg (60.39 KiB) Viewed 7816 times
4. rebuild and test again the installation.

In what regards the NPF driver repackaging, I wasn't able to find out anything useful. It seems we repackage correctly the driver registry configuration. The same registries are installed by the original installation package too. Can you please give us more details about the driver issue you are encountering after the installation of the repackaged setup?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eric_Liu
Posts: 16
Joined: Fri Dec 16, 2016 6:07 pm

Re: WinPcap repackaging

Hi Daniel,

NPF driver is the key component for wireshark for packet capture.
It is OK to load the NPF driver if the machine is rebooted.
However, the native exe installer does not require a reboot . It load immediately without reboot.

Is it possible to load the NPF driver without reboot by MSI installer?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: WinPcap repackaging

Hello,

I'm not sure if this will help, but can you please go to Registry page and change the "Start" type of the "NPF" driver from "2" to "3" and see how this works now?

Here are the steps to follow:
1. go to "Registry" page and expand the following reg key:

Code: Select all

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NPF
2. in right pane double click on the "Start" registry value and set the "Data" field to 3 (currently is should be 2)
3. rebuild the setup project

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: WinPcap repackaging

Hello,
Indeed, it seems the Repackaging operation doesn't import the "rpcad" service as a service item (i.e. in "Services" page) in your repacked setup.
This was fixed in version 13.8 of Advanced Installer released on March 30th, 2017.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”