Ask Your Question

Revision history [back]

No uninstall-wireshark.exe when making installer 4.0.2.

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

click to hide/show revision 2
None

No uninstall-wireshark.exe when making installer 4.0.2.

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

process