No uninstall-wireshark.exe when making installer 4.0.2. [closed]
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
wireshark_nsis_prep.vcxproj
should have builtThanks, 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.
(more)