This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

I'm trying to build an installer for Windows using the Wireshark 2.0.0rc2 sources and cmake.

I have built the main executable using

"c:\Program Files (x86)\CMake\bin\cmake.exe" -DENABLE_CHM_GUIDES=on D:\wireshark-2.0.0rc2 msbuild /m /p:Configuration=RelWithDebInfo wireshark.sln

This works and I get an executable that runs. I now want to build and installer package. So I tried the command

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

This stops with the error

    Section: "-Required"
    SetShellVarContext: all
    SetOutPath: "$INSTDIR"
    File: "D:\wireshark-2.0.0rc2\build-win32\run\RelWithDebInfo\uninstall.exe" -> no files found.
    Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
       /oname=outfile one_file_only)
    Error in script "wireshark.nsi" on line 349 -- aborting creation process

And sure enough there is no uninstall.exe in the build directory. So which step am I missing to create one

I tried commenting out the line 349 in wireshark.nsi to see if it worked and it then fails a bit further on with the error..

    SetOutPath: "$INSTDIR"
    File: "Wireshark.exe" 6253568 bytes
    !include: could not find: "qt-dll-manifest.nsh"
    Error in script "wireshark.nsi" on line 876 -- aborting creation process

So is there a step I'm missing to get things ready to build the installer.

Thanks for any help

asked 05 Nov '15, 02:56

Andy%20Ling's gravatar image

Andy Ling
1333
accept rate: 0%


There is a missing step from README.cmake (but will be in the planned Dev Guide updates), to build an installer you must first build the uninstall package:

msbuild /m /p:Configuration=RelWithDebInfo nsis_package_prep.vcxproj
permanent link

answered 05 Nov '15, 03:20

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Thanks, that seems to have fixed it. I knew it would be something simple.

(05 Nov '15, 04:22) Andy Ling

@Andy Ling

If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.

(05 Nov '15, 04:29) grahamb ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×26
×15

question asked: 05 Nov '15, 02:56

question was seen: 1,385 times

last updated: 05 Nov '15, 04:29

p​o​w​e​r​e​d by O​S​Q​A