No uninstall-wireshark.exe when making installer 4.0.2. [closed]

asked 2022-12-12 22:03:52 +0000

updated 2022-12-13 03:55:25 +0000

Chuckc gravatar image

I've been building Wireshark for years and I have always tried to keep up with the stable release. I've tried updating from 3.6.8 to 4.0.0 - 4.0.2 but have trouble. My 64 bit Windows build runs fine but I cannot make the installer. I did the obvious stuff like switching from nsis_package_prep.vcxproj and nsis_package.vcxproj to wireshark_nsis_prep.vcxproj and wireshark_nsis.vcxproj.

While wireshark_nsis_prep.vcxproj passes when I try wireshark_nsis.vcxproj I get an error about having no uninstall-wireshark.exe. Is there some obscure thing that I should change to get the uninstall-wireshark.exe to build? So far I have tried moving from NSIS 3.06.1 to 3.08 and I'm still on VS 2019. I do not sign my executables so I have no weird scripts messing with the NSIS stuff.

The ERROR:

1>PrepareForBuild:
         Creating directory "x64\RelWithDebInfo\wireshark_nsis\".
         Creating directory "x64\RelWithDebInfo\wireshark_nsis\wireshark_nsis.tlog\".
       InitializeBuildStatus:
         Creating "x64\RelWithDebInfo\wireshark_nsis\wireshark_nsis.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
       CustomBuild:
         Command line defined: "STAGING_DIR=C:\bld\wireshark\binaries_1\wireshark\run\RelWithDebInfo"
         Command line defined: "OUTFILE_DIR=C:\bld\wireshark\binaries_1\wireshark\packaging\nsis"
         Command line defined: "NSIS_INCLUDE_DIR=C:\bld\wireshark\binaries_1\wireshark\packaging\nsis"
         File: "C:\bld\wireshark\binaries_1\wireshark\run\RelWithDebInfo\uninstall-wireshark.exe" -> no files found.
         Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
            /oname=outfile one_file_only)
         Error in script "wireshark.nsi" on line 492 -- aborting creation process
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mojo944
close date 2022-12-13 20:39:45.772857

Comments

wireshark_nsis_prep.vcxproj should have built

Generating run/RelWithDebInfo/uninstall-wireshark.exe

         Generating packaging/nsis/wireshark-qt-manifest.nsh
         Generating run/RelWithDebInfo/uninstall-wireshark.exe
         Command line defined: "STAGING_DIR=C:\Development\wsbuild64\run\RelWithDebInfo"
         Command line defined: "OUTFILE_DIR=C:\Development\wsbuild64\packaging\nsis"
         Command line defined: "NSIS_INCLUDE_DIR=C:\Development\wsbuild64\packaging\nsis"
         Building Custom Rule C:/Development/wireshark/CMakeLists.txt
       FinalizeBuildStatus:
         Deleting file "x64\RelWithDebInfo\wireshark_nsis_prep\wireshar.E077A2D0.tlog\unsuccessfulbuild".
         Touching "x64\RelWithDebInfo\wireshark_nsis_prep\wireshar.E077A2D0.tlog\wireshark_nsis_prep.lastbuildstate".
     1>Done Building Project "C:\Development\wsbuild64\wireshark_nsis_prep.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:01:17.37
Chuckc gravatar imageChuckc ( 2022-12-13 04:18:26 +0000 )edit

Thanks, looking more closely at the output of wireshark_nsis_prep.vcxproj I can see where I fail to create uninstall-wireshark.exe. My theory is that some virus protection on my PC either does not like exe files with the name "uninstall" or that the exe itself contains stuff that can alter windows in a way that concerns the virus protection. I will follow up with my evil IT department.

         Generating packaging/nsis/wireshark-qt-manifest.nsh
         Generating run/RelWithDebInfo/uninstall-wireshark.exe
         Command line defined: "STAGING_DIR=C:\bld\wireshark\binaries_1\wireshark\run\RelWithDebInfo"
         Command line defined: "OUTFILE_DIR=C:\bld\wireshark\binaries_1\wireshark\packaging\nsis"
         Command line defined: "NSIS_INCLUDE_DIR=C:\bld\wireshark\binaries_1\wireshark\packaging\nsis"
         Building Custom Rule C:/bld/wireshark/binaries_1/wireshark_src/CMakeLists.txt
     1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Msbuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): warning MSB8065: Custom build for item "C:\bld\wireshark\binaries_1\wireshark ...
(more)
mojo944 gravatar imagemojo944 ( 2022-12-13 15:21:22 +0000 )edit