First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Cannot create installer following Win32/64 step-by-step instructions

  • retag add tags

I have just set up a wireshark dev station on my win10 PC, following the step-by=step instructions. wireshark compiles and runs fine.

But when I try to create an installer using the instructions on that page, both commands fail saying the vcxproj files do not exist. I tried them in both the build folder and the wireshark folder. A search of the entire wireshark tree cloned out of git does not find any such files.

What am I missing?

CurtisC's avatar
1
CurtisC
asked 2019-08-02 17:27:43 +0000
edit flag offensive 0 remove flag close merge delete

Comments

Below are the commands listed in the instructions:

Run

msbuild /m /p:Configuration=RelWithDebInfo nsis_package_prep.vcxproj msbuild /m /p:Configuration=RelWithDebInfo nsis_package.vcxproj

CurtisC's avatar CurtisC (2019-08-02 17:29:21 +0000) edit

Do you have NSIS installed?

Guy Harris's avatar Guy Harris (2019-08-02 19:09:43 +0000) edit

Yes. V3.04

CurtisC's avatar CurtisC (2019-08-02 19:12:10 +0000) edit

I had Visual Studio 2019 installed on the same PC as studio 2017. I removed the 2019 version, and now re-running the install seems to have added the nsis project files in.

The sequence was something like:

1) Visual studio 2017 and Visual studio 2019 installed. generating build files did not generate nsis*.vcxproj files

2) uninstalled visual studio 2019

3) ran nsis to be sure it was installed, and clicked 'compile NSI scripts' button (I doubt this did anything, but noting it for completeness)

4) deleted all files and folders under build and re-generated Now I see nsis* project files.

CurtisC's avatar CurtisC (2019-08-02 19:25:55 +0000) edit

I tried building the installer. The second step failed with an error. Should I file a new ticket? Error message is below:

     File: "wireshark-filter.html" 22234 bytes

     File: "C:\Curtis\wireshark_dev\wsbuild64\run\RelWithDebInfo\dumpcap.exe" -> no files found.

     Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
        /oname=outfile one_file_only)

     Error in script "wireshark.nsi" on line 502 -- aborting creation process

 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targe

   ts(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Curtis\wireshark_dev\wsbuild64\nsis_package.vcxproj]

 1>Done Building Project "C:\Curtis\wireshark_dev\wsbuild64\nsis_package.vcxproj" (default targets) -- FAILED.

Build FAILED.

   "C:\Curtis\wireshark_dev\wsbuild64\nsis_package.vcxproj" (default target) (1) ->
   (CustomBuild target) ->

     C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.tar
   gets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C ...
(more)
CurtisC's avatar CurtisC (2019-08-02 19:36:31 +0000) edit
add a comment see more comments

1 Answer

0

I managed to move past the last error by rebuilding the project. Not sure why the file was not generated in the first compile when it said it completed without errors.

I'm having another missing file ( the user-guide.chm file) I'll open a new ticket for that.

CurtisC's avatar
1
CurtisC
answered 2019-08-02 22:26:06 +0000
edit flag offensive 0 remove flag delete link

Comments

CMake will generate a solution with what it finds at the time, and cache the status. If you change major things in your environment, e.g. Visual Studio, paths to tools etc, things will go wrong. Either delete the cache file from your build directory (CMakeCache.txt) and re-run the generation, or take the "Aliens" option:

take off and nuke the entire site from orbit, it's the only way to be sure.

aka delete the build directory.

grahamb's avatar grahamb (2019-08-04 11:00:56 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer