Ask Your Question
0

Custom Dissector missing from installer

asked 2025-12-15 20:51:24 +0000

AlexKepas gravatar image

updated 2025-12-15 22:36:38 +0000

I have created a custom dissector (named "r1") plugin, which I have created inside a fork of the wireshark repo (v 4.7.0). I am devolving this on a windows machine and have followed the wireshark dev guide.

I am at the point where I want to create an installer, but when I follow step 2.2.1.16 I get an unexpected result, my plugin is not found on the newly installed development build of wireshark. But when I build wireshark locally I do find my plugin.

What am I messing up?

Exact steps:

1 - Cloned wireshark from https://gitlab.com/wireshark/wireshark.git.

2 - Created custom dissector plugin and put the following files into C:\Development\wireshark\plugins\epan\r1 - CMakeLists.txt - packet-r1.c - plugin-rc.in - README

3 - Added plugin path to CMakeListCustom.txt:

set(CUSTOM_PLUGIN_SRC_DIR
    plugins/epan/r1
)

4 - Opened visual studio developer prompt and ran the following commands:

set WIRESHARK_BASE_DIR=C:\Development\wireshark-third-party
set CMAKE_PREFIX_PATH=C:\Qt\6.9.3\msvc2022_64
set WIRESHARK_VERSION_EXTRA=-r1v0.1

5 - Ran CMake:

cmake -G "Visual Studio 17 2022" -A x64 ..\wireshark

6 - Ran Msbuild to build wireshark with my plugin:

msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln

Note: If I run the exe that is created from this step my dissector plugin successfully loads.

7 - Create the installer:

msbuild /m /p:Configuration=RelWithDebInfo wireshark_nsis_prep.vcxproj
msbuild /m /p:Configuration=RelWithDebInfo wireshark_nsis.vcxproj

8 - ran the installer exe located at C:\Development\wsbuild64\packaging\nsis

9 - Launch wireshark.

Checking help -> about reveals:

  • wireshark version is 4.7.0-r1v0.1
  • my plugin is not found in the plugin list.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2025-12-16 02:00:07 +0000

Chuckc gravatar image

WSDG: 11.3.1. Custom extension

If you want to add the plugin to your own Windows installer add a text file named custom_plugins.txt to the packaging/nsis directory, with a "File" statement for NSIS:

File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\foo.dll"

Template file: packaging/nsis/custom_plugins.txt

packaging/nsis/wireshark.nsi

...
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\wimaxmacphy.dll"
!include "custom_plugins.txt"
...
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2025-12-15 20:51:24 +0000

Seen: 13 times

Last updated: 5 hours ago