Ask Your Question

Switch: nsis_package_prep.vcxproj

asked 2021-10-06 06:06:25 +0000

updated 2021-10-06 07:58:11 +0000

grahamb gravatar image

Hi Everyone,

Trying to set up my own dev environment. I cloned the Wireshark repos to my own selfhos-ted GitLab server. I'm getting the following error near the end of the build process for Win64:

$ msbuild /verbosity:minimal /maxcpucount nsis_package_prep.vcxproj
Microsoft (R) Build Engine version 16.11.0+0538acc04 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: nsis_package_prep.vcxproj
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit status 1

I found this old Q&A post but I'm not sure how to go about fixing the build process.

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2021-10-06 08:07:36 +0000

grahamb gravatar image

I would suspect that something is missing in your environment and due to that the nsis packaging project isn't generated.

Re-run the CMake generation step and look for missing (optional) items. The main things that come to mind are nsis itself and the vc_redist installer and possibly the documentation build tools.

If you attach the output of the CMake generation step we might be able to spot something.

Note that your msbuild command line isn't as specified in the Developers Guide section on Building an Installer. You're free to build however you want, but straying from the "one true path" may lead to build issues that are hard to track down because the folks that try to support you never do these odd random things.

edit flag offensive delete link more


Thanks so much for the help!

Complete oversight on my part for missing the installation of NSIS. I think I saw the word "optional" amd just wanted to speed past things and get stuff building. I got past that part in the build process now.

However, I have run into a separate issue now with the "wix" package. I do have it installed but I receive this error during the build process:

heat.exe : error HEAT5052: The directory 'C:\GitLab-Runner\builds\YGKMWsXz\0\gitlab-instance-65e61314\wireshark\build\docbook\wsug_html_chunked' could not be found. [C:\GitLab-Runner\builds\YGKMWsXz\0\gitlab-instance-65e61314\wireshark\build\wix_package_prep.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'C:\GitLab-Runner\builds\YGKMWsXz\0\gitlab-instance-65e61314\wireshark\build\CMakeFiles\4d8a0b7ff555af3f37d4b8d0f7c65ff2\Diameter.wxs.rule;C:\GitLab-Runner\builds\YGKMWsXz\0\gitlab-instance-65e61314\wireshark\build\CMakeFiles\4d8a0b7ff555af3f37d4b8d0f7c65ff2\QtDependentComponents.wxs ...
thehammer86 gravatar imagethehammer86 ( 2021-10-07 05:20:20 +0000 )edit

I don't both with the WiX msi package myself so don't have much experience with it, from the output it's missing some of the documentation that should have been built earlier. The main Wireshark GitLab CI does build it though and is currently happy so I would think it's something in your environment. What branch are you building from?

grahamb gravatar imagegrahamb ( 2021-10-07 08:23:28 +0000 )edit

Optional: Create User’s and Developer’s Guide maybe Optional should come off the title.
"To build the Wireshark User’s Guide and the Wireshark Developer’s Guide build the all_guides target, e.g. msbuild all_guides.vcxproj. Detailed information to build these guides can be found in the file docbook\README.adoc in the Wireshark sources."

Chuckc gravatar imageChuckc ( 2021-10-07 16:02:31 +0000 )edit

I assumed @thehammer86 had gotten the NSIS build done and I didn't think there were different requirements for the NSIS and WiX installers as far as docs go, maybe there is. I have never built the docs separately, just the cmake, build, xxx_package_prep and then xxx_package steps.

The WiX installer is regarded, by me at least, as "experimental".

grahamb gravatar imagegrahamb ( 2021-10-07 17:12:15 +0000 )edit

"selfhos-ted GitLab server" I'm not sure what is shared between the builds.

Chuckc gravatar imageChuckc ( 2021-10-07 19:06:41 +0000 )edit

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


Asked: 2021-10-06 06:06:25 +0000

Seen: 42 times

Last updated: Oct 06