Ask Your Question
0

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

asked 2019-08-02 17:27:43 +0000

CurtisC gravatar image

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?

edit retag flag offensive 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 gravatar imageCurtisC ( 2019-08-02 17:29:21 +0000 )edit

Do you have NSIS installed?

Guy Harris gravatar imageGuy Harris ( 2019-08-02 19:09:43 +0000 )edit

Yes. V3.04

CurtisC gravatar imageCurtisC ( 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 gravatar imageCurtisC ( 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 gravatar imageCurtisC ( 2019-08-02 19:36:31 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-02 22:26:06 +0000

CurtisC gravatar image

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.

edit flag offensive delete link more

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 gravatar imagegrahamb ( 2019-08-04 11:00:56 +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

Stats

Asked: 2019-08-02 17:27:43 +0000

Seen: 566 times

Last updated: Aug 02 '19