Problem:
When packaging Wireshark as a FlexApp and choosing the option to install the NPCAP driver during the process, a message stating the driver isn't loaded when launching Wireshark after playback as shown below.
Resolution:
1. Either create a new Wireshark FlexApp package, choosing the desired settings during installation, and edit the package after completing the capture process or edit an existing Wireshark package, if one exists.
2. Expand the 'Registry' tree in the FPC Editor and delete the registry key below:
HKLM\SYSTEM\ControlSet001\Services
3. Click on the 'Services' section in the left pane of the FPC Editor and delete any services present.
4. Save the package.
5. Create a .bat or .cmd file with a name of your preference, add the commands shown below, and save the script.
:INSTALL
"C:\Program Files\Npcap\NPFInstall.exe" -i
If %ERRORLEVEL% neq 0 GOTO:INSTALL
6. Playback the Wireshark FlexApp and once able, choose the 'Add scripts to the package' option from the drop-down menu of the package in the FPC.
7. Choose 'Post-Activation' from the drop-down menu.
8. Click the magnifying glass icon and navigate to the location of the script file, selecting 'Network Location' if it's not locally on the FPC VM, select the script file in the right pane, and click 'OK'.
9. Finally, click the red 'Add Script' button to place it in the 'Scripts' pane and then click 'OK' to save the package.
10. Publish the package in a configuration and deploy the INI.
Product: FlexApp
Product Version: 6.8.5+
Expires on: 365 days from publishing
Updated: June 28, 2024