Custom Dissector missing from installer
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.